/// <summary> /// Decrypts the packet data /// </summary> /// <returns></returns> public bool Decrypt() { LACrypt.Xor(Data, Connection.Counter.Count); Connection.Counter.Increase(); return(true); }
/// <summary> /// Encrypts the packet data - generally used for server packets /// </summary> /// <returns></returns> public bool Encrypt() { LACrypt.Xor(Data, OpCode); return(true); }