LitSensei logoLitSensei™
← The Code Book

The Code Book · Simon Singh

Key Ideas

3 min read

Secrecy shapes history. Singh argues that ciphers are not a curiosity but a force that decides the fate of people and nations. He builds this through case studies. Mary, Queen of Scots, trusted a cipher in her correspondence about a plot against Elizabeth I, and the interception and decipherment of those messages helped seal her execution. Centuries later, the breaking of the German Enigma machine at Bletchley Park (building on earlier Polish work) gave the Allies intelligence during World War II. The opening and middle of the book rely on these high-stakes stories to show why cryptography matters.

Codemaking and codebreaking are locked in an arms race. This is the book's organizing structure. Each advance in secrecy provokes a counter-advance in analysis, which in turn forces better ciphers. Simple substitution ciphers were defeated by frequency analysis. The Vigenère cipher, nicknamed le chiffre indéchiffrable (the indecipherable cipher), restored secrecy for a long time until it was eventually broken. Singh's chapter order follows this back-and-forth, so the history reads as a single continuing contest rather than a set of unrelated episodes.

Breaking ciphers depends on understanding language and mathematics. Singh repeatedly shows that cryptanalysis succeeds by finding patterns, whether in letter frequencies or in the habits of machine operators. This is also why The Language Barrier sits comfortably in the book. The Navajo code talkers used a living language that enemy analysts could not readily learn, and the decipherment of ancient scripts shows the same detective work applied to a different problem. Singh's explanations tend to work step by step, so the reader can follow the logic of each break.

Mechanisation raised the stakes. In The Mechanisation of Secrecy and Cracking the Enigma, Singh shows how machines generated far more complex ciphers than hand methods could, and how defeating them required machines and teams in return. The Enigma story is also a story of organization: mathematicians, linguists, and engineers working together. The lesson is that codebreaking moved from lone brilliance to industrial effort.

Key distribution was the great obstacle, and public-key cryptography solved it. Before the 1970s, anyone who wanted to send a secret message first had to share a key securely, which is a logistical problem that grows impossible at scale. In Alice and Bob Go Public, Singh explains how public-key ideas, culminating in RSA, let strangers communicate securely without meeting. This is the bridge between the history and the present, since it underlies Internet commerce. Singh uses the recurring characters Alice and Bob to keep the abstract ideas concrete.

Privacy is a political question. In Pretty Good Privacy, Phil Zimmermann's PGP brings strong encryption to ordinary people, and governments' worries about this power lead to legal conflict. Singh presents both sides: individuals want privacy, while law enforcement and intelligence agencies fear losing access. The book treats this as an unresolved debate, not a settled one.

Confidence in any cipher is provisional. Singh notes that modern encryption is strong enough that breaking it by brute force would take longer than the age of the universe with today's computers. Yet he also stresses that every cipher once thought unbreakable has eventually fallen. The key phrase is "with today's computers." Security always depends on what attackers can do, so a claim of safety is really a claim about current technology.

Quantum technology cuts both ways. In the final chapter, A Quantum Leap into the Future, Singh describes how quantum computers could in principle undermine RSA-style systems by solving the underlying mathematical problem far faster than classical machines. He pairs this with quantum cryptography, which he presents as potentially a truly unbreakable system, one that could end the arms race with a win for the codemakers. This ending is worth discussing critically, because it sits in tension with the book's own historical pattern. Treat the claim as a hopeful prediction grounded in physics rather than a guaranteed outcome, and note that the book was published in 1999, so later developments may have changed the picture.