Files
Intellix/Intelix.Helper.Encrypted/Xor.cs
T
2026-08-27 10:55:23 -06:00

17 lines
325 B
C#

using System.Text;
namespace Intelix.Helper.Encrypted;
public static class Xor
{
public static string DecryptString(string input, byte key)
{
byte[] bytes = Encoding.UTF8.GetBytes(input);
for (int i = 0; i < bytes.Length; i++)
{
bytes[i] ^= key;
}
return Encoding.UTF8.GetString(bytes);
}
}