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

sh $ cargo add secure-password

Usage

```rust extern crate secure_password;

let pass = b"hello world"; let hash = securepassword::hash(pass).unwrap(); let isok = securepassword::verify(pass, &hash).unwrap(); assert!(isok); ```

See Also

License

Apache-2.0