public class DictionaryUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
eff_large
Unranked dictionary from the EFF password wordlist
|
static String |
english
Ranked dictionary of common English word
|
static String |
female_names
Ranked dictionary of common female names
|
static String |
male_names
Ranked dictionary of common male names
|
static String |
passwords
Ranked dictionary of common passwords
|
static String |
surnames
Ranked dictionary of common surnames
|
| Constructor and Description |
|---|
DictionaryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Integer> |
loadRankedDictionary(String fileName)
Read a resource file with a list of entries (sorted by frequency) and use
it to create a ranked dictionary.
|
static Map<String,Integer> |
loadUnrankedDictionary(String fileName)
Read a resource file with a list of entries (sorted by frequency) and use
it to create a ranked dictionary.
|
public static final String passwords
public static final String male_names
public static final String female_names
public static final String surnames
public static final String english
public static final String eff_large
public static Map<String,Integer> loadUnrankedDictionary(String fileName)
The dictionary must contain only lower case values for the matching to work properly.
fileName - the name of the fileHashMap which associated a
rank to each entrypublic static Map<String,Integer> loadRankedDictionary(String fileName)
The dictionary must contain only lower case values for the matching to work properly.
fileName - the name of the fileHashMap which associated a
rank to each entryCopyright © 2017. All rights reserved.