public final class PasswordObscurification extends Object
This implementation guarantees consistent results for all valid character ranges.
| Modifier and Type | Field and Description | 
|---|---|
static String | 
PASSWORD_ENCRYPTED_PREFIX
The word that is put before a password to indicate an encrypted form. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
byteToHexString(int b)  | 
static int | 
charToHex(int c)  | 
static String | 
decryptPassword(String encrypted)  | 
static String | 
decryptPasswordWithOptionalEncoding(String password)
Decrypts a password if it contains the prefix "Encrypted " 
 | 
static String | 
encryptPassword(String password)  | 
static String | 
encryptPasswordWithOptionalEncoding(String password)  | 
public static final String PASSWORD_ENCRYPTED_PREFIX
public static String byteToHexString(int b)
public static int charToHex(int c)
                     throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String encryptPasswordWithOptionalEncoding(String password)
public static String decryptPasswordWithOptionalEncoding(String password)
password - The encrypted password