ab5ni
Posts: 177
|
| Posted: 12/06/2007, 1:55 PM |
|
Hey Folks,
Subject line says it all. If anyone is interested in this for end-user password-strength
checking, just give me a yell and I'll post the code and info on how to make
it work.
Regards,
Randall
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
ckroon
Posts: 869
|
| Posted: 12/06/2007, 7:33 PM |
|
YELLING!
Please post it to the Tips and Tricks section :)
_________________
Walter Kempees...you are dearly missed. |
 |
 |
ab5ni
Posts: 177
|
| Posted: 12/07/2007, 8:51 AM |
|
Okay. Will post it this weekend between lvlin my lock and
rogue on WoW . BTW, the code I have so far is strickly
PHP, and I haven't tied it into CCS login just yet.
Randall
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
ab5ni
Posts: 177
|
| Posted: 12/10/2007, 12:01 PM |
|
Well, I tried to post it, and I wasn't finished with the artical at lunch time, so
I left for lunch. When I came back, I finished the article and "tried" to post
it in the tips section. When I hit the submit button, the screen refreshed and
yessoftware's site asked me for my name and password again. I"m thinking,
"No problem. I'll just enter them, and after I'm done, the article will be posted,
or I'll just have to hit submit again."
Well, this stuff is web based, so we all know what happened next. No subject.
No buffer full of text data. Everything is gone. I'm really, really ticked about this,
but I should have known better and blame myself for not copying the buffer
beforehand. OTOH, I'm not going to spend the time and re-write the entire
"hand holding" message that I tried to publish here. I will do this, however,
here and now:
1) "yum install php-devel*"
2) "pecl install crack"
$crack_exist = extension_loaded("crack");
if(!$crack_exist)
die("Cracklib is not loaded as an extension!<BR>");
$dictionary = crack_opendict("/usr/share/cracklib/pw_dict");
if(!$dictionary)
die('Unable to open CrackLib dictionary');
// Perform password check
$check = crack_check($dictionary, '3_Zx1&29');
// Retrieve messages
$diag = crack_getlastmessage();
echo $diag . "<BR>"; // 'strong password'
// Close dictionary
crack_closedict($dictionary);
If you have any problems, send me an e-mail and I'll give u hand.
Also, in the /etc/php.d directory, create a new file
called "crack.ini". Enter the following text:
"extension=crack.so".
Randall "TICKED OFF!" Jouett
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
|