Skip to main content

Post-Quantum Crypto Lab

The NIST post-quantum standards, live in your browser: sign and verify with ML-DSA (Dilithium, FIPS 204), run a full ML-KEM (Kyber, FIPS 203) key encapsulation, sign with SLH-DSA (SPHINCS+, FIPS 205), mint a post-quantum JWT, and build a Merkle Tree Certificate. Every key is generated locally and never uploaded.

ML-DSA-65 (FIPS 204, Dilithium)

The three standards at a glance

ML-DSA (FIPS 204, from Dilithium) - lattice signatures. The default post-quantum replacement for ECDSA: TLS certificates, code signing, documents. ML-DSA-65 seen above is the middle security level. ~2KB public keys, ~3.3KB signatures.

ML-KEM (FIPS 203, from Kyber) - lattice key encapsulation. The post-quantum key-exchange standard, already deployed as hybrid X25519+ML-KEM-768 by Chrome, Cloudflare and Apple. Both sides derive the same shared secret from a 1088-byte ciphertext.

SLH-DSA (FIPS 205, from SPHINCS+) - stateless hash-based signatures. Security rests only on hash functions, no lattice assumptions. Slower and larger (~8KB signatures) but the conservative choice for long-lived roots of trust.

Where the Internet actually stands

Encryption went first, authentication is next. That ordering was deliberate: recorded traffic can be stored and broken later, so confidentiality needed post-quantum protection first. Authentication (certificates, tokens) only becomes vulnerable once quantum computers actually arrive - but with AI-accelerated cryptanalysis shortening timelines, nobody wants to cut it close anymore.

Cloudflare just moved its deadline from 2029 to 2027. Following the joint NSA/CISA/ONCD statement, Cloudflare's Project Quantum Leap commits to fully post-quantum infrastructure by 2027: post-quantum JWTs on customer interfaces by Q2 2027, and free Merkle Tree Certificates starting early 2027. Today 73% of browser connections to Cloudflare already use post-quantum encryption - you can watch the share climb on Cloudflare Radar.

What this means for your stack: hybrid key exchange (X25519+ML-KEM-768) is already the browser default, so traffic confidentiality is largely handled when you sit behind a PQ-enabled CDN. The remaining work is authentication: your certs, your JWT signing, your SSH host keys. Run our PQC Readiness Scanner to inventory them, and see the Quantum Risk Map for what each item costs to ignore.

Why the transition is urgent now

Harvest now, decrypt later. Adversaries are already recording encrypted traffic and storing stolen ciphertext, waiting to decrypt it once quantum computers can break today's public-key cryptography. The NSA's December 2026 advisory is blunt about this: data encrypted with RSA and ECC today should be considered permanently compromised if its confidentiality must outlast the quantum transition. Anything needing 10+ years of secrecy - health records, state secrets, long-lived signing keys - is already at risk.

The NSA has called for immediate action. In its advisory to National Security Systems operators, the agency warns that delaying modernization exposes sensitive information, increases costs, and disrupts critical systems - and recommends the CNSA 2.0 algorithm suite (ML-KEM, ML-DSA, SLH-DSA, LMS) across NSS, critical infrastructure, and vendors. Alongside quantum timelines, recent disclosures affecting some currently deployed cryptosystems have raised the stakes further.

Firmware cannot wait. Hardware roots of trust and firmware signatures are burned into devices that may run for a decade or more. If they ship with quantum-vulnerable signatures, they cannot be patched later - only replaced. That is why the NSA tells acquirers to specify post-quantum requirements now: every device bought without PQC support is a future replacement cost. See how firmware root certs work.

What developers should actually do (the NSA's three steps, translated):

  1. Inventory your cryptographic dependencies: every place you use RSA, ECC, Diffie-Hellman - TLS handshakes, code signing, session tokens, firmware validation
  2. Assess risk: which of those protect data that must stay secret past the quantum horizon, or systems that cannot be rekeyed later
  3. Triage and implement: adopt hybrid modes (classical + PQC together) where available, move long-lived secrets first, and build crypto agility so algorithms can be swapped again later

The good news: hybrid X25519 + ML-KEM-768 is already live in Chrome, Cloudflare and Apple infrastructure - you may be using post-quantum key exchange on this very page without knowing it. The lab above lets you touch the algorithms that transition is built on.

FAQ

What did the NSA advise, and does it apply to me?

The NSA's December 2026 release calls for an immediate, accelerated transition to post-quantum cryptography across National Security Systems, critical infrastructure, and their vendors, citing both quantum computing timelines and new cryptanalytic disclosures. It formally applies to NSS, but the reasoning holds for any organization: inventory your crypto, prioritize firmware and long-lived secrets, and move to CNSA 2.0 algorithms - the same ML-KEM, ML-DSA and SLH-DSA this page runs.

What is "harvest now, decrypt later"?

An attack where adversaries record encrypted data today and store it until quantum computers can break the encryption retroactively. Any secret that must remain confidential into the quantum era is effectively already exposed - which is why the transition cannot wait for quantum computers to actually arrive.

Can JWTs be post-quantum?

Yes. A JWT is just a header, payload and signature; swap RS256/ES256 for an ML-DSA signature and the token is quantum-resistant, as demonstrated in the PQ-JWT tab above. Cloudflare has committed to post-quantum JWTs across its interfaces by Q2 2027. Symmetric HMAC tokens are already quantum-safe, since HMAC security is not broken by Shor's algorithm.

What are Merkle Tree Certificates?

A redesign of WebPKI authentication: a CA batches many domains into a Merkle tree and signs only the root. Each site carries a tiny inclusion proof (a handful of hashes) instead of a full individual signature. This slashes verification cost and makes quantum-safe signing practical at Internet scale - Cloudflare concluded a Chrome pilot in 2026 and issues free MTCs from early 2027. The Merkle Tree tab above builds a working batch.

What is ML-DSA?

Module-Lattice Digital Signature Algorithm, NIST FIPS 204, standardized August 2024 from the CRYSTALS-Dilithium submission. It is the primary post-quantum signature standard - resistant to Shor's algorithm run on quantum computers, which breaks ECDSA and RSA.

Are these real implementations or simulations?

Real. The page runs the reference-grade noble post-quantum implementations compiled into the browser - the same signing, encapsulation and verification math as the FIPS standards, verified in-browser on every load. Keys are generated fresh locally each time.

Why do post-quantum keys and signatures look so big?

Lattice and hash-based constructions trade size for quantum resistance. An ML-DSA-65 signature is ~3.3KB versus 64 bytes for Ed25519 - a 50x increase. This is why deployments mix PQC with classical crypto (hybrid mode) while the ecosystem upgrades, and why Merkle Tree Certificates batch signatures to amortize the cost.

What about Falcon (FN-DSA) and HQC?

FN-DSA (FIPS 206, from Falcon) is pending finalization - compact lattice signatures with fast verification. HQC was selected in March 2025 as the backup KEM, in case lattice assumptions ever fail. Expect both to land as standards in the coming years.