array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'intro.mhash.php', 1 => 'Introduction', ), 'up' => array ( 0 => 'book.mhash.php', 1 => 'Mhash', ), 'prev' => array ( 0 => 'book.mhash.php', 1 => 'Mhash', ), 'next' => array ( 0 => 'mhash.setup.php', 1 => 'Installing/Configuring', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mhash/book.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
These functions are intended to work with » mhash. Mhash can be used to create checksums, message digests, message authentication codes, and more.
This is an interface to the mhash library. Mhash supports a wide
variety of hash algorithms such as MD5, SHA1, GOST, and many
others. For a complete list of supported hashes, refer to the
constants page. The general rule is that you can access
the hash algorithm from PHP with MHASH_hashname
. For example, to
access TIGER you use the PHP constant MHASH_TIGER
.
Note:
This extension is obsoleted by Hash.
Note:
As of PHP 7.0.0 the Mhash extension has been fully integrated into the Hash extension. Therefore, it is no longer possible to detect Mhash support with extension_loaded(); use function_exists() instead. Furthermore, Mhash is no longer reported by get_loaded_extensions() and related features.