Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pbkdf2-hmac-sha256 for password hash #495

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

estheruary
Copy link

@estheruary estheruary commented Feb 21, 2025

Addresses #494

I know, golang.org/x/crypto/pbkdf2 isn't in the standard library in Go 1.22 but x/crypto is maintained by the Go core devs and it is in the stdlib as of Go 1.24.

While it is true 3rd party packages will have to update their code, I've seen it already wrong in the wild.

@mperham
Copy link
Collaborator

mperham commented Feb 21, 2025

Is this backwards compatible with existing clients?

@mperham
Copy link
Collaborator

mperham commented Feb 21, 2025

We'll need to add backwards compatibility, maybe with a version or hash algo prefix on the hex, e.g. "sha256:<hex>" to signal the server. If it's not there, we just use the original algo.

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