RosettaCodeData/Task/Vigen-re-cipher/Scala/vigen-re-cipher-3.scala
2016-12-05 22:15:40 +01:00

6 lines
265 B
Scala

val text = "Beware the Jabberwock, my son! The jaws that bite, the claws that catch!"
val encoded = Vigenere.encrypt(text)
val decoded = Vigenere.decrypt(text)
println("Plain text => " + text)
println("Cipher text => " + encoded)
println("Decrypted => " + decoded)