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

search for in the

Crack 関数> <定義済み定数
Last updated: Fri, 25 Jul 2008

view this page in

以下の例は、CrackLib 辞書をオープンする方法を示しており、 指定したパスワードを試験し、解析メッセージを取得し、辞書を閉じます。

例1 CrackLib の例

<?php
// CrackLib 辞書をオープンする
$dictionary crack_opendict('/usr/local/lib/pw_dict')
     or die(
'Unable to open CrackLib dictionary');

// パスワードチェックを行う
$check crack_check($dictionary'gx9A2s0x');

// メッセージを取得する
$diag crack_getlastmessage();
echo 
$diag// 'strong password'

// 辞書を閉じる
crack_closedict($dictionary);
?>

注意: crack_check()TRUE を返すと、 crack_getlastmessage() は 'strong password' を返します。



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

Crack 関数> <定義済み定数
Last updated: Fri, 25 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites