| Crates.io | ruption_quantum_encrypt |
| lib.rs | ruption_quantum_encrypt |
| version | 0.1.1 |
| created_at | 2025-03-25 04:32:01.653865+00 |
| updated_at | 2025-03-25 04:51:39.933448+00 |
| description | A quantum-secure encryption crate with hybrid lattice/code-based cryptography and true randomness |
| homepage | |
| repository | https://github.com/RuptionAI/ruption_quantum_encrypt |
| max_upload_size | |
| id | 1604745 |
| size | 16,280 |
A quantum-secure encryption crate with hybrid lattice/code-based cryptography and enhanced randomness.
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.
TrueRandom.Add this to your Cargo.toml:
[dependencies]
ruption_quantum_encrypt = "0.1.0"
## Usage
Generate a keypair, encapsulate a shared secret, and derive keys:
use ruption_quantum_encrypt::{keypair, encapsulate, decapsulate, derive_keys};
let (pk, sk) = keypair();
let (ct, ss1) = encapsulate(&pk);
let ss2 = decapsulate(&ct, &sk);
assert_eq!(ss1.as_bytes(), ss2.as_bytes());
let keys = derive_keys(&ss1, 3);
assert_eq!(keys.len(), 3);
assert_eq!(keys[0].len(), 32);
## Documentation
Full API documentation is available on docs.rs.
## License
Licensed under MIT.