pub fn decrypt_sensitive_field_auto(
data: &str,
) -> Result<String, EncryptionError>Expand description
Decrypts sensitive data with automatic version detection
- Version 1: Decrypts without AAD (legacy, backwards compatible)
- Version 2: Decrypts with AAD (retrieved from
EncryptionContextif available)
The EncryptionContext is automatically retrieved if set for v2 decryption.