Four Square Cipher

Key1
Key2
a b c d e
f g h i k
l m n o p
q r s t u
v w x y z
a b c d e
f g h i k
l m n o p
q r s t u
v w x y z

Python代码参考

from pycipher import Foursquare

fs = Foursquare('zgptfoihmuwdrcnykeqaxvsbl','mfnbdcrhsaxyogvituewlqzkp')

print fs.encipher('HELLOWORLD')
print fs.decipher('UNWXDKDECM')