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

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

Interactive 2D Module-LWE key-encapsulation simulator in the style of CRYSTALS-Kyber: drag to orbit a mod-q residue ring, encrypt a bit with a secret key and small error noise, watch decryption success or failure rates and the theoretical noise-budget margin as the noise bound grows, and see why Shor's algorithm cannot break it.

Cryptography2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-quantum-cryptography-cybersecurity ↗ Open standalone

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.

⚙ Under the hood

Drag to orbit a 2D mod-q residue ring, encrypt a message bit with a Learning-With-Errors secret key, then decrypt a batch of trial ciphertexts at once to watch the decryption-failure rate rise and the theoretical noise-budget margin shrink as noise grows relative to the modulus — the exact trade-off CRYSTALS-Kyber (ML-KEM) is tuned around.

cryptographypost-quantumlatticeKyberLWEcybersecurity2D

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)