‪TYPO3CMS  11.5
TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest:

Public Member Functions

 constructorThrowsExceptionIfHashCountIsTooLow ()
 
 constructorThrowsExceptionIfHashCountIsTooHigh ()
 
 getHashedPasswordReturnsNullWithEmptyPassword ()
 
 getHashedPasswordReturnsNotNullWithNotEmptyPassword ()
 
 getHashedPasswordValidates ()
 
 checkPasswordReturnsTrueWithValidAlphaCharClassPasswordAndFixedHash ()
 
 checkPasswordReturnsFalseWithBrokenHash ()
 
 checkPasswordReturnsTrueWithValidAlphaCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidNumericCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidAsciiSpecialCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidLatin1SpecialCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidLatin1UmlautCharClassPassword ()
 
 checkPasswordReturnsFalseWithNonValidPassword ()
 
 isHashUpdateNeededReturnsFalseForValidSaltedPassword ()
 
 isHashUpdateNeededReturnsFalseForChangedHashCountSaltedPassword ()
 

Detailed Description

Test case

Definition at line 26 of file PhpassPasswordHashTest.php.

Member Function Documentation

◆ checkPasswordReturnsFalseWithBrokenHash()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::checkPasswordReturnsFalseWithBrokenHash ( )

Tests that authentication procedure fails with broken hash to compare to

Test:

Definition at line 98 of file PhpassPasswordHashTest.php.

◆ checkPasswordReturnsFalseWithNonValidPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::checkPasswordReturnsFalseWithNonValidPassword ( )
Test:

Definition at line 202 of file PhpassPasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidAlphaCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::checkPasswordReturnsTrueWithValidAlphaCharClassPassword ( )

Tests authentication procedure with alphabet characters.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 114 of file PhpassPasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidAlphaCharClassPasswordAndFixedHash()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::checkPasswordReturnsTrueWithValidAlphaCharClassPasswordAndFixedHash ( )

Tests authentication procedure with fixed password and fixed (pre-generated) hash.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same fixed salt.

Test:

Definition at line 85 of file PhpassPasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidAsciiSpecialCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::checkPasswordReturnsTrueWithValidAsciiSpecialCharClassPassword ( )

Tests authentication procedure with US-ASCII special characters.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 146 of file PhpassPasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidLatin1SpecialCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::checkPasswordReturnsTrueWithValidLatin1SpecialCharClassPassword ( )

Tests authentication procedure with latin1 special characters.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 162 of file PhpassPasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidLatin1UmlautCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::checkPasswordReturnsTrueWithValidLatin1UmlautCharClassPassword ( )

Tests authentication procedure with latin1 umlauts.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 182 of file PhpassPasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidNumericCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::checkPasswordReturnsTrueWithValidNumericCharClassPassword ( )

Tests authentication procedure with numeric characters.

Checks if a "plain-text password" is every time mapped to the same "salted password hash" when using the same salt.

Test:

Definition at line 130 of file PhpassPasswordHashTest.php.

◆ constructorThrowsExceptionIfHashCountIsTooHigh()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::constructorThrowsExceptionIfHashCountIsTooHigh ( )
Test:

Definition at line 41 of file PhpassPasswordHashTest.php.

◆ constructorThrowsExceptionIfHashCountIsTooLow()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::constructorThrowsExceptionIfHashCountIsTooLow ( )
Test:

Definition at line 31 of file PhpassPasswordHashTest.php.

◆ getHashedPasswordReturnsNotNullWithNotEmptyPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::getHashedPasswordReturnsNotNullWithNotEmptyPassword ( )
Test:

Definition at line 60 of file PhpassPasswordHashTest.php.

◆ getHashedPasswordReturnsNullWithEmptyPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::getHashedPasswordReturnsNullWithEmptyPassword ( )
Test:

Definition at line 51 of file PhpassPasswordHashTest.php.

◆ getHashedPasswordValidates()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::getHashedPasswordValidates ( )
Test:

Definition at line 69 of file PhpassPasswordHashTest.php.

◆ isHashUpdateNeededReturnsFalseForChangedHashCountSaltedPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::isHashUpdateNeededReturnsFalseForChangedHashCountSaltedPassword ( )
Test:

Definition at line 225 of file PhpassPasswordHashTest.php.

◆ isHashUpdateNeededReturnsFalseForValidSaltedPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\PhpassPasswordHashTest::isHashUpdateNeededReturnsFalseForValidSaltedPassword ( )
Test:

Definition at line 214 of file PhpassPasswordHashTest.php.