Skip to content

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Apr 7, 2019

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #28093
License MIT
Doc PR TODO

Currently we have a Argon2iPasswordEncoder that may hash passwords using argon2id instead of argon2i (platform-dependent) which is not good.
This deprecates producing/validating argon2id hashed passwords using the Argon2iPasswordEncoder, and adds a Argon2idPasswordEncoder able to produce/validate argon2id hashed passwords only.

#EUFOSSA

@fabpot
Copy link
Member

fabpot commented Apr 8, 2019

Thank you @chalasr.

@fabpot fabpot merged commit 0c82173 into symfony:master Apr 8, 2019
fabpot added a commit that referenced this pull request Apr 8, 2019
This PR was merged into the 4.3-dev branch.

Discussion
----------

[Security] Add Argon2idPasswordEncoder

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #28093
| License       | MIT
| Doc PR        | TODO

Currently we have a `Argon2iPasswordEncoder` that may hash passwords using `argon2id` instead of `argon2i` (platform-dependent) which is not good.
This deprecates producing/validating `argon2id` hashed passwords using the `Argon2iPasswordEncoder`, and adds a `Argon2idPasswordEncoder` able to produce/validate `argon2id` hashed passwords only.

#EUFOSSA

Commits
-------

0c82173 [Security] Add Argon2idPasswordEncoder
@chalasr chalasr deleted the argon2id branch April 8, 2019 14:42
public function testEncodersWithArgon2id()
{
if (!Argon2idPasswordEncoder::isSupported()) {
$this->markTestSkipped('Argon2i algorithm is not supported.');
Copy link

@bigfoot90 bigfoot90 Apr 10, 2019

Choose a reason for hiding this comment

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

Argon2id algorithm is not supported.

@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
@fabpot fabpot mentioned this pull request May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants