java.lang.Object
me.gosimple.nbvcxz.matching.match.BaseMatch
me.gosimple.nbvcxz.matching.match.SpacialMatch
- All Implemented Interfaces:
Match
- Author:
- Adam Brusselback
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSpacialMatch(String match, Configuration configuration, int start_index, int end_index, AdjacencyGraph adjacencyGraph, int turns, int shiftedNumber) Create a newSpacialMatchwhich is a sequence of characters following themselves on the keyboard/keypad -
Method Summary
Modifier and TypeMethodDescriptionReturns details about this match in the form of a String to be printed directlyintintgetTurns()Methods inherited from class me.gosimple.nbvcxz.matching.match.BaseMatch
calculateEntropy, getAverageEntropy, getEndIndex, getLength, getStartIndex, getToken, log2, nCk, setEntropy
-
Constructor Details
-
SpacialMatch
public SpacialMatch(String match, Configuration configuration, int start_index, int end_index, AdjacencyGraph adjacencyGraph, int turns, int shiftedNumber) Create a newSpacialMatchwhich is a sequence of characters following themselves on the keyboard/keypad- Parameters:
match- the part of the password that was matched.configuration- theConfigurationobject.start_index- the starting index of thisSpacialMatch.end_index- the ending index of thisSpacialMatch.adjacencyGraph- the graph used for thisSpacialMatch.turns- the number of turns in thisSpacialMatch.shiftedNumber- the number of shifts in thisSpacialMatch.
-
-
Method Details
-
getAdjacencyGraph
- Returns:
- the
AdjacencyGraphused in thisSpacialMatch.
-
getTurns
public int getTurns()- Returns:
- the number of turns the user makes on the keyboard. 'zxcv' has a turn of 1, 'zxcvfr' has a turn of 2, 'zxcvfrewq' has a turn of 3, etc.
-
getShiftedNumber
public int getShiftedNumber()- Returns:
- the number of key that are shifted (% instead of 5, A instead of a)
-
getDetails
Description copied from interface:MatchReturns details about this match in the form of a String to be printed directly- Specified by:
getDetailsin interfaceMatch- Overrides:
getDetailsin classBaseMatch- Returns:
- all specific details about this
Matchin printable String format.
-