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

search for in the

Crack Functions> <Predefined Constants
[edit] Last updated: Fri, 24 Jun 2011

view this page in

Examples

این مثال نحوه استفاده از دیکشنری CrackLib را نشان میذدهد که یک رمز را آزمایش کرده و پیام‌های شناسایی شده را دریافت کرده و دیکشنری را می‌بندد.

Example #1 مثال 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);
?>

Note:

اگر crack_check() TRUE برگرداند crack_getlastmessage() 'strong password' را بازمی‌گرداند.



add a note add a note User Contributed Notes Examples - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites