Encrypt() public abstract method

public abstract Encrypt ( string data ) : byte[]
data string
return byte[]
Example #1
0
 public void SendPacket(string packet, byte priority = 10)
 {
     if (!IsDisposing && packet != null && packet != string.Empty)
     {
         ScsRawDataMessage rawMessage = new ScsRawDataMessage(_encryptor.Encrypt(packet));
         SendMessage(rawMessage, priority);
     }
 }
Example #2
0
 public void Send(string packet)
 {
     if (!IsDisposing)
     {
         ScsRawDataMessage rawMessage = new ScsRawDataMessage(_encryptor.Encrypt(packet));
         SendMessage(rawMessage);
     }
 }
Example #3
0
 public void SendPacket(string packet)
 {
     if (!IsDisposing)
     {
         ScsRawDataMessage rawMessage = new ScsRawDataMessage(_encryptor.Encrypt(packet));
         //Logger.Debug(packet, -1);
         SendMessage(rawMessage);
     }
 }
Example #4
0
 public bool SendPacket(string packet)
 {
     try
     {
         ScsRawDataMessage rawMessage = new ScsRawDataMessage(_encryptor.Encrypt(packet));
         SendMessage(rawMessage);
         return(true);
     }
     catch (Exception e)
     {
         Logger.Log.ErrorFormat(Language.Instance.GetMessageFromKey("PACKET_FAILURE"), packet, ClientId, e.Message);
         return(false);
     }
 }