← All lessons
Security
17 lessons you click through step by step
- How the post-quantum migration worksWalk through the NSA's December 2026 advisory, then sort your own algorithms into replace, stopgap and keep
- How harvest now, decrypt later worksRecord an encrypted message today, break its key exchange years later and read it
- How hybrid key exchange worksRun X25519 and ML-KEM side by side, mix both secrets into one key, then break one half
- How public-key cryptography worksMake an RSA key pair, encrypt with the public key, and see why only the private key opens it
- How digital signatures workSign a message with a private key, check it with the public key, and break it by changing one byte
- How authenticator codes workTurn a shared secret and the clock into a 6-digit code with HMAC-SHA1, then knock the clock off
- How Content Security Policy worksSend a CSP header, watch it block an injected script, and see why the nonce changes every time
- How SSRF worksTrick a link preview into fetching the cloud's keys, then try to sneak past four defenses
- How CORS worksGet blocked calling another origin, then let the server allow it
- How passkeys workSign a challenge with your device, then try to replay it
- How hashing worksChange one letter and see why a hash can't be reversed
- How SQL injection worksBreak a login query with a quote, then fix it with parameters
- How XSS worksPost a comment that runs a script, then escape it
- How CSRF worksVisit a trap page that acts as you, then block it
- How rate limiting worksDrain a token bucket until the API answers 429
- How HTTPS worksSend a password over HTTP and HTTPS, then fake a certificate
- How JWT login worksHash a password with bcrypt, sign a token, then try to forge one