Package com.nulabinc.zxcvbn.guesses
Interface Guess
-
- All Known Implementing Classes:
BaseGuess
,BruteforceGuess
,DateGuess
,DictionaryGuess
,EstimateGuess
,RegexGuess
,RepeatGuess
,SequenceGuess
,SpatialGuess
public interface Guess
Represents 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 int
BRUTEFORCE_CARDINALITY
Cardinality used in brute force attacks.static int
MIN_SUBMATCH_GUESSES_MULTI_CHAR
Minimum number of guesses when the sub-match contains multiple characters.static int
MIN_SUBMATCH_GUESSES_SINGLE_CHAR
Minimum number of guesses when the sub-match contains a single character.static int
MIN_YEAR_SPACE
The minimum range of years to be considered when evaluating date-based patterns.static int
REFERENCE_YEAR
Reference year used for date-based pattern evaluations.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
exec(Match match)
Evaluates the givenMatch
and 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.
-
-