fn hash_password(password: &str) -> Result<String, BcryptError>
Expand description

Hashes a password using bcrypt.

Arguments

  • password - The password to hash.

Returns

Returns a Result with the hashed password on success or an error on failure.