LNQC is a family of side-channel resistant, constant-time KEMs built on LPN hardness and LDPC error correction — from lightweight 256-bit to flagship 714-bit security.
Enter any message. See LNQC-256 (lightweight tier), SHA-256, and AES-256-GCM encrypt it — and compare quantum safety, payload size, and timing side by side.
Enter a message above and click Encrypt & Compare to begin.
From lightweight IoT to uncompromising flagship security — all built on the same LPN+LDPC architecture.
IoT, embedded devices, bandwidth-constrained networks
Enterprise applications, server-side, general purpose
Maximum security, long-term storage, air-gapped systems
Each component is specified to reduce a targeted threat model, with implementations constrained for constant-time behavior.
Built on the LPN (Learning Parity with Noise) problem — NP-Hard and immune to Shor's algorithm.
All operations are uint8 binary matrix algebra with no branches — zero timing side-channels.
A dedicated crypto_rng seeded via Python's secrets module replaces the insecure NumPy global PRNG.
A Gallager Bit-Flipping decoder absorbs LPN noise (per-tier weight 2 or 4) across all block sizes.
Three parameter sets (256/512/714) let you trade key size against security margin — from IoT-friendly 257 KB to flagship 2 MB ciphertexts.
pytest runs 100 full-cycle encapsulation/decapsulation sequences asserting zero failures.
LNQC vs. NIST-standardized ML-KEM-768
| Metric | Project LNQC | ML-KEM-768 |
|---|---|---|
| Security Model | LPN (NP-Hard) | Module-LWE |
| Timing Attacks | Immune (constant-time) | Mitigated |
| Public Key Size | 257 KB – 500 KB | ~1.2 KB |
| Ciphertext Size | 257 KB – 2 MB | ~1.1 KB |
| ECC Layer | LDPC Gallager | None |
| RNG | OS CSPRNG | OS CSPRNG |
Read the full technical whitepaper documenting the LPN foundation, CSPRNG hardening, and the LDPC bandwidth optimization.
Read the Whitepaper →LNQC is and always will be free and open-source. If this work advances your own research or projects, consider sponsoring continued exploration in post-quantum cryptography and quantum-resistant infrastructure.
© 2026 Project LNQC · LNQC (256/512/714) · v1.1.0