Package com.nulabinc.zxcvbn.guesses
Class DictionaryGuess
- java.lang.Object
-
- com.nulabinc.zxcvbn.guesses.BaseGuess
-
- com.nulabinc.zxcvbn.guesses.DictionaryGuess
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.regex.PatternALL_UPPERstatic java.util.regex.PatternSTART_UPPER-
Fields inherited from interface com.nulabinc.zxcvbn.guesses.Guess
BRUTEFORCE_CARDINALITY, MIN_SUBMATCH_GUESSES_MULTI_CHAR, MIN_SUBMATCH_GUESSES_SINGLE_CHAR, MIN_YEAR_SPACE, REFERENCE_YEAR
-
-
Constructor Summary
Constructors Constructor Description DictionaryGuess(Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleexec(Match match)Evaluates the givenMatchand estimates the number of guesses required to crack it.intl33tVariations(Match match)intuppercaseVariations(Match match)-
Methods inherited from class com.nulabinc.zxcvbn.guesses.BaseGuess
calculateBinomialCoefficient, getContext
-
-
-
-
Constructor Detail
-
DictionaryGuess
public DictionaryGuess(Context context)
-
-
Method Detail
-
exec
public double exec(Match match)
Description copied from interface:GuessEvaluates the givenMatchand estimates the number of guesses required to crack it.- Parameters:
match- the matched pattern to evaluate.- Returns:
- the estimated number of guesses required to crack the given match.
-
uppercaseVariations
public int uppercaseVariations(Match match)
-
l33tVariations
public int l33tVariations(Match match)
-
-