Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Caesar-cipher/Hoon/caesar-cipher.hoon
Normal file
9
Task/Caesar-cipher/Hoon/caesar-cipher.hoon
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|%
|
||||
++ enc
|
||||
|= [msg=tape key=@ud]
|
||||
^- tape
|
||||
(turn `(list @)`msg |=(n=@ud (add (mod (add (sub n 'A') key) 26) 'A')))
|
||||
++ dec
|
||||
|= [msg=tape key=@ud]
|
||||
(enc msg (sub 26 key))
|
||||
--
|
||||
Loading…
Add table
Add a link
Reference in a new issue