UbQbit / Insights / Q-Day experiments
  1. 1The qubit
  2. 2Shor
  3. 3Grover
  4. 4Signatures
  5. 5Your deadline

Sign it twice

Sign a document two ways, with today’s standard and its quantum-safe replacement, for real in your browser. Then tamper with it, and see what an attacker could forge after Q-Day.

Two signatures, one document Real cryptography

A digital signature proves who approved a document, and that nobody has changed it since. Here the same document gets signed two ways: with ECDSA, which most of the internet uses today, and with ML-DSA, its quantum-safe replacement.

You’ll get a fresh key pair for each algorithm, made right here in your browser.

ECDSA

today’s standard · built into your browser
Public key–
Signature–
Time taken–
Not signed yet

ML-DSA-65

quantum-safe · US standard since 2024
Public key–
Signature–
Time taken–
Not signed yet

What a signature is

Signing starts with a pair of keys, made together. The private key stays with you and is never shared. The public key goes out with everything you sign, and anyone can use it to check your signatures. The two are linked by maths, but working out the private key from the public one is meant to be impossible.

To sign, your computer combines the document with your private key and produces a signature: a block of data that only your private key could have made, and that only fits this exact document. To check, anyone combines the document, the signature and your public key. If a single letter of the document has changed, or a single bit of the signature, the check fails. Try both buttons.

What you just did

Both columns are doing real cryptography, and your keys were made on this page and never left it. On the left is ECDSA, built into every modern browser. Signatures like it protect a large share of the certificates that put the padlock in your browser’s address bar, and plenty of signed PDFs.

On the right is ML-DSA, which NIST, the US standards body, published as a standard in August 2024 (FIPS 204). It runs here from a small open-source library.

The cost is size

A byte is about one character of text. The two byte maps are drawn to the same scale, one square per byte. An ML-DSA signature is 3,309 bytes against ECDSA’s 64, about 50 times bigger, and its public key is 1,952 bytes against 65. That’s roughly a page of plain text instead of a line.

The difference matters where every byte counts, like setting up a connection over a slow link. On a signed document it barely registers, because the file is usually far bigger than the signature.

Why ECDSA is the problem

Today, cheating fails in both columns, which is what a signature is for. The difference shows up after Q-Day. A big enough quantum computer running Shor’s algorithm can work out an ECDSA private key from the public key, and public keys aren’t secret: they travel with every document you sign. Once someone has your private key, they can sign anything, and it will look exactly like you signed it.

You can’t make an old signature quantum-safe after the fact. If a document has to stay trustworthy for decades, it needs something like ML-DSA from the day it’s signed.

ML-DSA rests on a different kind of maths problem, finding the nearest point in a huge grid of points with hundreds of dimensions, called a lattice. No known method, ordinary or quantum, solves it quickly. The last experiment helps you work out how long your own documents need to last.