Function encrypt_sensitive_field_with_aad

Source
pub fn encrypt_sensitive_field_with_aad(
    data: &str,
) -> Result<String, EncryptionError>
Expand description

Encrypts sensitive data with AAD (Additional Authenticated Data)

AAD is automatically retrieved from EncryptionContext and binds the ciphertext to a specific context (e.g., Redis key), preventing ciphertext swap attacks. The EncryptionContext must be set before calling this function.