Package com.nulabinc.zxcvbn.guesses
Interface Guess
-
- All Known Implementing Classes:
BaseGuess,BruteforceGuess,DateGuess,DictionaryGuess,EstimateGuess,RegexGuess,RepeatGuess,SequenceGuess,SpatialGuess
public interface GuessRepresents a strategy for estimating the number of guesses required to crack a givenMatch.Implementations of this interface are expected to evaluate the strength or weakness of a matched pattern within a password and return an estimated guess number.
- See Also:
Match
-
-
Field Summary
Fields Modifier and Type Field Description static intBRUTEFORCE_CARDINALITYCardinality used in brute force attacks.static intMIN_SUBMATCH_GUESSES_MULTI_CHARMinimum number of guesses when the sub-match contains multiple characters.static intMIN_SUBMATCH_GUESSES_SINGLE_CHARMinimum number of guesses when the sub-match contains a single character.static intMIN_YEAR_SPACEThe minimum range of years to be considered when evaluating date-based patterns.static intREFERENCE_YEARReference year used for date-based pattern evaluations.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubleexec(Match match)Evaluates the givenMatchand estimates the number of guesses required to crack it.
-
-
-
Field Detail
-
BRUTEFORCE_CARDINALITY
static final int BRUTEFORCE_CARDINALITY
Cardinality used in brute force attacks.- See Also:
- Constant Field Values
-
MIN_SUBMATCH_GUESSES_SINGLE_CHAR
static final int MIN_SUBMATCH_GUESSES_SINGLE_CHAR
Minimum number of guesses when the sub-match contains a single character.- See Also:
- Constant Field Values
-
MIN_SUBMATCH_GUESSES_MULTI_CHAR
static final int MIN_SUBMATCH_GUESSES_MULTI_CHAR
Minimum number of guesses when the sub-match contains multiple characters.- See Also:
- Constant Field Values
-
MIN_YEAR_SPACE
static final int MIN_YEAR_SPACE
The minimum range of years to be considered when evaluating date-based patterns.- See Also:
- Constant Field Values
-
REFERENCE_YEAR
static final int REFERENCE_YEAR
Reference year used for date-based pattern evaluations.
-
-