Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 2837

php-manual-en-7.2.11-1.mga7.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>Performs an obscure check with the given password</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.crack.html">Crack Functions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.crack-closedict.html">crack_closedict</a></div>
 <div class="up"><a href="ref.crack.html">Crack Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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">Performs an obscure check with the given password</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.crack-check-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <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>
   )</div>

  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <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>
   )</div>

  <p class="para rdfs-comment"> 
   Performs an obscure check with the given password on the specified
   dictionary. The alternative signature also takes into account the username
   and the GECOS information.
  </p>
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is
<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, and
surrounding documentation may change without notice in a future release of PHP.
This function should be used at your own risk.
</p></div>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.crack-check-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">dictionary</code></dt>

     <dd>

      <p class="para">
       The crack lib dictionary. If not specified, the last opened dictionary
       is used.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">password</code></dt>

     <dd>

      <p class="para">
       The password to be checked.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">username</code></dt>

     <dd>

      <p class="para">
       The username of the account with the password.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">gecos</code></dt>

     <dd>

      <p class="para">
       The GECOS information associated with the user account.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.crack-check-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> if <code class="parameter">password</code> is strong, or <strong><code>FALSE</code></strong> otherwise.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.crack-check-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>0.3</td>
       <td>
        The <code class="parameter">username</code>, <code class="parameter">gecos</code> and
        <code class="parameter">dictionary</code> parameters were added to the
        alternative signature.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


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