<p>Le mot de passe est encrypt&eacute; par une fonction <strong>password_hash</strong>.<br />Verification du mot de passe par&nbsp;<strong>password_verify</strong>.</p>
<table style="border-collapse: collapse; width: 100%; height: 160px;" border="1">
<tbody>
<tr>
<td style="width: 50%;"><strong>Fonction</strong></td>
<td style="width: 50%;"><strong>R&eacute;sultat</strong></td>
</tr>
<tr>
<td style="width: 50%;">password_hash(<span style="color: #ff00ff;">"motdepasse974"</span>,&nbsp;PASSWORD_DEFAULT)</td>
<td style="width: 50%;">$2y$10$UEuspwE3.LOFQay29jxEW.7TAAiuxHmljdX2eis/wn4bfMvhUyopa</td>
</tr>
<tr>
<td style="width: 50%;">password_verify(<span style="color: #ff00ff;">"motdepasse974"</span>, <span style="color: #ff00ff;">'$2y$10$UEuspwE3.LOFQay29jxEW.7TAAiuxHmljdX2eis/wn4bfMvhUyopa'</span>)</td>
<td style="width: 50%;">true</td>
</tr>
</tbody>
</table>
<p><strong><code>PASSWORD_DEFAULT</code></strong>&nbsp;- Utilisation de l'algorithme bcrypt (par d&eacute;faut depuis PHP 5.5.0).&nbsp;</p>
<div id="example-984" class="example">&nbsp;</div>