Skip to main content

QuantumShield โ€” Post-Quantum Encryption

**Post-quantum file encryption CLI โ€” ML-KEM-768 key exchange + AES-256-GCM

  • HKDF. NIST FIPS 203 compliant, fuzz-tested. Quantum-safe before quantum computers arrive.**

What It Doesโ€‹

QuantumShield encrypts files using a hybrid approach: ML-KEM-768 (formerly CRYSTALS-Kyber) for key encapsulation and AES-256-GCM for authenticated encryption. The key exchange is resistant to Shor's algorithm โ€” even a future quantum computer can't break it.

Key Featuresโ€‹

๐Ÿ” ML-KEM-768โ€‹

NIST FIPS 203 key encapsulation โ€” the same algorithm standardized for post-quantum TLS. 1184-byte encapsulation key, 1088-byte ciphertext, 32-byte shared secret.

๐Ÿ”’ AES-256-GCMโ€‹

Authenticated encryption with associated data. The shared secret from ML-KEM derives a 256-bit AES key via HKDF-SHA-256. Tamper-proof: any modification to ciphertext is detected.

๐Ÿงช Fuzz-Testedโ€‹

Cargo-fuzz targets exercise the encryption/decryption pipeline with random inputs. Memory-safe by construction โ€” no unsafe in the crypto path.

๐Ÿ“ฆ Published on crates.ioโ€‹

Single crate: pqguard. Install with cargo install pqguard. No external dependencies beyond the Rust crypto ecosystem.

โšก CLI Interfaceโ€‹

Simple command-line interface: pqguard encrypt, pqguard decrypt, pqguard keygen. Files are self-describing โ€” the header contains all parameters needed for decryption.

๐ŸŒ Quantum-Safeโ€‹

ML-KEM-768 provides 192-bit security against classical attacks and 128-bit against quantum attacks. Even if a quantum computer appears tomorrow, encrypted files stay safe.

Architectureโ€‹

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Key Generation โ”‚
โ”‚ ML-KEM-768 KeyGen โ†’ (dk, ek) โ”‚
โ”‚ dk = 64 bytes (decapsulation key) โ”‚
โ”‚ ek = 1184 bytes (encapsulation key) โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ–ผ โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Encrypt โ”‚ โ”‚ Decrypt โ”‚
โ”‚ โ”‚ โ”‚ โ”‚
โ”‚ 1. ML-KEM-Encap โ”‚ โ”‚ 1. ML-KEM-Decap โ”‚
โ”‚ โ†’ (ct, ss) โ”‚ โ”‚ โ†’ ss โ”‚
โ”‚ โ”‚ โ”‚ โ”‚
โ”‚ 2. HKDF-SHA-256 โ”‚ โ”‚ 2. HKDF-SHA-256 โ”‚
โ”‚ ss โ†’ AES key โ”‚ โ”‚ ss โ†’ AES key โ”‚
โ”‚ โ”‚ โ”‚ โ”‚
โ”‚ 3. AES-256-GCM โ”‚ โ”‚ 3. AES-256-GCM โ”‚
โ”‚ encrypt file โ”‚ โ”‚ decrypt file โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Tech Stackโ€‹

ComponentTechnology
LanguageRust (stable)
Key encapsulationml-kem 0.3 (FIPS 203)
Authenticated encryptionaes-gcm 0.11
Key derivationhkdf 0.12 + sha2 0.11
RNGrand 0.10
BuildCargo
CIGitHub Actions
TestingUnit tests + cargo-fuzz

Links: GitHub ยท crates.io ยท Landing page