defendor 0.0.7

A secure file encryption tool with AES-GCM and Argon2 for password hashing.
Documentation
1
2
3
4
5
6
7
8
9
10
use secrecy::SecretBox;

pub trait KeyManager {
    type KeyManagerError;
    fn set_key(
        &mut self,
        val: SecretBox<Vec<u8>>,
    ) -> impl Future<Output = Result<(), Self::KeyManagerError>>;
    fn get_key(&self) -> impl Future<Output = Result<SecretBox<Vec<u8>>, Self::KeyManagerError>>;
}