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

bugfix: fixed wrong calculation of hash length #1

Merged
merged 1 commit into from
Nov 22, 2015

Conversation

aurora
Copy link
Contributor

@aurora aurora commented Nov 22, 2015

This library is really cool, i discovered just one issue:

If you call hash_pbkdf2 with default raw_output = false, than the resulting hash is not compatible to the hash created with the internal function hash_pbkdf2 in newer php, because you calculate the hash length always with raw_output = true.

I stumbled over this issue after creating a bunch of hashes using php-5.6.1 and wanting to use those hashes on an older machine having your compat library installed.

rchouinard added a commit that referenced this pull request Nov 22, 2015
bugfix: fixed wrong calculation of hash length
@rchouinard rchouinard merged commit 221c967 into rchouinard:master Nov 22, 2015
rchouinard added a commit that referenced this pull request Nov 22, 2015
This commit looks bigger than it is. Most of the changes are cosmetic,
although the function body has changed to better simulate the error
conditions and messages of the built-in function found in PHP >=5.5.

Other changes are listed below:
 - Add LICENSE.md file
 - Update phpunit development dependency
 - Update tests to check for proper error handling
 - Update tests to check for the conditions of PR #1
 - Add docblocks compatible with the built-in function
 - Minor changes to git and travis configurations
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.

None yet

2 participants