password-hash

Crates.iopassword-hash
lib.rspassword-hash
version0.6.0-rc.11
created_at2020-08-18 19:09:14.097687+00
updated_at2026-01-24 15:58:46.52246+00
descriptionTraits which describe the functionality of password hashing algorithms, with optional support for a `no_std`-friendly implementation of the PHC string format, as well as generic support for other formats (e.g. Modular Crypt Format)
homepage
repositoryhttps://github.com/RustCrypto/traits
max_upload_size
id278011
size47,311
traits (github:rustcrypto:traits)

documentation

https://docs.rs/password-hash

README

RustCrypto: Password Hashing Traits

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

Traits which describe the functionality of password hashing algorithms.

About

This crate contains traits for using password hashing algorithms to create and verify password hash strings of the sort used by the crypt(3) API, which typically begin with ${ident}$....

It provides first-class support for the Password Hashing Competition (PHC) string format specification via the phc crate and can also be used with the Modular Crypt Format (MCF)) via the mcf crate.

Supported Password Hashing Algorithms

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

  • argon2: Argon2 memory hard key derivation function
  • balloon-hash: PBKDF with proven memory-hard password-hashing and modern design
  • pbkdf2: Password-Based Key Derivation Function V2
  • scrypt: scrypt key derivation function
  • sha-crypt: SHA-crypt legacy password hashing algorithm for crypt(3)
  • yescrypt: yescrypt key derivation (improved version of scrypt)

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.

Commit count: 1861

cargo fmt