StringCrypterTrait

Trait StringCrypterTrait 

Source
pub trait StringCrypterTrait {
    // Required methods
    fn encrypt(&self, data: &str, password: &str) -> Result<String>;
    fn decrypt(&self, data: &str, password: &str) -> Result<String>;
}
Expand description

字符串加密器trait

Required Methods§

Source

fn encrypt(&self, data: &str, password: &str) -> Result<String>

Source

fn decrypt(&self, data: &str, password: &str) -> Result<String>

Implementors§