Beispiel #1
0
 public static byte[] SendDataLaunch <T>(T t, string cipherKey)
 {
     return(AES.EncryptBuffer(CompressHelper.DeflateCompress(SerializationHelper.Serialize <T>(t)), cipherKey));
 }
Beispiel #2
0
 public static object ReceiveDataLaunch(byte[] cipHerBuffer, string cipherKey)
 {
     return(SerializationHelper.Deserialize(CompressHelper.DeflateDecompress(AES.DecryptBuffer(cipHerBuffer, cipherKey))));
 }