Hash
Table of Contents
- $driver : object
- Store the instance of Hash driver.
- make() : string
- Generate the hash.
- needsRehash() : bool
- Check if the given hash has been hashed using the given options.
- self() : mixed
- __construct.
- verify() : string
- Verify the hash.
Properties
$driver
Store the instance of Hash driver.
private
static object
$driver
Tags
Methods
make()
Generate the hash.
public
static make((string) $original[, mixed $options = null ][, mixed $verify = false ]) : string
Parameters
- $original : (string)
- $options : mixed = null
- $verify : mixed = false
Tags
Return values
string —needsRehash()
Check if the given hash has been hashed using the given options.
public
static needsRehash((string) $hash[, mixed $options = null ][, mixed $verify = false ]) : bool
Parameters
- $hash : (string)
- $options : mixed = null
- $verify : mixed = false
Tags
Return values
bool —self()
__construct.
public
static self([mixed $verify = false ]) : mixed
Parameters
- $verify : mixed = false
Tags
Return values
mixed —verify()
Verify the hash.
public
static verify((string) $original, (string) $hash[, mixed $verify = false ]) : string
Parameters
- $original : (string)
- $hash : (string)
- $verify : mixed = false