From 0eac8dc9516033828a769edaa8755ad51061d542 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Sat, 4 Jan 2025 00:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E7=9A=84ae?= =?UTF-8?q?s=20padding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- minitool3/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minitool3/Program.cs b/minitool3/Program.cs index b97cbba..4869d8e 100644 --- a/minitool3/Program.cs +++ b/minitool3/Program.cs @@ -87,7 +87,7 @@ namespace minitool3 aes.Key = sha256Key; aes.IV = iv; aes.Mode = CipherMode.CBC; - aes.Padding = PaddingMode.PKCS7; + aes.Padding = PaddingMode.None; using var decryptor = aes.CreateDecryptor(); using var memoryStream = new MemoryStream(cipherText);