WebCrypto Goes Post-Quantum in Chrome 154
Chrome 154 reached beta on September 2, 2026 carrying a change the application layer has waited a long time for: post-quantum algorithms are now part of WebCrypto itself. ML-KEM, ML-DSA, X-Wing and ChaCha20-Poly1305 are reachable straight from crypto.subtle — no WebAssembly bundle, no third-party library.
The problem: the network hardened, the app did not
Browsers moved TLS key exchange to a quantum-resistant hybrid some time ago, which protects a connection while it is in flight. It does nothing for what the page encrypts on its own: a key stored in the database, a payload routed through a third party, a message encrypted end to end. All of that still rests on RSA and elliptic curves.
The risk is nearer than it looks, because anyone copying encrypted traffic today can decrypt it years later once a sufficiently large quantum computer exists — the harvest now, decrypt later problem. Any secret expected to hold for a decade is already exposed.
Before this release the only path was shipping OpenSSL compiled to WebAssembly or a pure-JavaScript implementation: meaningful bundle weight, worse performance, and the maintenance burden of a cryptographic primitive moving from the browser team onto the product team.
What changed
Per the Intent to Ship posted on blink-dev, Chrome 154 ships on desktop, Android and WebView:
- ML-KEM-768 and ML-KEM-1024 (FIPS 203) — a key encapsulation mechanism producing a 256-bit shared secret.
- ML-DSA-44, 65 and 87 — lattice-based digital signatures.
- X-Wing — a hybrid construction pairing ML-KEM with a classical algorithm, so security does not collapse if either half breaks.
- ChaCha20-Poly1305 — a symmetric AEAD cipher, useful well beyond the quantum question.
The feature ran as an origin trial from Chrome 151 through 154. The implementation is backed by BoringSSL inside the browser, and that is the substantive difference: the same audited code that protects TLS is now available to the page.
Alongside it, the WICG draft Modern Algorithms in the Web Cryptography API adds four methods to SubtleCrypto — encapsulateBits, encapsulateKey, decapsulateBits and decapsulateKey — plus a supports() helper for checking availability before use.
A practical example
// Check support first — never assume it
if (!crypto.subtle.supports?.("encapsulateBits", "ML-KEM-768")) {
throw new Error("ML-KEM-768 unavailable in this browser");
}
// Receiver: generate a key pair, publish the public half
const { publicKey, privateKey } = await crypto.subtle.generateKey(
"ML-KEM-768",
true,
["encapsulateBits", "decapsulateBits"],
);
// Sender: derive a fresh shared secret plus a ciphertext for the receiver
const { sharedKey, ciphertext } =
await crypto.subtle.encapsulateBits("ML-KEM-768", publicKey);
// Receiver: recover the same secret from the ciphertext
const recovered =
await crypto.subtle.decapsulateBits("ML-KEM-768", privateKey, ciphertext);When a usable encryption key is wanted instead of raw bytes, encapsulateKey hands back a CryptoKey directly:
const { sharedKey, ciphertext } = await crypto.subtle.encapsulateKey(
"ML-KEM-768",
publicKey,
{ name: "ChaCha20-Poly1305" },
false, // non-extractable
["encrypt", "decrypt"],
);Caveats before production
ML-KEM is not encryption. It only delivers a shared secret; the actual encryption still belongs to an AEAD such as AES-GCM or ChaCha20-Poly1305.
Support is not cross-browser. Firefox is shipping despite a declared neutral position, and WebKit expressed interest in X-Wing without resolving a formal stance. A supports() check and a WebAssembly fallback are not optional today.
Sizes are nothing like elliptic curves. ML-KEM-768 uses a 1184-byte public key, a 1088-byte ciphertext and a 2400-byte secret key. Any database column, header or QR payload sized around ECC needs a second look.
Hybrid beats pure. X-Wing keeps the classical algorithm underneath, which matters if lattice cryptanalysis advances later.
Takeaway
This release does not ask for a rebuild of your encryption model. It moves quantum-resistant algorithms from your team's responsibility to the browser's. The practical starting point is an inventory question: where does the product encrypt data that must stay secret ten years from now? That is the first place X-Wing earns its size.
Worth noting that Chrome 154 is the next step in Chrome's two-week release cycle, so the gap between beta and stable is shorter than the one most teams still plan around.
Primary sources: Chrome 154 beta and the WICG draft Modern Algorithms in the Web Cryptography API.