Interactive Learning

Cryptography,Step by Step

Six interactive simulations covering the algorithms that secure the internet today — and the post-quantum algorithms that will secure it tomorrow.

Explore Simulators ↓ Quantum Threat →
6
Simulators
33
Interactive Steps
4
Quantum-safe Algorithms
0
Dependencies
The Collection

Six Algorithms, One Place

Each simulator lets you set real parameters, watch the math unfold step by step, and understand exactly why each algorithm is secure — or isn't.

🔐
Key Exchange & Signatures
RSA
Rivest–Shamir–Adleman · 1977

The algorithm that started it all. Pick two primes, generate public and private keys, encrypt a message character-by-character and decrypt it back — all with real modular arithmetic shown live.

Integer factorisation ⚠ Quantum-vulnerable
🔄
Key Exchange
Diffie-Hellman
Whitfield Diffie & Martin Hellman · 1976

The original public-key exchange. Watch Alice and Bob agree on a shared secret over a completely public channel — without ever transmitting it — using modular exponentiation.

Discrete log problem ⚠ Quantum-vulnerable
〰
Key Exchange
ECDH
Elliptic Curve Diffie-Hellman · 1985

DH on an elliptic curve over a finite field. See real point addition and scalar multiplication, watch public keys become curve points, and understand why ECDH dominates modern TLS.

Elliptic Curve DLP ⚠ Quantum-vulnerable
🔷
Post-Quantum Key Exchange
CRYSTALS-Kyber
FIPS 203 · NIST Standard 2024

The quantum-safe replacement for ECDH. Explore lattices, Module-LWE key generation, and the encapsulation/decapsulation cycle — already deployed in Chrome, Signal, and iMessage.

Module-LWE ✓ Quantum-safe
✍️
Post-Quantum Signatures
CRYSTALS-Dilithium
FIPS 204 · NIST Standard 2024

The general-purpose quantum-safe signature scheme. Generate keys, sign a message, verify it — then try tampering and watch the scheme detect forgeries instantly.

Module-LWE + SIS ✓ Quantum-safe
🦅
Post-Quantum Signatures
FALCON
FIPS 206 · NIST Standard 2024

The compact post-quantum signature scheme. NTRU lattices and Gaussian sampling produce signatures 4× smaller than Dilithium. Explore the NTRU structure, sign, verify, and see why size matters for TLS certificates.

NTRU lattices ✓ Quantum-safe

The Big Picture

Classical → Post-Quantum

RSA was a Swiss Army knife that handled both encryption and signing. The post-quantum world cleanly separates those roles.

JobClassicalPost-Quantum (NIST 2024)Transition strategy
Key exchange / KEM RSA, DH, ECDH Kyber (FIPS 203) X25519 + Kyber768 hybrid now
Signatures (general) RSA-PSS, ECDSA, EdDSA Dilithium (FIPS 204) EdDSA + Dilithium hybrid now
Signatures (compact) ECDSA (64 B) FALCON (FIPS 206) IoT, TLS certs, blockchains
Signatures (conservative) RSA-PSS SPHINCS+ (FIPS 205) Hash-based, largest sigs
⚡
Why quantum breaks the classics
RSA, DH, and ECDH all rely on mathematical problems — factoring or discrete log — that Shor's algorithm solves in polynomial time on a quantum computer. A sufficiently large quantum machine would break every classical public-key system simultaneously.
🔷
Why lattices survive
Kyber, Dilithium, and FALCON are based on the hardness of lattice problems (LWE, NTRU). No quantum algorithm gives more than a polynomial speedup against these. Even with a fault-tolerant quantum computer, the schemes remain secure with current parameters.
🛡️
Harvest now, decrypt later
Adversaries are already recording encrypted traffic today, waiting for quantum computers powerful enough to decrypt it. Migration to post-quantum algorithms is urgent even before large-scale quantum computers exist — data encrypted now must stay secret for decades.
🔀
Hybrid deployments
The safe migration path is running both classical and post-quantum algorithms together. Chrome uses X25519+Kyber768; Signal uses PQXDH. A hybrid requires breaking both schemes simultaneously — protecting against classical and quantum attackers alike.

History

A Brief Timeline

From the first public-key paper to NIST standards that will protect data for the next 50 years.

1976
Diffie-Hellman published
First public-key exchange protocol
1977
RSA invented
Rivest, Shamir, Adleman — first practical public-key cryptosystem
1985
Elliptic Curve Cryptography proposed
Miller and Koblitz independently propose ECC — same security, far smaller keys
1994
Shor's Algorithm published
Proves a quantum computer can factor integers in polynomial time — threatening RSA, DH, ECDH
1996
NTRU proposed
Hoffstein, Pipher, Silverman propose the NTRU lattice problem — later the basis of FALCON
2016
NIST Post-Quantum Standardisation begins
69 candidate algorithms submitted; multi-year public evaluation process starts
2023
Hybrid deployments begin
Chrome ships X25519+Kyber768; Signal ships PQXDH; Cloudflare rolls out PQ TLS
2024
NIST finalises FIPS 203, 204, 205, 206
Kyber → FIPS 203, Dilithium → FIPS 204, SPHINCS+ → FIPS 205, FALCON → FIPS 206. The post-quantum era officially begins.
2030+
Classical algorithms deprecated
NIST plans to deprecate RSA-2048 and ECDH by 2030, disallow by 2035