Class StrengthChecker

java.lang.Object
pl.edu.icm.unity.stdext.credential.pass.StrengthChecker

public class StrengthChecker extends 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 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

      public static int getCharacterClasses(String password)
    • hasNoTrivialSequences

      public static boolean hasNoTrivialSequences(String password)