Security & Networks · Zero Background Needed · Visual Guide + 10 Interactive Chapters · Free
Post-Quantum Cryptography: What It Is, Why Everyone Cares Now, and How It Works
Every time you open a bank app or send a message on Wi-Fi, your device uses a public handshake to agree on a secret key with a stranger before scrambling your data. Future quantum computers will break today's public handshakes—and eavesdroppers are already recording encrypted Wi-Fi and internet traffic onto cheap hard drives today to unlock years from now (Harvest Now, Decrypt Later). Post-quantum cryptography is the replacement math: normal software running on ordinary phones and laptops today (already live inside iMessage, Signal, and Chrome), built from noisy grids and hash ladders (chains of one-way digital fingerprints) with zero repeating loops for quantum waves to exploit.
Start from zero (interactive course) 90-second 3D Watch & Poke walkthrough 5-Step Interactive Explorer 5-Rung Agent Track
- Zero background needed
- Starts with a 3-minute visual guide explaining how Wi-Fi padlocks work, busting the myth that quantum computers "try every password at once," and showing why your phone needs zero quantum hardware.
- Real teaching before every lab
- Every chapter walks through plain-English intuition, worked tiny-number examples, and interactive 2D/3D visual sandboxes before checking your understanding.
- Offline browser & code ZIP
- Runs 100% offline in your browser, or download the full project ZIP (
post-quantum-cryptography.zip, standalone Node.js implementation and 65 automated tests).
Three Ways In · Layer 3 of 3 · Node.js 22+ · Zero Dependencies
Build With Your Coding Agent — 5 Rungs + Planted Traps
Build a toy post-quantum cryptography stack with your coding agent across five rungs: noisy LWE reconciliation, negacyclic NTT polynomial rings, Fujisaki-Okamoto CCA-secure KEM, rejection-sampled lattice signatures, and transcript-bound X25519 + ML-KEM hybrid key schedules. Each rung gives you an architect prompt for Claude Code, Codex, or Cursor, a planted bug that unguided agents write, and a deterministic test suite that catches it.
- LWE & reconciliation: Mod-q noisy grid rounding and 1-bit reconciliation hints — Planted trap: Decoding bits with a naive
x > q/4threshold instead of the centered[q/4, 3q/4)interval. - Negacyclic ring & NTT: Polynomial multiplication modulo
X^n + 1andq = 3329via Number Theoretic Transform — Planted trap: WrappingX^nwith+1(cyclic) instead of-1(negacyclic) and dropping twist factors. - CCA-secure FO-KEM: Re-encryption check and implicit PRF rejection against bent-capsule probes — Planted trap: Returning
nullor throwing on ciphertext mismatch, handing attackers a secret-leaking error oracle. - Rejection-sampled signatures: ML-DSA-style signing throwing back masked vectors near the infinity-norm edge — Planted trap: Skipping the
||z||_inf >= gamma1 - betarejection check so averaged signatures leak the secret key. - Hybrid X25519 + ML-KEM: HKDF key schedule binding both shared secrets and the full handshake transcript — Planted trap: XORing the two secrets without binding public keys/ciphertexts, enabling downgrade or key-swap attacks.
unzip agent-track.zip && cd post-quantum-cryptography/agent-track
node --test test/*.test.mjs
mkdir -p my-work
IMPL=my-work node --test test/rung-01.test.mjs
Download 5-Rung Agent Track (agent-track.zip) Read AGENT-TRACK.md on GitHub Open agent-track/README.md on GitHub
Inside the course
- Start Here — The Big Picture: How two strangers agree on a key over public Wi-Fi, why recorded traffic is vulnerable to Harvest Now, Decrypt Later, and why quantum wave interference breaks repeating number cycles while bouncing off noisy grids (lattices, multi-dimensional point grids).
- Chapters 1–4 — Building a Quantum-Proof Lock from Scratch: Watch a quantum wave filter crack RSA (today's prime-number handshake) on a toy clock
2^x mod 15(remainders around a 15-hour clock) while failing on AES-256 (today's fast shared-key bit scrambler), see why adding±1wobble breaks equation solvers, compare good square grids vs. skewed public grids in 3D, and speed up grid math 256x with wrapping number lists (polynomials). - Chapters 5–10 — How iMessage, Signal & Chrome Ship It Today: Meet the three new US post-quantum standards: round noisy numbers on a
3,329-step clock (ML-KEM, for key exchange), block active error-probing attacks, sign messages without leaking secrets (ML-DSA, for lattice signatures, andSLH-DSA, a fingerprint-chain backup), fit keys inside a single1,460-byte internet packet, and combine classic + post-quantum locks into one hybrid TLS (the HTTPS browser padlock protocol) channel.
Local test & source checkout
git clone https://github.com/itsHabib/free-to-learn.git
cd free-to-learn
git switch --detach 7dba0d743224c10a707307769782b0db3f9a2a1a
cd courses/post-quantum-cryptography
node --test tests/pqc.test.mjsBrowse the pinned source on GitHub · Download post-quantum-cryptography.zip · Watch & Poke walkthrough · Reuse terms
2026: Encrypted Wi-Fi recorded to disk ($15/TB).
Later: Quantum wave filter cracks recorded RSA handshakes.
Secrets with a 10-year shelf life must switch handshake math today.
No quantum hardware needed: runs as normal JS/C code on your phone.