日期:2014-05-19  浏览次数:20751 次

关于加密
dataGridViewColumn.HeaderText   =   "\u64cd\u4f5c "     (操作)


\u7ad9\u70b9\u540d\u79f0                                                 (站点名称)


想问一下有谁知道这个是什么方式加密的吗   怎么还原?

------解决方案--------------------
不是加密,是Unicode编码
------解决方案--------------------
这里没有加密。你反编译只能看到unicode编码。
------解决方案--------------------
string strU = @ "\u64cd\u4f5c\u7ad9\u70b9\u540d\u79f0 ";
List <byte> bList = new List <byte> ();
System.Text.RegularExpressions.MatchCollection res =
System.Text.RegularExpressions.Regex.Matches(strU,
@ "(? <=\\u)([\d\w]{2})([\d\w]{2}) ");
foreach (System.Text.RegularExpressions.Match m in res)
{
bList.Add(Convert.ToByte(m.Groups[2].Value,16));
bList.Add(Convert.ToByte(m.Groups[1].Value,16));
}
string strDst = System.Text.Encoding.Unicode.GetString(bList.ToArray());
MessageBox.Show(strDst);
------解决方案--------------------
政则表达式写复杂了。(? <=\\u)([\w]{2})([\w]{2})就可以了。
------解决方案--------------------
这个是混淆器的功劳。没办法还原的。