PHP
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Funções da Crack> <Constantes pré-definidas
Last updated: Fri, 02 Jan 2009

view this page in

Exemplos

Este exemplo mostra como abrir um dicionário CrackLib, testar uma dada senha, receber alguma mensagem de diagnóstico, e fechar o dicionário.

Exemplo #1 Exemplo da CrackLib

<?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);
?>

Nota: Se crack_check() retorna TRUE, crack_getlastmessage() retornará 'strong password'.



add a note add a note User Contributed Notes
Exemplos
There are no user contributed notes for this page.

Funções da Crack> <Constantes pré-definidas
Last updated: Fri, 02 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites