password-hash
Traits which describe the functionality of password hashing algorithms, with optional support for a `no_std`/`no_alloc`-friendly implementation of the PHC string format, as well as generic support for other formats (e.g. Modular Crypt Format)
0.6.1
110M downloads/mo
#758 most downloaded on crates.io
RustCrypto/traits
What this package is like to depend on
Last release 4 months ago
08 Apr 2026
Release timing varies
gaps range from 9 days to 12 months
Nearly every release is documented
notes for 13 of 13 stable releases
6 versions withdrawn
withdrawn after publishing
6 years old
37 releases · first in 2020
13 releases in the last 12 months
see the full history below
Release timeline
37 releases · Aug 2020 to Apr 2026Releases
latest 37-
0.6.108 Apr 2026Release notes
Open source →Changed
- Bounds for blanket impl of
PasswordVerifierforphc::PasswordHash[BREAKING] (#2370)
- Bounds for blanket impl of
-
0.6.010 Mar 2026 withdrawnRelease notes
Open source →NOTE: this release was yanked to accommodate breaking changes introduced in v0.6.1.
Added
- Generic
Hparam to traits to support multiple string formats e.g. PHC, MCF (#2110) - Implement
From<phc::Error>forError(#2124) rand_corefeature (#2126)- Salt generating helper functions
(try_)generate_salt(#2128) Error::RngFailurevariant (#2337)
Changed
- Edition changed to 2024 and MSRV bumped to 1.85 (#1759)
- Extract
CustomizedPasswordHashertrait (#2105) - Bump
getrandomto v0.4 (#2258)
Removed
- Generic
-
0.6.0-rc.1201 Feb 2026 pre-releaseNothing published for this version
-
0.6.0-rc.1124 Jan 2026 pre-releaseNothing published for this version
-
0.6.0-rc.1021 Jan 2026 pre-releaseNothing published for this version
-
0.6.0-rc.919 Jan 2026 pre-releaseNothing published for this version
-
0.6.0-rc.811 Jan 2026 pre-releaseNothing published for this version
-
0.6.0-rc.728 Dec 2025 pre-releaseNothing published for this version
-
0.6.0-rc.613 Dec 2025 pre-releaseNothing published for this version
-
0.6.0-rc.511 Dec 2025 pre-releaseNothing published for this version
-
0.6.0-rc.410 Dec 2025 pre-releaseNothing published for this version
-
0.6.0-rc.307 Dec 2025 pre-releaseNothing published for this version
-
0.6.0-rc.205 Nov 2025 pre-releaseNothing published for this version
-
0.6.0-rc.129 May 2025 pre-releaseNothing published for this version
-
0.6.0-rc.027 Jul 2024 pre-releaseNothing published for this version
-
0.6.0-pre.009 Feb 2024 pre-releaseNothing published for this version
-
0.5.004 Mar 2023Release notes
Open source →Added
Changed
- Use
Salttype withPasswordHasher(#1187) - Rename
Salt::new=>Salt::from_b64(#1266) - Rename
Salt::b64_decode=>Salt::decode_b64(#1266) - Rename
SaltString::new=>SaltString::from_b64(#1266) - Rename
SaltString::b64_decode=>SaltString::decode_b64(#1266) - Rename
SaltString::b64_encode=>SaltString::encode_b64(#1266)
Fixed
- Allow
Saltto be exactly the same amount asMAX_LENGTHvalue (#1246)
- Use
-
0.5.0-rc.004 Mar 2023 pre-releaseNothing published for this version
-
0.5.0-pre.127 Feb 2023 pre-releaseNothing published for this version
-
0.5.0-pre.009 Jan 2023 pre-releaseNothing published for this version
-
0.4.228 Jun 2022 -
0.4.122 Apr 2022 -
0.4.009 Mar 2022 -
0.3.215 Sep 2021 -
0.3.115 Sep 2021 withdrawn -
0.3.027 Aug 2021 withdrawnRelease notes
Open source →Added
- More details to
ParamValueInvalid(#713) SaltInvaliderror (#713)versionparam toPasswordHasher(#719)ParamsString::add_b64_bytesmethod (#722)
Changed
- More details to
-
0.3.0-pre.126 Aug 2021 pre-releaseNothing published for this version
-
0.2.323 Aug 2021 -
0.2.220 Jul 2021Release notes
Open source → -
0.2.105 May 2021 -
0.2.029 Apr 2021 -
0.1.419 Apr 2021Release notes
Open source → -
0.1.317 Apr 2021Release notes
Open source → -
0.1.217 Mar 2021 -
0.1.101 Feb 2021 withdrawnRelease notes
Open source →Added
Encodingenum with bcrypt andcrypt(3)Base64 support (#515)- Support for using
PasswordHashwith an alternateEncoding(#518)
Changed
- Bump
base64ctdependency to v0.2 (#519)
-
0.1.029 Jan 2021 withdrawn -
0.0.018 Aug 2020 withdrawnNothing published for this version