fn hash_password(password: &str) -> Result<String, BcryptError>
Hashes a password using bcrypt.
password
Returns a Result with the hashed password on success or an error on failure.
Result