shrine 0.1.0

Secrets manager written in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::Error;

pub mod aes;
pub mod plain;

/// Encryption / decryption trait
pub trait EncDec {
    fn encrypt(&self, cleartext: &[u8]) -> Result<Vec<u8>, Error>;

    fn decrypt(&self, ciphertext: &[u8]) -> Result<Vec<u8>, Error>;
}