#password-hashing #crypt #password-hash

no-std phc

Pure Rust implementation of the Password Hashing Competition (PHC) string format which is used for storing password hashes

4 releases (2 breaking)

Uses new Rust 2024

new 0.6.0-rc.1 Dec 28, 2025
0.6.0-rc.0 Dec 10, 2025
0.2.0 Dec 10, 2019
0.1.0 Sep 14, 2018

#2934 in Cryptography

Download history 1/week @ 2025-10-12 2633/week @ 2025-12-07 910/week @ 2025-12-14

3,543 downloads per month
Used in 10 crates (via enprot)

Apache-2.0 OR MIT

145KB
2.5K SLoC

RustCrypto: PHC String Format

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

Pure Rust implementation of the Password Hashing Competition (PHC) string format, which is used to store password hashes.

Example (Argon2):

$argon2d$v=19$m=512,t=3,p=2$5VtWOO3cGWYQHEMaYGbsfQ$AcmqasQgW/wI6wAHAMk4aQ

Minimum Supported Rust Version (MSRV) Policy

MSRV increases are not considered breaking changes and can happen in patch releases.

The crate MSRV accounts for all supported targets and crate feature combinations, excluding explicitly unstable features.

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

~76–295KB