Data update

This commit is contained in:
Ingy döt Net 2024-11-11 10:11:44 -08:00
parent 157b70a810
commit 8e4e15fa56
78 changed files with 2016 additions and 222 deletions

View file

@ -0,0 +1,24 @@
;
; substution.lsp
;
(defvar _original "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
(defvar _substitute "dthnxkmqrwzseglyoaubjpcfivTKXMGVUPOIRFDEJZNYWCAQSLBH")
(defvar _text "The quick brown fox jumps over the lazy dog!")
(defun encode (_plaintext _original _substitute)
(map 'string
#'(lambda (_char)
(let*
((_offset (position _char _original)))
(if _offset
(aref _substitute _offset)
_char)))
_plaintext))
(print _text)
(setq _text (encode _text _original _substitute))
(print _text)
(setq _text (encode _text _substitute _original))
(print _text)
(exit)