public class SymmetricEncryptor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.crypto.Cipher |
dcipher |
protected static byte[] |
defaultSalt |
protected javax.crypto.Cipher |
ecipher |
protected int |
iterationCount |
| Constructor and Description |
|---|
SymmetricEncryptor(java.lang.String passPhrase) |
SymmetricEncryptor(java.lang.String passPhrase,
byte[] salt,
int iterationCount) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decrypt(java.lang.String str)
Symmetrically decrypts the string.
|
java.lang.String |
encrypt(java.lang.String str)
Symmetrically encrypts the string.
|
protected final javax.crypto.Cipher ecipher
protected final javax.crypto.Cipher dcipher
protected final int iterationCount
protected static final byte[] defaultSalt
Copyright © 2003-present Jodd Team