Warning: file_put_contents(): Only -1 of 44 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
mhash Mimetype PHP Manual (PHP 4, 5) — Compute hash Description string ( int $hash , $data [, $key ] ) mhash() applies a function specified by to the data . Parameters The id. One of MHASH_XXX c...
Forum und email

mhash

(PHP 4, PHP 5)

mhash — Compute hash

Description

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

mhash() applies a hash function specified by hash to the data .

Parameters

hash

The hash id. One of the MHASH_XXX constants.

data

The user input, as a string.

key

If specified, the function will return the resulting HMAC instead. 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.

Return Values

Returns the resulting hash (also called digest) or HMAC as a string, or FALSE on errors.