|
|
|
|
![]() ![]() |
Mar 26 2006, 03:58 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 258 Joined: 13-November 05 Member No.: 14,234 |
many of u guys would already have noticed that now a days , on most of the websites , when some one sign in...as he puts his desired username in the textbox , the page shows that it is not available or it is available...without pushing any button etc..
and the second thing , when some one writes the password , on the same screen , it shows that password is weak or password is strong... i think it is done with php ... can some one give me a link to any page where i can access these scripts ? or some one can help me regarding this ?? Thanks for helping always. |
|
|
|
Mar 26 2006, 05:38 PM
Post
#2
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 873 Joined: 30-July 04 Member No.: 246 |
AJAX is a reasonably new technique for developing web-based applications where they don't need to be refreshed all the time. Gmail is an example of utilizing AJAX - most of you who use the service would have noticed how whenver you click a link within Gmail's interface, it doesn't seem to load another page or anything. But what you want could be acheived with far simpler JavaScript events.
The strength of a password can be calculated using any programming language. There's not really any set rule as to what makes up a 'strong' password, so no two programs which calculate such values are going to produce identical results; however, users are generally advised to include mixed-case letters (both upper- and lower-case), as well as numbers, and aim for passwords longer than about 8 characters. So most programs which work out how strong a password is use simple rules similar to that. |
|
|
|
Apr 8 2006, 12:06 PM
Post
#3
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 15 Joined: 8-April 06 Member No.: 21,511 |
Hi!
For the srength of a password, you should have a look at the so called "crack"-functions. CODE <?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); ?> The "crack_check" returns true if the password is OK, than the "crack_getlastmessage" returns "strong password". You can find further information on this topic at PHP reference There you'll find the code from above along with a a little bit detailed explanation of what the functions are doing and a short text about installing the extension! I hope this helps you! Greets, Chris |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 10th October 2008 - 08:09 PM |