jwtvault 0.7.0

Highly flexible library to manage and orchestrate JWT workflow
Documentation
1
2
3
4
5
6
7
use crate::prelude::*;

pub trait PasswordHasher<H: Default> {
    /// Implementation Required
    fn hash_user_password<T: AsRef<str>>(&self, user: T, password: T) -> Result<String, Error>;
    fn verify_user_password<T: AsRef<str>>(&self, user: T, password: T, hash: T) -> Result<bool, Error>;
}