public final class Obfuscater extends Object
Support for obfuscated properties. You can set a password for further security, but remember you must also have that value available to deobfuscate, and there is no password recovery functionality.
| Modifier and Type | Field and Description |
|---|---|
(package private) char[] |
defaultPassword |
(package private) int |
ITERATIONS |
(package private) int |
KEY_LENGTH |
(package private) char[] |
password |
(package private) byte[] |
salt |
| Constructor and Description |
|---|
Obfuscater() |
Obfuscater(char[] password) |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String inBase64) |
byte[] |
decryptToBytes(String inBase64) |
char[] |
decryptToChar(String inBase64) |
char[] |
decryptToChar(String inBase64,
Charset charset) |
String |
encrypt(byte[] in) |
String |
encrypt(char[] in) |
String |
encrypt(char[] in,
Charset charset) |
String |
encrypt(String in) |
static void |
main(String[] args)
Simple main method for utility use case.
|
final byte[] salt
final char[] defaultPassword
final int KEY_LENGTH
final int ITERATIONS
final char[] password
public final byte[] decryptToBytes(String inBase64)
public final char[] decryptToChar(String inBase64)
public final String encrypt(char[] in)
public final String encrypt(byte[] in)
public static void main(String[] args)
args - Copyright © 2011–2016 David R. Smith. All rights reserved.