Playfair

Python代码参考

from pycipher import Playfair

# 加密
ciphertext = Playfair('CULTREABDFGHIKMNOPQSVWXYZ').encipher('THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG')
print(ciphertext)

# 解密
plainttext = Playfair('CULTREABDFGHIKMNOPQSVWXYZ').decipher('UKDNLHTGFLWUSEPWHLISNPCGCRGAUBVZAQIV')
print(plainttext)