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

#1
[eluser]davidbehler[/eluser]
Have you ever been in need of a simple to use helper that lets you check a given password for its strength or generates secure passwords? Yes? Then your waiting has come to an end!

I proudly present the newest addition to the MeNeedz club: My password helper!

Ok, i know there are propably already plenty of the out there but I kinda like to do stuff myself or in my own way and that's why i created this little helper.

Just grab it from here: --&gt; click me <--
View the user guide here (also included in the download: --&gt; click me <--

Please tell me what you think of the helper! Maybe you have some ideas on how to improve the checking/generating!

Greets,
waldmeister

#2
[eluser]davidbehler[/eluser]
More than 50 views but no reply?
No need for such a helper?

#3
[eluser]Colin Williams[/eluser]
I bookmarked it. Do you want a sticker or something?

#4
[eluser]davidbehler[/eluser]
Haha, sticker would be nice Big Grin

Just wanted some feedback, didn't want to get on someones nerves Smile

#5
[eluser]hugle[/eluser]
Hi waldmeister.
I will use it in my password_reset function.

Seems nice helper to me!

thanks.

#6
[eluser]Colin Williams[/eluser]
Ha. I'm just goofing around.

#7
[eluser]Iverson[/eluser]
Cool. I'm hooking this in with xajax and asynchronously displaying how secure (or insecure) the password is. One thing I did change however, was the return values. Instead of strings, you might want to turn this into a lib so people can dynamically change the values with a config file. This would take care of the language barriers, etc. In my case, I just used the code below so I can do what I want with the values. Great idea for a helper...

Code:
$very_secure = 7;
$secure = 6;
$very_strong = 5;
$strong = 4;
$average = 3;
$weak = 2;
$very_weak 1;

//result
        if($_points >= 90)
        {
            return $very_secure;
        }
        else
        {
            if($_points >= 80)
            {
                return $secure;
            }
            else
            {
                if($_points >= 70)
                {
                    return $very_strong;
                }
                else
                {
                    if($_points >= 60)
                    {
                        return $strong;
                    }
                    else
                    {
                        if($_points >= 50)
                        {
                            return $average;
                        }
                        else
                        {
                            if($_points >= 25)
                            {
                                return $weak;
                            }
                            else
                            {
                                return $very_weak;
                            }
                        }
                    }
                }
            }
        }
    }

#8
[eluser]davidbehler[/eluser]
Internationalization is a good reason to turn it into a library, you are right. I might update it later!

Are there any other password related function you might wanna have in such a library? Maybe generating readable passwords or something like that?

#9
[eluser]Rick Jolly[/eluser]
Why not just return the score (an integer between 0 and 100) and let the user decide how to proceed? That would eliminate all those conditionals. Also, the helper would be more flexible if points could be defined as config values for each section.

#10
[eluser]Iverson[/eluser]
[quote author="Rick Jolly" date="1231200786"]Why not just return the score (an integer between 0 and 100) and let the user decide how to proceed? That would eliminate all those conditionals. Also, the helper would be more flexible if points could be defined as config values for each section.[/quote]

There still has to be some type of standard for what makes the password whatever strength it is i.e. greater than or equal 90, 80, 69, or whatever. If someone has to go through the trouble of defining the strength definitions, to me that kinda defeats the purpose of having a helper.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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