This chapter teaches the Caesar cipher.
### Caesar's Three-Step Secret
Ancient Secrets · Caesar
In the first century BCE, Roman general Julius Caesar had a big problem. He needed to send top-secret military orders and private letters across dangerous territory. If enemy soldiers ambushed his messengers, Caesar's battle plans would be ruined. So, as the Roman biographer Suetonius recorded, Caesar used a clever trick to turn his writing into gibberish.
Instead of hiding the scroll itself, Caesar hid the meaning of the letters. His method is what cryptographers call a substitution cipher, and the rule is wonderfully simple: every letter in your message takes three steps forward down the alphabet.
When Caesar wanted to write the letter A, he wrote D instead. B became E, C became F, and so on down the line. If he reached the end of the alphabet, he simply wrapped back around to the beginning. To read the secret orders, Caesar's generals just marched every letter three steps backward.
By today's standards, Caesar's cipher looks almost painfully easy to solve. Why didn't his enemies crack it right away? Mostly because the vast majority of the enemies intercepting his messages couldn't read at all, and the few who could had never seen a substitution cipher before!
| plain | A | B | C | D | E | F | G | H | I | J | K | L | M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | D | E | F | G | H | I | J | K | L | M | N | O | P |
| plain | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | Q | R | S | T | U | V | W | X | Y | Z | A | B | C |

Caesar hands off a scrambled order — Rome, around 50 BC.
### How to Outsmart an Emperor
Ancient Secrets · Cracking It
Movies love to treat Julius Caesar's secret cipher like an unbreakable ancient superpower. It wasn't. Honestly, Caesar's messages stayed secret mostly because his enemies couldn't read at all, and those who could had never heard of a substitution cipher.
Today, you can shatter a Caesar cipher in minutes without knowing the secret shift. Why? Because the English alphabet only has 26 letters. Since shifting by 26 puts every letter right back where it started, there are only 25 possible ways to slide the alphabet.
If you intercept a mystery message, you don't need to guess the key. You just test every single option. Take the first scrambled word and shift its letters back by one space, then two, then three, writing each version down in a neat stack.
Code-breakers call this a "brute force" attack—kicking down the door by trying every key on the keyring. Twenty-four of your rows will look like total gibberish, but suddenly, on one magic row, real words will snap into focus. Congratulations: you just outsmarted a Roman general.
| plain | A | B | C | D | E | F | G | H | I | J | K | L | M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | F | G | H | I | J | K | L | M | N | O | P | Q | R |
| plain | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | S | T | U | V | W | X | Y | Z | A | B | C | D | E |
### The Spartan Scytale
Ancient Secrets · Scytale
Around 405 BCE, during the Peloponnesian War, Spartan leaders needed to send top-secret orders to Admiral Lysander across enemy territory. According to ancient writers like Plutarch, they didn't invent a secret alphabet. Instead, they used a wooden baton and a strip of leather called a scytale.
A commander wrapped the narrow leather strip tightly around the wooden rod in a spiral, leaving zero gaps. Then he wrote his message in rows straight across the wood. When he unwound the leather, the letters were still there, but their order was completely scrambled into nonsense.
This is called a transposition cipher: it scrambles the order of the letters without changing the letters themselves. To read it, Lysander just wrapped the leather around a twin rod of the exact same thickness, and the message snapped back into place.
Did Spartans really use it for secret codes? Historians still debate it! No ancient scytale has ever been dug up, and some experts think it was just an official badge of authority. Either way, the story gave the world its first big lesson in letter-scrambling.

### The Checkerboard That Talked Through Walls
Ancient Secrets · Polybius
In the second century BCE, Greek engineers Cleoxenus and Democleitus had a problem: how do you text someone from a mountaintop before phones exist? The historian Polybius perfected their answer. Instead of writing secret letters on parchment, they turned the alphabet into numbers you could flash across the night sky with flaming torches.
The secret is a five-by-five checkerboard grid, numbered one to five down the side and across the top. In English, you squeeze the twenty-six letters into the twenty-five boxes by making I and J share a room. Every letter now has a two-digit address: its row number, then its column number.
To send a letter, a Greek soldier held up torches on his left for the row number, and on his right for the column. Suddenly, whole words could leap from peak to peak as pairs of numbers.
Centuries later, that exact five-by-five grid saved lives in the dark. Prisoners of war, including Americans held in Vietnam, memorized the square and used it as a knock code. By tapping out the row and column numbers on cell walls, captives could hold secret conversations right under their guards' noses.
### The Scholar Who Counted Letters
Ancient Secrets · Code-Breaking
For centuries, generals and kings trusted a simple trick: swap every letter in a secret message for a different symbol, and nobody can read it. Then, around 850 CE, an Arab scholar named Al-Kindi working at the House of Wisdom in Baghdad ruined their fun forever.
Al-Kindi realized that every language has a mathematical fingerprint. Some letters are total crowd-pleasers, while others barely show up. In English, the letter E is everywhere—making up about 13 percent of all written text—while Z mostly sits on the bench.
Swapping letters for secret symbols does not change how often they appear. Al-Kindi explained that if you take a normal page of writing, count the most common letters, and compare them to the most common symbols in a long secret message, the disguise falls apart. If the symbol Q is everywhere, it is probably hiding an E.
This method, called frequency analysis, does not crack codes instantly—you still need a long enough message and clever guesswork to fill in the blanks. Even so, Al-Kindi's manuscript birthed the science of code-breaking, forcing code-makers to invent wild new machines just to keep up.
### The Spinning Wheel That Broke Code-Breaking
Ancient Secrets · Cipher Wheel
Once Al-Kindi figured out frequency analysis, simple shift ciphers were toast. If you always swapped E for the exact same letter, a sharp code-breaker could count the letters and bust your secret wide open. Code-makers needed a rescue. In 1467, an Italian Renaissance architect named Leon Battista Alberti stepped up with an actual gadget.
Alberti built a cipher disk out of two copper plates, one nested inside the other. The outer ring stayed still and held the regular alphabet. The inner ring held a scrambled alphabet and could spin freely around the center.
To write a secret message, you lined up the two rings and substituted letters just like a shift cipher. Here was the genius upgrade: after a few words, you gave the inner wheel a spin! You slipped an agreed-upon signal letter into the text so your friend knew to spin their wheel too.
Because the inner wheel kept moving, the rules kept changing mid-sentence. An E might become a Q in your first sentence and an M in your second. Code-breakers counting letters suddenly had a giant headache. While modern math can eventually crack it, Alberti's spinning disk launched a brand-new era of secret writing.
| plain | A | B | C | D | E | F | G | H | I | J | K | L | M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | E | F | G | H | I | J | K | L | M | N | O | P | Q |
| plain | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | R | S | T | U | V | W | X | Y | Z | A | B | C | D |