public class AESUtil extends Object
Constructor and Description |
---|
AESUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
decryptCTR(byte[] concatenatedHashValue,
String base64EncryptedLong,
SecretKey symmetricKey)
AES decryption of a long in CTR mode
|
static String |
encryptCTR(byte[] concatenatedHashValue,
Long number,
SecretKey symmetricKey)
AES encryption of a long in CTR mode
|
public static String encryptCTR(byte[] concatenatedHashValue, Long number, SecretKey symmetricKey) throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException
public static long decryptCTR(byte[] concatenatedHashValue, String base64EncryptedLong, SecretKey symmetricKey) throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException
Copyright © 2021. All rights reserved.