Region "decodes to 0" Region "decodes to 1" Highlighted ciphertext
drag to orbit · scroll strip = history

Kyber-Style Lattice Encryption 2D (Module-LWE Ring)

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 2D simulator renders the scalar version of that mechanic as a draggable ring of residues mod q — a message bit is encrypted with fresh randomness, decrypted back with the secret key, and a batch of independent trials is decoded in parallel so you can watch the decryption-failure rate rise, and the theoretical noise-budget margin shrink, as the noise bound η grows relative to the modulus q — the exact trade-off real Kyber parameter sets are engineered around.