ruption_quantum_encrypt
A quantum-secure encryption crate with hybrid lattice/code-based cryptography and enhanced randomness.
Overview
ruption_quantum_encrypt provides a software-only approach to quantum-secure encryption, combining lattice-based and code-based cryptographic techniques. It includes a unique TrueRandom generator that approximates true entropy using system sources and a quantum-inspired simulation.
Note: This is a toy implementation for demonstration. For production use, replace the simplified algorithms with proper LWE and McEliece implementations.
Features
- Hybrid cryptography for post-quantum security.
- Enhanced randomness with
TrueRandom. - Simple API for key generation, encapsulation, and key derivation.
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
## Usage
encapsulate a shared secret, and derive keys:
{keypair, encapsulate, decapsulate, derive_keys};
pk, sk) = keypair();
ct, ss1) = encapsulate(&pk);
= decapsulate(&ct, &sk);
ss1.as_bytes(), ss2.as_bytes());
= derive_keys(&ss1, 3);
keys.len(), 3);
keys[0].len(), 32);
## Documentation
## License