RosettaCodeData/Task/Caesar-cipher/Scala/caesar-cipher-2.scala

6 lines
206 B
Scala
Raw Permalink Normal View History

2013-04-10 12:38:42 -07:00
val text="The five boxing wizards jump quickly"
println("Plaintext => " + text)
val encoded=Caesar.encode(text, 3)
println("Ciphertext => " + encoded)
println("Decrypted => " + Caesar.decode(encoded, 3))