Skip to content

Use hash_equals for constant-time string comparison#7754

Closed
zero-24 wants to merge 2 commits intojoomla:stagingfrom
zero-24:hash_equals
Closed

Use hash_equals for constant-time string comparison#7754
zero-24 wants to merge 2 commits intojoomla:stagingfrom
zero-24:hash_equals

Conversation

@zero-24
Copy link
Copy Markdown
Contributor

@zero-24 zero-24 commented Aug 23, 2015

This PR fixes the Codestyle Issues and replaces: #4206 add kudos goes to @dunglas

@committer please mention @dunglas on commit. Thanks


Use the hash_equals function (introduced in PHP 5.6) for timing attack safe string comparison when available.
Add in the DocBlock that length will leak (see php/php-src#792).

@zero-24
Copy link
Copy Markdown
Contributor Author

zero-24 commented Oct 17, 2015

Closing because there is no interest. :(

@zero-24 zero-24 closed this Oct 17, 2015
@zero-24 zero-24 deleted the hash_equals branch October 17, 2015 22:37
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