Class StrengthChecker


  • public class StrengthChecker
    extends java.lang.Object
    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
    • Constructor Detail

      • StrengthChecker

        public StrengthChecker()
    • Method Detail

      • measure

        public static StrengthChecker.StrengthInfo measure​(java.lang.String password,
                                                           int minAcceptable,
                                                           pl.edu.icm.unity.MessageSource msg)
      • getCharacterClasses

        public static int getCharacterClasses​(java.lang.String password)
      • hasNoTrivialSequences

        public static boolean hasNoTrivialSequences​(java.lang.String password)