The oldest coordinate cipher, turning letters into numbers — still inspiring code designers today
Imagine you are Polybius, a Greek historian and strategist. You need to send signals between troops over long distances — using torches or flags. How do you encode every letter of the alphabet with simple, reliable signals?
Polybius came up with a brilliant solution: a square table where every letter gets a pair of numbers — a row number and a column number. Just send two numbers, and the receiver can reconstruct the letter. That is how one of the earliest ciphers in history was born — one still used today for teaching and for fun.
Unlike the Caesar cipher (a simple substitution), the Polybius square turns letters into pairs of numbers. This not only hides the meaning but is also convenient to transmit by any means: smoke, light, sound. And if you shuffle the order of letters in the table, the cipher's strength increases dramatically.
The basis of the cipher is a square table filled with the letters of an alphabet. For Russian, a 6×6 table is typically used (33 letters + Ё); for English, a 5×5 table (letters I and J are merged). Rows and columns are numbered starting from 1.
The letters of the alphabet are written row by row. For example, the Russian version (6×6):
The example below uses the Russian alphabet — the game itself also lets you pick an English layout.
Every letter is replaced with a pair of numbers: a row number and a column number. For example, the letter "С" sits at row 4, column 1 → cipher "41".
Knowing the same table, the receiver splits the ciphertext into pairs of numbers. For each pair, they find the row and column and read the letter at the intersection. That is how the original message is recovered.
Example: "35" → row 3, column 5 → letter "П".
The cipher's strength can be increased by shuffling the letters in the table. If an attacker doesn't know the layout, even with the ciphertext in hand they can't recover the message. This gives you an extra key — the order in which the square is filled.
М (Russian alphabet)C = (row, col), where row, col are the letter's coordinates in the table.54P = table[row][col], working backwards from coordinates to a letter.What will you actually do in the interactive simulation?
In the game you don't just read about the Polybius square — you live through the whole encryption and decryption process. The table's visual animation will help this ancient but brilliant method stick with you for good.
The Greek historian Polybius (c. 200–118 BCE) described this method in his work "The Histories." He used the square to send signals with torches: a 5×5 table of the Greek alphabet, where the number of torches indicated row and column. This let you transmit any letter over a distance of several kilometers.
The Polybius square is the foundation for many more complex ciphers. For example, World War I saw the use of the ADFGVX cipher, based on a 6×6 table with the letters A, D, F, G, V, X. The method is also used in cryptography puzzles, in QR codes (as a way to encode data), and even in teaching children the basics of encryption.
A German WWI field cipher that used the Polybius square followed by a transposition step.
How the coordinate principle shows up in modern digital communication: from GPS to QR codes.
Shuffling letters, using keywords to fill the square — ways to strengthen the cipher.
How to break the cipher if you know the frequency of coordinate pairs, and how to avoid that.
The evolution of ciphers: from simple substitution to asymmetric cryptography.
Now that you understand the principle of coordinate encryption, it's the perfect time to try it for yourself!
In the interactive simulation you can encrypt your own message while watching the table animate in real time.