Every encryption system you use rests on a mathematical problem believed to be hard: RSA on factoring, elliptic curves on discrete logarithms. In 1994, Peter Shor showed that a quantum computer solves both efficiently — which means the entire public-key infrastructure of the internet has an expiration date, set by someone else's engineering progress.
The replacement came from an unexpected corner of mathematics. Lattice-based cryptography, studied since the 1980s and revolutionized in the mid-1990s by Regev's learning-with-errors problem, offers hardness problems with no known quantum shortcut — and with theoretical properties that RSA never had. NIST's post-quantum standardization, concluded in 2024, chose lattice schemes for the core standards. Understanding lattices means understanding what your connections will run on for the next few decades.
What a Lattice Is
A lattice is a regular grid of points, extended to many dimensions. In two dimensions it is a graph paper pattern: points at the intersections. The definition generalizes: take a few basis vectors (directions and lengths), and the lattice is everything you can reach by adding whole-number combinations of them.
Two dimensions are trivial to reason about. The security comes from dimension: modern schemes use lattices with hundreds to thousands of dimensions. Human intuition fails there, and so do algorithms — a problem easy to solve in 2D becomes exponentially harder as the dimension grows.
The Problems That Make Lattices Useful
Two lattice problems carry the field, and both are easy to state.
The closest vector problem (CVP): given a point in space — anywhere, not necessarily on the lattice — find the nearest lattice point. In 2D you can eyeball it. In a thousand dimensions, with a skewed lattice, the best known algorithms take exponential time. There is a related problem, the shortest vector problem (SVP): find the shortest nonzero lattice vector. These problems have been studied since the 1980s and resist attack in both classical and quantum settings.
The learning with errors problem (LWE), introduced by Oded Regev in 2005, is the modern workhorse. Its shape: you get many samples of the form (a, b = a·s + e), where s is a secret, a is random, and e is a small random error term. Recovering s from the samples is easy if you know the errors; without them, the noise hides the secret. Solving LWE is provably as hard as solving worst-case lattice problems — a reduction Regev proved, which is the strongest security argument available in cryptography: not just "this random instance is hard" but "breaking this average case would solve the hardest cases."
The "errors" are the trick. Adding small noise makes the problem hard without breaking the decryption — because the legitimate key holder can tolerate noise, and an attacker cannot. That one idea underlies every NIST lattice standard.
Why Quantum Computers Do Not Help Here
Shor's algorithm is specific, not general. It exploits the structure of factoring and discrete logarithms — both reducible to finding periods of certain functions, which quantum computers do efficiently through the quantum Fourier transform. The attack is surgical: it breaks RSA and ECC because those problems have that structure, not because quantum computers are magic.
Lattice problems lack the exploitable structure. No reduction from CVP or LWE to period-finding is known, and decades of searching — including by the quantum-computing community itself — have produced no efficient quantum algorithm for them. This is evidence, not proof: it remains possible that someone will find a quantum attack on lattices. But the same is true of every cryptographic assumption, and lattice problems have survived more targeted scrutiny in the post-quantum era than any alternative.
The NIST Standards: Kyber and Dilithium
NIST ran a public competition from 2016 to 2024 to select post-quantum standards, and lattice schemes won the core slots.
ML-KEM (FIPS 203), based on CRYSTALS-Kyber, is a key encapsulation mechanism: it establishes a shared secret over a public channel — the role Diffie-Hellman plays in TLS today. ML-DSA (FIPS 204), based on CRYSTALS-Dilithium, is a signature scheme — the role RSA and ECDSA play in certificates. Both are built on lattice problems with structured lattices (module lattices over polynomial rings), which shrink keys and speed computation at a small, well-studied hardness trade.
The trade matters in practice. Post-quantum keys are larger than elliptic curve keys: Kyber's public keys are around a kilobyte versus ECC's 32 bytes, and signatures are kilobytes rather than bytes. Protocols and infrastructure have been engineered around small keys, and migration means accommodating the size — one reason hybrid key exchange (lattice + classical elliptic curve in one handshake) is the deployment pattern: security against quantum attack plus retained classical assurance, at manageable overhead.
Where You Already Meet It
This is not future-tense. Chrome and Cloudflare enabled Kyber-based hybrid key exchange in 2023-2024, and a meaningful share of HTTPS connections now negotiate it. Signal added post-quantum key agreement (PQXDH, using Kyber-1024 alongside classical X25519) to its handshake. Apple's iMessage and WhatsApp have announced or deployed similar hybrids. The motivation is the harvest-now-decrypt-later threat: traffic recorded today can be decrypted once a cryptographically relevant quantum computer exists, so the data that must stay secret for decades — state secrets, health records, diplomatic traffic — needs post-quantum protection now. Forward secrecy protects past sessions from key theft; lattice-based key exchange protects them from future quantum attack. The two compose.
Why Lattices Beat the Other Post-Quantum Options
Lattices were not the only candidate. Hash-based signatures (SPHINCS+, standardized as SLH-DSA) have the oldest security credentials — security rests only on hash functions — but produce huge signatures and state management issues; they are standardized for signature use. Code-based cryptography (Classic McElroe) has forty years of study but keys too large for mainstream protocols. Isogeny-based schemes suffered a real failure: SIKE, a 2022 finalist candidate, was broken by a classical attack discovered in 2022 — a reminder that "quantum-resistant" is a claim to be tested, not assumed.
Lattices won on balance: strong hardness reductions, efficient operations, manageable key sizes, and enough flexibility to build both encryption and signatures. The standardization of multiple schemes across families is deliberate — cryptographic diversity hedges the risk that any one assumption falls.
Try It Yourself
You can exercise the classical public-key operations that lattices are replacing, and feel the shape of the problem they solve: the NovelCrypt RSA encrypt/decrypt tool runs public-key encryption in your browser. RSA remains safe against classical computers for now — the migration to lattice-based schemes is a race against quantum engineering progress, not an emergency against current attacks. Our RSA encryption explained guide covers the system being phased out, and quantum-resistant encryption explained covers the full migration picture.
The Bottom Line
Lattice-based cryptography builds security on the difficulty of geometric problems in high-dimensional space — finding nearby lattice points, or learning secrets hidden in noise — problems with no known quantum attack and, uniquely among modern schemes, provable worst-case hardness. NIST standardized lattice schemes (ML-KEM, ML-DSA) as the core post-quantum standards, and they are already deployed in hybrid form across browsers, CDNs, and messengers. The threat driving adoption is not a quantum computer that exists — it is one that may exist, against data being recorded now. Lattices are how the internet stays ahead of that clock.