‪TYPO3CMS  11.5
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 164 of file BcryptPasswordHashTest.php.

◆ checkPasswordReturnsTrueForHashedPasswordWithValidAlphaCharClassPassword()

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

Tests authentication procedure with alphabet characters.

Test:

Definition at line 95 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 119 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 131 of file BcryptPasswordHashTest.php.

◆ checkPasswordReturnsTrueForHashedPasswordWithValidLatin1UmlautCharClassPassword()

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

Tests authentication procedure with latin1 umlauts.

Test:

Definition at line 147 of file BcryptPasswordHashTest.php.

◆ checkPasswordReturnsTrueForHashedPasswordWithValidNumericCharClassPassword()

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

Tests authentication procedure with numeric characters.

Test:

Definition at line 107 of file BcryptPasswordHashTest.php.

◆ constructorThrowsExceptionIfMemoryCostIsTooHigh()

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

Definition at line 56 of file BcryptPasswordHashTest.php.

◆ constructorThrowsExceptionIfMemoryCostIsTooLow()

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

Definition at line 46 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 210 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 197 of file BcryptPasswordHashTest.php.

◆ getHashedPasswordReturnsNullOnEmptyPassword()

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

Definition at line 66 of file BcryptPasswordHashTest.php.

◆ getHashedPasswordReturnsString()

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

Definition at line 74 of file BcryptPasswordHashTest.php.

◆ isHashUpdateNeededReturnsFalseForJustGeneratedHash()

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

Definition at line 175 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 84 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 33 of file BcryptPasswordHashTest.php.

Member Data Documentation

◆ $subject

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