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

Public Member Functions

 constructorThrowsExceptionIfHashCountIsTooLow ()
 
 constructorThrowsExceptionIfHashCountIsTooHigh ()
 
 getHashedPasswordReturnsNullWithEmptyPassword ()
 
 getHashedPasswordReturnsNotNullWithNullPassword ()
 
 getHashedPasswordValidates ()
 
 checkPasswordReturnsTrueWithValidAlphaCharClassPasswordAndFixedHash ()
 
 checkPasswordReturnsFalseWithBrokenHash ()
 
 checkPasswordReturnsTrueWithValidAlphaCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidNumericCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidAsciiSpecialCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidLatin1SpecialCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidLatin1UmlautCharClassPassword ()
 
 checkPasswordReturnsFalseWithNonValidPassword ()
 
 isHashUpdateNeededReturnsFalseForValidSaltedPassword ()
 
 isHashUpdateNeededReturnsTrueWithChangedHashCount ()
 
 checkPasswordIsCompatibleWithPythonPasslibHashes ()
 

Detailed Description

Test case

Definition at line 26 of file Pbkdf2PasswordHashTest.php.

Member Function Documentation

◆ checkPasswordIsCompatibleWithPythonPasslibHashes()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Pbkdf2PasswordHashTest::checkPasswordIsCompatibleWithPythonPasslibHashes ( )
Test:

Definition at line 238 of file Pbkdf2PasswordHashTest.php.

◆ checkPasswordReturnsFalseWithBrokenHash()

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

Tests that authentication procedure fails with broken hash to compare to

Test:

Definition at line 100 of file Pbkdf2PasswordHashTest.php.

◆ checkPasswordReturnsFalseWithNonValidPassword()

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

Definition at line 204 of file Pbkdf2PasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidAlphaCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Pbkdf2PasswordHashTest::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 116 of file Pbkdf2PasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidAlphaCharClassPasswordAndFixedHash()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Pbkdf2PasswordHashTest::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 87 of file Pbkdf2PasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidAsciiSpecialCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Pbkdf2PasswordHashTest::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 148 of file Pbkdf2PasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidLatin1SpecialCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Pbkdf2PasswordHashTest::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 164 of file Pbkdf2PasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidLatin1UmlautCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Pbkdf2PasswordHashTest::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 184 of file Pbkdf2PasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidNumericCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Pbkdf2PasswordHashTest::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 132 of file Pbkdf2PasswordHashTest.php.

◆ constructorThrowsExceptionIfHashCountIsTooHigh()

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

Definition at line 41 of file Pbkdf2PasswordHashTest.php.

◆ constructorThrowsExceptionIfHashCountIsTooLow()

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

Definition at line 31 of file Pbkdf2PasswordHashTest.php.

◆ getHashedPasswordReturnsNotNullWithNullPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Pbkdf2PasswordHashTest::getHashedPasswordReturnsNotNullWithNullPassword ( )
Test:

Definition at line 61 of file Pbkdf2PasswordHashTest.php.

◆ getHashedPasswordReturnsNullWithEmptyPassword()

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

Definition at line 51 of file Pbkdf2PasswordHashTest.php.

◆ getHashedPasswordValidates()

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

Definition at line 71 of file Pbkdf2PasswordHashTest.php.

◆ isHashUpdateNeededReturnsFalseForValidSaltedPassword()

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

Definition at line 216 of file Pbkdf2PasswordHashTest.php.

◆ isHashUpdateNeededReturnsTrueWithChangedHashCount()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Pbkdf2PasswordHashTest::isHashUpdateNeededReturnsTrueWithChangedHashCount ( )
Test:

Definition at line 227 of file Pbkdf2PasswordHashTest.php.