Skip to main content

SecretSource

Trait SecretSource 

Source
pub trait SecretSource {
    // Required methods
    fn encrypt_current(&self, data: &str) -> Result<String, RustAuthError>;
    fn decrypt_payload(&self, data: &str) -> Result<String, RustAuthError>;
}
Expand description

Secret material accepted by symmetric encryption helpers.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SecretSource for &str

Source§

impl SecretSource for String

Implementors§