public class AESCrtUtils extends Object
| 构造器和说明 |
|---|
AESCrtUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
encodeBytes - 加密过后的文件keyBytes - 偏移量ivBytes - 秘钥文件Copyright © 2022. All rights reserved.