Function pwhash::sha512_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.

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