GET THE APP
Artwork for Cryptography: From Caesar's Cipher to Babbage's Quiet Triumph
Origins

Cryptography: From Caesar's Cipher to Babbage's Quiet Triumph

Origins traces secret writing from Egyptian tombs through Baghdad's frequency analysis to a difficult Londoner breaking the unbreakable cipher.

Friday, May 29, 2026 • 7:15 min

Read the episode (Narration script)

Welcome to Origins. In this program we explore the technological and scientific roots of the modern world. Let's begin.

There is a particular kind of human pleasure that comes from keeping a secret. It is older than writing, almost certainly older than language as a fixed thing. But the moment a message can be written down, a new problem appears. Writing is a beautifully treacherous technology. It carries your words faithfully to a friend, and just as faithfully to whoever intercepts the courier. So almost as soon as humans had script, they began bending script against itself.

The oldest known example sits on a tomb wall in Egypt, around 1900 BCE. A scribe carving the life of a nobleman named Khnumhotep swapped in unusual hieroglyphs where ordinary ones would do. Scholars debate whether this was true secrecy or simply a kind of literary showing off. Either way, the impulse is recognizable. Take a known symbol. Replace it with something stranger. Make the reader work.

Move forward fifteen hundred years and you find Spartan generals wrapping strips of leather around a wooden rod called a scytale. The message, written along the rod, became gibberish once the strip was unwound. To read it, you needed a rod of exactly the right diameter. It was, in effect, a physical key. A clever idea, and one that quietly introduces a theme that will haunt cryptography for the next three thousand years. The strength of your secret depends on the secrecy of your tool.

Then comes Julius Caesar, who according to his biographer Suetonius, shifted each letter of the alphabet three places down when sending sensitive correspondence. A becomes D. B becomes E. The Caesar cipher is so simple that schoolchildren still play with it. But in its time, against an enemy who could barely read Latin, it worked. That is one of the gentle truths of this field. A cipher only needs to be stronger than the patience of the people trying to break it.

For centuries, that patience was thin. Ciphers proliferated across the ancient and medieval world, mostly variations on the same theme. Replace each letter with another letter, or a symbol, or a number. This is called substitution, and for nearly a thousand years it was considered essentially unbreakable.

Then, in ninth century Baghdad, a polymath named al-Kindi did something remarkable. He was working in the House of Wisdom, that extraordinary translation institute where Greek, Persian, and Indian texts were being rendered into Arabic by lamplight. Al-Kindi was a philosopher, a music theorist, an astronomer. And while studying the Quran, scholars had been counting how often each Arabic letter appeared, trying to date passages by their linguistic fingerprints. Al-Kindi saw a deeper use.

He realized that in any given language, certain letters appear far more often than others. In English, the letter E shows up about thirteen percent of the time. T and A are not far behind. So if you intercept a coded message and one symbol appears far more than any other, that symbol is probably standing in for E. Find that, and the whole edifice begins to crumble. He called the technique frequency analysis, and with one short manuscript, he made every substitution cipher in the world obsolete.

It took Europe roughly six hundred years to catch up. When it did, the response was a cipher that seemed to defeat al-Kindi entirely. It was developed in stages by several Renaissance figures and eventually credited, somewhat unfairly, to a French diplomat named Blaise de Vigenère. The Vigenère cipher uses not one shifted alphabet but many, cycling through them according to a keyword. The same letter in your message could be encoded differently each time it appeared. Frequency analysis, faced with this, simply dissolves.

For three hundred years the Vigenère cipher was called le chiffre indéchiffrable. The unbreakable cipher. Diplomats trusted it. Generals trusted it. It protected love letters and treason alike.

And then in the 1850s, in a cluttered London study, a difficult and brilliant man named Charles Babbage cracked it. Babbage is usually remembered for his mechanical computers that never quite got built. But in his spare hours he was an obsessive puzzle solver, and after a public challenge from a dentist who claimed to have invented an unbreakable cipher, Babbage worked out a method. He noticed that if the keyword is shorter than the message, certain patterns inevitably repeat. Measure the distances between those repetitions, and you can deduce the length of the key. Once you know the key length, the unbreakable cipher splits into several ordinary ciphers, each vulnerable to al-Kindi's old trick.

Babbage never published. Some say the British government asked him to keep quiet during the Crimean War. A Prussian officer named Friedrich Kasiski published the same method a few years later and got the credit.

What is striking about this whole lineage is how human it is. Every cipher is a wager about what your adversary cannot be bothered to do. Every break is someone bothering. The Egyptians hid meaning in strange glyphs. Al-Kindi counted letters by candlelight. Babbage scribbled tables in the margins of his notebooks. The machines that would later encrypt the world, from Enigma to the silent mathematics behind your messages today, all rest on this long conversation between concealment and curiosity.

That is the origin worth holding onto. Not the algorithms, but the impulse. A species that writes things down, and immediately begins to wonder who else might read them.

Thanks for listening. Origins will return tomorrow.

Your Daily Knowledge Companion

Download the Treehorn mobile app

Scan to get the Treehorn appGet the app Get the app