Decode Caesar ciphers by slightair

#!ruby -p
k||=$_[1]%7*6
$_.tr!"%c-ZA-%c%c-za-%c"%[x=?A+k,x-1,x+32,x+31],"A-Za-z"

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

download

return to the top page