secure-password

Crates.iosecure-password
lib.rssecure-password
version0.3.1
sourcesrc
created_at2018-08-16 12:39:28.066272
updated_at2018-08-16 13:41:41.95315
descriptionSafe password hashing
homepage
repositoryhttps://github.com/yoshuawuyts/secure-password
max_upload_size
id79746
size26,049
Yosh (yoshuawuyts)

documentation

https://docs.rs/secure-password

README

secure-password

crates.io version build status downloads docs.rs docs

Safe password hashing with thread-local storage. Rust adaptation of emilbayes/secure-password.

Security Disclaimer

: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:

Installation

$ cargo add secure-password

Usage

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);

See Also

License

Apache-2.0

Commit count: 18

cargo fmt