12 using System.Security.Cryptography;
27 private static MemoryStream
ms =
null;
28 private static CryptoStream
cs =
null;
32 #region Data Decryption 45 inputByteArray = Convert.FromBase64String(SensorData.Replace(
" ",
"+"));
46 using (DESCryptoServiceProvider des =
new DESCryptoServiceProvider())
48 ms =
new MemoryStream();
51 cs.FlushFinalBlock();
52 Encoding encoding = Encoding.UTF8;
59 #endregion Data Decryption static byte [] inputByteArray
static string DecryptData(string SensorData)
This method decrypt the sensor data
static byte [] SensorKeyByte
static byte [] SensorIVByte