Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(secret: &[u8], plaintext: &[u8]) -> Vec<u8> 
Expand description

Encrypt plaintext under secret, returning nonce || ciphertext+tag.