pub fn encrypt(
plaintext: &[u8],
secret: &[u8],
) -> Result<EncryptedPayload, CodecError>Expand description
Encrypts plaintext using AES-256-GCM with HKDF-SHA256 key derivation.
pub fn encrypt(
plaintext: &[u8],
secret: &[u8],
) -> Result<EncryptedPayload, CodecError>Encrypts plaintext using AES-256-GCM with HKDF-SHA256 key derivation.