rmdec/RMDEC/RMProject.cs

27 lines
548 B
C#
Raw Normal View History

2019-12-15 04:50:00 +00:00
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RMDEC
{
class RMProject
{
public static Byte[] Xor(byte[] input, byte[] key)
{
long inpLen = input.LongLength;
byte[] output = new byte[inpLen];
for (long i = 0; i < input.LongLength; i++)
{
output[i] = (byte)(input[i] ^ key[i % key.LongLength]);
}
return output;
}
}
}