pub fn generate(
        phf: impl PasswordHasher,
        password: impl AsRef<[u8]>,
        salt: &'a str,
    ) -> Result<Self, HasherError> {
        phf.hash_password_simple(password.as_ref(), salt)
    }
/// Generate a password hash using the supplied algorithm.
Generate a password hash using the supplied algorithm.
Generate a password hash using the supplied algorithm .
pub fn generate(
        phf: impl PasswordHasher,
        password: impl AsRef<[u8]>,
        salt: &'a str,
    ) -> Result<Self, HasherError> {
        phf.hash_password_simple(password.as_ref(), salt)
    }
pub fn generate ( phf : impl PasswordHasher , password : impl AsRef < [ u8 ] > , salt : & ' a str , ) -> Result < Self , HasherError > { phf . hash_password_simple ( password . as_ref ( ) , salt ) }
Generate a password hash using the supplied algorithm.
Generate a password hash using the supplied algorithm .
phf
impl PasswordHasher
password
impl AsRef<[u8]>
salt
&'a str
phf
impl PasswordHasher
password
impl AsRef<[u8]>
salt
&'a str