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