public class CryptoHelper extends Object
| Constructor and Description |
|---|
CryptoHelper() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decodeBase64(String base64String) |
static String |
encodeBase64(byte[] data) |
static byte[] |
encryptAESCBCPKCS7(byte[] clear,
byte[] key,
int keyOffset,
int keyLen,
byte[] iv,
int ivOffset,
int ivLen) |
static byte[] |
generateRandomSeed(int length) |
static byte[] |
sha1(byte[] data) |
public static final byte[] generateRandomSeed(int length)
public static final byte[] sha1(byte[] data)
public static final String encodeBase64(byte[] data)
public static final byte[] decodeBase64(String base64String)
public static final byte[] encryptAESCBCPKCS7(byte[] clear,
byte[] key,
int keyOffset,
int keyLen,
byte[] iv,
int ivOffset,
int ivLen)
throws com.googlecode.gwt.crypto.bouncycastle.DataLengthException,
IllegalStateException,
com.googlecode.gwt.crypto.bouncycastle.InvalidCipherTextException
com.googlecode.gwt.crypto.bouncycastle.DataLengthExceptionIllegalStateExceptioncom.googlecode.gwt.crypto.bouncycastle.InvalidCipherTextExceptionCopyright © 2018. All rights reserved.