Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 3362

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Return a list of registered hashing algorithms</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.hash.html">Hash Functions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.hash-copy.html">hash_copy</a></div>
 <div class="up"><a href="ref.hash.html">Hash Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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, PECL hash &gt;= 1.1)</p><p class="refpurpose"><span class="refname">hash_algos</span> &mdash; <span class="dc-title">Return a list of registered hashing algorithms</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.hash-algos-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>hash_algos</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.hash-algos-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a numerically indexed array containing the list of supported
   hashing algorithms.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.hash-algos-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>5.4.0</td>
       <td>Support for joaat, fnv132 and fnv164 was added. Support for Salsa10 and Salsa20 was removed.</td>
      </tr>

      <tr>
       <td>5.3.0</td>
       <td>Support for md2, ripemd256, ripemd320, salsa10, salsa20, snefru256 and sha224 was added</td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.hash-algos-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-828">
    <p><strong>Example #1  <span class="function"><strong>hash_algos()</strong></span> example</strong></p>
    <div class="example-contents"><p>
     As of PHP 5.3.0,  <span class="function"><strong>hash_algos()</strong></span> will return the
     following list of algorithm names.
    </p></div>
    <div class="example-contents">
<div class="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>The above example will output
something similar to:</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
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
    [8] =&gt; ripemd128
    [9] =&gt; ripemd160
    [10] =&gt; ripemd256
    [11] =&gt; ripemd320
    [12] =&gt; whirlpool
    [13] =&gt; tiger128,3
    [14] =&gt; tiger160,3
    [15] =&gt; tiger192,3
    [16] =&gt; tiger128,4
    [17] =&gt; tiger160,4
    [18] =&gt; tiger192,4
    [19] =&gt; snefru
    [20] =&gt; snefru256
    [21] =&gt; gost
    [22] =&gt; adler32
    [23] =&gt; crc32
    [24] =&gt; crc32b
    [25] =&gt; salsa10
    [26] =&gt; salsa20
    [27] =&gt; haval128,3
    [28] =&gt; haval160,3
    [29] =&gt; haval192,3
    [30] =&gt; haval224,3
    [31] =&gt; haval256,3
    [32] =&gt; haval128,4
    [33] =&gt; haval160,4
    [34] =&gt; haval192,4
    [35] =&gt; haval224,4
    [36] =&gt; haval256,4
    [37] =&gt; haval128,5
    [38] =&gt; haval160,5
    [39] =&gt; haval192,5
    [40] =&gt; haval224,5
    [41] =&gt; haval256,5
)
</pre></div>
    </div>
   </div>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.hash.html">Hash Functions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.hash-copy.html">hash_copy</a></div>
 <div class="up"><a href="ref.hash.html">Hash Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>