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

Public Member Functions

 constructorThrowsExceptionIfMemoryCostIsTooLow ()
 
 constructorThrowsExceptionIfMemoryCostIsTooHigh ()
 
 getHashedPasswordReturnsNullOnEmptyPassword ()
 
 getHashedPasswordReturnsString ()
 
 isValidSaltedPwValidatesHastCreatedByGetHashedPassword ()
 
 checkPasswordReturnsTrueForHashedPasswordWithValidAlphaCharClassPassword ()
 
 checkPasswordReturnsTrueForHashedPasswordWithValidNumericCharClassPassword ()
 
 checkPasswordReturnsTrueForHashedPasswordWithValidAsciiSpecialCharClassPassword ()
 
 checkPasswordReturnsTrueForHashedPasswordWithValidLatin1SpecialCharClassPassword ()
 
 checkPasswordReturnsTrueForHashedPasswordWithValidLatin1UmlautCharClassPassword ()
 
 checkPasswordReturnsTrueForHashedPasswordWithNonValidPassword ()
 
 isHashUpdateNeededReturnsFalseForJustGeneratedHash ()
 
 isHashUpdateNeededReturnsTrueForHashGeneratedWithOldOptions ()
 
 getHashedPasswordDoesNotTruncateOnNul ()
 
 getHashedPasswordDoesNotTruncateAfter72Chars ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

BcryptPasswordHash $subject
 

Detailed Description

Test case

Definition at line 26 of file BcryptPasswordHashTest.php.

Member Function Documentation

◆ checkPasswordReturnsTrueForHashedPasswordWithNonValidPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::checkPasswordReturnsTrueForHashedPasswordWithNonValidPassword ( )
Test:

Definition at line 166 of file BcryptPasswordHashTest.php.

◆ checkPasswordReturnsTrueForHashedPasswordWithValidAlphaCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::checkPasswordReturnsTrueForHashedPasswordWithValidAlphaCharClassPassword ( )

Tests authentication procedure with alphabet characters.

Test:

Definition at line 97 of file BcryptPasswordHashTest.php.

◆ checkPasswordReturnsTrueForHashedPasswordWithValidAsciiSpecialCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::checkPasswordReturnsTrueForHashedPasswordWithValidAsciiSpecialCharClassPassword ( )

Tests authentication procedure with US-ASCII special characters.

Test:

Definition at line 121 of file BcryptPasswordHashTest.php.

◆ checkPasswordReturnsTrueForHashedPasswordWithValidLatin1SpecialCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::checkPasswordReturnsTrueForHashedPasswordWithValidLatin1SpecialCharClassPassword ( )

Tests authentication procedure with latin1 special characters.

Test:

Definition at line 133 of file BcryptPasswordHashTest.php.

◆ checkPasswordReturnsTrueForHashedPasswordWithValidLatin1UmlautCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::checkPasswordReturnsTrueForHashedPasswordWithValidLatin1UmlautCharClassPassword ( )

Tests authentication procedure with latin1 umlauts.

Test:

Definition at line 149 of file BcryptPasswordHashTest.php.

◆ checkPasswordReturnsTrueForHashedPasswordWithValidNumericCharClassPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::checkPasswordReturnsTrueForHashedPasswordWithValidNumericCharClassPassword ( )

Tests authentication procedure with numeric characters.

Test:

Definition at line 109 of file BcryptPasswordHashTest.php.

◆ constructorThrowsExceptionIfMemoryCostIsTooHigh()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::constructorThrowsExceptionIfMemoryCostIsTooHigh ( )
Test:

Definition at line 58 of file BcryptPasswordHashTest.php.

◆ constructorThrowsExceptionIfMemoryCostIsTooLow()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::constructorThrowsExceptionIfMemoryCostIsTooLow ( )
Test:

Definition at line 48 of file BcryptPasswordHashTest.php.

◆ getHashedPasswordDoesNotTruncateAfter72Chars()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::getHashedPasswordDoesNotTruncateAfter72Chars ( )

Bcrypt truncates after 72 characters by default

Test:

Definition at line 212 of file BcryptPasswordHashTest.php.

◆ getHashedPasswordDoesNotTruncateOnNul()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::getHashedPasswordDoesNotTruncateOnNul ( )

Bcrypt truncates on NUL characters by default

Test:

Definition at line 199 of file BcryptPasswordHashTest.php.

◆ getHashedPasswordReturnsNullOnEmptyPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::getHashedPasswordReturnsNullOnEmptyPassword ( )
Test:

Definition at line 68 of file BcryptPasswordHashTest.php.

◆ getHashedPasswordReturnsString()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::getHashedPasswordReturnsString ( )
Test:

Definition at line 76 of file BcryptPasswordHashTest.php.

◆ isHashUpdateNeededReturnsFalseForJustGeneratedHash()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::isHashUpdateNeededReturnsFalseForJustGeneratedHash ( )
Test:

Definition at line 177 of file BcryptPasswordHashTest.php.

◆ isHashUpdateNeededReturnsTrueForHashGeneratedWithOldOptions()

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

◆ isValidSaltedPwValidatesHastCreatedByGetHashedPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::isValidSaltedPwValidatesHastCreatedByGetHashedPassword ( )
Test:

Definition at line 86 of file BcryptPasswordHashTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::setUp ( )
protected

Sets up the fixtures for this testcase.

Definition at line 35 of file BcryptPasswordHashTest.php.

Member Data Documentation

◆ $subject

BcryptPasswordHash TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\BcryptPasswordHashTest::$subject
protected