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? Thanks
And some basic logic: "Only uppercase or lowercase?" -> +1 weak "No numbers?" -> +1 weak "Less than 6 characters?" -> +1 weak Then add it up and assign values to types of weakness. 3 = Extremely Weak 2 = Very Weak 1 = Slightly Weak Could do the same thing in reverse to display Strong types.
I don't think this is easy, but can be done I'm not sure how some websites do, but I think you may take care of these things to check the strenght: 1-lenght of the password. 2-existing of numbers 3-upper and lower cases 4-how many repeated characters there exist 5-numbers are next to each other (like: agsjnj1230) or seperated (a5d8df58) (seperated is better) You can also check how to create strong random passwords