java.lang.Object
me.gosimple.nbvcxz.resources.DictionaryUtil
- Author:
- Adam Brusselback
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUnranked dictionary from the EFF password wordliststatic final StringRanked dictionary of common English wordstatic final StringRanked dictionary of common female namesstatic final StringRanked dictionary of common male namesstatic final StringRanked dictionary of common passwordsstatic final StringRanked dictionary of common surnames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadRankedDictionary(String fileName) Read a resource file with a list of entries (sorted by frequency) and use it to create a ranked dictionary.loadUnrankedDictionary(String fileName) Read a resource file with a list of entries (sorted by frequency) and use it to create a ranked dictionary.
-
Field Details
-
passwords
Ranked dictionary of common passwords- See Also:
-
male_names
Ranked dictionary of common male names- See Also:
-
female_names
Ranked dictionary of common female names- See Also:
-
surnames
Ranked dictionary of common surnames- See Also:
-
english
Ranked dictionary of common English word- See Also:
-
eff_large
Unranked dictionary from the EFF password wordlist- See Also:
-
-
Constructor Details
-
DictionaryUtil
public DictionaryUtil()
-
-
Method Details
-
loadUnrankedDictionary
Read a resource file with a list of entries (sorted by frequency) and use it to create a ranked dictionary.The dictionary must contain only lower case values for the matching to work properly.
- Parameters:
fileName- the name of the file- Returns:
- the ranked dictionary (a
HashMapwhich associated a rank to each entry
-
loadRankedDictionary
Read a resource file with a list of entries (sorted by frequency) and use it to create a ranked dictionary.The dictionary must contain only lower case values for the matching to work properly.
- Parameters:
fileName- the name of the file- Returns:
- the ranked dictionary (a
HashMapwhich associated a rank to each entry
-