private static void OutputLic(string FilePath)
{
System.Security.Cryptography.DESCryptoServiceProvider des = new System.Security.Cryptography.DESCryptoServiceProvider();
des.IV = new byte[] { 70, 0x35, 50, 0x42, 0x31, 0x38, 0x36, 70 };
des.Key = new byte[] { 70, 0x35, 50, 0x42, 0x31, 0x38, 0x36, 70 };
using (FileStream fs = new FileStream(FilePath, FileMode.Create, FileAccess.Write, FileShare.None))
{
using (CryptoStream cs = new CryptoStream(fs, des.CreateEncryptor(), CryptoStreamMode.Write))
{
using (StreamWriter sw = new StreamWriter(cs))
{
sw.Write("None;zh-cn;None;8H489467LS631834L;CuteEditor.Editor for asp.net is licensed.;1.6;5;likefeng.com;125.76.229.233;09/09/2099");
}
}
Console.ReadLine();
}
}
将数据流链接到加密转换的流
最新推荐文章于 2021-12-23 15:46:55 发布