Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(
    plaintext: &[u8],
    secret: &[u8],
) -> Result<EncryptedPayload, CodecError>
Expand description

Encrypts plaintext using AES-256-GCM with HKDF-SHA256 key derivation.