|
static | hash ($data, $raw=true) |
| Generate an acceptably unstable one-way-hash of some text making use of the best hash algorithm that we have available. More...
|
|
static | hashAlgo () |
| Decide on the best acceptable hash algorithm we have available for hash() More...
|
|
static | hashLength ($raw=true) |
| Return the byte-length output of the hash algorithm we are using in self::hash and self::hmac. More...
|
|
static | hmac ($data, $key, $raw=true) |
| Generate an acceptably unstable one-way-hmac of some text making use of the best hash algorithm that we have available. More...
|
|
Definition at line 26 of file MWCryptHash.php.
static MWCryptHash::hash |
( |
|
$data, |
|
|
|
$raw = true |
|
) |
| |
|
static |
static MWCryptHash::hashAlgo |
( |
| ) |
|
|
static |
static MWCryptHash::hashLength |
( |
|
$raw = true | ) |
|
|
static |
Return the byte-length output of the hash algorithm we are using in self::hash and self::hmac.
- Parameters
-
bool | $raw | True to return the length for binary data, false to return for hex-encoded |
- Returns
- int Number of bytes the hash outputs
Definition at line 76 of file MWCryptHash.php.
Referenced by CryptRand\driftHash(), and MWCryptHashTest\testHashLength().
static MWCryptHash::hmac |
( |
|
$data, |
|
|
|
$key, |
|
|
|
$raw = true |
|
) |
| |
|
static |
MWCryptHash::$algo = null |
|
staticprotected |
Initial value:
The number of bytes outputted by the hash algorithm.
Definition at line 35 of file MWCryptHash.php.
The documentation for this class was generated from the following file: