public class Crypto
extends java.lang.Object
| Constructor and Description |
|---|
Crypto() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decryptAES(java.lang.String value)
Decrypt a String with the AES encryption standard using the application secret
|
static java.lang.String |
decryptAES(java.lang.String value,
java.lang.String privateKey)
Decrypt a String with the AES encryption standard.
|
static java.lang.String |
encryptAES(java.lang.String value)
Encrypt a String with the AES encryption standard using the application secret
|
static java.lang.String |
encryptAES(java.lang.String value,
java.lang.String privateKey)
Encrypt a String with the AES encryption standard.
|
static java.lang.String |
sign(java.lang.String message)
Signs the given String with HMAC-SHA1 using the application secret key.
|
static java.lang.String |
sign(java.lang.String message,
byte[] key)
Signs the given String with HMAC-SHA1 using the given key.
|
public static java.lang.String sign(java.lang.String message,
byte[] key)
public static java.lang.String sign(java.lang.String message)
public static java.lang.String encryptAES(java.lang.String value)
value - The String to encryptpublic static java.lang.String encryptAES(java.lang.String value,
java.lang.String privateKey)
value - The String to encryptprivateKey - The key used to encryptpublic static java.lang.String decryptAES(java.lang.String value)
value - An hexadecimal encrypted stringpublic static java.lang.String decryptAES(java.lang.String value,
java.lang.String privateKey)
value - An hexadecimal encrypted stringprivateKey - The key used to encrypt