Skip to content

Rename simple features to password-hash#776

Merged
tarcieri merged 1 commit intomasterfrom
rename-simple-feature-to-password-hash
Dec 13, 2025
Merged

Rename simple features to password-hash#776
tarcieri merged 1 commit intomasterfrom
rename-simple-feature-to-password-hash

Conversation

@tarcieri
Copy link
Copy Markdown
Member

To reflect the feature activates the integration with the password-hash, this renames the various simple features of the crates in this repo to password-hash instead.

It also takes care of wiring up rand_core better.

The respective simple modules have either been named to mcf or phc depending on which format is implemented.

This will make it possible to add another module to crates that support both, e.g. pbkdf2 and scrypt could both have a mcf module.

Closes #764

To reflect the feature activates the integration with the
`password-hash`, this renames the various `simple` features of the
crates in this repo to `password-hash` instead.

It also takes care of wiring up `rand_core` better.

The respective `simple` modules have either been named to `mcf` or `phc`
depending on which format is implemented.

This will make it possible to add another module to crates that support
both, e.g. `pbkdf2` and `scrypt` could both have a `mcf` module.

Closes #764
@tarcieri tarcieri force-pushed the rename-simple-feature-to-password-hash branch from 5be72cd to 51e535f Compare December 13, 2025 20:17
@tarcieri tarcieri merged commit e34a6ae into master Dec 13, 2025
65 checks passed
@tarcieri tarcieri deleted the rename-simple-feature-to-password-hash branch December 13, 2025 20:21
@tarcieri tarcieri mentioned this pull request Apr 20, 2026
tarcieri added a commit that referenced this pull request Apr 21, 2026
## Added
- Customizable `Params` for `Pbkdf2` type (#79])
- Modular Crypt Format (MCF) support (#806, #808)
- `alloc` feature (#816)
- `kdf::{Kdf, Pbkdf}` implementations (#823)

## Changed
- Bump edition to 2024; MSRV 1.85 (#563)
- Use `EagerHash` in bounds (#592)
- Use `phc` crate for PHC hash types (#761)
- Rename `simple` features to `phc` (#776)
- Have `Pbkdf2::new` take algorithm/params args (#805)
- Fallible `Params` constructors (#810)
- Bump `password-hash` dependency to v0.6 (#848)
- Bump `digest` dependency to v0.11 (#849)
- Use 210,000 iterations for PBKDF2-HMAC-SHA512 per OWASP (#857)
- Bump `hmac` dependency to v0.13 (#870)
- Bump `sha2` to v0.11 (#872)

## Removed
- `parallel` crate feature (#702)
- `std` feature (#760)
- `sha1` feature (#853)
- `Sync` bounds (#876)
@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)
@tarcieri tarcieri mentioned this pull request Apr 21, 2026
tarcieri added a commit that referenced this pull request Apr 22, 2026
## Added
- Implement `PartialEq` for `scrypt::Params` (#490)
- `Params::n` method (#544)
- `parallel` feature using `rayon` (#733, #785)
- `mcf` feature for Modular Crypt Format support (#781, #806)
- SSE2/simd128 `RoMix` data layout optimization (#622)
- Customizable `Params` for `Scrypt` type (#797)
- Implement `kdf::{Kdf, Pbkdf}` for `Scrypt` (#823)

## Changed
- Make methods of `scrypt::Params` into `const fn` (#508)
- Bump edition to 2024; MSRV 1.85 (#563)
- Split `Params::new` and `Params::new_with_output_len` (#602)
- Use the `phc` crate for `PasswordHash` and related types (#761)
- Switch from `std::error::Error` to `core::error::Error` (#767)
- Rename `simple` feature to `phc` (#776)
- Migrate from `subtle` to `ctutils` (#845)
- Bump `password-hash` dependency to v0.6 (#848)
- Bump `sha2` to v0.11 (#872)
- Bump `salsa20` dependency to v0.11 (#875)
- Bump `pbkdf2` dependency to v0.13 (#885)

## Removed
- `Display` and `FromStr` impls for `Params` (#824)
- Incorrect `N` upper-bound check from `Params::new` (#867)
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.

Feature name for password-hash functionality: stick with simple?

1 participant