|
static | hmac (string $key, string $data, string $hashfunc= 'sha1') |
|
static | hmacLegacy (string $key, string $data, string $hashfunc= 'sha1') |
|
static | createPassword (int $length=8) |
|
static hmac |
( |
string |
$key, |
|
|
string |
$data, |
|
|
string |
$hashfunc = 'sha1' |
|
) |
| |
|
static |
SHA1 or MD5 + HMAC
Returns an HMAC encoded value of $data, using the said $key and $hashfunc as hash method (sha1 or md5 are accepted if hash_hmac function not exists.)
- Parameters
-
string | $key | Hash key |
string | $data | Data |
string | $hashfunc | Hash function (md5 or sha1) |
- Returns
- string
Referenced by Http\browserUID(), Auth\checkUser(), and Auth\cryptLegacy().
static hmacLegacy |
( |
string |
$key, |
|
|
string |
$data, |
|
|
string |
$hashfunc = 'sha1' |
|
) |
| |
|
static |
Legacy hmac method
- Parameters
-
string | $key | The key |
string | $data | The data |
string | $hashfunc | The hashfunc |
- Returns
- string
static createPassword |
( |
int |
$length = 8 | ) |
|
|
static |
The documentation for this class was generated from the following file: