public interface Sec
| Modifier and Type | Method and Description |
|---|---|
void |
clearPassword()
Clear the password from heap memory after use.
|
void |
decrypt(String key) |
char[] |
decryptToChar(String key) |
void |
deobfuscate(String key)
Deobfuscate the value of a given key.
|
char[] |
deobfuscateToChar(String key)
Deobfuscate and return a char buffer as used in password APIs.
|
void |
encrypt(String key)
encryption - for this to work you must set a password using the correct constructor.
|
static Sec |
instance(Properties props)
Use this factory method for obfuscation
|
static Sec |
instance(Properties props,
char[] password)
Use this factory method for password-based encryption
|
void |
obfuscate(String key)
Obfuscate the value of the given key.
|
void obfuscate(String key)
key - void deobfuscate(String key)
key - char[] deobfuscateToChar(String key)
key - void encrypt(String key)
key - void decrypt(String key)
char[] decryptToChar(String key)
static Sec instance(Properties props)
props - static Sec instance(Properties props, char[] password)
props - password - void clearPassword()
Copyright © 2011–2018 David R. Smith. All rights reserved.