[−][src]Function enc_file::encrypt_file_aes
pub fn encrypt_file_aes(
cleartext: Vec<u8>,
key: &str
) -> Result<Vec<u8>, Box<dyn Error>>
Encrypts cleartext (Vec
Examples
let text = b"This a test"; let key: &str = "an example very very secret key."; let text_vec = text.to_vec(); let ciphertext: Vec<u8> = encrypt_file_aes(text_vec, key).unwrap();