Skip to main content

maybe_encrypt_text

Function maybe_encrypt_text 

Source
pub fn maybe_encrypt_text(plaintext: &str) -> Result<String, String>
Expand description

Encrypt a text field for at-rest storage. Off → unchanged. Enabled but the vault is empty → Err.