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
pub trait StringCrypterTrait {
// Required methods
fn encrypt(&self, data: &str, password: &str) -> Result<String>;
fn decrypt(&self, data: &str, password: &str) -> Result<String>;
}字符串加密器trait