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 hmac.compare_digest if available #1457

Merged
merged 1 commit into from
Nov 17, 2014
Merged

Conversation

mmerickel
Copy link
Member

I stole most of this code from webob where I had previously added it. Improved the testing situation however.

Pretty annoying that this is strings_differ and not constant_time_compare, considering it returns False when strings are the same. Very counter-intuitive.

@mmerickel mmerickel force-pushed the feature.string-timing-attacks branch from 582c391 to 18cf73a Compare November 17, 2014 05:12
@mmerickel mmerickel force-pushed the feature.string-timing-attacks branch from 18cf73a to 716a20f Compare November 17, 2014 05:13
@tseaver
Copy link
Member

tseaver commented Nov 17, 2014

LGTM.

@mmerickel
Copy link
Member Author

Thank you for reviewing, Tres.

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