pub fn encrypt(
plaintext: &[u8],
key: &DerivedKey,
) -> EnvelopeResult<EncryptedData>Expand description
Encrypt plaintext data using AES-256-GCM
Generates a random nonce for each encryption operation.
pub fn encrypt(
plaintext: &[u8],
key: &DerivedKey,
) -> EnvelopeResult<EncryptedData>Encrypt plaintext data using AES-256-GCM
Generates a random nonce for each encryption operation.