Function encrypt_sensitive_field

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

Encrypts sensitive data if encryption is configured, otherwise returns base64-encoded plaintext