LAQ-Fort v2
Description
Laqf2 is a hybrid encryption scheme that combines Kyber and AES-GCM with Argon2 and HMAC-SHA256. It also employs encoding data to Mandelbrot points for more secure encryption.
It is also the second version of the LAQ-Fort (Lattice Authenticated Quantum Fortress, an originally messy crate) encryption scheme.
Methods
new(): Create a new Laqf2 instance.generate_salt() -> Vec<u8>: Generate a random salt.generate_kyber_keypair() -> (PublicKey, SecretKey): Generate a Kyber keypair.encrypt(data: &[u8], password: &str, pk: &PublicKey, salt: &[u8]) -> Vec<u8>: Encrypt data using Kyber and AES-GCM.decrypt(encrypted_data: &[u8], password: &str, sk: &SecretKey, salt: &[u8]) -> Vec<u8>: Decrypt data using Kyber and AES-GCM.
Example
use Laqf2;