SCHALE.GameServer/SCHALE.Common/Crypto/XOR.cs

14 lines
282 B
C#
Raw Normal View History

2024-04-18 07:12:10 +00:00
namespace SCHALE.Common.Crypto
{
public static class XOR
{
public static void Crypt(byte[] bytes, byte key, uint offset = 0)
{
while (offset < bytes.Length)
{
bytes[offset++] ^= key;
}
}
}
}