3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
7 # SEE: <http://rosettacode.org/wiki/Caesar_cipher>
13 var msg
= "Batman's hood is called a \"cowl\
" (old meaning)."
14 var cipher
= msg
.rot
(key
)
16 print
"Caesar cypher key: {key}"
17 print
"plain text: {msg}"
18 print
"cyphered: {cipher}"
19 print
"uncyphered: {cipher.rot(-key)}"