Skip to content

phc: deprecate PasswordHashString - #2112

Merged
tarcieri merged 1 commit into
masterfrom
phc/deprecate-password-hash-string
Dec 9, 2025
Merged

phc: deprecate PasswordHashString#2112
tarcieri merged 1 commit into
masterfrom
phc/deprecate-password-hash-string

Conversation

@tarcieri

@tarcieri tarcieri commented Dec 9, 2025

Copy link
Copy Markdown
Member

It was originally added because PasswordHash had a lifetime, so it provided an owned alternative. But now PasswordHash is fully owned (and also fully stack allocated, so no alloc dependency).

The suggested replacements are using PasswordHash if the goal was to have an owned password hash type, or String if the goal is to have a string representation of a PHC hash.

It was originally added because `PasswordHash` had a lifetime, so it
provided an owned alternative. But now `PasswordHash` is fully owned
(and also fully stack allocated, so no `alloc` dependency).

The suggested replacements are using `PasswordHash` if the goal was to
have an owned password hash type, or `String` if the goal is to have a
string representation of a PHC hash.
@tarcieri
tarcieri merged commit 90cb9fb into master Dec 9, 2025
11 checks passed
@tarcieri
tarcieri deleted the phc/deprecate-password-hash-string branch December 9, 2025 23:37
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