-
Notifications
You must be signed in to change notification settings - Fork 6k
Allow upgrading between different BCrypt encodings #7042
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
Allow upgrading between different BCrypt encodings #7042
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @larsgrefer! I have provided comments inline
...to/src/main/java/org/springframework/security/crypto/password/DelegatingPasswordEncoder.java
Show resolved
Hide resolved
crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCryptPasswordEncoder.java
Show resolved
Hide resolved
I'm not sure what the default behavior for invalid inputs should be.
The default of How should |
Good question @larsgrefer
|
07130ee
to
1e05294
Compare
Thanks for the updates @larsgrefer. It appears that the tests fail.
|
1e05294
to
f96bcd3
Compare
f96bcd3
to
a875499
Compare
@rwinch The tests are fixed now |
Thanks for all your work on this PR @larsgrefer! This is now merged into master via d3d6a87 I added a little polish to the tests via 742df2c |
This will allow the upgradeEncoding mechanism to upgrade from a lower-strength bcrypt to a higher-strength bcrypt encoding.