public class DigestDictionaryRule extends AbstractDictionaryRule
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_CODE
Error code for matching dictionary word.
|
static String |
ERROR_CODE_REVERSED
Error code for matching reversed dictionary word.
|
Constructor and Description |
---|
DigestDictionaryRule(org.cryptacular.bean.HashBean<String> bean)
Creates new digest history rule which operates on password references that were digested with the supplied hash.
|
DigestDictionaryRule(org.cryptacular.bean.HashBean<String> bean,
Dictionary dict)
Creates new digest history rule which operates on password references that were digested with the supplied hash.
|
Modifier and Type | Method and Description |
---|---|
protected String |
doWordSearch(String text)
Searches the dictionary with the supplied text.
|
protected String |
getErrorCode(boolean backwards)
Returns the error code for this rule.
|
void |
setCharset(Charset set)
Sets the character set to use when converting a candidate password to bytes prior to hashing.
|
createRuleResultDetailParameters, getDictionary, isMatchBackwards, setDictionary, setMatchBackwards, toString, validate
public static final String ERROR_CODE
public static final String ERROR_CODE_REVERSED
public DigestDictionaryRule(org.cryptacular.bean.HashBean<String> bean, Dictionary dict)
dict
- to use for searchingbean
- encoding hash beanpublic DigestDictionaryRule(org.cryptacular.bean.HashBean<String> bean)
bean
- encoding hash beanpublic void setCharset(Charset set)
set
- to use for undigested passwordsprotected String doWordSearch(String text)
AbstractDictionaryRule
doWordSearch
in class AbstractDictionaryRule
text
- to search dictionary withprotected String getErrorCode(boolean backwards)
AbstractDictionaryRule
getErrorCode
in class AbstractDictionaryRule
backwards
- whether to return the error code for a backwards matchCopyright © 2003-2024 Virginia Tech. All Rights Reserved.