TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest Class Reference
Inheritance diagram for TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setUp ()
 
 hasCorrectBaseClass ()
 
 nonZeroSaltLength ()
 
 emptyPasswordResultsInNullSaltedPassword ()
 
 nonEmptyPasswordResultsInNonNullSaltedPassword ()
 
 createdSaltedHashOfProperStructure ()
 
 createdSaltedHashOfProperStructureForCustomSaltWithoutSetting ()
 
 createdSaltedHashOfProperStructureForMinimumHashCount ()
 
 authenticationWithValidAlphaCharClassPassword ()
 
 authenticationWithValidNumericCharClassPassword ()
 
 authenticationWithValidAsciiSpecialCharClassPassword ()
 
 authenticationWithValidLatin1SpecialCharClassPassword ()
 
 authenticationWithValidLatin1UmlautCharClassPassword ()
 
 authenticationWithNonValidPassword ()
 
 passwordVariationsResultInDifferentHashes ()
 
 modifiedMinHashCount ()
 
 modifiedMaxHashCount ()
 
 modifiedHashCount ()
 
 updateNecessityForValidSaltedPassword ()
 
 updateNecessityForIncreasedHashcount ()
 
 updateNecessityForDecreasedHashcount ()
 

Protected Attributes

 $objectInstance = NULL
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Testcase for PhpassSalt

Author
Marcus Krause <marcus::exp2009.info>

Definition at line 22 of file PhpassSaltTest.php.

Member Function Documentation

◆ authenticationWithNonValidPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::authenticationWithNonValidPassword ( )
Test:

Definition at line 196 of file PhpassSaltTest.php.

◆ authenticationWithValidAlphaCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::authenticationWithValidAlphaCharClassPassword ( )

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 118 of file PhpassSaltTest.php.

◆ authenticationWithValidAsciiSpecialCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::authenticationWithValidAsciiSpecialCharClassPassword ( )

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 146 of file PhpassSaltTest.php.

◆ authenticationWithValidLatin1SpecialCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::authenticationWithValidLatin1SpecialCharClassPassword ( )

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 PhpassSaltTest.php.

◆ authenticationWithValidLatin1UmlautCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::authenticationWithValidLatin1UmlautCharClassPassword ( )

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 178 of file PhpassSaltTest.php.

◆ authenticationWithValidNumericCharClassPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::authenticationWithValidNumericCharClassPassword ( )

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 132 of file PhpassSaltTest.php.

◆ createdSaltedHashOfProperStructure()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::createdSaltedHashOfProperStructure ( )
Test:

Definition at line 78 of file PhpassSaltTest.php.

◆ createdSaltedHashOfProperStructureForCustomSaltWithoutSetting()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::createdSaltedHashOfProperStructureForCustomSaltWithoutSetting ( )

◆ createdSaltedHashOfProperStructureForMinimumHashCount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::createdSaltedHashOfProperStructureForMinimumHashCount ( )
Test:

Definition at line 100 of file PhpassSaltTest.php.

◆ emptyPasswordResultsInNullSaltedPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::emptyPasswordResultsInNullSaltedPassword ( )
Test:

Definition at line 62 of file PhpassSaltTest.php.

◆ hasCorrectBaseClass()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::hasCorrectBaseClass ( )
Test:

Definition at line 43 of file PhpassSaltTest.php.

◆ modifiedHashCount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::modifiedHashCount ( )
Test:

Definition at line 248 of file PhpassSaltTest.php.

◆ modifiedMaxHashCount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::modifiedMaxHashCount ( )
Test:

Definition at line 237 of file PhpassSaltTest.php.

◆ modifiedMinHashCount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::modifiedMinHashCount ( )
Test:

Definition at line 226 of file PhpassSaltTest.php.

◆ nonEmptyPasswordResultsInNonNullSaltedPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::nonEmptyPasswordResultsInNonNullSaltedPassword ( )
Test:

Definition at line 70 of file PhpassSaltTest.php.

◆ nonZeroSaltLength()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::nonZeroSaltLength ( )
Test:

Definition at line 55 of file PhpassSaltTest.php.

◆ passwordVariationsResultInDifferentHashes()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::passwordVariationsResultInDifferentHashes ( )
Test:

Definition at line 206 of file PhpassSaltTest.php.

◆ setUp()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::setUp ( )

Sets up the fixtures for this testcase.

Returns
void

Definition at line 36 of file PhpassSaltTest.php.

◆ updateNecessityForDecreasedHashcount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::updateNecessityForDecreasedHashcount ( )
Test:

Definition at line 286 of file PhpassSaltTest.php.

◆ updateNecessityForIncreasedHashcount()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::updateNecessityForIncreasedHashcount ( )
Test:

Definition at line 272 of file PhpassSaltTest.php.

◆ updateNecessityForValidSaltedPassword()

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::updateNecessityForValidSaltedPassword ( )
Test:

Definition at line 263 of file PhpassSaltTest.php.

Member Data Documentation

◆ $objectInstance

TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\PhpassSaltTest::$objectInstance = NULL
protected

Definition at line 29 of file PhpassSaltTest.php.