pub fn generate(
        phf: impl PasswordHasher,
        password: impl AsRef<[u8]>,
        salt: &'a str,
    ) -> Result<Self> {
        phf.hash_password(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> {
        phf.hash_password(password.as_ref(), salt)
    }
pub fn generate ( phf : impl PasswordHasher , password : impl AsRef < [ u8 ] > , salt : & ' a str , ) -> Result < Self > { phf . hash_password ( 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