‪TYPO3CMS  9.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 24 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 73 of file Md5PasswordHashTest.php.

◆ checkPasswordReturnsFalseWithNonValidPassword()

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

Definition at line 176 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 88 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 61 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 120 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 136 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 156 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 104 of file Md5PasswordHashTest.php.

◆ getHashedPasswordCreatesAHashThatValidates()

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

Definition at line 45 of file Md5PasswordHashTest.php.

◆ getHashedPasswordReturnsNotNullWithNonEmptyPassword()

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

Definition at line 37 of file Md5PasswordHashTest.php.

◆ getHashedPasswordReturnsNullWithEmptyPassword()

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

Definition at line 29 of file Md5PasswordHashTest.php.

◆ isHashUpdateNeededReturnsFalse()

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

Definition at line 188 of file Md5PasswordHashTest.php.