Function pwhash::unix_crypt::hash_with [] [src]

pub fn hash_with<B: AsRef<[u8]>>(salt: &str, pass: B) -> Result<String>
Deprecated since 0.2.0

: don't use this algorithm for new passwords

Hash a password with a user-provided salt.

An error is returned if the salt is too short or contains an invalid character.