fedimint_aead

Function encrypt

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

Encrypt plaintext using key.

Prefixes the ciphertext with a nonce.