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โ
| Component | Technology |
|---|---|
| Language | Rust (stable) |
| Key encapsulation | ml-kem 0.3 (FIPS 203) |
| Authenticated encryption | aes-gcm 0.11 |
| Key derivation | hkdf 0.12 + sha2 0.11 |
| RNG | rand 0.10 |
| Build | Cargo |
| CI | GitHub Actions |
| Testing | Unit tests + cargo-fuzz |
Links: GitHub ยท crates.io ยท Landing page