This is an implementation of the Playfair cipher in Nim
var cipher = createPlayfair(PASSWORD, TEXT).encrypt
var plaintext = cipher.decrypt
It is meant to be a learning example, and perhaps useful for some crypto challenges. Checkout the source for the other options:
-
Option: make I || J occupy the same space versus dropping Q
-
Pad/Drop duplicates with X