Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(container: &[u8], key: &[u8; 32]) -> Result<Vec<u8>, BundleError>
Expand description

Encrypt a plaintext container. Output: nonce (24B) || ciphertext.