class Hash (View source)

Methods

static bool|string
create(string $value)

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

static bool|string
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($hash)

Allows you to rehash a value.

static array
getHashConfig()

Get the hash configuration

Details

static bool|string create(string $value)

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

Parameters

string $value

Return Value

bool|string

static bool|string make(string $value)

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

Parameters

string $value

Return Value

bool|string

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

Allows you to check the hash by adding a value

Parameters

string $value
string $hash

Return Value

bool

static bool needsRehash($hash)

Allows you to rehash a value.

Parameters

$hash

Return Value

bool

static protected array getHashConfig()

Get the hash configuration

Return Value

array