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.
pub fn encrypt(plaintext: Vec<u8>, key: &LessSafeKey) -> Result<Vec<u8>>Encrypt plaintext using key.
Prefixes the ciphertext with a nonce.