public class PBECipher extends Object
| Modifier and Type | Field and Description |
|---|---|
protected MessageDigest |
_digester |
protected boolean |
_onLinux |
protected SecureRandom |
_secureRandom |
protected static int |
CHUNK_SIZE |
protected static String |
CIPHER_ALG |
protected static String |
DIGEST_ALG |
protected static String |
KEY_ALG |
protected static int |
PBE_ITERATIONS |
protected static int |
SALT_SIZE |
protected static int |
SPICE_SIZE |
protected static String |
STRING_ENCODING |
protected static byte |
WIPER |
| Constructor and Description |
|---|
PBECipher() |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt64(String encryptedText,
String password) |
String |
encrypt64(String clearText,
String password) |
protected static final String STRING_ENCODING
protected static final int SPICE_SIZE
protected static final int SALT_SIZE
protected static final int CHUNK_SIZE
protected static final byte WIPER
protected static final String DIGEST_ALG
protected static final String KEY_ALG
protected static final String CIPHER_ALG
protected static int PBE_ITERATIONS
protected MessageDigest _digester
protected SecureRandom _secureRandom
protected boolean _onLinux
public PBECipher()
throws PlexusCipherException
PlexusCipherExceptionpublic String encrypt64(String clearText, String password) throws PlexusCipherException
PlexusCipherExceptionpublic String decrypt64(String encryptedText, String password) throws PlexusCipherException
PlexusCipherExceptionCopyright © 2017. All rights reserved.