This repository has been archived on 2025-01-22. You can view files and clone it, but cannot push or open issues or pull requests.
|
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[offset % key.Length];
|
|
offset++;
|
|
}
|
|
}
|
|
}
|
|
}
|