Fix bug
This commit is contained in:
parent
dbb4cb8991
commit
05f1270498
|
@ -68,6 +68,8 @@ namespace Pillager.Tools
|
||||||
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
|
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
|
||||||
des.Key = key;
|
des.Key = key;
|
||||||
des.IV = TripleDesIV;
|
des.IV = TripleDesIV;
|
||||||
|
des.Padding = PaddingMode.PKCS7;
|
||||||
|
des.Mode = CipherMode.ECB;
|
||||||
MemoryStream ms = new MemoryStream();
|
MemoryStream ms = new MemoryStream();
|
||||||
CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(), CryptoStreamMode.Write);
|
CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(), CryptoStreamMode.Write);
|
||||||
cs.Write(data, 0, data.Length);
|
cs.Write(data, 0, data.Length);
|
||||||
|
|
Loading…
Reference in New Issue