PHP Class lithium\tests\cases\security\PasswordTest

Inheritance: extends lithium\test\Unit
Show file Open project: unionofrad/lithium

Protected Properties

Property Type Description
$_password The password to be encrypted.

Public Methods

Method Description
testCheck ( ) Tests the Password::check() method to make sure that it returns either true or false, depending on the input.
testHash ( ) Tests the Password::hash() method with both generated and custom salts.
testSaltBlowfish ( ) Tests salting passwords with the Blowfish algorithm.
testSaltMD5 ( ) Tests salting passwords with the MD5 algorithm.
testSaltXDES ( ) Tests salting passwords with the Extended-DES algorithm.

Method Details

testCheck() public method

Tests the Password::check() method to make sure that it returns either true or false, depending on the input.
public testCheck ( )

testHash() public method

Tests the Password::hash() method with both generated and custom salts.
public testHash ( )

testSaltBlowfish() public method

It also contains tests to prove that password longer than 72 characters are translated into the same hash.
public testSaltBlowfish ( )

testSaltMD5() public method

Tests salting passwords with the MD5 algorithm.
public testSaltMD5 ( )

testSaltXDES() public method

Tests salting passwords with the Extended-DES algorithm.
public testSaltXDES ( )

Property Details

$_password protected property

The password to be encrypted.
protected $_password