Skip to content

Add Argon2PasswordEncoder - #7045

Merged
rwinch merged 1 commit into
masterfrom
unknown repository
Aug 5, 2019
Merged

rwinch merged 1 commit into
masterfrom
unknown repository

Conversation

@simmac

@simmac simmac commented Jun 27, 2019

Copy link
Copy Markdown
Contributor

Add PasswordEncoder for the Argon2 hashing algorithm (Password Hashing
Competition (PHC) winner).
This implementation uses the BouncyCastle-implementation of Argon2.

Fixes gh-5354

@pivotal-issuemaster

Copy link
Copy Markdown

@simmac Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster

Copy link
Copy Markdown

@simmac Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 27, 2019
@simmac simmac closed this Jun 27, 2019
@simmac simmac reopened this Jun 27, 2019

@rwinch rwinch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @simmac! I have provided some minor comments inline.

@larsgrefer

Copy link
Copy Markdown
Contributor

How about also implementing upgradeEncoding in the spirit of #7057 and #7042 ?

@rwinch rwinch added status: waiting-for-feedback We need additional information before we can continue in: crypto An issue in spring-security-crypto type: enhancement A general enhancement status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 3, 2019
@simmac

simmac commented Jul 21, 2019

Copy link
Copy Markdown
Contributor Author

sorry for the delay.
I worked in all your feedback and implemented @larsgrefer's suggestion (thank you!) :)

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jul 21, 2019
@rwinch

rwinch commented Jul 26, 2019

Copy link
Copy Markdown
Member

The code looks great now. One last request. Can you please add some documentation in https://github.com/spring-projects/spring-security/blob/c05b0765c1741eaaa237ed58cb72cd57385a173a/docs/manual/src/docs/asciidoc/_includes/servlet/architecture/password-encoder.adoc#bcryptpasswordencoder Please:

  • place below bcrypt
  • follow the same outline as bcrypt
  • mention the password hashing competition
  • mention that it requires bouncy castle.

Add PasswordEncoder for the Argon2 hashing algorithm (Password Hashing
Competition (PHC) winner).
This implementation uses the BouncyCastle-implementation of Argon2.

Fixes gh-5354
@simmac

simmac commented Jul 28, 2019

Copy link
Copy Markdown
Contributor Author

Done @rwinch, hope this is sufficient

@rwinch rwinch removed the status: feedback-provided Feedback has been provided label Aug 5, 2019
@rwinch rwinch self-assigned this Aug 5, 2019
@rwinch rwinch added this to the 5.2.0.RC1 milestone Aug 5, 2019
@rwinch
rwinch merged commit b3da1e4 into spring-projects:master Aug 5, 2019
@rwinch

rwinch commented Aug 5, 2019

Copy link
Copy Markdown
Member

Thanks for all your hard work on this @simmac! This is now in master

@relsayed8205

Copy link
Copy Markdown

Hi,
I have a small question:
Why is the BouncyCastle dependency not added to the maven central repository by default? One have to state it explicitly in their pom.xml, which seems strange, as using maven should automate retrieving all dependencies.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: crypto An issue in spring-security-crypto status: duplicate A duplicate of another issue type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Argon2PasswordEncoder

6 participants