PHP 클래스 Hash, someline-starter

파일 보기 프로젝트 열기: someline/someline-starter 1 사용 예제들

공개 메소드들

메소드 설명
check ( string $value, string $hashedValue, array $options = [] ) : boolean Check the given plain value against a hash.
make ( string $value, array $options = [] ) : string Hash the given value.
needsRehash ( string $hashedValue, array $options = [] ) : boolean Check if the given hash has been hashed using the given options.
setRounds ( integer $rounds ) Set the default password work factor.

메소드 상세

check() 공개 정적인 메소드

Check the given plain value against a hash.
public static check ( string $value, string $hashedValue, array $options = [] ) : boolean
$value string
$hashedValue string
$options array
리턴 boolean

make() 공개 정적인 메소드

Hash the given value.
public static make ( string $value, array $options = [] ) : string
$value string
$options array
리턴 string

needsRehash() 공개 정적인 메소드

Check if the given hash has been hashed using the given options.
public static needsRehash ( string $hashedValue, array $options = [] ) : boolean
$hashedValue string
$options array
리턴 boolean

setRounds() 공개 정적인 메소드

Set the default password work factor.
public static setRounds ( integer $rounds )
$rounds integer