ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Static Public Member Functions | |
static | costsProvider () |
Private Attributes | |
const string | VALID_COSTS = '08' |
const string | PASSWORD = 'password' |
const string | WRONG_PASSWORD = 'wrong_password' |
Definition at line 25 of file ilBcryptPhpPasswordEncoderTest.php.
|
static |
Definition at line 34 of file ilBcryptPhpPasswordEncoderTest.php.
References $data.
ilBcryptPhpPasswordEncoderTest::testCostsCanBeDeterminedDynamically | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 125 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\benchmarkCost().
ilBcryptPhpPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 59 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getCosts(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testCostsCanBeSetInRange | ( | string | $costs, |
ilBcryptPhpPasswordEncoder | $encoder | ||
) |
Definition at line 84 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 68 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 75 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testEncoderDoesNotRelyOnSalts | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 138 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBasePasswordEncoder\requiresSalt().
ilBcryptPhpPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 102 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\encodePassword(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 44 of file ilBcryptPhpPasswordEncoderTest.php.
References ILIAS\Repository\int().
ilBcryptPhpPasswordEncoderTest::testNameShouldBeBcryptPhp | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 119 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getName().
ilBcryptPhpPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 90 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\encodePassword(), ilBcryptPhpPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 111 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testReencodingIsDetectedWhenNecessary | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
Definition at line 144 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\encodePassword(), ilBcryptPhpPasswordEncoder\requiresReencoding(), and ilBcryptPhpPasswordEncoder\setCosts().
|
private |
Definition at line 28 of file ilBcryptPhpPasswordEncoderTest.php.
|
private |
Definition at line 27 of file ilBcryptPhpPasswordEncoderTest.php.
|
private |
Definition at line 29 of file ilBcryptPhpPasswordEncoderTest.php.