[−][src]Function pwhash::md5_crypt::hash_with
pub fn hash_with<'a, IHS, B>(param: IHS, pass: B) -> Result<String> where
IHS: IntoHashSetup<'a>,
B: AsRef<[u8]>,
👎 Deprecated since 0.2.0:
don't use this algorithm for new passwords
Hash a password with user-provided parameters.
If the param
argument is a &str
, it must be in the final hash
format. The salt is parsed out of that value.
If the salt is too long, it is truncated to maximum length. If it contains
an invalid character, an error is returned.