public class PBEManager extends CryptManager
This encryption algorithm needs a seed (salt) and an iteration counter (iteration count) that allow to encrypt/decrypt the given object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
LOGGER
Log
|
Constructor and Description |
---|
PBEManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decrypt(java.lang.String str)
Decrypt the given string
|
java.lang.String |
encrypt(java.lang.String str)
Encrypt the given string
|
void |
initialize()
Initializes the manager
|
main
public void initialize()
initialize
in class CryptManager
public java.lang.String encrypt(java.lang.String str) throws java.lang.Exception
encrypt
in class CryptManager
str
- String to encryptjava.lang.Exception
public java.lang.String decrypt(java.lang.String str) throws java.lang.Exception
decrypt
in class CryptManager
str
- String to decryptjava.lang.Exception