mhash

(PHP 3>= 3.0.9, PHP 4 >= 4.0.0)

mhash -- SpoΦφtat hash

Popis

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

mhash() aplikuje hash funkci urΦenou argumentem hash na data a vracφ v²sledn² hash (takΘ naz²van² digest). Pokud je p°edßn key, vracφ v²sledn² 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.