public class PasswordMaker extends Object
| Constructor and Description |
|---|
PasswordMaker() |
| Modifier and Type | Method and Description |
|---|---|
static double |
calcPasswordStrength(SecureCharArray pw)
Calculates the strength of a password.
|
SecureCharArray |
generateVerificationCode(SecureCharArray masterPassword) |
static String |
getDefaultCryptoProvider() |
String |
getModifiedInputText(String inputText,
Account account) |
SecureCharArray |
makePassword(SecureCharArray masterPassword,
Account account)
Generates a hash of the master password with settings from the account.
|
SecureCharArray |
makePassword(SecureCharArray masterPassword,
Account account,
String inputText)
Generates a hash of the master password with settings from the account.
|
SecureCharArray |
rstr2any(char[] input,
String encoding,
boolean trim)
Maps an array of characters to another character set.
|
static void |
setDefaultCryptoProvider(String provider) |
public static void setDefaultCryptoProvider(String provider)
public static String getDefaultCryptoProvider()
public static double calcPasswordStrength(SecureCharArray pw)
public SecureCharArray rstr2any(char[] input, String encoding, boolean trim) throws Exception
input - The array of characters to map.encoding - The list of characters to map to.trim - Whether to trim leading zeros ... I think.Exception - On odd length!?public SecureCharArray makePassword(SecureCharArray masterPassword, Account account, String inputText) throws Exception
masterPassword - The password to use as a key for the various algorithms.account - The account with the specific settings for the hash.inputText - The text to use as the input into the password maker algorithmException - if something bad happened.public SecureCharArray makePassword(SecureCharArray masterPassword, Account account) throws Exception
masterPassword - The password to use as a key for the various algorithms.account - The account with the specific settings for the hash. Uses account.getUrl() as the inputTextException - if something bad happened.public SecureCharArray generateVerificationCode(SecureCharArray masterPassword) throws Exception
ExceptionCopyright © 2014. All rights reserved.