Generated by
JDiff

Class org.cyclos.impl.utils.PasswordHelper

Removed Methods
String generateSequence(String, String, PasswordInputMethod) Generates a hashed sequence using the given password.

If input type is VIRTUAL_KEYBOARD this method splits password into subsequences and applies hash+salt to each subsequence.
Returns a string with generated subsequences joined by a separator.
SPLIT_PASSWORD_LENGTH constant is used to define each subsequence length.
SPLIT_PASSWORD_SEPARATOR constant is used as separator to join subsequences.
boolean isValid(String, Password) Determines whether the given plain value is equals to the given password.
This method will process (hash+salt) the given value and will try by brute force* to match the given password.

* Only if the value can be split in sequences
 

Added Methods
List<List<String>> generateVirtualKeyboardSequence(PasswordType, String) Generates a valid virtual keyboard sequence for the given password type, and current password value.
boolean isOldSchemeTextBoxValid(String, Password) Returns whether an old-scheme text box password is valid
boolean isOldSchemeVirtualKeyboardValid(String, Password, VirtualKeyboardInput, String[]) This method determines if the given plain value is equals to the given password.
Steps:
  • Splits the plain value and the password into separate sequences.
  • Applies brute force to generate all possible combinations of each plain value sequence.
  • Each combination is processed (hash+salt) and is compared with the corresponding sequence of the password.
  • If a sequence does not match the corresponding sequence of the password, the method finishes the execution.
List<List<String>> toVirtualKeyboardSequences(String) Converts a text, separated by .SPLIT_SEQUENCE_SEPARATOR, having each button text separated by .SPLIT_PASSWORD_SEPARATOR into a list of lists of strings
String toVirtualKeyboardText(List<List<String>>) Converts list of lists of strings into a text, separated by .SPLIT_SEQUENCE_SEPARATOR, having each button text separated by .SPLIT_PASSWORD_SEPARATOR
 

Added Fields
String SPLIT_SEQUENCE_SEPARATOR