Skip to content

Add PasswordVerifier<str> impls#779

Merged
tarcieri merged 1 commit intomasterfrom
password-verifier-str-impls
Dec 14, 2025
Merged

Add PasswordVerifier<str> impls#779
tarcieri merged 1 commit intomasterfrom
password-verifier-str-impls

Conversation

@tarcieri
Copy link
Copy Markdown
Member

For algorithms where there is only one canonical encoding (PHC or MCF), adds PasswordVerifier<str> impls which mean the user doesn't have to first parse the hash.

It would be good if there were a better conversion from mcf::Error to password_hash::Error, perhaps the latter could pull in the mcf crate optionally like it does with phc and have an error conversion impl.

For algorithms where there is only one canonical encoding (PHC or MCF),
adds `PasswordVerifier<str>` impls which mean the user doesn't have to
first parse the hash.

It would be good if there were a better conversion from `mcf::Error` to
`password_hash::Error`, perhaps the latter could pull in the `mcf` crate
optionally like it does with `phc` and have an error conversion impl.
@tarcieri tarcieri merged commit ff2f419 into master Dec 14, 2025
56 checks passed
@tarcieri tarcieri deleted the password-verifier-str-impls branch December 14, 2025 19:30
@tarcieri tarcieri mentioned this pull request Apr 21, 2026
tarcieri added a commit that referenced this pull request Apr 21, 2026
## Added
- Implement `core::error::Error` for error types (#719)
- Implement the `password-hash` crate traits (#771, #779, #806)
- Dynamic `Algorithm` support (#800)
- `Params` customization for `ShaCrypt` type (#801)
- `ShaCrypt::SHA256` and `ShaCrypt::SHA512` (#813)
- `no_alloc` support (#894)

## Changed
- `rounds` parameter is now `u32` (#500)
- Make hashing infallible (#500)
- Bump edition to 2024; MSRV 1.85 (#563)
- Switch from `rand` to `rand_core` (#720)
- Use `mcf` crate for implementing Modular Crypt Format (#726, #842)
- Unify `Params` type (#772)
- Rename `simple` feature to `password-hash` (#776)
- Migrate from `subtle` to `ctutils` (#845)
- Bump `password-hash` dependency to v0.6 (#848)
- Bump `sha2` to v0.11 (#872)

## Removed
- `std` feature (#719)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant