Function pwhash::md5_crypt::hash [] [src]

pub fn hash<B: AsRef<[u8]>>(pass: B) -> Result<String>
Deprecated since 0.2.0

: don't use this algorithm for new passwords

Hash a password with a randomly generated salt.

An error is returned if the system random number generator cannot be opened.