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

16 releases

0.5.0 Mar 4, 2023
0.5.0-pre.0 Jan 9, 2023
0.4.2 Jun 28, 2022
0.4.0 Mar 9, 2022
0.0.0 Aug 18, 2020

#1039 in Cryptography

Download history 84246/week @ 2022-11-30 85826/week @ 2022-12-07 82732/week @ 2022-12-14 64862/week @ 2022-12-21 53702/week @ 2022-12-28 79629/week @ 2023-01-04 87129/week @ 2023-01-11 91976/week @ 2023-01-18 101205/week @ 2023-01-25 104924/week @ 2023-02-01 105182/week @ 2023-02-08 109991/week @ 2023-02-15 113697/week @ 2023-02-22 113532/week @ 2023-03-01 115540/week @ 2023-03-08 103412/week @ 2023-03-15

465,894 downloads per month
Used in 109 crates (14 directly)

MIT/Apache

80KB
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.60 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

~185KB