#include <Windows.h>
#include <iostream>
#include <fstream>
#include <string>
// 加解密函数,使用XOR运算
void XORCrypt(char* data, int size, const std::string& key) {
int keyLength = key.length();
for (int i = 0; i < size; ++i) {
data[i] = data[i] ^ key[i % keyLength]; // 使用循环的方式重复密钥