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

[SECURITY]: Store Password as Salted Hash #233

Open
explocion opened this issue Jan 8, 2025 · 0 comments
Open

[SECURITY]: Store Password as Salted Hash #233

explocion opened this issue Jan 8, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@explocion
Copy link

Is your feature request related to a problem? Please describe.
Store the password as salted hash instead of plantext in the database.

Describe the solution you'd like
Modify the database model User so that it has 3 fields: username, salt, and salted password hash using a safe password hashing algorithm (e.g. Argon2id). The authentication process is fetch the salt and salted hash using the username, compute the hash again using user password input, and finally compare whether the hashes match.

Describe alternatives you've considered
N/A.

Additional context
Go Argon2

@explocion explocion added the enhancement New feature or request label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant