Crates.io | secure-password |
lib.rs | secure-password |
version | 0.3.1 |
source | src |
created_at | 2018-08-16 12:39:28.066272 |
updated_at | 2018-08-16 13:41:41.95315 |
description | Safe password hashing |
homepage | |
repository | https://github.com/yoshuawuyts/secure-password |
max_upload_size | |
id | 79746 |
size | 26,049 |
Safe password hashing with thread-local storage. Rust adaptation of emilbayes/secure-password.
:warning: This package has not been audited for security by any third party. It uses rust-argon2 for the hash, and rand for the salt. Decide for yourself whether this package is appropriate for the security profile of your project. :warning:
$ cargo add secure-password
extern crate secure_password;
let pass = b"hello world";
let hash = secure_password::hash(pass).unwrap();
let is_ok = secure_password::verify(pass, &hash).unwrap();
assert!(is_ok);