Playground
PQC Playground
Generate real ML-KEM and ML-DSA keys, run them, and see how big everything is.
Educational only. Do not use these keys or outputs for anything real. Everything runs in your browser using @noble/post-quantum; nothing is sent to a server.
KEM · FIPS 203
ML-KEM (key encapsulation)
Alice publishes a public key. Bob encapsulates a fresh secret to it; Alice decapsulates. Both end up with the same 32-byte secret.
Signature · FIPS 204
ML-DSA (digital signature)
Sign a message, verify it, then check that a one-character change makes verification fail.
Size comparison (bytes)
| Algorithm | Public key | Ciphertext / signature |
|---|---|---|
| X25519 | 32 | 32 (key share) |
| RSA-2048 | 256 | 256 (signature) |
| ECDSA P-256 | 64 | 64 (signature, r‖s) |
| Ed25519 | 32 | 64 (signature) |
Classical rows are raw encodings (no ASN.1/DER wrapper). PQC rows are measured from the library on page load.