java.lang.Object
me.gosimple.nbvcxz.resources.Configuration
Used to set any configurable parameters when estimating password strength.
- Author:
- Adam Brusselback.
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(List<PasswordMatcher> passwordMatchers, Map<String, Long> guessTypes, List<Dictionary> dictionaries, List<AdjacencyGraph> adjacencyGraphs, Map<Character, Character[]> leetTable, Pattern yearPattern, Double minimumEntropy, Integer maxLength, Locale locale, boolean distanceCalc, long combinationAlgorithmTimeout) -
Method Summary
Modifier and TypeMethodDescriptionlongboolean
-
Constructor Details
-
Configuration
public Configuration(List<PasswordMatcher> passwordMatchers, Map<String, Long> guessTypes, List<Dictionary> dictionaries, List<AdjacencyGraph> adjacencyGraphs, Map<Character, Character[]> leetTable, Pattern yearPattern, Double minimumEntropy, Integer maxLength, Locale locale, boolean distanceCalc, long combinationAlgorithmTimeout) - Parameters:
passwordMatchers- The list ofPasswordMatchers which will be used for matchingguessTypes- Map of types of guesses, and associated guesses/secdictionaries- List ofDictionaryto use for theDictionaryMatcheradjacencyGraphs- List of adjacency graphs to be used by theSpacialMatcherleetTable- Leet table for use withDictionaryMatcheryearPattern- RegexPatternfor use withYearMatcherminimumEntropy- Minimum entropy value passwords should meetlocale- Locale for localized text and feedbackdistanceCalc- Enable or disable levenshtein distance calculation for dictionary matchescombinationAlgorithmTimeout- Timeout for the findBestMatches algorithm
-
-
Method Details
-
getPasswordMatchers
- Returns:
- List of
PasswordMatchers which will be used for matching
-
getGuessTypes
- Returns:
- Map of types of guesses, and associated guesses/sec
-
getDictionaries
- Returns:
- List of
Dictionaryto use for theDictionaryMatcher
-
getAdjacencyGraphs
- Returns:
- List of adjacency graphs to be used by the
SpacialMatcher
-
getLeetTable
- Returns:
- Leet table for use with
DictionaryMatcher
-
getYearPattern
- Returns:
- Regex
Patternfor use withYearMatcher
-
getMinimumEntropy
- Returns:
- Minimum entropy value passwords should meet
-
getMaxLength
- Returns:
- Maximum length to estimate for password, anything longer will be truncated
-
getLocale
- Returns:
- Locale for localized text and feedback
-
isDistanceCalc
public boolean isDistanceCalc()- Returns:
- If dictionary distance calculations are enabled or not
-
getCombinationAlgorithmTimeout
public long getCombinationAlgorithmTimeout()- Returns:
- Return the timeout for the findBestMatches algorithm
-
getMainResource
- Returns:
- Return the resource bundle which contains the text for everything but feedback
-
getFeedbackResource
- Returns:
- Return the resource bundle which contains the text for feedback
-