# What is post-quantum cryptography? A practical guide for engineers

> Post-quantum cryptography (PQC) is public-key crypto that resists quantum computers. ML-KEM, ML-DSA and SLH-DSA, what they replace, and what to change first.

Source: https://pqshift.dev/learn/what-is-post-quantum-cryptography · Published 2026-12-04 · Updated 2026-12-04 · pqshift

Post-quantum cryptography (PQC) is public-key cryptography designed to stay secure against attackers with large quantum computers. It runs on ordinary computers. NIST finalized the first three standards in August 2024: **ML-KEM** ([FIPS 203](https://csrc.nist.gov/pubs/fips/203/final)) for key exchange, and **ML-DSA** (FIPS 204) and **SLH-DSA** (FIPS 205) for signatures. They replace RSA, Diffie-Hellman and elliptic-curve cryptography, which a quantum computer running Shor's algorithm would break. For most engineering teams the first practical step is turning on hybrid post-quantum key exchange in TLS and SSH.

## What a quantum computer breaks, and what it doesn't

| Today | Broken by a large quantum computer? | Post-quantum replacement |
|---|---|---|
| RSA encryption and key transport | Yes (Shor) | ML-KEM |
| Diffie-Hellman, ECDH, X25519 | Yes (Shor) | ML-KEM (deployed as hybrid with X25519) |
| RSA, ECDSA, Ed25519 signatures | Yes (Shor) | ML-DSA, SLH-DSA, FN-DSA (coming); LMS/XMSS for firmware |
| AES-128 | Weakened (Grover halves the effective key length) | AES-256 |
| AES-256, ChaCha20 | No | none needed |
| SHA-256, SHA-384, SHA-3 | No (in practice) | none needed |

The practical summary: **public-key crypto needs replacing; symmetric crypto and hashes mostly need nothing**, beyond preferring 256-bit keys.

## The standards

- **ML-KEM** (Module-Lattice-based KEM, formerly CRYSTALS-Kyber). A key encapsulation mechanism: one side publishes an encapsulation key, the other uses it to produce a shared secret plus a ciphertext only the key owner can open. Parameter sets ML-KEM-512, -768 and -1024. NIST names **ML-KEM-768** as the recommended default; CNSA 2.0 requires ML-KEM-1024.
- **ML-DSA** (formerly CRYSTALS-Dilithium). The general-purpose signature scheme. Signatures are a few kilobytes, much larger than ECDSA.
- **SLH-DSA** (formerly SPHINCS+). A hash-based signature scheme: very conservative security assumptions, large and slow signatures. Good for roots of trust.
- **FN-DSA** (FALCON, FIPS 206) is in development. **HQC** was selected in March 2025 as a backup KEM based on different math.
- **LMS and XMSS** (SP 800-208) are stateful hash-based signatures, already approved for firmware and software signing.

## Why "hybrid"

Today's deployments combine a post-quantum algorithm with a classical one, for example `X25519MLKEM768` in TLS and `mlkem768x25519-sha256` in SSH. An attacker has to break both. That protects against quantum computers (X25519 falls, ML-KEM holds) and against a surprise weakness in the newer post-quantum math (ML-KEM falls, X25519 holds). It is also allowed in FIPS-validated modules under NIST IR 8547. Details in [X25519MLKEM768 explained](https://pqshift.dev/learn/x25519mlkem768-explained).

## When will a quantum computer break RSA?

Nobody knows. Estimates for a cryptographically relevant quantum computer range from several years to decades, and they have been shrinking as error correction improves and algorithms get cheaper. Two facts make the exact date less important than it sounds:

1. **Harvest now, decrypt later.** Traffic recorded today can be decrypted once such a machine exists, so the deadline for key exchange is effectively now. See [Harvest now, decrypt later](https://pqshift.dev/learn/harvest-now-decrypt-later).
2. **Regulators have set dates anyway.** NIST deprecates RSA and ECC after 2030 and disallows them after 2035; the NSA's CNSA 2.0 gates National Security System purchases from January 2027. See [Post-quantum migration deadlines](https://pqshift.dev/learn/pqc-deadlines).

In December 2026 the NSA advised an immediate transition after AI-assisted cryptanalysis results; see [the December 2026 advisory](https://pqshift.dev/learn/nsa-pqc-advisory-december-2026).

## Where PQC already runs

You are probably using it right now. Chrome, Edge and Firefox negotiate `X25519MLKEM768` by default, Cloudflare reports that most human HTTPS traffic it serves is post-quantum, OpenSSH has defaulted to post-quantum key exchange since 2022, and OpenSSL 3.5, Go 1.24+, JDK 27, current Node.js and Python linked to OpenSSL 3.5 all support it. The gap is usually **your own services**: internal TLS, pinned curve lists, old runtime images, and application code that wraps keys with RSA or ECDH.

## What to do first

1. **Inventory** where your code and configs use RSA, ECDH, DH, X25519 and ECDSA, and which runtime and OpenSSL versions you ship.
2. **Turn on hybrid key exchange** for TLS and SSH: usually a runtime bump or removing a pinned curve list. Guides: [Go](https://pqshift.dev/learn/post-quantum-tls-go), [Node.js](https://pqshift.dev/learn/post-quantum-tls-nodejs), [Python](https://pqshift.dev/learn/post-quantum-tls-python), [Java](https://pqshift.dev/learn/post-quantum-tls-java), [nginx/OpenSSL](https://pqshift.dev/learn/post-quantum-tls-nginx), [OpenSSH](https://pqshift.dev/learn/post-quantum-ssh-openssh).
3. **Prove it** with a handshake test, ideally in CI: [How to check if a server uses post-quantum TLS](https://pqshift.dev/learn/test-post-quantum-tls).
4. **Replace application-level key wrapping** (RSA-OAEP, ECDH) with a hybrid KEM, keeping old data decryptable.
5. **Plan signatures and PKI** (certificates, code signing, HSMs) as vendor support matures.
6. **Design for agility**: make algorithm choices configuration, not code, so the next change is cheap.

[pqshift](https://pqshift.dev/) does steps 1 to 4 for GitHub repos: a free scan, then small hybrid PRs, each with a CI job that proves the handshake.

## FAQ

### What is post-quantum cryptography?

Public-key algorithms built on math problems that neither classical nor quantum computers are known to solve efficiently, standardized by NIST in 2024 as ML-KEM (FIPS 203), ML-DSA (FIPS 204) and SLH-DSA (FIPS 205). They replace RSA, Diffie-Hellman and elliptic-curve crypto, which Shor's algorithm breaks.

### Is AES quantum safe?

Yes, with large enough keys. Grover's algorithm only gives a square-root speed-up, so AES-256 is the conservative choice and is what CNSA 2.0 requires. SHA-256 and larger hashes remain fine.

### Do I need new hardware to use post-quantum cryptography?

No. ML-KEM and ML-DSA run on ordinary CPUs and are already in OpenSSL 3.5, Go 1.24+, JDK 24+, BoringSSL and every major browser.

## Sources

- [NIST FIPS 203, Module-Lattice-Based Key-Encapsulation Mechanism Standard](https://csrc.nist.gov/pubs/fips/203/final)
- [NIST FIPS 204, ML-DSA](https://csrc.nist.gov/pubs/fips/204/final)
- [NIST FIPS 205, SLH-DSA](https://csrc.nist.gov/pubs/fips/205/final)
- [NIST IR 8547, Transition to Post-Quantum Cryptography Standards (final, Oct 2026)](https://csrc.nist.gov/pubs/ir/8547/final)
