September 2001
Intermediate to advanced
768 pages
32h 45m
English
string mhash(const hash, string data, [string key])
| hash | mhash constant representing a specific hash algorithm |
| data | Data to which the hash algorithm is applied |
| key | HMAC key |
Returns a string with the specified hash algorithm applied to the data.
Returns:
String with the specified algorithm applied to the data; FALSE on error
Description:
mhash() encodes information contained in data using the algorithm specified by the hash parameter. It’s possible to obtain a list of supported hashes by using a combination of mhash_count() and mhash_get_hash_name(). For details, see the example in mhash_count().
If the optional key parameter is used, the HMAC for the data is returned. HMAC is an acronym of Hashing for Message AuthentiCation. For ...
Read now
Unlock full access