Playfair cipher: Difference between revisions

m
No edit summary
Line 1,148:
 
# Get array of pairs of letters from text.
canontxt = replace(canonical(txt), r"[^A-Z]" => "")
letterpairs = map(x -> canontxt[x], findall(r"(.)(?:(?!\1)(.))?", canontxt))
if isencode
Line 1,173:
Decoded: HI DE TH EG OL DI NT HE TR EX ST UM PX
</pre>
 
 
=={{header|Kotlin}}==
4,107

edits