public class CryptoHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
CryptoHelper() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
AdlerHash(byte[] input)
Performs an Adler32 on the given input
|
static byte[] |
CRCHash(byte[] input)
Performs CRC32 on an input byte array using the CrcStandard.Crc32Bit parameters
|
static byte[] |
GenerateRandomBlock(int size)
Generate an array of random bytes given the input length
|
static byte[] |
JenkinsHash(byte[] input)
Performs the Jenkins hash on an input byte array
|
static byte[] |
SHAHash(byte[] input)
Performs an SHA1 hash of an input byte array
|
static byte[] |
SymmetricDecrypt(byte[] input,
byte[] key)
Decrypts using AES/CBC/PKCS7 with an input byte array and key, using the random IV prepended using AES/ECB/None
|
static byte[] |
SymmetricEncrypt(byte[] input,
byte[] key)
Performs an encryption using AES/CBC/PKCS7 with an input byte array and key, with a random IV prepended using AES/ECB/None
|
public static byte[] SHAHash(byte[] input)
public static byte[] SymmetricEncrypt(byte[] input, byte[] key)
public static byte[] SymmetricDecrypt(byte[] input, byte[] key)
public static byte[] JenkinsHash(byte[] input)
public static byte[] CRCHash(byte[] input)
public static byte[] AdlerHash(byte[] input)
public static byte[] GenerateRandomBlock(int size)
Copyright © 2012. All Rights Reserved.