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

On this page
  1. What a quantum computer breaks, and what it doesn't
  2. The standards
  3. Why "hybrid"
  4. When will a quantum computer break RSA?
  5. Where PQC already runs
  6. What to do first

Short answer: 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) 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

TodayBroken by a large quantum computer?Post-quantum replacement
RSA encryption and key transportYes (Shor)ML-KEM
Diffie-Hellman, ECDH, X25519Yes (Shor)ML-KEM (deployed as hybrid with X25519)
RSA, ECDSA, Ed25519 signaturesYes (Shor)ML-DSA, SLH-DSA, FN-DSA (coming); LMS/XMSS for firmware
AES-128Weakened (Grover halves the effective key length)AES-256
AES-256, ChaCha20Nonone needed
SHA-256, SHA-384, SHA-3No (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

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.

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.
  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.

In December 2026 the NSA advised an immediate transition after AI-assisted cryptanalysis results; see the December 2026 advisory.

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, Node.js, Python, Java, nginx/OpenSSL, OpenSSH.
  3. Prove it with a handshake test, ideally in CI: How to check if a server uses 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 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