Polybius Square

Key
Characters
\
A B C D E
A
B
C
D
E

Python代码参考

from pycipher import PolybiusSquare

print PolybiusSquare('phqgiumeaylnofdxkrcvstzwb',5,'ABCDE').encipher('helloworld')
print PolybiusSquare('phqgiumeaylnofdxkrcvstzwb',5,'ABCDE').decipher('ABBCCACACCEDCCDCCACE')