From 070bc6b0545c6a16ab3a69735692825b38c63bf2 Mon Sep 17 00:00:00 2001 From: Alum Date: Sat, 20 Jan 2024 18:32:26 +0800 Subject: [PATCH] =?UTF-8?q?AES=E5=AF=86=E7=A0=81=E7=AD=BE=E5=90=8D?= =?UTF-8?q?=E5=8F=98=E6=9B=B4CBC=E3=80=81PKCS5=E6=94=AF=E6=8C=81C#?= =?UTF-8?q?=E3=80=81NET=E5=AF=86=E7=A0=81=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java b/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java index 61c18ef6c..2a27cb1fe 100755 --- a/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java +++ b/pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/PasswordDecoderFilter.java @@ -118,7 +118,7 @@ public class PasswordDecoderFilter extends AbstractGatewayFilterFactory { private Function decryptAES() { return s -> { // 构建前端对应解密AES 因子 - AES aes = new AES(Mode.CFB, Padding.NoPadding, + AES aes = new AES(Mode.CBC, Padding.PKCS5Padding, new SecretKeySpec(gatewayConfig.getEncodeKey().getBytes(), KEY_ALGORITHM), new IvParameterSpec(gatewayConfig.getEncodeKey().getBytes())); -- Gitee