public class AESCrtUtils extends Object
| Constructor and Description |
|---|
AESCrtUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] encodeBytes,
byte[] keyBytes,
byte[] ivBytes)
AES CTR 解密
|
static String |
decrypt(String encode,
String key)
解密
|
static String |
encrypt(String content,
byte[] keyBytes,
byte[] ivBytes) |
static byte[] |
getDefaultIvBytes() |
static String |
getRandomKey() |
public static byte[] getDefaultIvBytes()
public static String getRandomKey()
public static byte[] decrypt(byte[] encodeBytes,
byte[] keyBytes,
byte[] ivBytes)
encode - 加密过后的文件iv - 偏移量key - 秘钥文件Copyright © 2021. All rights reserved.