PHP 클래스 App\Hashing\OsuHasher

상속: implements Illuminate\Contracts\Hashing\Hasher
파일 보기 프로젝트 열기: ppy/osu-web 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$rounds integer The number of rounds to hash, as 2^n.

공개 메소드들

메소드 설명
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.

메소드 상세

check() 공개 메소드

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

make() 공개 메소드

Hash the given value.
public 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 needsRehash ( string $hashedValue, array $options = [] ) : boolean
$hashedValue string
$options array
리턴 boolean

프로퍼티 상세

$rounds 보호되어 있는 프로퍼티

The number of rounds to hash, as 2^n.
protected int $rounds
리턴 integer