3 Star 25 Fork 9

freez / WeChatImageDataEncryption

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
EncryptionUtil.cs 516 Bytes
一键复制 编辑 原始数据 按行查看 历史
freez 提交于 2019-12-31 09:14 . 提交
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WeChatImageDatEncryption
{
public class EncryptionUtil
{
public static byte[] EnDeFile(byte[] filebuffer, int key) {
byte[] newBuffer = new byte[filebuffer.Length];
for (int i = 0; i < filebuffer.Length; i++)
{
newBuffer[i] = (byte)(filebuffer[i] ^ key);
}
return newBuffer;
}
}
}
C#
1
https://gitee.com/freeys/WeChatImageDataEncryption.git
git@gitee.com:freeys/WeChatImageDataEncryption.git
freeys
WeChatImageDataEncryption
WeChatImageDataEncryption
master

搜索帮助