PHP 클래스 lithium\tests\cases\security\PasswordTest

상속: extends lithium\test\Unit
파일 보기 프로젝트 열기: unionofrad/lithium

보호된 프로퍼티들

프로퍼티 타입 설명
$_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