Password test : Blowfish has now more than 24 chars length

This commit is contained in:
2023-04-13 22:10:34 +02:00
parent 8fbd8da199
commit b017700d0a

View File

@@ -75,7 +75,7 @@ class PasswordTest extends \PHPUnit_Framework_TestCase
$password = new password(); $password = new password();
$res = $password->cryptPassword("AAA", "CRYPT_BLOWFISH"); $res = $password->cryptPassword("AAA", "CRYPT_BLOWFISH");
$this->assertSame( $this->assertSame(
substr($res, 0, 4) === "$2y$" && strlen($res) === 24, substr($res, 0, 4) === "$2y$" && strlen($res) > 24,
true true
); );
} }