#password-hash #phc #password #mcf #crypt #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)

18 releases

0.6.0-rc.0 Jul 27, 2024
0.6.0-pre.0 Feb 9, 2024
0.5.0 Mar 4, 2023
0.4.2 Jun 28, 2022
0.0.0 Aug 18, 2020

#1370 in Authentication

Download history 174308/week @ 2024-12-30 294068/week @ 2025-01-06 349603/week @ 2025-01-13 310422/week @ 2025-01-20 316254/week @ 2025-01-27 352384/week @ 2025-02-03 364918/week @ 2025-02-10 342749/week @ 2025-02-17 373414/week @ 2025-02-24 367773/week @ 2025-03-03 375939/week @ 2025-03-10 362952/week @ 2025-03-17 368005/week @ 2025-03-24 532732/week @ 2025-03-31 596714/week @ 2025-04-07 472134/week @ 2025-04-14

1,994,667 downloads per month
Used in 1,182 crates (28 directly)

MIT/Apache

82KB
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

~135–285KB