修复错误的aes padding

This commit is contained in:
Chenx221 2025-01-04 00:28:19 +08:00
parent 2bcb61dd02
commit 0eac8dc951
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -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);