Why Cryptography Is the Most Important Subject You Never Studied
Every time you send a message, make a payment, or log in to a website, you are relying on cryptography. The mathematics of secret codes protects your bank account, your medical records, your private conversations, and the infrastructure of modern civilization. And yet most people know almost nothing about how it works or where it came from.
The best books on cryptography bridge that gap. They tell a story that stretches from ancient civilizations to quantum physics, from Julius Caesar’s battlefield messages to the algorithms that secure the internet. Whether you are a complete beginner or a working programmer, there is a cryptography book that will change how you see the digital world.
Here are the essential reads, organized from accessible histories to technical references.
For Beginners: History and Storytelling
1. The Code Book by Simon Singh (1999)
If you read only one book about cryptography, make it this one. Simon Singh traces the entire history of codes and codebreaking, from the substitution ciphers of ancient Greece through the Enigma machine, the invention of public-key cryptography, and the emerging threat of quantum computing. Singh is a gifted storyteller who makes complex mathematics accessible without dumbing it down. The book’s explanation of RSA encryption remains one of the clearest ever written for a general audience.
2. The Codebreakers by David Kahn (1967, updated 1996)
David Kahn’s monumental work is the definitive history of cryptography from antiquity to the 20th century. At over 1,100 pages, it is not a quick read, but it is comprehensive and deeply researched. Kahn covers every major cipher system, every significant codebreaking achievement, and the political and military consequences of each. If Singh’s book is the readable introduction, Kahn’s is the authoritative reference.
3. Crypto by Steven Levy (2001)
This book tells the story of the “crypto wars” of the 1970s through 1990s: the battle between government agencies (who wanted to control encryption) and civilian cryptographers (who wanted to make it freely available). Characters like Whitfield Diffie, Martin Hellman, and Phil Zimmerman come alive as Levy describes how public-key cryptography moved from classified government research to a tool available to every person on Earth. Essential reading for understanding why encryption is a political issue, not just a technical one.
For History Enthusiasts: War and Intelligence
4. Alan Turing: The Enigma by Andrew Hodges (1983)
The definitive biography of Alan Turing is also one of the best books ever written about the Enigma codebreaking effort at Bletchley Park. Hodges, a mathematician himself, explains Turing’s cryptanalytic methods with unusual clarity, showing how abstract mathematical reasoning was applied to a concrete (and desperately urgent) wartime problem. The book also does justice to Turing’s broader contributions to computing, artificial intelligence, and mathematical logic, as well as the tragic story of his persecution and death.
5. Between Silk and Cyanide by Leo Marks (1998)
Leo Marks was the chief cryptographer of the Special Operations Executive (SOE) during World War II, responsible for the codes used by agents operating behind enemy lines in occupied Europe. His memoir is alternately hilarious, heartbreaking, and terrifying. Marks describes the catastrophic failures of early SOE cipher systems (which got agents killed) and his own innovations to fix them. One of the finest war memoirs ever written, and a vivid reminder that cryptographic failure has human consequences.
6. Seizing the Enigma by David Kahn (1991)
While many books cover the intellectual challenge of breaking Enigma, Kahn focuses on the physical seizures of Enigma machines and codebooks from German ships and submarines. These captures provided the raw material that Bletchley Park needed to crack the codes. It is a story of naval combat, espionage, and extraordinary bravery, told by the foremost historian of cryptography.
For the Technically Curious: How It Actually Works
7. Applied Cryptography by Bruce Schneier (1996)
Bruce Schneier’s classic is the bridge between popular history and academic textbook. It covers symmetric and asymmetric encryption, hash functions, digital signatures, key exchange protocols, and real-world implementations. Schneier writes clearly and practically, with a focus on how cryptographic systems are actually used (and how they fail). The book includes source code and is still referenced by professionals, though some of the specific algorithms are now dated.
8. Cryptography and Network Security by William Stallings
This is the standard university textbook on cryptography, now in its eighth edition. It covers classical ciphers, block ciphers (DES, AES), public-key systems (RSA, Diffie-Hellman, elliptic curves), hash functions, digital certificates, and network security protocols. It is systematic, thorough, and updated regularly. If you want to understand modern cryptography at a technical level, this is where many computer science students begin.
9. Serious Cryptography by Jean-Philippe Aumasson (2017)
A more modern and practical alternative to Schneier’s classic. Aumasson covers the cryptographic primitives that are actually used today: AES, SHA-3, RSA, elliptic curves, and authenticated encryption. The book focuses on what can go wrong in practice and how to avoid common mistakes. Excellent for software developers who need to implement cryptography correctly.
For Mathematicians: The Deep Theory
10. An Introduction to Mathematical Cryptography by Hoffstein, Pipher, and Silverman
This textbook takes a rigorously mathematical approach, starting from number theory and abstract algebra and building up to RSA, elliptic curve cryptography, lattice-based systems, and post-quantum cryptography. It requires comfort with proofs and abstract mathematics but rewards the effort with genuine understanding of why these systems are secure, not just how they work.
11. The Mathematics of Secrets by Joshua Holden (2017)
A beautifully written middle ground between popular science and textbook. Holden explores the mathematics behind both historical and modern ciphers, from frequency analysis to elliptic curves, with enough rigor to satisfy a mathematically inclined reader but enough narrative to keep it engaging.
For the Forward-Looking: Quantum and Post-Quantum
12. Quantum Computing Since Democritus by Scott Aaronson (2013)
Not strictly a cryptography book, but essential for understanding the quantum threat to current encryption. Aaronson, one of the world’s leading quantum complexity theorists, explains why a sufficiently powerful quantum computer could break RSA and most current public-key systems, and what kinds of mathematics might resist quantum attacks. The writing is witty, opinionated, and refreshingly honest about what we know and what we do not.
A Timeline of Cryptographic Milestones
- ~1900 BCE: Earliest known cipher, a modified hieroglyphic inscription in Egypt
- ~50 BCE: Julius Caesar uses substitution ciphers for military communication
- 9th century: Al-Kindi writes the first known description of frequency analysis
- 1553: Giovan Battista Bellaso invents the Vigenère cipher (misattributed to Vigenère)
- 1918: Arthur Scherbius patents the Enigma machine
- 1939-1945: Bletchley Park breaks Enigma, shortening WWII by an estimated two years
- 1976: Diffie and Hellman publish “New Directions in Cryptography,” inventing public-key exchange
- 1977: Rivest, Shamir, and Adleman create RSA encryption
- 1991: Phil Zimmerman releases PGP, bringing strong encryption to ordinary users
- 2001: AES (Advanced Encryption Standard) replaces DES as the global standard
- 2013: Snowden revelations show mass surveillance programs attempting to circumvent encryption
- 2024: NIST finalizes first post-quantum encryption standards (CRYSTALS-Kyber, CRYSTALS-Dilithium)
Holding the Original Codebreaker’s Work
If the history of cryptography fascinates you, there is nothing quite like holding the actual document that changed its course. Kronecker Wallis’s edition of Alan Turing’s Treatise on the Enigma reproduces Turing’s original typewritten manuscript from Bletchley Park. Known as “The Prof’s Book” among the codebreakers, this document contains Turing’s own analysis of the Enigma machine: his handwritten corrections, marginal notes, graphs, and tables, all meticulously preserved.
It is the primary source behind many of the stories told in the books listed above. Where Singh and Kahn describe what Turing did, the Treatise shows how he thought. For anyone serious about the history of cryptography, it is an extraordinary artifact.
The mathematical foundations that underpin both ancient and modern cryptography trace back to the study of prime numbers, divisibility, and geometric proportion. These ideas were first systematized in Euclid’s Elements, whose Book VII on number theory contains the Euclidean algorithm, still used in modern cryptographic key generation over 2,300 years after it was written.
For those interested in the broader story of how computing emerged from mathematics and logic, the EDVAC Report by John von Neumann defines the stored-program architecture that every modern computer uses to execute the encryption algorithms we rely on daily.
Start Reading, Stay Curious
Cryptography sits at the intersection of mathematics, computer science, history, and politics. The best books on the subject reflect that richness. Start with Singh’s The Code Book for the sweep of history. Move to Schneier or Aumasson when you want to understand the mechanics. Dip into Hodges or Marks for the human stories. And keep one eye on quantum computing, because the next chapter in this 4,000-year-old story is being written right now.
The secret messages of the past and the encryption protocols of the present are part of the same long struggle: the effort to keep information safe in a world that never stops trying to intercept it. Understanding that struggle is not just intellectually rewarding. In the digital age, it is a form of self-defense.