Decode Caesar ciphers by masato_hi

<?while(false!==$i=fgetc(STDIN)){if(!$d){$a[G]=20;$a[U]=14;$a[L]=8;$d=$a[$i];}$o=ord(strtoupper($i));$r=ord($i);if(65>$o||$o>90){}elseif($o<91-$d){$i=chr($r+$d);}else{$i=chr($r-26+$d);}echo$i;}

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

download

return to the top page