This commit is contained in:
簞純 2023-12-08 23:17:09 +08:00
parent dbb4cb8991
commit 05f1270498
1 changed files with 3 additions and 1 deletions

View File

@ -68,6 +68,8 @@ namespace Pillager.Tools
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
des.Key = key;
des.IV = TripleDesIV;
des.Padding = PaddingMode.PKCS7;
des.Mode = CipherMode.ECB;
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(), CryptoStreamMode.Write);
cs.Write(data, 0, data.Length);