Decode Caesar ciphers by masato_hi

import sys\x0d
d=0\x0d
for c in sys.stdin.read():\x0d
 i=ord(c)\x0d
 if d==0:\x0d
  d={76:8,85:14,71:20}[i]\x0d
 sys.stdout.write(chr(i if'A'>c or 90<i<97 else i+d if i<91-d or 96<i<123-d else i-(26-d)))

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

download

return to the top page