From the scytale to TLS 1.3
A practical introduction to cryptography with only the maths you need. You'll see how the ideas developed, take apart the building blocks, and step through the handshakes that protect your Wi-Fi and web traffic. Each chapter has interactive labs you can run in your browser.
Your route through the primer
Fundamentals
What cryptography is for (CIA and non-repudiation), Kerckhoffs's principle, and the difference between symmetric, asymmetric and hashing.
02Building blocks
Plaintext, algorithms, keys, cryptovariables, IVs and nonces, XOR, confusion and diffusion, and block versus stream ciphers.
03Classical ciphers
Scytale, Caesar, pigpen, rail fence and Vigenère, plus how frequency analysis breaks them.
04Enigma & machines
A working Enigma I simulator, how the rotors and plugboard work, and how Bletchley Park broke it.
05Modern cryptosystems
DES to AES, RSA, Diffie-Hellman, elliptic curves, hashing, MACs, AEAD and post-quantum cryptography.
06PKI & certificates
CAs, X.509, chains of trust, revocation and certificate transparency, with a live digital-signature lab.
07Crypto in the wild
WEP, WPA, WPA2, WPA3, TLS 1.2 and 1.3, and QUIC, with step-by-step handshake walkthroughs.
08Glossary & quiz
Key terms in one place and a final knowledge check.
How to use this primer
The chapters build on each other, but each one stands on its own. If you're revising for Security+, SSCP or CISSP, Chapters 02, 05 and 06 cover most of the exam material. If you want to know what happens when your phone joins Wi-Fi or opens a web page, start with Chapter 07.
Web Crypto API, which is the same code your browser uses for HTTPS. The classical and teaching labs use deliberately tiny numbers so you can follow every step. Never use the toy versions to protect real data.