修复错误的aes padding
This commit is contained in:
parent
2bcb61dd02
commit
0eac8dc951
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user