Function aead_encrypt

Source
pub fn aead_encrypt(key: &[u8; 32], plaintext: &[u8]) -> Vec<u8> 
Expand description

encrypt[key](plaintext) - encrypts a message with a one-time key.

ChaCha20-Poly1305 from RFC 7539 with a zero nonce.