<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.crypto.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'book.mhash.php',
    1 => 'Mhash',
    2 => 'Mhash',
  ),
  'up' => 
  array (
    0 => 'refs.crypto.php',
    1 => '加密扩展',
  ),
  'prev' => 
  array (
    0 => 'function.mdecrypt-generic.php',
    1 => 'mdecrypt_generic',
  ),
  'next' => 
  array (
    0 => 'mhash.setup.php',
    1 => '安装/配置',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mhash/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.mhash.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.mhash" class="book">
 
 <h1 class="title">Mhash</h1>

 
 <div id="intro.mhash" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   These functions are intended to work with <a href="http://mhash.sourceforge.net/" class="link external">&raquo;&nbsp;mhash</a>. Mhash can be used to create checksums,
   message digests, message authentication codes, and more.
  </p>
  <p class="para">
   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
   <a href="mhash.constants.php" class="link">constants page</a>. The general rule is that you can access
   the hash algorithm from PHP with <strong><code>MHASH_hashname</code></strong>. For example, to
   access TIGER you use the PHP constant <strong><code><a href="mhash.constants.php#constant.mhash-tiger">MHASH_TIGER</a></code></strong>.
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    This extension is obsoleted by <a href="book.hash.php" class="link">Hash</a>.
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    As of PHP 7.0.0 the Mhash extension has been fully integrated into the <a href="book.hash.php" class="link">Hash</a> extension. Therefore, it is no longer
    possible to detect Mhash support with <span class="function"><a href="function.extension-loaded.php" class="function">extension_loaded()</a></span>;
    use <span class="function"><a href="function.function-exists.php" class="function">function_exists()</a></span> instead. Furthermore, Mhash is no
    longer reported by <span class="function"><a href="function.get-loaded-extensions.php" class="function">get_loaded_extensions()</a></span> and related
    features.
   </p>
  </p></blockquote>
 </div>
 
 
 







 




 






 


 





<ul class="chunklist chunklist_book"><li><a href="mhash.setup.php">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="mhash.requirements.php">需求</a></li><li><a href="mhash.installation.php">安装</a></li></ul></li><li><a href="mhash.constants.php">预定义常量</a></li><li><a href="mhash.examples.php">示例</a></li><li><a href="ref.mhash.php">Mhash 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.mhash.php">mhash</a> — Computes hash</li><li><a href="function.mhash-count.php">mhash_count</a> — Gets the highest available hash ID</li><li><a href="function.mhash-get-block-size.php">mhash_get_block_size</a> — Gets the block size of the specified hash</li><li><a href="function.mhash-get-hash-name.php">mhash_get_hash_name</a> — Gets the name of the specified hash</li><li><a href="function.mhash-keygen-s2k.php">mhash_keygen_s2k</a> — Generates a key</li></ul></li></ul></div><?php manual_footer($setup); ?>