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

Public Member Functions

 constructorThrowsExceptionIfHashCountIsTooLow ()
 
 constructorThrowsExceptionIfHashCountIsTooHigh ()
 
 getHashedPasswordWithEmptyPasswordResultsInNullSaltedPassword ()
 
 getHashedPasswordWithNonEmptyPasswordResultsInNonNullSaltedPassword ()
 
 getHashedPasswordValidates ()
 
 checkPasswordReturnsTrueWithValidAlphaCharClassPasswordAndFixedHash ()
 
 checkPasswordReturnsFalseFailsWithBrokenHash ()
 
 checkPasswordReturnsTrueWithValidAlphaCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidNumericCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidAsciiSpecialCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidLatin1SpecialCharClassPassword ()
 
 checkPasswordReturnsReturnsTrueWithValidLatin1UmlautCharClassPassword ()
 
 checkPasswordReturnsFalseWithNonValidPassword ()
 
 isHashUpdateNeededReturnsFalseForValidSaltedPassword ()
 
 isHashUpdateNeededReturnsTrueForHashGeneratedWithOldOptions ()
 

Detailed Description

Test case

Definition at line 26 of file BlowfishPasswordHashTest.php.

Member Function Documentation

◆ checkPasswordReturnsFalseFailsWithBrokenHash()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BlowfishPasswordHashTest::checkPasswordReturnsFalseFailsWithBrokenHash ( )

Tests that authentication procedure fails with broken hash to compare to

Test:

Definition at line 97 of file BlowfishPasswordHashTest.php.

◆ checkPasswordReturnsFalseWithNonValidPassword()

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

Definition at line 200 of file BlowfishPasswordHashTest.php.

◆ checkPasswordReturnsReturnsTrueWithValidLatin1UmlautCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BlowfishPasswordHashTest::checkPasswordReturnsReturnsTrueWithValidLatin1UmlautCharClassPassword ( )

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 180 of file BlowfishPasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidAlphaCharClassPassword()

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

◆ checkPasswordReturnsTrueWithValidAlphaCharClassPasswordAndFixedHash()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BlowfishPasswordHashTest::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 BlowfishPasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidAsciiSpecialCharClassPassword()

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

◆ checkPasswordReturnsTrueWithValidLatin1SpecialCharClassPassword()

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

◆ checkPasswordReturnsTrueWithValidNumericCharClassPassword()

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

◆ constructorThrowsExceptionIfHashCountIsTooHigh()

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

Definition at line 41 of file BlowfishPasswordHashTest.php.

◆ constructorThrowsExceptionIfHashCountIsTooLow()

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

Definition at line 31 of file BlowfishPasswordHashTest.php.

◆ getHashedPasswordValidates()

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

Definition at line 69 of file BlowfishPasswordHashTest.php.

◆ getHashedPasswordWithEmptyPasswordResultsInNullSaltedPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BlowfishPasswordHashTest::getHashedPasswordWithEmptyPasswordResultsInNullSaltedPassword ( )
Test:

Definition at line 51 of file BlowfishPasswordHashTest.php.

◆ getHashedPasswordWithNonEmptyPasswordResultsInNonNullSaltedPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BlowfishPasswordHashTest::getHashedPasswordWithNonEmptyPasswordResultsInNonNullSaltedPassword ( )
Test:

Definition at line 60 of file BlowfishPasswordHashTest.php.

◆ isHashUpdateNeededReturnsFalseForValidSaltedPassword()

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

Definition at line 212 of file BlowfishPasswordHashTest.php.

◆ isHashUpdateNeededReturnsTrueForHashGeneratedWithOldOptions()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BlowfishPasswordHashTest::isHashUpdateNeededReturnsTrueForHashGeneratedWithOldOptions ( )
Test:

Definition at line 223 of file BlowfishPasswordHashTest.php.