PHP 클래스 YiiPassword\Strategies\Bcrypt

상속: extends YiiPassword\Strategy
파일 보기 프로젝트 열기: phpnode/yiipassword

공개 프로퍼티들

프로퍼티 타입 설명
$workFactor integer The higher the work factor the more computationally expensive it is to encode and validate passwords. So it makes your passwords harder to crack, but it can also be a burden on your own server.

공개 메소드들

메소드 설명
encode ( string $password ) : string Encode a plain text password.

보호된 메소드들

메소드 설명
generateSalt ( ) : string Generates a random salt.
getRandomBytes ( integer $count = 16 ) : boolean | string Gets a number of random bytes

메소드 상세

encode() 공개 메소드

Child classes should implement this method and do their encoding here
public encode ( string $password ) : string
$password string the plain text password to encode
리턴 string the encoded password

generateSalt() 보호된 메소드

Generates a random salt.
protected generateSalt ( ) : string
리턴 string the generated salt

getRandomBytes() 보호된 메소드

Gets a number of random bytes
protected getRandomBytes ( integer $count = 16 ) : boolean | string
$count integer the number of bytes to return
리턴 boolean | string

프로퍼티 상세

$workFactor 공개적으로 프로퍼티

The higher the work factor the more computationally expensive it is to encode and validate passwords. So it makes your passwords harder to crack, but it can also be a burden on your own server.
public int $workFactor
리턴 integer