Caesar cipher: Difference between revisions
m
→W/o decipher function
Cyril Nocton (talk | contribs) |
Cyril Nocton (talk | contribs) |
||
Line 1,890:
> (caesar-decipher "Qeb nrfzh yoltk clu grjmp lsbo qeb ixwv ald" 23)
"The quick brown fox jumps over the lazy dog"</pre>
====W/o
1. Note
<pre>if rot(text shift) = cyphertext then rot(cyphertext -shift) = text</pre>
Line 1,896:
2. Program
Text manipulation is a
<lang lisp>(defconstant +rot+ "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz")
|