Skip to content

needsRehash method #67

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

Merged
merged 3 commits into from
Dec 17, 2019
Merged

needsRehash method #67

merged 3 commits into from
Dec 17, 2019

Conversation

sephiroth-j
Copy link
Contributor

fixes #56

New method needsRehash(String, int, int, int) that checks if the given hash matches the given options. If the method returns true, the verified password should be rehashed and updated with the new hash.

Inspired by PHP's password_needs_rehash

…ven hash matches the given options.

If the method returns `true`, the verified password should be rehashed and updated with the new hash.

Inspired by PHP's `password_needs_rehash`
@phxql phxql self-requested a review December 12, 2019 07:25
@phxql phxql self-assigned this Dec 12, 2019
@phxql phxql merged commit 6893a33 into phxql:develop Dec 17, 2019
@phxql
Copy link
Owner

phxql commented Dec 17, 2019

Thanks for your contribution, much appreciated! :)

@sephiroth-j sephiroth-j deleted the feature/needs-rehash branch December 25, 2019 14:15
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