// I need to

ModernizeUpgrade without breaking it RescueFix what someone else started Build NewTurn an idea into a product Reach More PeopleGet found, get used, include everyone

// Company

Case StudiesExpertiseAbout + CareersResourcesContact Book a call →

The Code Book

A review of Simon Singh's The Code Book, which mixes storytelling and math to trace codes and code-breaking from ancient steganography to modern cryptography.

Art+Logic Aug 11, 20122 min read

From the Art+Logic archive · written in 2012. The tools may have moved on; the thinking still holds.

Photo by Shahadat Rahman on Unsplash

When I was a boy, secret codes fascinated me, but eluded my understanding.  Oh, the simplest of them were easy enough to grasp, such as the Caesar cipher, where the alphabet is shifted by a set number of letters:

Plain alphabet  a b c d e f g h i j k l m n o p q r s t u v w x y z
Cipher alphabet D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
Plaintext       v e n i,   v i d i,   v i c i
Ciphertext      Y H Q L,   Y L G L,   Y L F L

(excerpted from The Code Book, p. 12)

But it was the theory behind codes, and the practice of breaking them, or cryptanalysis, that was most engaging and mysterious.  Though studying Alice, Bob, and Eve and prime number cryptography in college classes helped, it was not until I came across Simon Singh’s The Code Book that I finally thought to myself, “I get it!”.

The Code Book

Image of Simon Singh
Simon Singh, author of The Code Book

The Code Book is a mixture of storytelling and mathematical elucidation that walks the reader through the history of codes and code-breakers, from early Greek accounts of steganography through the downfall of Mary Queen of Scots, and ending with the frontiers of quantum cryptography.  At every stage, tales of historical figures are mixed with clear, detailed, and illustrated examples of the codes used at the time.  Almost every code is then followed by an analysis of its flaws and a study of the first exploits of those flaws.  The back and forth struggle between the code makers and breakers seems at once inevitable and mind-boggling for the sheer genius required in each evolutionary step.

Singh takes these complex ciphers and cryptanalyses and breaks them down into their simpler component parts with figures and tables, for instance looking at frequencies of letter usage in English versus a cyphertext:

Screen Capture
(excerpted from The Code Book, p. 76)

The book covers one-time pads, Minoan Linear B, the German Enigma machine, the RSA algorithm, quantum-signed money, and the Beale treasure, among many other topics, all with the same thorough level of explanation and gripping narration.  You’ll finish each chapter of this compelling, fascinating, thrilling, and insightful book feeling satisfied with yourself.

Sample a few random pages on Amazon’s book preview, or read some review excerpts.

keep going

More to explore in Build New.

All Build New resources →
let's talk

Got a problem like this one?

Tell us what's stuck. A real person replies within one business day.

Talk to our team →

Talk to people who know software, not a sales script.

Your first call is with Aja, our VP of Sales. He'll help make sure you're solving the right problem. Here's what you'll cover together:

  1. What you're trying to accomplish

    The business goal first, then the technology.

  2. Possible approaches

    And the tradeoffs of each, in plain language.

  3. Risks you may not have considered

    Technical and business, before they cost you.

  4. Whether AI changes the math

    What's practical, and what's just hype for your project.

  5. Sensible next steps

    Even if the right next step is not us.

book-a-call.ics

Loading the scheduler…

Open the booking page →

Some problems are easier to explain in writing. Send us a few lines about what you're working on, and we'll reply within one business day. Helpful to include:

  1. What the software does, or should do
  2. What's stuck, or what's worrying you
  3. Any deadline or budget you have in mind
note.txt

Loading the form…