Script for checking strong password weak password possible in PHP?

Hello Friends

In a form while entering data in password field what is the simplest way to show the status weak password or strong password in PHP?


That is javascript. See:

It’s a pecl extension though…

I think a strong password is one,

  1. which is at least 8 characters long;
  2. which must contain at least one digit, one capital, one small and one special character. I write a JavaScript function to generate such a random password.
    Please read Random Password Generator article.

You should avoid using PHP and instead go with Javascript if you can. Javascript can determine the strength of a password without ever sending the password across the Internet, whereas PHP can not.

Here is a scripts for strong password