三国群英传7termtextt.ini 加密怎么解决...

加密卡常见问题_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
加密卡常见问题
上传于||暂无简介
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩8页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢查看: 7418|回复: 2
为什么我的 三国群英传7 里的TermText.ini文件打开是乱码
帖子主题积分
游民平民, 积分 21, 距离下一级还需 79 积分
在线时间0 小时
我想改武器.
帖子主题积分
金钱218 ¥
在线时间0 小时
下载个破乱码的工具
帖子主题积分
在线时间0 小时
谢谢LS提醒,正在下载了.
Powered byc#ini文件加密-c/c++-电脑编程网c#ini文件加密作者:hassss2008 和相关&&大家可以提供建议也可以直接提供代码------回答---------------其他回答(20分)---------C# code
using S
using System.Collections.G
using System.T
using System.Security.C
namespace Common
{
public class DESEncrypt
public DESEncrypt() { }
#region 数据
/// &summary&
/// &/summary&
/// ¶m name=&str&&要加密的字符串&/param&
/// &returns&&/returns&
public static string Encrypt(string str)
return Encrypt(str,&zhangyue2010&);
/// &summary&
/// 加密处理
/// &/summary&
/// ¶m name=&str&&要加密的字符串&/param&
/// ¶m name=&key&&key值&/param&
/// &returns&&/returns&
public static string Encrypt(string str, string key)
//定义访问数据加密标准
DESCryptoServiceProvider dsp = new DESCryptoServiceProvider();
byte[] inputA
inputArray = Encoding.Default.GetBytes(str);
dsp.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(key,&&).Substring(0,8));
dsp.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(key, &&).Substring(0, 8));
System.IO.MemoryStream ms = new System.IO.MemoryStream();
CryptoStream cs = new CryptoStream(ms, dsp.CreateEncryptor(), CryptoStreamMode.Write);
cs.Write(inputArray,0,inputArray.Length);
cs.FlushFinalBlock();
StringBuilder sb = new StringBuilder();
foreach(byte b in ms.ToArray())
sb.AppendFormat(&{0:X2}&,b);
return sb.ToString();
#endregion
#region 解密数据
/// &summary&
/// 解密处理
/// &/summary&
/// ¶m name=&str&&&/param&
/// &returns&&/returns&
public static string Decrypt(string str)
return Decrypt(str,&zhangyue2010&);
/// &summary&
/// 解密处理
/// &/summary&
/// ¶m name=&str&&&/param&
/// ¶m name=&key&&&/param&
/// &returns&&/returns&
public static string Decrypt(string str, string key)
DESCryptoServiceProvider dsp = new DESCryptoServiceProvider();
len = str.Length / 2;
byte[] inputArray=new byte[len];
for (i = 0; i & i++)
i = Convert.ToInt32(str.Substring(i*2,2),16);
inputArray[i] = (byte)i;
dsp.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(key,&md5&).Substring(0,8));
dsp.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(key, &md5&).Substring(0, 8));
System.IO.MemoryStream ms = new System.IO.MemoryStream();
CryptoStream cs = new CryptoStream(ms,dsp.CreateDecryptor(),CryptoStreamMode.Write);
cs.Write(inputArray,0,inputArray.Length);
cs.FlushFinalBlock();
return Encoding.Default.GetString(ms.ToArray());
#endregion
可以看看呦
------回答---------------其他回答(20分)---------
C# code
using S
using System.Collections.G
using System.T
using System.Security.C
namespace Common
{
public class DESEncrypt
public DESEncrypt() { }
#region 加密数据
/// &summary&
/// 加密处理
/// &/summary&
/// ¶m name=&str&&要加密的字符串&/param&
/// &returns&&/returns&
public static string Encrypt(string str)
return Encrypt(str,&zhangyue2010&);
/// &summary&
/// 加密处理
/// &/summary&
/// ¶m name=&str&&要加密的字符串&/param&
/// ¶m name=&key&&key值&/param&
/// &returns&&/returns&
public static string Encrypt(string str, string key)
//定义访问数据加密标准
DESCryptoServiceProvider dsp = new DESCryptoServiceProvider();
byte[] inputA
inputArray = Encoding.Default.GetBytes(str);
dsp.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(key,&md5&).Substring(0,8));
dsp.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(key, &md5&).Substring(0, 8));
System.IO.MemoryStream ms = new System.IO.MemoryStream();
CryptoStream cs = new CryptoStream(ms, dsp.CreateEncryptor(), CryptoStreamMode.Write);
cs.Write(inputArray,0,inputArray.Length);
cs.FlushFinalBlock();
StringBuilder sb = new StringBuilder();
foreach(byte b in ms.ToArray())
sb.AppendFormat(&{0:X2}&,b);
return sb.ToString();
#endregion
#region 解密数据
/// &summary&
/// 解密处理
/// &/summary&
/// ¶m name=&str&&&/param&
/// &returns&&/returns&
public static string Decrypt(string str)
return Decrypt(str,&zhangyue2010&);
/// &summary&
/// 解密处理
/// &/summary&
/// ¶m name=&str&&&/param&
/// ¶m name=&key&&&/param&
/// &returns&&/returns&
public static string Decrypt(string str, string key)
DESCryptoServiceProvider dsp = new DESCryptoServiceProvider();
len = str.Length / 2;
byte[] inputArray=new byte[len];
for (i = 0; i & i++)
i = Convert.ToInt32(str.Substring(i*2,2),16);
inputArray[i] = (byte)i;
dsp.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(key,&md5&).Substring(0,8));
dsp.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(key, &md5&).Substring(0, 8));
System.IO.MemoryStream ms = new System.IO.MemoryStream();
CryptoStream cs = new CryptoStream(ms,dsp.CreateDecryptor(),CryptoStreamMode.Write);
cs.Write(inputArray,0,inputArray.Length);
cs.FlushFinalBlock();
return Encoding.Default.GetString(ms.ToArray());
#endregion
可以看看呦
相关资料:|||||||c#ini文件加密来源网络,如有侵权请告知,即处理!编程Tags:                &                    

参考资料

 

随机推荐