Beispiel #1
0
        public void SendMessage(string msg)
        {
            if (key == null)
            {
                return;
            }
            string enMsg = CryptoClass.TDESencodeString(msg, key);

            byte[] endMsg = Encoding.ASCII.GetBytes(enMsg);
            try
            {
                ns.Write(endMsg, 0, endMsg.Length);
            }
            catch (Exception ex)
            {
            }
        }