Skip to content

Conversation

@tarcieri
Copy link
Member

Adds a PasswordHash::hash_password_with_rng method gated on the rand_core feature which uses a TryCryptoRng to generate a random salt, analogous to the getrandom-based PasswordHash::hash_password.

Adds a `PasswordHash::hash_password_with_rng` method gated on the
`rand_core` feature which uses a `TryCryptoRng` to generate a random
salt, analogous to the `getrandom`-based `PasswordHash::hash_password`.
@tarcieri tarcieri force-pushed the password-hash/rand_core_feature branch from 0c9b1c4 to a051190 Compare December 13, 2025 15:34
@tarcieri tarcieri merged commit 19aa016 into master Dec 13, 2025
73 checks passed
@tarcieri tarcieri deleted the password-hash/rand_core_feature branch December 13, 2025 15:36
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.

2 participants