mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
165 lines
4.8 KiB
HTML
165 lines
4.8 KiB
HTML
<!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>返回已注册的哈希算法列表</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.hash-algos" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">hash_algos</h1>
|
||
<p class="verinfo">(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1)</p><p class="refpurpose"><span class="refname">hash_algos</span> — <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="methodparam">void</span>
|
||
) : <span class="type">array</span></div>
|
||
|
||
</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>7.1.0</td>
|
||
<td>
|
||
加入 sha512/224,sha512/256,sha3-224,sha3-256,sha3-384 以及
|
||
sha3-512 算法的支持。
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>5.6.0</td>
|
||
<td>
|
||
加入对 gost-crypto 算法的支持。
|
||
参照 <a href="http://www.faqs.org/rfcs/rfc4357" class="link external">» RFC 4357,11.2 小节</a>
|
||
定义的 CryptoPro S-box 表格实现 GOST 哈希函数。
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>5.4.0</td>
|
||
<td>加入对于 joaat,fnv132 和 fnv164 算法的支持。移除 Salsa10 和 Salsa20 算法。</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>5.3.0</td>
|
||
<td>加入对 md2,ripemd256,ripemd320,salsa10,salsa20,snefru256 和 sha224 哈希算法的支持。</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-888">
|
||
<p><strong>Example #1 <span class="function"><strong>hash_algos()</strong></span> 例程</strong></p>
|
||
<div class="example-contents"><p>
|
||
在 PHP 5.6.0 中,<span class="function"><strong>hash_algos()</strong></span>
|
||
会返回下表所示的算法清单:
|
||
</p></div>
|
||
<div class="example-contents">
|
||
<div class="phpcode"><pre><span style="color: #000000">
|
||
<span style="color: #0000BB"><?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">?></span>
|
||
</span>
|
||
</pre></div>
|
||
</div>
|
||
|
||
<div class="example-contents"><p>以上例程的输出类似于:</p></div>
|
||
<div class="example-contents screen">
|
||
<div class="cdata"><pre>
|
||
Array
|
||
(
|
||
[0] => md2
|
||
[1] => md4
|
||
[2] => md5
|
||
[3] => sha1
|
||
[4] => sha224
|
||
[5] => sha256
|
||
[6] => sha384
|
||
[7] => sha512
|
||
[8] => ripemd128
|
||
[9] => ripemd160
|
||
[10] => ripemd256
|
||
[11] => ripemd320
|
||
[12] => whirlpool
|
||
[13] => tiger128,3
|
||
[14] => tiger160,3
|
||
[15] => tiger192,3
|
||
[16] => tiger128,4
|
||
[17] => tiger160,4
|
||
[18] => tiger192,4
|
||
[19] => snefru
|
||
[20] => snefru256
|
||
[21] => gost
|
||
[22] => gost-crypto
|
||
[23] => adler32
|
||
[24] => crc32
|
||
[25] => crc32b
|
||
[26] => fnv132
|
||
[27] => fnv1a32
|
||
[28] => fnv164
|
||
[29] => fnv1a64
|
||
[30] => joaat
|
||
[31] => haval128,3
|
||
[32] => haval160,3
|
||
[33] => haval192,3
|
||
[34] => haval224,3
|
||
[35] => haval256,3
|
||
[36] => haval128,4
|
||
[37] => haval160,4
|
||
[38] => haval192,4
|
||
[39] => haval224,4
|
||
[40] => haval256,4
|
||
[41] => haval128,5
|
||
[42] => haval160,5
|
||
[43] => haval192,5
|
||
[44] => haval224,5
|
||
[45] => 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 class="member"><span class="function"><a href="hash_hmac_algos.html" class="function" rel="rdfs-seeAlso">hash_hmac_algos()</a> - Return a list of registered hashing algorithms suitable for hash_hmac</span></li>
|
||
</ul>
|
||
</div>
|
||
|
||
|
||
</div></div></div></body></html> |