These seven short chapters cover the building blocks every developer meets: encoding, hashing, encryption, message authentication, key exchange and signatures. Each one starts from an everyday picture, then gives the precise idea, a small example you can check, working code, and the mistakes that cause real bugs. The interactive demos run real cryptography in your browser through the Web Crypto API, so nothing you type leaves your machine.

The last chapter explains what quantum computers change and leads straight into 1.1 What is a lattice? If a symbol is unfamiliar, the math reference explains it.

0.2

Hash functions

Fixed-size fingerprints of any data: the three security properties, the avalanche effect and the birthday bound.

0.3

Symmetric encryption

One shared key: the one-time pad, AES, nonces, and why modern encryption is always authenticated.

0.7

Quantum computers and KEMs

What a quantum computer would break, what it would not, and why the new standards are built on lattices.