Trait HashService

Source
pub trait HashService {
    // Required methods
    fn hash(&self, string: &str) -> Result<String, ()>;
    fn verify(&self, token: &str, token_hash: &str) -> bool;
}

Required Methods§

Source

fn hash(&self, string: &str) -> Result<String, ()>

Source

fn verify(&self, token: &str, token_hash: &str) -> bool

Implementors§