Results 1 to 6 of 6

Thread: [DHTML] Password Strength

  1. #1
    Join Date
    Jul 2007
    Location
    Spain
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [DHTML] Password Strength

    Sorry if my English isn't very good and contains orthographic errors

    1) CODE TITLE: Password Strength

    2) AUTHOR NAME/NOTES: Albert Filella

    3) DESCRIPTION:
    "Password Strenght" script displays an attractive strenght password bar. It indicates if a password is safe considering the following tips for create a secure password:
    • Include punctuation marks or symbols
    • Mix capital and lowercase letters.
    • Include numbers.


    The zip contains the .js & .html demo file.
    Last edited by File; 07-08-2007 at 03:03 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    I set up the demo on my home server if anyone wants to check it out without downloading the zip file. The demo can be found here:

    http://phphost.smackum.com/dd/pwstrength/

    The script is nice, and I could see a use for it in the future on one of the projects that I plan to start within the next few months. So far I have tested it in IE7 and FF2. Not sure about any other browsers yet.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jul 2007
    Location
    Spain
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i tested it in Safari

    thnx for upload it in your site

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Works in Opera.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I like this script. Just added it to a project I'm working on.

    There is a major inaccuracy in its calculation, though, in that the length of a password is a major consideration. According to this, aaaaaa and aaaaaaaaaaaaaaaa are there same strength, when this is definitely not the case, especially when talking about brute force, which is likely what this is guarding against.

    To fix this, I added a couple lines that, to me, approximate well the influence of the length.
    The existing lines before and after are also included. New lines in bold:
    Code:
    		if (isSymbol(value) == false) security_level+=1;
    		if (size-min_length>=2&&security_level<3) security_level++;
    		if (size-min_length>=5&&security_level<3) security_level++;
    		if (size-min_length>=8&&security_level<3) security_level++;
    		if (size<min_length) final_status = minimum;
    		if (size>=min_length) final_status = security_status[security_level];
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Jul 2007
    Location
    Spain
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes, if password is longer the strength must be higher, but adding these lines the script indicates that (example) "kkkkkkkkkkkkkk" password strength is Strong.


    In the next revision i need to merge the size & strength for accurate the result

    thnx for all

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •