<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.hash.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.hash-algos.php',
    1 => 'hash_algos',
    2 => '登録されているハッシュアルゴリズムの一覧を返す',
  ),
  'up' => 
  array (
    0 => 'ref.hash.php',
    1 => 'Hash 関数',
  ),
  'prev' => 
  array (
    0 => 'function.hash.php',
    1 => 'hash',
  ),
  'next' => 
  array (
    0 => 'function.hash-copy.php',
    1 => 'hash_copy',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/hash/functions/hash-algos.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.hash-algos" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">hash_algos</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.2, PHP 7, PHP 8, PECL hash &gt;= 1.1)</p><p class="refpurpose"><span class="refname">hash_algos</span> &mdash; <span class="dc-title">登録されているハッシュアルゴリズムの一覧を返す</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.hash-algos-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>hash_algos</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.hash-algos-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.hash-algos-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   サポートされているハッシュアルゴリズムの一覧を、数値添字の
   配列として返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.hash-algos-changelog">
  <h3 class="title">変更履歴</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>バージョン</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.1.0</td>
       <td>
        MurmurHash3 と xxHash のサポートを追加しました。
       </td>
      </tr>

      <tr>
       <td>7.4.0</td>
       <td>
        crc32c のサポートを追加しました。
       </td>
      </tr>

      <tr>
       <td>7.1.0</td>
       <td>
        sha512/224, sha512/256, sha3-224, sha3-256, sha3-384 および
        sha3-512 のサポートを追加しました。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.hash-algos-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 <span class="function"><strong>hash_algos()</strong></span> の例</strong></p>
    <div class="example-contents"><p>
     PHP 8.1.0 では、<span class="function"><strong>hash_algos()</strong></span> は
     以下のようなアルゴリズム名の一覧を返します。
    </p></div>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">hash_algos</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>上の例の出力は、
たとえば以下のようになります。</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">Array
(
    [0] =&gt; md2
    [1] =&gt; md4
    [2] =&gt; md5
    [3] =&gt; sha1
    [4] =&gt; sha224
    [5] =&gt; sha256
    [6] =&gt; sha384
    [7] =&gt; sha512/224
    [8] =&gt; sha512/256
    [9] =&gt; sha512
    [10] =&gt; sha3-224
    [11] =&gt; sha3-256
    [12] =&gt; sha3-384
    [13] =&gt; sha3-512
    [14] =&gt; ripemd128
    [15] =&gt; ripemd160
    [16] =&gt; ripemd256
    [17] =&gt; ripemd320
    [18] =&gt; whirlpool
    [19] =&gt; tiger128,3
    [20] =&gt; tiger160,3
    [21] =&gt; tiger192,3
    [22] =&gt; tiger128,4
    [23] =&gt; tiger160,4
    [24] =&gt; tiger192,4
    [25] =&gt; snefru
    [26] =&gt; snefru256
    [27] =&gt; gost
    [28] =&gt; gost-crypto
    [29] =&gt; adler32
    [30] =&gt; crc32
    [31] =&gt; crc32b
    [32] =&gt; crc32c
    [33] =&gt; fnv132
    [34] =&gt; fnv1a32
    [35] =&gt; fnv164
    [36] =&gt; fnv1a64
    [37] =&gt; joaat
    [38] =&gt; murmur3a
    [39] =&gt; murmur3c
    [40] =&gt; murmur3f
    [41] =&gt; xxh32
    [42] =&gt; xxh64
    [43] =&gt; xxh3
    [44] =&gt; xxh128
    [45] =&gt; haval128,3
    [46] =&gt; haval160,3
    [47] =&gt; haval192,3
    [48] =&gt; haval224,3
    [49] =&gt; haval256,3
    [50] =&gt; haval128,4
    [51] =&gt; haval160,4
    [52] =&gt; haval192,4
    [53] =&gt; haval224,4
    [54] =&gt; haval256,4
    [55] =&gt; haval128,5
    [56] =&gt; haval160,5
    [57] =&gt; haval192,5
    [58] =&gt; haval224,5
    [59] =&gt; haval256,5
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.hash-algos-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.hash.php" class="function" rel="rdfs-seeAlso">hash()</a> - ハッシュ値 (メッセージダイジェスト) を生成する</span></li>
   <li><span class="function"><a href="function.hash-hmac-algos.php" class="function" rel="rdfs-seeAlso">hash_hmac_algos()</a> - hash_hmac に合うハッシュアルゴリズムの一覧を返す</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>