Region "decodes to 0" Region "decodes to 1" Highlighted ciphertext
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Kyber-Style Lattice Encryption (Module-LWE)

CRYSTALS-Kyber, standardised by NIST as ML-KEM, is the post-quantum key-encapsulation mechanism now replacing RSA and elliptic-curve Diffie-Hellman in TLS. Its security comes from the Learning-With-Errors (LWE) problem: a message is hidden inside a public value plus deliberately added noise, and only the holder of a secret key can cancel that noise out with a small residual error term. This simulator renders the scalar version of that mechanic as a live ring of residues mod q — a message bit is encrypted with fresh randomness, decrypted back with the secret key, and 200 independent trials are decoded in parallel so you can watch the decryption-failure rate rise as the noise bound η grows relative to the modulus q, the exact trade-off real Kyber parameter sets are engineered around.