Skip to main content

symmetric_encrypt

Function symmetric_encrypt 

Source
pub fn symmetric_encrypt(
    key: impl SecretSource,
    data: &str,
) -> Result<String, RustAuthError>
Expand description

Encrypt a string with either a raw secret or a versioned secret config.