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
otpauth/src/otpauth/rfc6238.py
Line 43 in 22368eb
hmac.compare_digest() accepts either str or bytes and python doc says it should be used to lower the risk of timing attacks.
But what's the purpose of creating potentially large bytes objects initialized with null bytes ?
Shouldn't be simply the strings of the codes be compared ?
The text was updated successfully, but these errors were encountered:
Oh, you are right. This is certainly a wrong way. You're welcome to send a PR.
Sorry, something went wrong.
2.1.1 released
No branches or pull requests
otpauth/src/otpauth/rfc6238.py
Line 43 in 22368eb
hmac.compare_digest() accepts either str or bytes and python doc says it should be used to lower the risk of timing attacks.
But what's the purpose of creating potentially large bytes objects initialized with null bytes ?
Shouldn't be simply the strings of the codes be compared ?
The text was updated successfully, but these errors were encountered: