[Project] The Polybius Square Encipher/Decipher

A Polybius Square is a table that allows someone to translate letters into numbers. To give a small level of encryption, this table can be randomized and shared with the recipient. In order to fit the 26 letters of the alphabet into the 25 spots created by the table, the letters V and W are usually combined.

Each letter can be represented by a group of two numbers: that of his line and that of his column. So “A”=11, “E”=15, “U”=51 …


  • Encipher a plaintext
  • Decipher a ciphertext



Download the package and extract it, then:

$ cd package_directory
$ python3 setup.py build
$ sudo python3 setup.py install


The simple example for using Polybius Square:

>>> from polybius import Polybius
>>> myPolybius = Polybius()
>>> myPolybius.encipher("Boubakr")
12 35 51 12 11 31 43
>>> myPolybius.decipher("12 35 51 12 11 31 43")



$ cd package_directory
$ python3 main.py


Download [Site] [GitHub] [Source Forge]

Tagged: , , ,

Leave a Reply :

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: