The Polybius square
The alphabet arranged in a 5 by 5 grid: each letter becomes two numbers

Jona Lendering, Livius Onderwijs — Public domain — Wikimedia Commons
In brief
The Greek historian Polybius, in the 2nd century BC, described a way of sending letters over a distance with torches. The letters are arranged in a square of five rows and five columns: each is named by two numbers. The idea is still used in many ciphers.
The story
Polybius, born in Megalopolis and taken to Rome as a hostage, describes a signalling method in his “Histories”. The 24 Greek letters are divided among five tablets. The signaller first raises, with the left hand, as many torches as the number of the tablet, then, with the right hand, as many torches as the position of the letter. Any message can be spelled out this way, not just agreed alerts.
With the Latin alphabet, I and J share a cell to make 25 letters. The square has had many descendants: the “tap code” knocked on prison walls, the ADFGVX cipher of 1918 and modern puzzles. On its own it hides very little; combined with a mixed alphabet or a transposition, it becomes much stronger.
Example
H = 23, E = 15, Y = 54 → HEY = 23 15 54
Did you know?
Prisoners have talked from cell to cell by tapping on walls with the Polybius square: three knocks then four knocks is the letter O.
Sources: D. Kahn, The Codebreakers, 1967 (rev. ed. 1996); S. Singh, The Code Book, 1999; F. L. Bauer, Decrypted Secrets, 4th ed., 2007; C. P. Bauer, Secret History: The Story of Cryptology, 2nd ed., 2021; texts written for this site.
The Caesar cipher
Trithemius’s tabula recta
The Vigenère cipher
Mary, Queen of Scots’ cipher letters
The Great Cipher of Louis XIV
The Playfair cipher