好友
阅读权限20
听众
最后登录1970-1-1
|
ajm3
发表于 2016-5-29 03:16
本帖最后由 ajm3 于 2016-6-4 03:54 编辑
分享一个优秀的软件的C# 加密字符串的方法,我看到很不错 特意截下了代码和dll分享给大家,给大神一些思路,新手勿看
对应的解密教程帖子传送门:[ C# .NET]程序des加密解密,并编写算法解密程序,和写注册机一样的http://www.52pojie.cn/thread-503757-1-1.html
[Asm] 纯文本查看 复制代码 static oDefine()
{
key = "21388180130213";
deskey = "60260075215";
desIvkey = "79038124227";
rgb = new byte[] { 0x45, 0x56, 0x67, 120, 0x89, 0xcc, 0xcd, 0xce };
desKey = new byte[] { 0x34, 0x45, 0x56, 0x67, 120, 0xbb, 0xbc, 0xcd };
desIV = new byte[] { 0x23, 0x34, 0x45, 0x56, 0x67, 170, 0xab, 0xbc };
serverAdress = "0sMX1wcRRywIQpVDhyUrTg==";
rePstr = "system.exception: ";
vs = "sbrsBPRj4OPwTQk2jKn2gw==";
ssWsf = "checkServerIsValid";
cWlf = "checkWlIsRight";
dAddress = "Cru8fRVjto1UAAbeaA173crNcUcdLLm8btSfHefhqWy5M3g4Ky9f+5vQvTmm3Mgw9kyJ7HJDX5c=";
uAddress = "4Jwav1mJIIczoGMKlvOQmE88Bl3EUvd+gPJQnwyUm4CDexA5bZGrYftZHS6N6qvH3s2v0l+LtZw=";
gAddress = "f7hFQXoLBovVvzyPM2t2JIzWrCAnp+nEerdCa4poBmY2NoHP7+YDxQnY1oIdoAj1";
bAddress = "fyEEgUw/jkrK9qqzSB6kzQ==";
cAddress = "ArJvaQrlMQuGx+KqAy9b8XRZjFDryts4";
iSysDataFunction = "getFunctionData";
idValidV1 = "getIdIsValidV1";
}
205 0xcdstatic oDefine()
{
key = "21388180130213";
deskey = "60260075215";
desIvkey = "79038124227";
rgb = new byte[] { 0x45, 0x56, 0x67, 120, 0x89, 0xcc, 0xcd, 0xce };
desKey = new byte[] { 0x34, 0x45, 0x56, 0x67, 120, 0xbb, 0xbc, 0xcd };
desIV = new byte[] { 0x23, 0x34, 0x45, 0x56, 0x67, 170, 0xab, 0xbc };
serverAdress = "0sMX1wcRRywIQpVDhyUrTg==";
rePstr = "system.exception: ";
vs = "sbrsBPRj4OPwTQk2jKn2gw==";
ssWsf = "checkServerIsValid";
cWlf = "checkWlIsRight";
dAddress = "Cru8fRVjto1UAAbeaA173crNcUcdLLm8btSfHefhqWy5M3g4Ky9f+5vQvTmm3Mgw9kyJ7HJDX5c=";
uAddress = "4Jwav1mJIIczoGMKlvOQmE88Bl3EUvd+gPJQnwyUm4CDexA5bZGrYftZHS6N6qvH3s2v0l+LtZw=";
gAddress = "f7hFQXoLBovVvzyPM2t2JIzWrCAnp+nEerdCa4poBmY2NoHP7+YDxQnY1oIdoAj1";
bAddress = "fyEEgUw/jkrK9qqzSB6kzQ==";
cAddress = "ArJvaQrlMQuGx+KqAy9b8XRZjFDryts4";
iSysDataFunction = "getFunctionData";
idValidV1 = "getIdIsValidV1";
}
经过楼主分析[Asm] 纯文本查看 复制代码 serverAdress = "0sMX1wcRRywIQpVDhyUrTg=="; 解密后结果为12.26.200.120
这是一个软件的后台验证地址,被楼主解密了,有人会解密吗,试试其他的
比如
[Asm] 纯文本查看 复制代码 dAddress = "Cru8fRVjto1UAAbeaA173crNcUcdLLm8btSfHefhqWy5M3g4Ky9f+5vQvTmm3Mgw9kyJ7HJDX5c=";
uAddress = "4Jwav1mJIIczoGMKlvOQmE88Bl3EUvd+gPJQnwyUm4CDexA5bZGrYftZHS6N6qvH3s2v0l+LtZw=";
gAddress = "f7hFQXoLBovVvzyPM2t2JIzWrCAnp+nEerdCa4poBmY2NoHP7+YDxQnY1oIdoAj1";
bAddress = "fyEEgUw/jkrK9qqzSB6kzQ==";
cAddress = "ArJvaQrlMQuGx+KqAy9b8XRZjFDryts4";
钥匙都给你了
[Asm] 纯文本查看 复制代码
key = "21388180130213";
deskey = "60260075215";
desIvkey = "79038124227";
rgb = new byte[] { 0x45, 0x56, 0x67, 120, 0x89, 0xcc, 0xcd, 0xce };
desKey = new byte[] { 0x34, 0x45, 0x56, 0x67, 120, 0xbb, 0xbc, 0xcd };
desIV = new byte[] { 0x23, 0x34, 0x45, 0x56, 0x67, 170, 0xab, 0xbc };
这是钥匙,再不会楼主就没办法了
顺便附上dll文件供大家参考,这断代码在NPOI.OpenDocFormats.oDefine..cctor()里面
给大家学习一下C#的des加密方式,只要能运用就可以加密任何你不想别人看到的string
调用方法
[Asm] 纯文本查看 复制代码 internal static string getAdFromDomain()
{
try
{
return Dns.GetHostEntry(oGetStrInfo(oDefine.cAddress)).AddressList[0].ToString();
}
catch
{
return openDocFormats.oGetStrInfo(oDefine.serverAdress);
}
}
等等,大神应该都知道,如果你能解密上面的密文,那你就是大神的大神了。。。。提供一个加密方法供大家参考,因为我发现C#加密的软件很少很少,主要是能用的很少
NPOI.OpenDocFormats.zip
(5.95 KB, 下载次数: 62)
|
本帖被以下淘专辑推荐:
- · 学习及教程|主题: 1126, 订阅: 1118
|