Function fedimint_aead::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.