trivial encoder by murky-satyr

for([,c]in $=(r=readline)(r(o='')))o+=c.charCodeAt().toString(16)
print(c-4?unescape($.replace(/../g,"%$&")):(+c?o+'A':o).toUpperCase())

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page