Example #1
0
        /// <summary>
        /// Decrypts the packet data
        /// </summary>
        /// <returns></returns>
        public bool Decrypt()
        {
            LACrypt.Xor(Data, Connection.Counter.Count);
            Connection.Counter.Increase();

            return(true);
        }
Example #2
0
 /// <summary>
 /// Encrypts the packet data - generally used for server packets
 /// </summary>
 /// <returns></returns>
 public bool Encrypt()
 {
     LACrypt.Xor(Data, OpCode);
     return(true);
 }