mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-26 18:18:14 +02:00
383e37c021
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@157103 c90b9560-bf6c-de11-be94-00142212c4b1
107 lines
2.6 KiB
XML
107 lines
2.6 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.11 $ -->
|
|
<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready -->
|
|
<reference id="ref.crack">
|
|
<title>Crack</title>
|
|
<titleabbrev>Fonctions Crack</titleabbrev>
|
|
|
|
<partintro>
|
|
<section id="crack.intro">
|
|
&reftitle.intro;
|
|
<para>
|
|
Ces fonctions vous permettent d'utiliser la librairie CrackLib, pour tester
|
|
la robustesse de vos mots de passe. Cette librairie teste la taille,
|
|
les majuscules et minuscules, et effectue des recherches
|
|
dans le dictionnaire CrackLib. CrackLib donne aussi des conseils pour
|
|
renforcer vos mots de passe.
|
|
</para>
|
|
¬e.pecl-php5;
|
|
</section>
|
|
|
|
<section id="crack.requirements">
|
|
&reftitle.required;
|
|
<para>
|
|
Plus d'informations concernant la librairie CrackLib sont
|
|
disponibles à
|
|
<ulink url="&url.crack;">&url.crack;</ulink>.
|
|
</para>
|
|
</section>
|
|
|
|
&reference.crack.configure;
|
|
|
|
&reference.crack.ini;
|
|
|
|
<section id="crack.resources">
|
|
&reftitle.resources;
|
|
&no.resource;
|
|
</section>
|
|
|
|
|
|
<section id="crack.constants">
|
|
&reftitle.constants;
|
|
&no.constants;
|
|
</section>
|
|
|
|
<section id="crack.examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
Cet exemple montre comment ouvrir un dictionnaire CrackLib, tester un mot
|
|
de passe, lire le diagnostic et refermer le dictionnaire.
|
|
<example>
|
|
<title>Exemple CrackLib</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
/* Ouverture du dictionnaire CrackLib */
|
|
$dictionary = crack_opendict('/usr/local/lib/pw_dict')
|
|
or die('Unable to open CrackLib dictionary');
|
|
|
|
/* Vérification du mot de passe */
|
|
$check = crack_check($dictionary, 'gx9A2s0x');
|
|
|
|
/* Lecture du diagnostic */
|
|
$diag = crack_getlastmessage();
|
|
echo $diag; // 'strong password'
|
|
|
|
/* Fermeture du dictionnaire */
|
|
crack_closedict($dictionary);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Si <function>crack_check</function>
|
|
retourne &true;,
|
|
<function>crack_getlastmessage</function>
|
|
retournera le message 'strong password' (mot de passe robuste).
|
|
</para>
|
|
</note>
|
|
</section>
|
|
</partintro>
|
|
|
|
&reference.crack.functions;
|
|
|
|
</reference>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|