Interactive Post-Quantum Cryptography Lab
Run a PQC operation
and see its size and execution time.
Run ML-KEM and ML-DSA in the browser to see real byte sizes, timings, and transport overhead.
Quantum computers change the assumptions,
not the key length.
Shor's algorithm threatens the mathematical assumptions of RSA / ECC; PQC moves to lattices, codes, and hashes. Next, run ML-KEM / ML-DSA and observe the results yourself.
View the Shor circuit diagram
The sample message can be edited. Content is processed only in this page's memory and is never uploaded.
Public key SHA-256 fingerprint appears after generationStart with one real input
After generating the session key, send the content and verify it at the receiver.
Estimate size and transfer time at scale
Choose an algorithm, operation count, and link bandwidth to see the transfer volume of public keys, ciphertexts, or signatures. Sizes come from standards and public specifications; transfer times are model estimates.
View all algorithm sizes
Sizes come from FIPS 203 / FIPS 204 / FIPS 205 and public specifications; the RSA public key is an approximate DER value, the ECDSA signature is counted as r||s, 64 B, and RSA, ECDH, ECDSA, and Ed25519 serve only as classical baselines. Whether a KEM public key is transferred every time depends on the certificate or provisioning method; the verifying side usually has the public key cached. Bandwidth time is estimated as “bytes × 8 ÷ bandwidth” and excludes protocol headers, retransmissions, queuing, and encryption time.
Parameters and sizes for NGCC candidates follow each candidate's frozen submission; this table contains no unverified candidate data. Candidate status: Algorithm watch.
Where the bytes go in a TLS handshake
Choose key encapsulation, signature, and certificate chain length to see the byte composition, MTU packet count, and multiplier versus the classical baseline for a TLS 1.3–style handshake.
The model estimates a TLS 1.3–style handshake: ClientHello = KEM public key / share + 200 B; ServerHello = KEM ciphertext + 100 B; certificate = signature public key + signature + 250 B per certificate; CertificateVerify = signature + 50 B. TCP/TLS record headers, retransmissions, and middlebox limits are not included. MTU is estimated at 1,500 B with a 1,400 B payload; the initial congestion window is estimated at 14.5 KB.
How long can the data stay confidential?
The Mosca inequality combines the data confidentiality lifetime, migration time, and CRQC scenario; this only does arithmetic on time and does not predict quantum computers.
Mosca inequality: X + Y > Z means that at the current migration pace, the data is still within its confidentiality period when a CRQC arrives. Z is a scenario assumption, not a prediction; signatures do not retroactively expose past ciphertexts; actual risk also depends on data classification, key lifecycle, and the scope of system migration.
Host side → crypto card / SDK; chip side → PQC IP / eHSM; validation → test equipment.
Post-quantum crypto card →PQC security IP →The upper part is real computation in the browser; sizes, bandwidth, handshake, and HNDL are model estimates and do not connect to OSR hardware.
Computation path, measurement scope, and implementation source
What actually runs
Message scenario: ML-KEM key generation and encapsulation / decapsulation, HKDF-SHA-256 derives an AES-256-GCM key, then encryption and authenticated decryption. Signature scenario: pure ML-DSA signing and verification over the sample firmware text.
How to read a failed result
For invalid ciphertexts of equal length, ML-KEM can produce a different secret through implicit rejection instead of returning an error. Here the plaintext is rejected by a subsequent AES-GCM authentication failure. If the firmware is modified or the wrong public key is used, ML-DSA verification returns failure.
Implementation and scope
Uses a fixed-version open-source JavaScript implementation; randomness comes from the browser's crypto.getRandomValues. Computation runs inside a Web Worker, with both roles in the same browser. This is not the output of a network protocol, a TLS session, or OSR SDK / IP. The size and bandwidth sections in the lower half of the page are static models and run no cryptographic algorithms.
Trust assumptions and timing
The demo assumes the receiver's public key is trusted. Identity negotiation, certificate chains, rollback protection, and hardware key isolation are not implemented. Single-run timings depend on the browser and system load, cover only the annotated function calls, and exclude real networks and hardware drivers.
View pinned source code ↗ Open-source licenses and build notes ↗
This experiment is for understanding cryptographic capabilities and integration requirements. It uses temporary sample data; do not enter real keys or sensitive business information. The open-source JavaScript implementation provides no constant-time execution guarantee.