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

Public Member Functions

 getHashedPasswordReturnsNullWithEmptyPassword ()
 
 getHashedPasswordReturnsNotNullWithNonEmptyPassword ()
 
 getHashedPasswordCreatesAHashThatValidates ()
 
 checkPasswordReturnsTrueWithValidAlphaCharClassPasswordAndFixedHash ()
 
 checkPasswordReturnsFalseWithBrokenHash ()
 
 checkPasswordReturnsTrueWithValidAlphaCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidNumericCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidAsciiSpecialCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidLatin1SpecialCharClassPassword ()
 
 checkPasswordReturnsTrueWithValidLatin1UmlautCharClassPassword ()
 
 checkPasswordReturnsFalseWithNonValidPassword ()
 
 isHashUpdateNeededReturnsFalse ()
 

Detailed Description

Test case

Definition at line 26 of file Md5PasswordHashTest.php.

Member Function Documentation

◆ checkPasswordReturnsFalseWithBrokenHash()

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

Tests that authentication procedure fails with broken hash to compare to

Test:

Definition at line 75 of file Md5PasswordHashTest.php.

◆ checkPasswordReturnsFalseWithNonValidPassword()

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

Definition at line 178 of file Md5PasswordHashTest.php.

◆ checkPasswordReturnsTrueWithValidAlphaCharClassPassword()

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

◆ checkPasswordReturnsTrueWithValidAlphaCharClassPasswordAndFixedHash()

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

◆ checkPasswordReturnsTrueWithValidAsciiSpecialCharClassPassword()

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

◆ checkPasswordReturnsTrueWithValidLatin1SpecialCharClassPassword()

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

◆ checkPasswordReturnsTrueWithValidLatin1UmlautCharClassPassword()

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

◆ checkPasswordReturnsTrueWithValidNumericCharClassPassword()

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

◆ getHashedPasswordCreatesAHashThatValidates()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Md5PasswordHashTest::getHashedPasswordCreatesAHashThatValidates ( )
Test:

Definition at line 47 of file Md5PasswordHashTest.php.

◆ getHashedPasswordReturnsNotNullWithNonEmptyPassword()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Md5PasswordHashTest::getHashedPasswordReturnsNotNullWithNonEmptyPassword ( )
Test:

Definition at line 39 of file Md5PasswordHashTest.php.

◆ getHashedPasswordReturnsNullWithEmptyPassword()

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

Definition at line 31 of file Md5PasswordHashTest.php.

◆ isHashUpdateNeededReturnsFalse()

TYPO3\CMS\Core\Tests\Unit\Crypto\PasswordHashing\Md5PasswordHashTest::isHashUpdateNeededReturnsFalse ( )
Test:

Definition at line 190 of file Md5PasswordHashTest.php.