public class TripleDES extends Encryption
| Constructor and Description |
|---|
TripleDES() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decodeAndDecrypt(java.lang.String value,
java.lang.String hexKey) |
static java.lang.String |
decrypt(byte[] input,
java.lang.String keyString) |
static byte[] |
encrypt(java.lang.String input,
java.lang.String keyString) |
static java.lang.String |
encryptAndEncode(java.lang.String value,
java.lang.String hexKey) |
base64Decode, base64Encodepublic static java.lang.String encryptAndEncode(java.lang.String value,
java.lang.String hexKey)
throws CryptoException
CryptoExceptionpublic static java.lang.String decodeAndDecrypt(java.lang.String value,
java.lang.String hexKey)
throws CryptoException
CryptoExceptionpublic static byte[] encrypt(java.lang.String input,
java.lang.String keyString)
throws java.io.UnsupportedEncodingException,
java.security.GeneralSecurityException,
org.apache.commons.codec.DecoderException
java.io.UnsupportedEncodingExceptionjava.security.GeneralSecurityExceptionorg.apache.commons.codec.DecoderExceptionpublic static java.lang.String decrypt(byte[] input,
java.lang.String keyString)
throws java.io.UnsupportedEncodingException,
java.security.GeneralSecurityException,
org.apache.commons.codec.DecoderException
java.io.UnsupportedEncodingExceptionjava.security.GeneralSecurityExceptionorg.apache.commons.codec.DecoderException