Документ взят из кэша поисковой машины. Адрес оригинального документа : http://oit.cmc.msu.ru/php/function.mhash.html
Дата изменения: Sun Feb 3 22:45:17 2002
Дата индексирования: Mon Oct 1 21:01:42 2012
Кодировка:
mhash

mhash

(3.0.9 - 3.0.18 only, PHP 4 >= 4.0.0)

mhash -- Compute hash

Description

string mhash ( int hash, string data, string [ key ])

mhash() applies a hash function specified by hash to the data and returns the resulting hash (also called digest). If the key is specified it will return the resulting HMAC. HMAC is keyed hashing for message authentication, or simply a message digest that depends on the specified key. Not all algorithms supported in mhash can be used in HMAC mode. In case of an error returns FALSE.