RosettaCodeData/Task/Playfair-cipher/Tcl/playfair-cipher-2.tcl
2023-07-01 13:44:08 -04:00

7 lines
250 B
Tcl

Playfair create cypher "Playfair Example"
set plaintext "Hide the gold in...the TREESTUMP!!!"
set encoded [cypher encode $plaintext]
set decoded [cypher decode $encoded]
puts "Original: $plaintext"
puts "Encoded: $encoded"
puts "Decoded: $decoded"