|
Just enter the text you want to shift into this program. Results: Click on any of the lower links to display that particular shift"; echo "Hide All - Show All"; $cipher = strtolower($text); $i = strlen($cipher); $o = 0; $b = ""; while ($o < $i) { $l = substr($cipher,$o,1); if ($l == " ") { $b[] = 32; } else { $ol = ord($l); $p = 97; $q = 1; while ($p < 123) { if ($p == $ol) { $a = $q; } $p++; $q++; } $b[] = $a; } $o++; } $o = 1; while ($o < 26) { echo "Shift: $o "; $o++; } } ?> |