8000 minor #27371 Tweak Argon2 test config (ostrolucky) · symfony/symfony@402fc23 · GitHub
[go: up one dir, main page]

Skip to content

Commit 402fc23

Browse files
minor #27371 Tweak Argon2 test config (ostrolucky)
This PR was merged into the 4.1 branch. Discussion ---------- Tweak Argon2 test config | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Memory cost 8 seems to be lowest value accepted on my machine ``` Testing Symfony\Component\Security\Core\Tests\Encoder\Argon2iPasswordEncoderTest E.... 5 / 5 (100%) Time: 114 ms, Memory: 4.00MB There was 1 error: 1) Symfony\Component\Security\Core\Tests\Encoder\Argon2iPasswordEncoderTest::testValidationWithConfig password_hash(): Memory cost is outside of allowed memory range /home/gadelat/PhpstormProjects/symfony/src/Symfony/Component/Security/Core/Encoder/Argon2iPasswordEncoder.php:105 /home/gadelat/PhpstormProjects/symfony/src/Symfony/Component/Security/Core/Encoder/Argon2iPasswordEncoder.php:67 /home/gadelat/PhpstormProjects/symfony/src/Symfony/Component/Security/Core/Tests/Encoder/Argon2iPasswordEncoderTest.php:34 ``` Commits ------- 0e74f73 Tweak Argon2 test config
2 parents 930b960 + 0e74f73 commit 402fc23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Core/Tests/Encoder/Argon2iPasswordEncoderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function setUp()
3030

3131
public function testValidationWithConfig()
3232
{
33-
$encoder = new Argon2iPasswordEncoder(4, 4, 1);
33+
$encoder = new Argon2iPasswordEncoder(8, 4, 1);
3434
$result = $encoder->encodePassword(self::PASSWORD, null);
3535
$this->assertTrue($encoder->isPasswordValid($result, self::PASSWORD, null));
3636
$this->assertFalse($encoder->isPasswordValid($result, 'anotherPassword', null));

0 commit comments

Comments
 (0)
0