Skip to content
quantum365

Free tool · Live demo

Try post-quantum encryption yourself

Encrypt your own message with RSA, X25519 and post-quantum ML-KEM right in your browser. Compare key sizes and speed. Nothing leaves your device.

Last updated Free, no sign-upRuns in your browser7 linked sources

In 30 seconds

  • Think of encryption as a mailbox with a slot: anyone can drop a letter in, only the owner can open it. Here you build one and post your own message through it.
  • Try a classic lock (RSA or X25519), which a big quantum computer could open, and the new quantum-safe ML-KEM, which it can't.
  • The quantum-safe lock sends about 2 KB instead of 64 bytes and is still fast. That's why your browser already uses it.
  • Everything runs on your device with real cryptography. Nothing you type is sent anywhere.

Encryption lab

Type a message, pick a lock, press the button.

Runs on your device. Nothing is sent.
0 / 500
Choose a lock

  1. 1 · Bob builds a mailbox

    He makes a key pair: a public key (the slot anyone can post into) and a private key (the only key that opens it).

  2. 2 · Alice posts a secret through the slot

    Using only Bob's public key, she creates a random 32-byte secret and sends it locked. This is called key encapsulation.

  3. 3 · The secret becomes an AES-256 key

    That shared secret turns into an AES-256-GCM key, the fast "house key" lock that seals the actual message.

  4. 4 · Bob opens it

    His private key recovers the same secret, which unlocks the message.

Bonus

Lock a note with a password (AES-256)

The "house key" kind of lock, which quantum computers don't break. Encrypt a note, copy the scrambled text, and unlock it here later with the same password.

AES-256-GCM with a key stretched from your password by PBKDF2-SHA-256 (600,000 rounds). If you forget the password, nobody can recover the note, including us. This is a learning demo: for real secrets use an audited tool such as your password manager.

Show a friend how quantum-safe encryption works

What you just did

Steps 1 and 2 are the "mailbox" part, called key exchange. It's the only moment the two sides must agree on a secret without having met. Steps 3 and 4 use that secret with AES-256, the fast "house key" lock.

Your browser does exactly this every time you open a website with a padlock. Picking ML-KEM or the hybrid shows you the version Chrome, Firefox and Safari now use by default.

Why the classic locks fail against quantum computers

RSA's security rests on one fact: multiplying two big primes is easy, but splitting the result back is brutally hard. X25519 relies on a similar one-way trick on an elliptic curve.

A large quantum computer running Shor's algorithm undoes both tricks. Recent estimates put RSA-2048 within reach of under a million noisy qubits, still far beyond today's machines.

Why ML-KEM holds up

Picture a grid with hundreds of dimensions. Someone hides a point in it, then nudges it with a bit of random noise. Finding the original point is the "learning with errors" problem behind ML-KEM.

Decades of research have found no fast way to solve it, with or without a quantum computer. That's why NIST picked it as the main standard in 2024.

The sizes, side by side

LockPublic keyLocked secretQuantum computer
RSA-2048294 bytes256 bytesBreaks it
X2551932 bytes32 bytesBreaks it
ML-KEM-7681,184 bytes1,088 bytesNo known attack
X25519 + ML-KEM-7681,216 bytes1,120 bytesMust break both

RSA public key measured in the standard SPKI format. ML-KEM sizes from FIPS 203. The hybrid here is X-Wing; browsers use a close cousin called X25519MLKEM768 with the same sizes but a different way of mixing the two secrets.

FAQ

What is ML-KEM?

ML-KEM (Module-Lattice-Based Key-Encapsulation Mechanism) is the post-quantum algorithm NIST standardized in August 2024 as FIPS 203. It lets two parties agree on a secret key over the internet in a way that neither normal nor quantum computers are known to break. It was previously called CRYSTALS-Kyber.

Is this demo real encryption?

Yes. It uses your browser's built-in Web Crypto API for RSA-OAEP, HKDF and AES-256-GCM, and the open-source noble libraries for X25519 and ML-KEM-768. The keys, sizes and timings you see are real. It is still a learning demo, not a product for protecting secrets.

Why are post-quantum keys so much bigger?

ML-KEM's security comes from a lattice problem that needs a lot of numbers to describe: an ML-KEM-768 public key is 1,184 bytes versus 32 bytes for X25519. Over a normal internet connection that difference is a fraction of a millisecond.

What does hybrid encryption mean?

A hybrid combines a classic algorithm (X25519) with a post-quantum one (ML-KEM-768). An attacker would have to break both, so you stay safe even if a flaw is ever found in one of them. Chrome, Firefox, Safari, Signal and iMessage all use hybrids.

Does the demo send my message to a server?

No. All of the code runs in your browser tab and nothing you type is uploaded. Once you have run it once, you can even switch off your internet connection and it keeps working.

Can I use the password lock to protect real secrets?

It uses strong, standard building blocks (AES-256-GCM with PBKDF2-SHA-256), but it is a demo that hasn't been independently audited. For real secrets use an audited tool such as a reputable password manager.

Found this useful? Pass it on.

Most people have no idea which of their apps are already quantum-safe. A link takes two seconds.

Newsletter

Quantum, minus the hype. Once a week.

The week's real quantum news in plain English, with why it matters and links to the sources. Free, no spam, unsubscribe any time.

We only use your email to send the newsletter. See our privacy policy.

Sources

Primary sources first: standards bodies, security agencies and the companies' own technical documentation.

  1. 01FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard · NIST, Aug 2024
  2. 02NIST Releases First 3 Finalized Post-Quantum Encryption Standards · NIST
  3. 03Transition to Post-Quantum Cryptography Standards (NIST IR 8547) · NIST
  4. 04Post-quantum support in browsers and libraries · Cloudflare
  5. 05noble-post-quantum (ML-KEM, ML-DSA, SLH-DSA in JavaScript) · Paul Miller, GitHub
  6. 06Web Cryptography API · W3C
  7. 07Password Storage Cheat Sheet (PBKDF2 iteration guidance) · OWASP

How we checked this page. Researched with AI assistance and checked against the primary sources above, under the editorial standards set by our editor, Leon Avery. Last updated December 4, 2026.

Spotted an error or an outdated fact? Read our editorial policy to see how we correct pages.