-
-
Notifications
You must be signed in to change notification settings - Fork 964
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
Argon2id hash matching issue #1175
Comments
Interesting, this needs to be reported to golang/go with a |
The problem is that I will submit a PR with a fix later today |
fixed in #1169 |
Thank you @seremenko-wish :) |
Describe the bug
hash.Argon2.Compare
successfully matches password with slightly modified hashes.Unit test that is not expected to fail (last characters in the second and third tests were changed):
Results of the test:
Reproducing the bug
Add this test to
hash/hasher_test.go
and run it.Expected behavior
Test should pass
Environment
Git commit
33c5f6bf
/master
branchAdditional context
I used https://argon2.online/ service to validate my findings. It shows that only the hash from the first test case matches the password. The second and third don't match.
The text was updated successfully, but these errors were encountered: