Nonfiction · 1999
The Code Book
by Simon Singh
As an Amazon Associate I earn from qualifying purchases.
The one-line summary
The Code Book tells the story of the centuries-long contest between people who make secret codes and people who break them, from ancient ciphers to modern computer encryption.
What the book is about
Singh's main idea is that secrecy has always been an arms race. Each time codemakers invent a cipher they believe is safe, codebreakers eventually find a weakness, and the codemakers have to start again. The book follows this cycle in roughly chronological order.
It opens with Mary, Queen of Scots, whose cipher was broken by her enemies and helped seal her fate. It then moves to the Vigenère cipher, long nicknamed le chiffre indéchiffrable ("the indecipherable cipher"), and to its eventual defeat. Later chapters cover the mechanization of encryption, culminating in the German Enigma machine and the Allied codebreakers at Bletchley Park who cracked it. A chapter on the "language barrier" looks at the decipherment of ancient scripts and at the Navajo code talkers of World War II, who used their own language as a code.
Singh explains the mechanics of each cipher clearly enough that a non-specialist can follow how it works and why it fails. Understanding the weaknesses is what makes the history coherent.
The turn to public-key cryptography
The second half of the book shifts from wartime secrecy to the digital age. The central problem is key distribution: how can two people who have never met agree on a secret key without a safe channel to share it? The chapter "Alice and Bob Go Public" shows how public-key cryptography solved this, and it introduces the RSA system. Alice and Bob, the standard names for the two parties in cryptography, appear throughout. This breakthrough is what makes secure communication over the Internet, including online commerce, possible.
The next chapter, on Pretty Good Privacy, brings in Phil Zimmermann and the political fight over who should have access to strong encryption. Individuals want privacy, while governments and law enforcement worry about being unable to read communications. Students should notice that cryptography is a question of policy and power as well as mathematics.
Why it matters now
The book ends with quantum technology, which Singh presents as cutting both ways. Quantum computers could, in principle, break systems such as RSA. Quantum cryptography, in theory, offers a system that cannot be broken. The book's pattern, in which every cipher thought to be unbreakable has eventually fallen, invites skepticism about that last claim.
The Code Book was published in 1999, so its treatment of quantum computing reflects the field as it stood then. Read it alongside current discussion of how today's encryption might need to change. The history it tells still explains why cryptographic security always has to be treated as provisional.
When studying, watch for three recurring themes:
- Cryptography shapes history. Broken ciphers have changed the outcomes of conflicts and the fates of individuals.
- Security is provisional. Confidence in a cipher lasts only until someone finds a way in.
- Encryption has political stakes. Who may use strong encryption is a matter of public debate.
Related books
The Man from the Future: The Visionary Life of John von Neumann
From game theory to the atomic bomb to the modern computer, this biography follows the Hungarian prodigy whose ideas shaped the world we live in today.
Shared themes: Mathematics, World War II, Technology
The Ten Equations that Rule the World: And How You Can Use Them Too
Sumpter shows how ten equations, from Bayes' rule to the logistic curve, quietly shape everything from markets and elections to AI, and how you can use them to think more clearly.
Shared themes: Mathematics, Technology
The Spy and the Traitor: The Greatest Espionage Story of the Cold War
How did a senior KGB officer become MI6's most valuable source, and what happened when the Soviets began to suspect him? Macintyre tells the true story with the pace of a thriller.
Shared themes: Espionage, History




