Function pwhash::bcrypt::hash [] [src]

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

Hash a password with a randomly generated salt, default cost, and default variant.

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