Class XorEncryptLayer
Inheritance
System.Object
XorEncryptLayer
Assembly: LiteNetLib.dll
Syntax
public class XorEncryptLayer : PacketLayerBase
Constructors
XorEncryptLayer()
Declaration
XorEncryptLayer(Byte[])
Declaration
public XorEncryptLayer(byte[] key)
Parameters
Type |
Name |
Description |
System.Byte[] |
key |
|
XorEncryptLayer(String)
Declaration
public XorEncryptLayer(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Methods
ProcessInboundPacket(ref Byte[], ref Int32)
Declaration
public override void ProcessInboundPacket(ref byte[] data, ref int length)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
|
System.Int32 |
length |
|
Overrides
ProcessOutBoundPacket(ref Byte[], ref Int32, ref Int32)
Declaration
public override void ProcessOutBoundPacket(ref byte[] data, ref int offset, ref int length)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
|
System.Int32 |
offset |
|
System.Int32 |
length |
|
Overrides
SetKey(Byte[])
Declaration
public void SetKey(byte[] key)
Parameters
Type |
Name |
Description |
System.Byte[] |
key |
|
SetKey(String)
Declaration
public void SetKey(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|