YYC
2025-04-25 9cec6b5c40e716cba4ab687f1e8a61c9cd95b2d7
src/main/java/com/fzzy/api/utils/AESUtils.java
@@ -102,7 +102,7 @@
//            System.out.print("Key长度不是16位");
//            return null;
//        }
        SecretKey secretKey = new SecretKeySpec(key.getBytes(ENCODING), ALGORITHM_ECB);
        SecretKey secretKey = new SecretKeySpec(key.getBytes(ENCODING), ALGORITHM);
        // AES加密采用pkcs5padding填充
        Cipher cipher = Cipher.getInstance(PATTERN);
        //用密匙初始化Cipher对象