| Constructor and Description |
|---|
DateMatch(String match,
Configuration configuration,
int day,
int month,
int year,
String separator,
int start_index,
int end_index)
Create a new
DateMatch |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateEntropy()
Calculate the entropy for the current match
|
int |
getDay() |
String |
getDetails()
Returns details about this match in the form of a String to be printed directly
|
int |
getMonth() |
String |
getSeparator() |
int |
getYear() |
getEndIndex, getLength, getStartIndex, getToken, log2, nCkpublic DateMatch(String match, Configuration configuration, int day, int month, int year, String separator, int start_index, int end_index)
DateMatchmatch - the String we are creating the DateMatch from.configuration - the Configuration object.day - the day of monthmonth - the monthyear - the yearseparator - separator usedstart_index - the start index in the password for this match.end_index - the end index in the password for this match.public double calculateEntropy()
Matchdouble representing the entropy of the current Match.public int getDay()
int day of the match.public int getMonth()
int month of the match.public int getYear()
int year of the match.public String getSeparator()
String character between each date componentpublic String getDetails()
MatchgetDetails in interface MatchgetDetails in class BaseMatchMatch in printable String format.Copyright © 2016. All rights reserved.