classe Hash (Voir la source)

Méthodes

static string|int|null
create(string $value)

Allows to have a value and when the hash has failed it returns false.

static string|int|null
make(string $value)

Allows to have a value and when the hash has failed it returns false.

static bool
check(string $value, string $hash)

Allows you to check the hash by adding a value

static bool
needsRehash(string $hash)

Allows you to rehash a value.

static array
getHashConfig()

Get the hash configuration

Détails

static string|int|null create(string $value)

Allows to have a value and when the hash has failed it returns false.

Paramètres

string $value

Valeur de retour

string|int|null

static string|int|null make(string $value)

Allows to have a value and when the hash has failed it returns false.

Paramètres

string $value

Valeur de retour

string|int|null

static bool check(string $value, string $hash)

Allows you to check the hash by adding a value

Paramètres

string $value
string $hash

Valeur de retour

bool

static bool needsRehash(string $hash)

Allows you to rehash a value.

Paramètres

string $hash

Valeur de retour

bool

static protected array getHashConfig()

Get the hash configuration

Valeur de retour

array