Skip to main content
Version: 1.2.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

a number between 0 & 100
  • Number → A number from 0 to 100 that indicates the quality of the password

Usage

passwordQuality("aadfdf"); //0

passwordQuality("78788989sdsdf"); //45

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

passwordQuality("Al2#B3k@P-e5"); //100