Post-quantum encryption
QVault
Encrypt messages and files to a post-quantum public key. Keys are generated and used in this browser tab, and nothing you type, load or produce here is sent to a server.
Local only. Keys, messages and files are processed in this tab and are not sent to a server.
Your key pair
No key loaded. Generate a pair, or import a private key you exported earlier.
Recipient
No recipient yet. Generate your own key, or import a recipient's public key.
Status
Idle. Each cryptographic step is listed here with its measured time as it completes.
What stays on your device
- Private keys, plaintext, files, shared secrets and derived keys are processed in page memory only. No part of this workspace makes a network request with them.
- Private keys are never written to localStorage, cookies or any other browser storage. Closing or reloading the tab discards them.
- This page loads no third-party scripts, fonts or analytics, and the site's content security policy blocks connections to other origins.
- The only request this page makes on its own is the status check in the header, which carries no user data.
Limits you should know
- Not audited. This tool has not been independently reviewed. Do not rely on it for information whose exposure would cause serious harm.
- Browser cryptography has limits. The code is delivered by the server each time you load the page, so you are trusting that delivery. Browser extensions and malware on the device can read page memory, and JavaScript cannot guarantee that key material is wiped.
- No sender authentication. A package proves it was not altered, not who created it. Anyone with your public key can encrypt to you.
- No forward secrecy. If a private key leaks, every package ever encrypted to it can be read.
- Standards can change. ML-KEM-768 is a NIST standard believed to resist known quantum attacks. That is a current assessment, not a guarantee.
Construction
- 1. ML-KEM-768 (FIPS 203) encapsulates a fresh 32-byte shared secret to the recipient's public key.
- 2. HKDF-SHA-256 with a random 32-byte salt derives a 256-bit key from that secret.
- 3. AES-256-GCM encrypts the content under a random 12-byte nonce, authenticating the whole header as additional data.
Each package gets its own encapsulation, so each AES key is used with exactly one nonce. ML-KEM comes from the maintained open-source @noble/post-quantum library; HKDF and AES-GCM come from the browser's Web Crypto API.
Package format v1
| Offset | Bytes | Field |
|---|---|---|
| 0 | 4 | Magic bytes "QDAY" |
| 4 | 1 | Format version (1) |
| 5 | 1 | Cipher suite (1) |
| 6 | 2 | Reserved |
| 8 | 1,088 | ML-KEM-768 ciphertext |
| 1,096 | 32 | HKDF salt |
| 1,128 | 12 | AES-GCM nonce |
| 1,140 | n + 16 | Ciphertext and authentication tag |
The encrypted payload holds a 4-byte length, JSON metadata (type, file name, media type, creation time) and then the content, so file names are not visible in a package. Text messages are the same bytes in base64 between BEGIN and END lines. Full details are in the documentation.
