PHP Класс Hash, someline-starter

Показать файл Открыть проект Примеры использования класса

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

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