The Polybius Cipher, also known as the Polybius Square, is a classical substitution cipher invented by the ancient Greek historian and scholar Polybius. It encodes letters as pairs of numbers corresponding to their position in a 5×5 grid, allowing letters to be represented numerically. To fit the 26-letter Latin alphabet into a 25-cell square, the letters I and J are typically combined.

The cipher is simple yet effective for converting letters to numbers. Each row and column of the square is numbered 1 through 5, so any letter can be referenced by its row-column coordinates. For example, the letter A in the top-left corner is “11” (row 1, column 1), and E in the first row, fifth column, is “15.” This numeric representation makes messages easier to transmit using non-alphabetic mediums like telegraphy.

Polybius Cipher: Encoding

To encode a message, locate each plaintext letter in the Polybius square and write down its corresponding pair of numbers. For example, using the standard 5×5 grid with I/J combined, encode the plaintext HELLO:

Plaintext:  H  E  L  L  O

Polybius Square Coordinates:
H → 23
E → 15
L → 31
L → 31
O → 34

Ciphertext: 23 15 31 31 34

Each number pair represents the row and column of the letter in the square. This numeric sequence is the encoded ciphertext.

Polybius Cipher: Decoding

To decode, reverse the process by mapping each pair of numbers back to the corresponding letter in the square. Using the example above:

Ciphertext: 23  15  31  31  34

Decoding (row-column → letter):
23 → H
15 → E
31 → L
31 → L
34 → O

Plaintext: HELLO

Polybius Cipher: Notes

The Polybius Square is one of the earliest examples of numeric substitution ciphers. Its simplicity makes it useful for basic encryption and transmitting messages over limited channels, but it provides little security against frequency analysis if used alone. Modern variations include combining it with additional ciphers, like the Nihilist Cipher, to enhance security. Its historical significance lies in demonstrating how letters can be systematically converted into numbers, a concept foundational to cryptography.

Polybius Square Cipher