trivial encoder by REM

a=(r=readline)(b=r(t="")[0]);for(i=0;i<a.length;i++)t+=b=="d"?String.fromCharCode(parseInt(a.slice(i*2,i*2+2),16)):a.charCodeAt(i).toString(16).toUpperCase();print(t+(a[0]=="s"?"A":""))

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

download

return to the top page