|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.libs.Crypto
public class Crypto
Crypto utils
| Constructor Summary | |
|---|---|
Crypto()
|
|
| Method Summary | |
|---|---|
static String |
decryptAES(String value)
Decrypt a String with the AES encryption standard using the application secret |
static String |
decryptAES(String value,
String privateKey)
Decrypt a String with the AES encryption standard. |
static String |
encryptAES(String value)
Encrypt a String with the AES encryption standard using the application secret |
static String |
encryptAES(String value,
String privateKey)
Encrypt a String with the AES encryption standard. |
static String |
passwordHash(String input)
Create an MD5 password hash |
static String |
sign(String message)
Sign a message using the application secret key (HMAC-SHA1) |
static String |
sign(String message,
byte[] key)
Sign a message with a key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Crypto()
| Method Detail |
|---|
public static String sign(String message)
public static String sign(String message,
byte[] key)
message - The message to signkey - The key to use
Exceptionpublic static String passwordHash(String input)
input - The password
public static String encryptAES(String value)
value - The String to encrypt
public static String encryptAES(String value,
String privateKey)
value - The String to encryptprivateKey - The key used to encrypt
public static String decryptAES(String value)
value - An hexadecimal encrypted string
public static String decryptAES(String value,
String privateKey)
value - An hexadecimal encrypted stringprivateKey - The key used to encrypt
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||