PHP Class App\Hashing\OsuHasher

Inheritance: implements Illuminate\Contracts\Hashing\Hasher
Afficher le fichier Open project: ppy/osu-web Class Usage Examples

Protected Properties

Свойство Type Description
$rounds integer The number of rounds to hash, as 2^n.

Méthodes publiques

Méthode Description
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.

Method Details

check() public méthode

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

make() public méthode

Hash the given value.
public make ( string $value, array $options = [] ) : string
$value string
$options array
Résultat string

needsRehash() public méthode

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

Property Details

$rounds protected_oe property

The number of rounds to hash, as 2^n.
protected int $rounds
Résultat integer