Avatar of shepered
shepered
 asked on

Installing password strength checker with PHP

Hello,

Im fairly new to PHP so please bear with me. I have a webpage upon which i have a form with a field to allow a user to enter a password which they want to make for their account. I wanted to check the password to ensure it is of a reasonable standard.

After searching the web i cam across this website
http://pecl.php.net/package/crack_dll
Which seems to be the main recommendation from the php.net website for a basic password strength checker.

I downloaded the .TGZ package from the above website but cant figure out how to install it and cant seem to find any clear instructions anywhere.

Can anyone help me by telling me where I can find instructions or by giving me the instructions so I can use it.

In addition im using PHP 5, and although some instructions talk of DLL, in the file i downloaded I can find none.

Thanks for help in advance.

Regards,
Shepered
PHP

Avatar of undefined
Last Comment
cyberal_

8/22/2022 - Mon
abe8810

do you have to do it in php?
if not, you can use javascript to do this
http://www.geekwisdom.com/dyn/passwdmeter
cyberal_

I'm not familiar with that particular solution but i was thinking on using regular expressions to match whatever level of strength you require. I think it should be a simple task because all u need to check are the usage of lower and upper case letters in combination with numbers and special characters, and a string length (well that actually depends on how strong u require the passwords to be). I think u should be able to use preg_match() function for most of it, but i leave it to you to decide.

Here are some links that could help u get on your way with PHP regular expressions:
http://weblogtoolscollection.com/regex/regex.php
http://www.php.net/preg_match
ASKER CERTIFIED SOLUTION
cyberal_

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck