This commit is contained in:
ZCShou 2020-09-14 08:20:12 +08:00
parent 054790933a
commit 6e03614150
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -20,7 +20,10 @@ public class AESUtils {
public static final int KEY_LENGTH_24 = 24;
// 32 字节 AES秘钥长度256bit
public static final int KEY_LENGTH_32 = 32;
private static String cipherMode = "AES/ECB/PKCS5Padding";//算法/模式/补码方式
// 实际上 RSA / ECB / PKCS1Padding未实现ECB模式加密 它应该被称为 RSA / None / PKCS1Padding
// 因为它只能用于加密单个明文块或者实际上是一个秘密密钥 这只是Sun / Oracle的命名错误
private static final String cipherMode = "AES/None/PKCS5Padding";//算法/模式/补码方式
// public static void main(String[] args) {