Function easy_password::bcrypt::hash_password
[−]
[src]
pub fn hash_password(
password: &str,
hmac_key: &[u8],
bcrypt_rounds: u32
) -> Result<String, PasswordError>
HMAC and Bcrypt a password of any arbitrary length
Examples
Usage:
use easy_password::bcrypt::hash_password; let hash = hash_password("my_password", b"secure_key", 12).unwrap();