PHP Класс lithium\tests\cases\security\PasswordTest

Наследование: extends lithium\test\Unit
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_password The password to be encrypted.

Открытые методы

Метод Описание
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.

Описание методов

testCheck() публичный Метод

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

testHash() публичный Метод

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

testSaltBlowfish() публичный Метод

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

testSaltMD5() публичный Метод

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

testSaltXDES() публичный Метод

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

Описание свойств

$_password защищенное свойство

The password to be encrypted.
protected $_password