Function bcrypt::hash
[−]
[src]
pub fn hash(password: &str, cost: u32) -> BcryptResult<String>
Generates a password hash using the cost given. The salt is generated randomly using the OS randomness