uTools-Manuals/docs/php/password_get_info.html
2019-04-08 23:22:26 +08:00

75 lines
2.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>返回指定散列hash的相关信息</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.password-get-info" class="refentry">
<div class="refnamediv">
<h1 class="refname">password_get_info</h1>
<p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7)</p><p class="refpurpose"><span class="refname">password_get_info</span> &mdash; <span class="dc-title">返回指定散列hash的相关信息</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.password-get-info-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>password_get_info</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hash</code></span>
) : <span class="type">array</span></div>
<p class="para rdfs-comment">
如果传入的散列值hash是由 <span class="function"><a href="password_hash.html" class="function">password_hash()</a></span> 支持的算法生成的,
这个函数就会返回关于此散列的信息数组。
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.password-get-info-parameters">
<h3 class="title">参数</h3>
<dl>
<dt>
<code class="parameter">hash</code></dt>
<dd>
<p class="para">
一个由 <span class="function"><a href="password_hash.html" class="function">password_hash()</a></span> 创建的散列值。
</p>
</dd>
</dl>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.password-get-info-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
返回三个元素的关联数组:
<ul class="itemizedlist">
<li class="listitem">
<span class="simpara">
<em>algo</em> 匹配
<a href="password.constants.html" class="link">密码算法的常量</a>
</span>
</li>
<li class="listitem">
<span class="simpara">
<em>algoName</em>,人类可读的算法名称
</span>
</li>
<li class="listitem">
<span class="simpara">
<em>options</em>,调用 <span class="function"><a href="password_hash.html" class="function">password_hash()</a></span> 时提供的选项。
</span>
</li>
</ul>
</p>
</div>
</div></div></div></body></html>