From dce7172987ccceb4c58c15d37a3ad0e7f84cbdeb Mon Sep 17 00:00:00 2001 From: Jesse-Ma <24167796@qq.com> Date: Fri, 23 Dec 2022 17:39:15 +0800 Subject: [PATCH] aes --- src/main/java/com/flagnote/note/utils/SecretUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/flagnote/note/utils/SecretUtils.java b/src/main/java/com/flagnote/note/utils/SecretUtils.java index 6aa2cad..b97c32c 100644 --- a/src/main/java/com/flagnote/note/utils/SecretUtils.java +++ b/src/main/java/com/flagnote/note/utils/SecretUtils.java @@ -8,7 +8,7 @@ import cn.hutool.crypto.symmetric.AES; public class SecretUtils { - private static AES aes = new AES(Mode.ECB, Padding.ZeroPadding, + private static AES aes = new AES(Mode.ECB, Padding.PKCS5Padding, new SecretKeySpec("b9t3pzbmybc66cba".getBytes(), "AES")); public static byte[] encodeNote(byte[] text) {