Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(
    plaintext: Vec<u8>,
    key: &LessSafeKey,
) -> Result<Vec<u8>, EncryptError>
Expand description

Encrypt plaintext using key.

Prefixes the ciphertext with a nonce.