public class CryptoUtils extends Object
| Constructor and Description |
|---|
CryptoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
AES256IGEDecrypt(byte[] src,
byte[] iv,
byte[] key) |
static void |
AES256IGEDecrypt(File src,
File dest,
byte[] iv,
byte[] key) |
static void |
AES256IGEDecryptBig(byte[] src,
byte[] dest,
int len,
byte[] iv,
byte[] key) |
static byte[] |
AES256IGEEncrypt(byte[] src,
byte[] iv,
byte[] key) |
static void |
AES256IGEEncrypt(File src,
File dest,
byte[] iv,
byte[] key) |
static byte[] |
align(byte[] src,
int factor) |
static byte[] |
alignKeyZero(byte[] src,
int size) |
static boolean |
arrayEq(byte[] a,
byte[] b) |
static byte[] |
concat(byte[]... v) |
static byte[] |
fromBigInt(BigInteger val) |
static boolean |
isZero(byte[] src) |
static BigInteger |
loadBigInt(byte[] data) |
static String |
MD5(byte[] src) |
static String |
MD5(File file) |
static String |
MD5(RandomAccessFile randomAccessFile) |
static byte[] |
MD5Raw(byte[] src) |
static byte[] |
RSA(byte[] src,
BigInteger key,
BigInteger exponent) |
static void |
setAESImplementation(AESImplementation implementation) |
static byte[] |
SHA1(byte[]... src1) |
static byte[] |
SHA1(byte[] src) |
static byte[] |
SHA1(InputStream in) |
static byte[] |
SHA1(String fileName) |
static byte[] |
substring(byte[] src,
int start,
int len) |
static String |
ToHex(byte[] src) |
static byte[] |
xor(byte[] a,
byte[] b) |
public static void setAESImplementation(AESImplementation implementation)
public static byte[] RSA(byte[] src,
BigInteger key,
BigInteger exponent)
public static void AES256IGEDecryptBig(byte[] src,
byte[] dest,
int len,
byte[] iv,
byte[] key)
public static byte[] AES256IGEDecrypt(byte[] src,
byte[] iv,
byte[] key)
public static void AES256IGEDecrypt(File src, File dest, byte[] iv, byte[] key) throws IOException
IOExceptionpublic static void AES256IGEEncrypt(File src, File dest, byte[] iv, byte[] key) throws IOException
IOExceptionpublic static byte[] AES256IGEEncrypt(byte[] src,
byte[] iv,
byte[] key)
public static String MD5(byte[] src)
public static String MD5(RandomAccessFile randomAccessFile)
public static byte[] MD5Raw(byte[] src)
public static String ToHex(byte[] src)
public static byte[] SHA1(InputStream in) throws IOException
IOExceptionpublic static byte[] SHA1(String fileName) throws IOException
IOExceptionpublic static byte[] SHA1(byte[] src)
public static byte[] SHA1(byte[]... src1)
public static boolean arrayEq(byte[] a,
byte[] b)
public static byte[] concat(byte[]... v)
public static byte[] substring(byte[] src,
int start,
int len)
public static byte[] align(byte[] src,
int factor)
public static byte[] alignKeyZero(byte[] src,
int size)
public static byte[] xor(byte[] a,
byte[] b)
public static BigInteger loadBigInt(byte[] data)
public static byte[] fromBigInt(BigInteger val)
public static boolean isZero(byte[] src)
Copyright © 2016. All rights reserved.