Function encrypt
Source pub fn encrypt<T: Read>(input: T, key: &str) -> Result<String, VaultError>
Expand description
Encrypt message to string without formatting (no header, no carriage returns)
§Arguments
input : a data reader (&u8, file, etc…) to the message
key : the key to use encrypt
§Example
let lipsum = "Lorem ipsum dolor";
let decoded = encrypt(lipsum.as_bytes(),"hush").unwrap();