Class StrengthChecker
java.lang.Object
pl.edu.icm.unity.stdext.credential.pass.StrengthChecker
Checks strength of the password using zxcvbn derivative library and provide other simple
quality measurements of passwords. The returned result is normalized to 0-1 range,
1 (max score) corresponds to currently very hard not normalized value of 14 or minimum acceptable
value whichever is greater.
- Author:
- K. Benedyczak
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetCharacterClasses(String password) static booleanhasNoTrivialSequences(String password) static StrengthChecker.StrengthInfo
-
Constructor Details
-
StrengthChecker
public StrengthChecker()
-
-
Method Details
-
measure
public static StrengthChecker.StrengthInfo measure(String password, int minAcceptable, pl.edu.icm.unity.base.message.MessageSource msg) -
getCharacterClasses
-
hasNoTrivialSequences
-