?php / / Open CrackLib Dictionary $dictionary = crack_opendict( '/ usr / local / lib / pw_dict') or die('Unable to open CrackLib dictionary'); / / Perform password check $check = crack_check($dictionary, 'gx9A2s0x'); / / Retrieve messages $diag = crack_getlastmessage(); echo $diag; / / 'strong password' / / Close dictionary crack_closedict($dictionary);?
?php / / Ouverture du dictionnaire CrackLib $dictionary = crack_opendict( '/ usr / local / lib / pw_dict') or die('Unable to open CrackLib dictionary'); / / V eacute;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);?