Best Books About Cryptography and Codebreaking (2026 Guide)
Cryptography is the practice of writing information so only the intended reader can understand it. Codebreaking is the practice of reading it anyway. The contest between the two has decided wars, built the foundations of modern computing, and now sits underneath every secure website you visit. It's a field where pure mathematics meets human intelligence, where one mistake can topple an empire, and where the stakes have never been anything less than absolute.
Quick answer: if you're reading only one book, make it Simon Singh's The Code Book. It covers the full sweep from Caesar's cipher to RSA encryption in plain language. For the Enigma story specifically, pair it with Andrew Hodges' Alan Turing: The Enigma. For the technical side of how encryption actually works today, move on to Bruce Schneier's Applied Cryptography or the more current Serious Cryptography by Jean-Philippe Aumasson.
This guide collects the books that treat cryptography as both a technical field and a human drama: the mathematicians chasing unbreakable codes, the codebreakers hunting for a way in, and the moments when one side cracked the other's secrets and changed the course of history.
The Enigma Machine and Bletchley Park
Alan Turing: The Enigma by Andrew Hodges is the definitive biography of the man most associated with breaking Nazi Germany's Enigma cipher. Hodges goes well past "Turing was a genius." He reconstructs the actual mathematics Turing used to exploit weaknesses in Enigma's design, the engineering behind the Bombe machine that automated the search for daily settings, and the industrial scale that Bletchley Park's codebreaking operation eventually reached. He also documents, without flinching, Turing's prosecution for homosexuality and his death in 1954, two years after Britain's Official Secrets Act meant his wartime work couldn't even be cited in his defense.
The Code Book by Simon Singh is the most accessible single-volume history of cryptography available. Singh moves chronologically from Julius Caesar's shift cipher through the Vigenère cipher, the Enigma machine, and into modern public-key systems like RSA. He explains the mathematics clearly without dumbing it down, and the book famously shipped with a 10-stage cipher challenge worth £10,000 to the first reader who solved it (won in 2000 by a Swedish team after roughly a year of collective effort). If you read one chapter before anything else, read his explanation of why RSA works: it's still one of the clearest lay explanations of public-key cryptography in print.
Code Girls: The Untold Story of the American Women Code Breakers of World War II by Liza Mundy tells a story that stayed classified for decades. Roughly 11,000 American women were recruited from colleges, told they'd be doing clerical work, and then trained in cryptanalysis. They broke Japanese naval codes and German ciphers from offices in Washington, D.C., work that directly shaped Pacific and Atlantic strategy. Mundy follows individual codebreakers like Ann Caracristi through the tedium of pattern-hunting, the exhilaration of a break, and the sting of being pushed out of the workforce once the men came home. It's the American counterpart to the Bletchley Park story, and it was mostly erased from that story for sixty years.
Between Silk and Cyanide: A Codemaker's War, 1941-1945 by Leo Marks is a memoir from inside the Special Operations Executive, the British agency running spies into occupied Europe. Marks headed SOE's codes division and replaced the agency's dangerously insecure "poem codes" (memorized verses that were easy for the Gestapo to crack once an agent was captured) with one-time pads printed on silk that could be burned or swallowed. The book includes more than twenty of Marks' own code-poems, some written for specific agents the night before they parachuted into France. It's less famous than the Enigma story, but it's the story of the codes that kept individual field agents alive.
Seizing the Enigma: The Race to Break the German U-Boat Codes, 1939-1945 by David Kahn narrows in on one specific, high-stakes codebreaking campaign: the Battle of the Atlantic. German U-boats were using a four-rotor naval variant of Enigma that was harder to crack than the Army and Air Force versions, and while it held, U-boat wolfpacks were sinking Allied convoys faster than shipyards could replace them. Kahn traces the Polish mathematicians who broke the early Enigma before the war even started, the British effort that picked up their work at Bletchley Park, and the captured code books and cipher machines, pulled from sinking U-boats by boarding parties, that gave the Allies their actual way in.
What is the best book about the Enigma machine?
Andrew Hodges' Alan Turing: The Enigma is the definitive account of the Enigma story, since it covers both the cryptanalytic breakthroughs and the man behind them. For a narrower, more dramatic slice of the same history, David Kahn's Seizing the Enigma focuses specifically on the naval Enigma and the Battle of the Atlantic.
The Mathematics and Mechanics of Modern Encryption
Applied Cryptography by Bruce Schneier is the book that trained a generation of security engineers. It covers symmetric ciphers like DES and AES, public-key systems like RSA, hash functions, and the protocols built on top of them, with enough implementation detail that programmers have used it as a working reference since its first edition in 1994. If you've ever wondered why your passwords are (or aren't) actually safe, this is where the answer lives.
Serious Cryptography: A Practical Introduction to Modern Encryption by Jean-Philippe Aumasson is the book to read after Schneier's, or instead of it if you want something written for the current decade. Aumasson, a working cryptographer, covers authenticated encryption, secure randomness, elliptic curve cryptography, and the TLS protocol that secures nearly every website you visit, with a closing chapter on the post-quantum algorithms designed to survive a future quantum computer.
Cryptography and Network Security by William Stallings is the textbook most computer science programs actually assign. It's denser than Schneier or Aumasson but more systematic, walking through symmetric and asymmetric cryptography, digital signatures, and authentication protocols in a structured sequence that builds chapter over chapter. If you're studying for a security certification or a CS degree, this is the one your syllabus already has on it.
Cryptography Engineering: Design Principles and Practical Applications by Niels Ferguson, Bruce Schneier, and Tadayoshi Kohno is the follow-up to Applied Cryptography that focuses on what actually goes wrong. Most cryptographic failures aren't broken math, they're implementation mistakes: reused nonces, weak random number generators, protocols that leak information through timing. This book is about the engineering discipline that keeps correct math from turning into a broken system in production.
The Definitive Histories
The Codebreakers: The Story of Secret Writing by David Kahn is the single largest work in this field, running past 1,100 pages and covering cryptography from ancient Egypt through the mid-20th century. It was so comprehensive on publication in 1967 that the NSA reportedly tried to have it suppressed. If Singh's Code Book is the readable overview, Kahn's Codebreakers is the primary reference underneath it, the book that later historians in this list keep citing.
Crypto: How the Code Rebels Beat the Government, Saving Privacy in the Digital Age by Steven Levy tells a completely different kind of codebreaking story: the 1970s-to-1990s fight over whether ordinary citizens would be allowed to use strong encryption at all. Levy follows Whitfield Diffie and Martin Hellman inventing public-key cryptography, Phil Zimmermann releasing PGP in defiance of U.S. export law, and the government's failed push for the Clipper Chip backdoor. It's the book that explains why the encryption on your phone right now is legal.
Code Name: Lise: The True Story of the Woman Who Became WWII's Most Highly Decorated Spy by Larry Loftis follows Odette Sansom, an SOE agent operating under the code name Lise in occupied France. Her radio codes, transmitted from the field, were the only thing standing between her and capture by the German counter-intelligence officer hunting her network. Sansom was eventually caught, survived Ravensbrück concentration camp, and became the first woman awarded the George Cross. Loftis writes it as a nonfiction thriller, but every plot beat is documented.
Fiction That Gets the Cryptography Right
Cryptonomicon by Neal Stephenson is fiction, but Stephenson trained as a mathematician and it shows. The novel runs two timelines in parallel: WWII codebreakers working alongside a fictionalized Alan Turing, and their grandchildren building a data haven and a cryptocurrency scheme in the 1990s. It's long and demanding, but no novelist has captured the obsessive, pattern-hunting logic of a working cryptographer as precisely as Stephenson does here. Many working cryptographers list it as their favorite novel about their own field.
The Future: Quantum Computers and Post-Quantum Cryptography
Current public-key encryption (RSA, elliptic-curve cryptography) relies on math problems, like factoring enormous numbers, that are practically impossible for ordinary computers to solve backward. A sufficiently powerful quantum computer running Shor's algorithm could solve the same problem in a fraction of the time, which is why the field has spent the last decade racing to build replacements. NIST finalized its first three post-quantum cryptography standards in August 2024, and organizations that handle long-lived sensitive data are now under real pressure to migrate.
Post-Quantum Cryptography, edited by Daniel J. Bernstein, Johannes Buchmann, and Erik Dahmen, is the book where leading researchers lay out the state of the art in the algorithm families (lattice-based, hash-based, code-based) built to survive that future. It's technical, but it's the clearest single account of where cryptography is actually headed next, written by the people building it.
Why Cryptography Matters
Cryptography is the technology that lets you read this sentence over a secure connection without a stranger reading it too. Every encrypted message, every digital signature, and every padlock icon in your browser depends on a mathematical asymmetry: a problem that's easy to solve one direction and nearly impossible to solve the other way. The internet's entire security model rests on that asymmetry holding.
But cryptography is also political. Governments want backdoors for law enforcement access. Privacy advocates and security engineers argue, correctly, that a backdoor for the good guys is a backdoor for everyone. Companies want to monitor user behavior for profit, which is its own kind of decryption. Cryptographers sit in the middle of all three pressures, writing the rules that decide whether a given conversation stays private or becomes transparent to someone else. Reading about cryptography, in the end, is reading about the future of who gets to know what about you.
Are there any books about codebreaking written for beginners with no math background?
Yes. Simon Singh's The Code Book and Liza Mundy's Code Girls are both written for a general audience and require no mathematical background. Singh explains every technical concept as it comes up, and Mundy's book is narrative history rather than a technical text, following individual codebreakers rather than the algorithms they used.
How the Technical and Historical Tracks Compare
| Book | Best for | Math required | Era covered |
|---|---|---|---|
| The Code Book (Singh) | First-time readers, full historical sweep | None | Ancient Rome to modern RSA |
| Alan Turing: The Enigma (Hodges) | The Bletchley Park story in depth | Light | WWII |
| Applied Cryptography (Schneier) | Engineers who need to implement crypto | Moderate to heavy | 1990s algorithms, still foundational |
| Serious Cryptography (Aumasson) | A current, practical technical reference | Moderate | Modern TLS-era cryptography |
| The Codebreakers (Kahn) | Comprehensive primary-source history | None | Ancient Egypt to mid-20th century |
| Crypto (Levy) | The politics of encryption rights | None | 1970s-1990s |
| Post-Quantum Cryptography (Bernstein et al.) | Where the field is headed next | Heavy | Present to future |
Suggested Reading Order
- Start with Singh's The Code Book for the full historical sweep in accessible language.
- Move to Hodges' Alan Turing: The Enigma for the deepest single account of Bletchley Park.
- Add Mundy's Code Girls or Marks' Between Silk and Cyanide for the parts of the WWII story that Turing's biography doesn't cover.
- Jump to Schneier's Applied Cryptography or Aumasson's Serious Cryptography for how encryption actually works today.
- Finish with Levy's Crypto for why you're legally allowed to use any of it, or Stephenson's Cryptonomicon if you'd rather have the novel version.
More books on codebreaking and intelligence history
If Bletchley Park and SOE codes were the part of this list that hooked you, two more Skriuwer guides go deeper on the surrounding history: the best books on Cold War espionage cover the codes and spies of the decades after WWII, and the best books on World War II cover the wider war these codebreakers were fighting inside of.
Featured Recommendations
The Code Book by Simon Singh - The most accessible full history of cryptography, from Caesar's cipher to RSA, clearly explained for a general reader. Buy on Amazon
Alan Turing: The Enigma by Andrew Hodges - The definitive biography linking Turing's mathematics to Bletchley Park's Enigma breakthroughs. Buy on Amazon
Code Girls by Liza Mundy - The untold story of the 11,000 American women who broke Japanese and German codes in WWII. Buy on Amazon
Applied Cryptography by Bruce Schneier - The technical reference that trained a generation of security engineers in how modern encryption actually works. Buy on Amazon
Serious Cryptography by Jean-Philippe Aumasson - The current, practical guide to modern encryption, from authenticated ciphers to post-quantum algorithms. Buy on Amazon
FAQ
Your next good book, in your inbox
We only write when we find a book worth your time. Hand-picked recommendations across history, mythology, true crime and more.
Are you an author?
Get your book in front of readers like these, for free.
- Free book listing →Your own book page with an Amazon button
- Author page →Photo, bio and links to your site
- Featured placement →A spot in our best-of lists, from €29
Free tools we recommend
Get free honest reviewsReview exchange on iWrity, free to join
Books You Might Like

Sapiens: A Brief History of Humankind
Yuval Noah Harari

The Body Keeps the Score
M.D. Bessel van der Kolk

The Last Kingdom (The Saxon Stories, Book 1)
Bernard Cornwell

Meditations
Marcus Aurelius