Cryptography explained
How secrets stay secret on a public network: locks anyone can close, keys two strangers agree on in the open, and fingerprints no one can forge.
Every cryptography concept
RSA encryption
Public keys, private keys, and why factoring big numbers is hard.
OPEN LESSON
Diffie–Hellman key exchange
Two strangers agree on a shared secret over a public line.
OPEN LESSON
SHA-256 hashing
How any message becomes a fixed 256-bit fingerprint.
OPEN LESSON
Elliptic curve cryptography
Adding points on a curve, and why it only runs one way.
OPEN LESSON
Rainbow tables
Trading memory for time to reverse password hashes, and why a salt ruins the trade.
OPEN LESSON
JSON Web Tokens (JWT)
Three base64url parts, one signature, and a payload anyone can read.
OPEN LESSON
Symmetric encryption
One shared key locks and unlocks a message; the hard part is sharing the key.
OPEN LESSON
MD5 and why it is broken
A 128-bit fingerprint, and how two different inputs came to share one.
OPEN LESSON
Digital certificates and certificate authorities
How a signed file and a chain of authorities tie a public key to a name.
OPEN LESSON
Enigma machine
One keypress through rotors, reflector and plugboard, and the flaw that broke it.
OPEN LESSON
Stream ciphers
A short key becomes a long keystream, XORed with the message byte by byte.
OPEN LESSON
Zero-knowledge proofs
Proving you know a secret without revealing it, one random challenge at a time.
OPEN LESSON
Post-quantum cryptography
What quantum computers would break, what survives, and the lattice puzzles replacing RSA.
OPEN LESSON
Key derivation functions (PBKDF2)
How a salt and 600,000 hash rounds turn a weak password into a strong key.
OPEN LESSON
OAuth 2.0
How an app gets limited access to your data without ever seeing your password.
OPEN LESSON
OpenID Connect
How “Sign in with…” works: OAuth 2.0 plus a signed ID token that says who you are.
OPEN LESSON
Passkeys and WebAuthn
A key pair per site signs a fresh challenge, so there is no password to steal.
OPEN LESSON
SQL injection
How typed text becomes database code, and how parameterized queries stop it.
OPEN LESSON
Firewalls
Rules, default deny and connection tracking decide which packets may pass.
OPEN LESSON
Zero-trust security
From one wall around the network to a check on every single request.
OPEN LESSON
Steganography
Hiding a message in the last bits of a picture, and how it gets found.
OPEN LESSON