#crypt #password #phc #mcf #pbkdf

no-std password-hash

Traits which describe the functionality of password hashing algorithms, as well as a no_std-friendly implementation of the PHC string format (a well-defined subset of the Modular Crypt Format a.k.a. MCF)

12 releases

Uses new Rust 2021

0.4.2 Jun 28, 2022
0.4.0 Mar 9, 2022
0.3.2 Sep 15, 2021
0.2.2 Jul 20, 2021
0.0.0 Aug 18, 2020

#793 in Cryptography

Download history 54883/week @ 2022-06-09 56501/week @ 2022-06-16 60095/week @ 2022-06-23 61647/week @ 2022-06-30 62447/week @ 2022-07-07 71289/week @ 2022-07-14 71662/week @ 2022-07-21 84223/week @ 2022-07-28 80236/week @ 2022-08-04 83491/week @ 2022-08-11 81555/week @ 2022-08-18 90255/week @ 2022-08-25 87466/week @ 2022-09-01 96697/week @ 2022-09-08 97540/week @ 2022-09-15 89308/week @ 2022-09-22

389,759 downloads per month
Used in 52 crates (9 directly)

MIT/Apache

76KB
1.5K SLoC

RustCrypto: Password Hashing Traits

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Traits which describe the functionality of password hashing algorithms.

Documentation

About

Provides a no_std-friendly implementation of the Password Hashing Competition (PHC) string format specification (a well-defined subset of the Modular Crypt Format a.k.a. MCF) which works in conjunction with the traits this crate defines.

Supported Crates

See RustCrypto/password-hashes for algorithm implementations which use this crate for interoperability:

  • argon2 - Argon2 memory hard key derivation function
  • pbkdf2 - Password-Based Key Derivation Function v2
  • scrypt - scrypt key derivation function

Minimum Supported Rust Version

Rust 1.57 or higher.

Minimum supported Rust version may be changed in the future, but it will be accompanied by a minor version bump.

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~180KB