-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Allow to stick to a specific password hashing algorithm #34020
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
Conversation
9fe4347
to
d18baac
Compare
Some tests are failing |
6b03279
to
7f049a1
Compare
Got it, the |
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.
How can one configure a migrating encoder that uses bcrypt as the main one? I think that should be the main supported use case here.
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/Tests/Functional/UserPasswordEncoderCommandTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/Tests/Functional/UserPasswordEncoderCommandTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Core/Encoder/NativePasswordEncoder.php
Outdated
Show resolved
Hide resolved
3e7cef8
to
3d3f2d4
Compare
@nicolas-grekas Now possible via a new encoder option: encoders:
App\User:
algorithm: argon2id
migrating_from: bcrypt # or ['bcrypt, 'argon2i'] Comments addressed also, thanks. |
3d3f2d4
to
0e7fbcb
Compare
ce7a6b7
to
0641859
Compare
Migrations related part moved to #34139 |
2cdadfe
to
6f12f71
Compare
6f12f71
to
6712d1e
Compare
Thank you @chalasr. |
…ng algorithm (chalasr) This PR was merged into the 4.4 branch. Discussion ---------- [Security] Allow to stick to a specific password hashing algorithm | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #33054 | License | MIT | Doc PR | todo Allows using `argon2i`, `argon2id` and `bcrypt`. Commits ------- 6712d1e [Security] Allow to set a fixed algorithm
Allows using
argon2i
,argon2id
andbcrypt
.