LitSensei logoLitSensei™
← The Code Book

The Code Book · Simon Singh

Context & Background

3 min read

Context

When and where it was written

The Code Book: The Evolution of Secrecy from Mary, Queen of Scots to Quantum Cryptography was published in 1999 by Fourth Estate in the UK and Doubleday in the US. Simon Singh wrote it in Britain, at the end of a decade in which cryptography moved from a niche concern of governments and mathematicians to an everyday technology. The web was growing quickly, online shopping was beginning, and the question of who could use strong encryption had become a public political fight.

The author

Singh was born in 1964 in Somerset, England, to a family of Punjabi Indian heritage. He trained as a physicist, studying at Imperial College London and completing a PhD in particle physics at Cambridge, which included work at CERN. He then moved into science broadcasting at the BBC, working on programmes such as Horizon and Tomorrow's World.

His breakthrough as a popular author came from television. He directed a documentary on Fermat's Last Theorem and expanded it into the book Fermat's Enigma (1997). The Code Book followed as his second book and showed the same method: take a subject with a reputation for being forbiddingly technical and tell it through people, rivalries, and dramatic episodes. He later wrote Big Bang (2004), Trick or Treatment? (2008, with Edzard Ernst), and The Simpsons and Their Mathematical Secrets (2013).

The world the book responds to

Several late-20th-century developments shape the book's emphasis:

  • Public-key cryptography. Whitfield Diffie and Martin Hellman published their key-exchange idea in 1976, and Rivest, Shamir, and Adleman followed with RSA in 1977. Singh also tells the story of the British government's GCHQ, whose researchers had reached similar ideas earlier but whose work stayed classified until the late 1990s.
  • The "crypto wars." Governments, especially in the US, wanted to limit civilian access to strong encryption and restricted its export. Phil Zimmermann's PGP, released in 1991, became the best-known test case, and the book places it at the centre of the privacy-versus-security debate.
  • Declassified wartime history. The Bletchley Park codebreaking effort against Enigma stayed secret for decades after World War II. By the 1990s the story was well enough known for Singh to retell it for a general audience.
  • Early quantum research. Quantum cryptography and the theoretical threat of quantum computers were still largely laboratory ideas when he wrote the final chapter.

Structure and approach

The book is a work of popular history and science writing, not a scholarly monograph. It moves roughly chronologically from ancient and Renaissance ciphers to the computer age, using the recurring contest between codemakers and codebreakers as its organising idea. It explains the actual methods, such as substitution, frequency analysis, and the logic of RSA, with minimal mathematics, and it includes ciphers for readers to try. Singh also ran a "Cipher Challenge" tied to the book, with a cash prize for solving a series of increasingly hard messages. A team of enthusiasts solved it in 2000.

Reception and afterlife

The book was a commercial and critical success and is often recommended as an introduction to cryptography for non-specialists, especially for its clarity. Because it is a general-audience account, it simplifies some details and tells its stories from a particular dramatic angle, so it is best read as an introduction rather than a final word.

It is also a snapshot of 1999. Later events, such as the growth of everyday encrypted communication, further public debates about surveillance, and the development of "post-quantum" cryptography designed to resist quantum computers, came after it was written. Keep that in mind when you read the closing chapters, where Singh's predictions about quantum technology are explicitly forward-looking.