Secret codes

Charles Babbage

Date: 1854Place: London (United Kingdom)

The inventor of calculating machines who broke the “indecipherable cipher”

Great codebreakers
Charles Babbage
Charles Babbage — photographed around 1860
Public domain — Wikimedia Commons

In brief

The English mathematician Charles Babbage is best known for his calculating machines, ancestors of computers. But he was also passionate about codes: around 1854 he found how to break the Vigenère cipher, thought indecipherable for three centuries. He did not publish his discovery, and the Prussian officer Kasiski long got the credit.

The story

Babbage designed the “Difference Engine”, then the “Analytical Engine”, a calculator programmed with punched cards that Ada Lovelace described in 1843. He was interested in everything: lighthouses, insurance, locks… and ciphers. In 1854, a dentist, John Thwaites, announced he had invented a new cipher. Babbage showed it was a simple Vigenère and took up the challenge of breaking it.

His method was to spot groups of letters that repeat in the encrypted message: the distance between them is a multiple of the key’s length. Once that length is known, the text is cut into several Caesar ciphers, broken one by one with frequencies. His notes were only studied in the 20th century. Perhaps the British army asked him to keep the secret during the Crimean War.

Did you know?

Babbage also loved word games: he had drawn up lists of words sorted by length and alphabetical order to help him decipher.

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.

In the same family: Great codebreakers