|
@@ -78,7 +78,7 @@ namespace Common
|
|
|
DESCryptoServiceProvider DES = new DESCryptoServiceProvider();
|
|
|
DES.Key = Encoding.UTF8.GetBytes(Key3des);
|
|
|
DES.Mode = CipherMode.ECB;
|
|
|
- DES.Padding = PaddingMode.Zeros;
|
|
|
+ DES.Padding = PaddingMode.PKCS7;
|
|
|
ICryptoTransform DESEncrypt = DES.CreateEncryptor();
|
|
|
byte[] Buffer = Encoding.UTF8.GetBytes(a_strString);
|
|
|
return Convert.ToBase64String(DESEncrypt.TransformFinalBlock(Buffer, 0, Buffer.Length));
|