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