Hash
Table of Contents
- getHash() : string
- Creates hash from string
- verifyHash() : bool
- Verify hash from string
- getPepper() : string
- Gets pepper from global domain config
- hashString() : string
- Basic hash for pepper and password before submit/verify
Methods
getHash()
Creates hash from string
public
static getHash(string $str) : string
Parameters
- $str : string
Return values
string —verifyHash()
Verify hash from string
public
static verifyHash(string $str, string $hash) : bool
Parameters
- $str : string
- $hash : string
Return values
bool —getPepper()
Gets pepper from global domain config
private
static getPepper() : string
Return values
string —hashString()
Basic hash for pepper and password before submit/verify
private
static hashString(string $str) : string
Parameters
- $str : string