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

133 lines
4.2 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>用给定的密码来进行破解测试</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.crack-check" class="refentry">
<div class="refnamediv">
<h1 class="refname">crack_check</h1>
<p class="verinfo">(PECL crack &gt;= 0.1)</p><p class="refpurpose"><span class="refname">crack_check</span> &mdash; <span class="dc-title">用给定的密码来进行破解测试</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.crack-check-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>crack_check</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$dictionary</code></span>
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$password</code></span>
) : <span class="type">bool</span></div>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>crack_check</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$password</code></span>
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$username</code><span class="initializer"> = &quot;&quot;</span></span>
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$gecos</code><span class="initializer"> = &quot;&quot;</span></span>
, <span class="methodparam"><span class="type">resource</span> <code class="parameter">$dictionary</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
) : <span class="type">bool</span></div>
<p class="para rdfs-comment">
使用特定字典中给定的密码来进行密码强度检测。可供选择的特征(The alternative signature )还考虑用户名和GECOS信息。
</p>
<div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象,包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
</div>
<div class="refsect1 parameters" id="refsect1-function.crack-check-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">dictionary</code></dt>
<dd>
<p class="para">
破解库所使用的字典,如果没有指定,则使用最后一次打开的字典。
</p>
</dd>
<dt>
<code class="parameter">password</code></dt>
<dd>
<p class="para">
需要检查的密码。
</p>
</dd>
<dt>
<code class="parameter">username</code></dt>
<dd>
<p class="para">
用于密码检测的这个账户的用户名。
</p>
</dd>
<dt>
<code class="parameter">gecos</code></dt>
<dd>
<p class="para">
用户账户的 GECOS 信息。
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.crack-check-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
返回 <strong><code>TRUE</code></strong> 如果 <code class="parameter">password</code> 足够安全, 或者返回 <strong><code>FALSE</code></strong> 表示可能需要进一步的操作.
</p>
</div>
<div class="refsect1 changelog" id="refsect1-function.crack-check-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>0.3</td>
<td>
<code class="parameter">username</code><code class="parameter">gecos</code>
<code class="parameter">dictionary</code> 字段被添加到了可供选择的特征alternative signature中。
</td>
</tr>
</tbody>
</table>
</p>
</div>
</div></div></div></body></html>