public class CryptoJsWrapper
extends java.lang.Object
Constructor and Description |
---|
CryptoJsWrapper() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
bytesToBase64(byte[] bytes) |
static byte[] |
bytesToHex(byte[] bytes) |
static byte[] |
bytesToString(byte[] bytes) |
static java.lang.String |
decryptAES(java.lang.String data,
java.lang.String passphrase) |
static java.lang.String |
decryptAES(java.lang.String data,
java.lang.String passphrase,
java.lang.String salt,
int keylength,
int nrOfIterations) |
static java.lang.String |
encryptAES(java.lang.String data,
java.lang.String passphrase) |
static java.lang.String |
encryptAES(java.lang.String data,
java.lang.String passphrase,
java.lang.String salt,
int keylength,
int nrOfIterations) |
static java.lang.String |
hmac(java.lang.String data,
java.lang.String passphrase) |
static java.lang.String |
pbkdf2(java.lang.String passphrase,
java.lang.String salt,
int keylength,
int nrOfIterations) |
static java.lang.String |
sha1(java.lang.String msg) |
public static java.lang.String sha1(java.lang.String msg)
public static java.lang.String hmac(java.lang.String data, java.lang.String passphrase)
public static java.lang.String encryptAES(java.lang.String data, java.lang.String passphrase)
public static java.lang.String decryptAES(java.lang.String data, java.lang.String passphrase)
public static java.lang.String encryptAES(java.lang.String data, java.lang.String passphrase, java.lang.String salt, int keylength, int nrOfIterations)
public static java.lang.String pbkdf2(java.lang.String passphrase, java.lang.String salt, int keylength, int nrOfIterations)
public static java.lang.String decryptAES(java.lang.String data, java.lang.String passphrase, java.lang.String salt, int keylength, int nrOfIterations)
public static byte[] bytesToBase64(byte[] bytes)
public static byte[] bytesToString(byte[] bytes)
public static byte[] bytesToHex(byte[] bytes)