• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MeNeedz Password

#23
[eluser]davidbehler[/eluser]
Code:
if ($password_length > 0)
        {
            $_points += 5;

            if($password_length >= 5)
            {
                $_points += 10;

                if($password_length >= 7)
                {
                    $_points += 25;
                }
            }
        }
        // lower case
        if($lower_case_count > 0)
        {
            $_points += 10;
        }

        // upper case
        if($upper_case_count > 0)
        {
            $_points += 10;
        }

        // numeric
        if($numeric_count > 0)
        {
            if ($numeric_count <= 2)
            {
                $_points += 10;
            }
            else
            {
                $_points += 20;
            }
        }

        // special characters
        if ($special_count > 0)
        {
            if ($special_count == 1)
            {
                $_points += 10;
            }
            else
            {
                $_points += 25;
            }
        }
Up to 25 for length, 10 for lower case, 10 for upper case, up to 20 for numeric and up to 25 for special characters...that's 85 points max.
There was an additional section where one could earn up to 5 additional points.

85 + 5 = 90 points to get a "Very secure" rating. You can't reach that right now but I guess that's ok.


Messages In This Thread
MeNeedz Password - by El Forum - 01-02-2009, 04:28 AM
MeNeedz Password - by El Forum - 01-04-2009, 04:51 AM
MeNeedz Password - by El Forum - 01-04-2009, 10:17 AM
MeNeedz Password - by El Forum - 01-04-2009, 11:08 AM
MeNeedz Password - by El Forum - 01-04-2009, 12:16 PM
MeNeedz Password - by El Forum - 01-04-2009, 02:41 PM
MeNeedz Password - by El Forum - 01-04-2009, 10:13 PM
MeNeedz Password - by El Forum - 01-05-2009, 03:01 AM
MeNeedz Password - by El Forum - 01-05-2009, 12:13 PM
MeNeedz Password - by El Forum - 01-05-2009, 12:26 PM
MeNeedz Password - by El Forum - 01-05-2009, 01:08 PM
MeNeedz Password - by El Forum - 01-05-2009, 01:15 PM
MeNeedz Password - by El Forum - 01-05-2009, 02:34 PM
MeNeedz Password - by El Forum - 01-05-2009, 02:45 PM
MeNeedz Password - by El Forum - 01-05-2009, 02:52 PM
MeNeedz Password - by El Forum - 01-23-2009, 11:01 PM
MeNeedz Password - by El Forum - 06-30-2009, 06:38 PM
MeNeedz Password - by El Forum - 07-01-2009, 01:36 AM
MeNeedz Password - by El Forum - 07-01-2009, 07:10 PM
MeNeedz Password - by El Forum - 07-02-2009, 02:03 AM
MeNeedz Password - by El Forum - 07-02-2009, 06:28 AM
MeNeedz Password - by El Forum - 07-02-2009, 06:29 AM
MeNeedz Password - by El Forum - 07-02-2009, 07:03 AM
MeNeedz Password - by El Forum - 07-02-2009, 09:00 AM
MeNeedz Password - by El Forum - 07-02-2009, 09:36 AM
MeNeedz Password - by El Forum - 01-02-2010, 07:26 AM
MeNeedz Password - by El Forum - 01-02-2010, 07:35 AM
MeNeedz Password - by El Forum - 01-02-2010, 07:58 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.