czt
2025-06-30 b6faf70a938ca9e014d34b235dec449f2a21abb4
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对象