We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hmac_equals
Hi @soatok,
Foremost, amazing blog and library. You provide some great resources for understanding cryptography better!
I'm curious, from your blog post about "Double HMAC Validation", the PHP code snippet uses === (tripple string comparison).
===
However, in this POC library, you're using bitwise comparison to compare both HMAC's.
Is there any specific reason for this?
(p.s. Keep up the good work :) )
The text was updated successfully, but these errors were encountered:
Either solution is effective on its own, but if I was lazy and used === , someone might have reported it as a bug.
Sorry, something went wrong.
No branches or pull requests
Hi @soatok,
Foremost, amazing blog and library. You provide some great resources for understanding cryptography better!
I'm curious, from your blog post about "Double HMAC Validation", the PHP code snippet uses
===
(tripple string comparison).However, in this POC library, you're using bitwise comparison to compare both HMAC's.
Is there any specific reason for this?
(p.s. Keep up the good work :) )
The text was updated successfully, but these errors were encountered: