Skip to main content
Version: 1.0.0

passwordQuality

You can measure the quality of the input password with this method. It returns a number between 0 and 100, where 0 is the weakest password and 100 is the strongest password.

Params

passwordQuality(str);
  • str → str The password you want to check the quality of

Returns

0 | 25 | 50 | 75 | 100
  • Number → A number from 0 to 100 that indicates the quality of the password
My Tip

If the length of the password is less than 8, the quality of the password is 0 in any case

Usage

passwordQuality("aadfdf"); //0

passwordQuality("78788989sdsdf"); //50

passwordQuality("A5h#3232"); //100