pub fn encrypt(
plaintext: Vec<u8>,
key: &LessSafeKey,
) -> Result<Vec<u8>, EncryptError>Expand description
Encrypt plaintext using key.
Prefixes the ciphertext with a nonce.
pub fn encrypt(
plaintext: Vec<u8>,
key: &LessSafeKey,
) -> Result<Vec<u8>, EncryptError>Encrypt plaintext using key.
Prefixes the ciphertext with a nonce.