Encrypt a real message or file using hybrid ECDH + LWE/Kyber cryptography โ all in your browser. No data ever leaves your device.
Skips to the end โ runs the full hybrid key exchange + encryption automatically with a demo message.
Choose what you'd like to encrypt โ type a message or upload a file (max 5 MB).
Watch as Alice (Sender) and Bob (Receiver) perform two parallel key exchanges โ ECDH (classical) and LWE (post-quantum) โ to arrive at the same hybrid key.
ฮท = 1 (safe). Increase beyond 3 to trigger correcntess failure. Real Kyber: ฮท = 2โ3 with much larger q.
Using the hybrid key, encrypt your file with AES-256-GCM. This is real, production-grade symmetric encryption.
256-bit key derived from ECDH + LWE:
A fresh 96-bit random nonce (IV) is generated for each encryption. Never reused.
Your file encrypted + 128-bit authentication tag:
Size: โ | Format: HPQC magic (4B) + IV (12B) + Ciphertext + Tag (16B)
Your file has been encrypted with hybrid post-quantum cryptography. Download the .hpqc file โ only someone with the hybrid key can decrypt it.
The .hpqc file is a JSON file containing your Base64-encoded ciphertext โ this means it opens cleanly in any text editor and uploads reliably across all browsers. Structure:
{
"format": "HybridPQC-v1",
"algorithm": "AES-256-GCM",
"iv": "<base64 nonce>",
"ciphertext": "<base64 encrypted data + GCM tag>",
"originalSize": <bytes>
}
The key is NOT stored in the file โ it lives only in the key exchange session.
Upload an encrypted .hpqc file to decrypt it. The hybrid key from this session will be used automatically.
Drop your .hpqc file here, or click to browse
(The .hpqc file is a JSON file โ upload it exactly as downloaded)
Choose FileThis demo uses the browser's Web Crypto API for actual ECDH key exchange. The shared secret is a real P-256 Diffie-Hellman output, not a simulation.
LWE uses n=4, q=97 โ tiny but mathematically correct. The actual matrix operations, error addition, and decapsulation all work exactly as in Kyber, just at tiny scale.
File encryption uses the real AES-256-GCM algorithm from Web Crypto API. Your file is genuinely encrypted and can only be decrypted with the correct hybrid key.