Function pwhash::sha1_crypt::hash
[−]
[src]
pub fn hash<B: AsRef<[u8]>>(pass: B) -> Result<String>
Hash a password with a randomly generated salt and the default number of rounds (varied by a small amount, like on NetBSD).
An error is returned if the system random number generator cannot be opened.