The Language of Secrets
The classroom was quiet except for the soft scratching of pencils on paper and the distant hum of the heating system. Sarah flicked her eyes toward the front of the room, where Mrs. Patterson was absorbed in grading papers, her reading glasses sliding down her nose. Now was the moment. Sarah casually lifted her left hand to adjust her hair, while her right hand slipped a folded piece of paper across the desk to Jake, who sat two rows over and three seats down.
The paper traveled from desk to desk, passed by students who had perfected this art over months of practice. A tap on the shoulder meant "pass it on." A subtle nod indicated "message received." By the time Mrs. Patterson looked up to check on her class, the note had reached its destination, and both Sarah and Jake were staring intently at their worksheets, their faces arranged in expressions of deep concentration.
If only they had known that their crude communication system, born of teenage necessity and classroom boredom, echoed techniques that spies, generals, and monarchs had been refining for thousands of years. The art of sending messages without letting others read them—a practice we call cryptography—has shaped the course of empires, won wars, and kept lovers connected across hostile territories. It is a story that begins not in computer laboratories or government agencies, but in the earliest days of human civilization, when someone first realized that some messages were too important, too dangerous, or too personal to be shared with the world.
This is a book about secrets. More specifically, it is about the extraordinary human journey to protect our most private thoughts from prying eyes, and the equally extraordinary efforts to uncover what others wish to hide. It is a journey that has taken us from wax tablets melted over secret messages to mathematical algorithms that would take all the computers in the world longer than the age of the universe to break. It is a journey that continues today, as scientists work on quantum computers and quantum cryptography—technologies that will make our current security systems look like paper locks on a cardboard box.
But every great story needs its characters, and cryptography has three who have become so fundamental to the field that you will find them in virtually every textbook, research paper, and university course on the subject. Their names are Alice, Bob, and Eve.
Alice, Bob, and the Curious Case of Eve
In the world of cryptography, Alice wants to send a secret message to Bob. That is their entire relationship in a nutshell—a simple premise that contains within it the seeds of every security challenge humanity has ever faced. Alice has information she wants to share with Bob, but she knows that others might want to intercept, read, or modify that information before it reaches its destination. Bob, on his end, needs to receive this message and understand it, while being certain that it really came from Alice and that it hasn't been tampered with along the way.
Between Alice and Bob stands Eve—the eavesdropper, the interloper, the one who listens where she is not invited. Eve is not necessarily malicious; she might be a curious teenager passing notes in class, a competitor corporation sniffing out trade secrets, a government intelligence agency monitoring communications, or simply a curious soul with too much time and too little respect for privacy. What defines Eve is her position: she is outside the trusted circle, trying to observe what Alice and Bob wish to keep private.
The names Alice and Bob were not chosen randomly. They were introduced in 1978 by cryptographers Ron Rivest, Adi Shamir, and Leonard Adleman—the brilliant minds behind the RSA encryption algorithm that still protects much of the internet today. The choice of these names was deliberate, a subtle acknowledgment that cryptography is fundamentally about communication between people. Technology changes, algorithms evolve, and computing power grows exponentially, but at its heart, cryptography remains a human endeavor. It is about people who want to share information, and people who want to know what others are sharing.
Throughout this book, you will follow Alice and Bob as they navigate the challenges of secret communication across centuries and technologies. You will see how their methods have evolved from simple substitution ciphers scratched on clay tablets to quantum key distribution systems that exploit the strange laws of physics to guarantee perfect security. And you will learn about Eve's increasingly sophisticated techniques for listening in, and the ingenious countermeasures that Alice and Bob have developed in response.
But before we leap into the future, we must first understand the past. The story of cryptography is one of the oldest stories humans have to tell, because the need to communicate secretly is as old as communication itself. The moment our ancestors first realized that some messages should only reach certain ears, the game was afoot.
The Wax Tablets of Sparta: When Secrets Met Warfare
Let me take you back to ancient Greece, to the city-state of Sparta, around the year 600 BCE. The Spartans were not like other Greeks. While Athens built beautiful temples and developed philosophy and democracy, Sparta built an army. Every Spartan male was a soldier, every Spartan woman was expected to bear soldiers, and the entire society was organized around the production of warriors. In Sparta, the written word was valued not for its beauty, but for its utility—for what it could do on the battlefield.
The Spartans developed a device for secret communication that was brilliantly simple and surprisingly effective. They called it the scytale (pronounced SKIT-ah-lee). The mechanism was elegant in its physicality: take a strip of parchment or leather and wind it helically around a rod of specific diameter. The rod itself was cut to a precise thickness, and this thickness was the key. When the strip was wound around the rod, the letters aligned in rows, and the message could be written across the wound parchment. Once unwound, the strip became a seemingly random sequence of letters, meaningless to anyone who didn't possess a rod of the same diameter.
Imagine you are a Spartan general preparing to march against an enemy. You have intelligence that the Persians are planning to attack, and you need to warn your allies in another city. You write your message on the scytale strip, wind it carefully, and hand it to your fastest rider. He rides day and night, the strip hidden in his cloak. If the Persians intercept him, they find only a leather strip covered with jumbled letters. Without the exact rod, the message remains unreadable.
But here is the fascinating part: when the recipient receives the scytale and winds it around their own rod of the same diameter, the letters rearrange themselves into coherent text. The message that seemed like gibberish now tells of Persian troop movements, supply shortages, or planned ambushes. The secret, invisible to outsiders, becomes perfectly clear to those who know the trick.
The scytale represents something profound about cryptography: it is the marriage of a physical method with a shared secret. The "key" to the system—the diameter of the rod—must be known to both sender and recipient, but it need not appear anywhere in the message itself. This separation between the key and the message would become a foundational principle of cryptography for the next 2,500 years.
Spartan military communications using the scytale proved devastatingly effective in their era. Spartan commanders could coordinate attacks across vast distances without their enemies knowing their plans. When the Spartans fought at Thermopylae against overwhelming Persian forces in 480 BCE, their ability to send and receive secret messages allowed them to hold the narrow pass for three days—long enough to buy Athens time to evacuate, long enough to change