会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
faib的技术专栏
每天进步1%
http://faib.cnblogs.com
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
公告
WorkHelper 8.180 注册码破解程序
Posted on
2007-12-05 11:23
faib
阅读(
1657
) 评论(
4
)
编辑
收藏
举报
using
System.Security.Cryptography;
using
System.Text;
using
System.IO;
using
Microsoft.VisualBasic;
/**/
///
<summary>
///
///
</summary>
///
<param name="RegCode">
机器码
</param>
///
<returns></returns>
public
string
Decrypt(
string
RegCode)
{
DESCryptoServiceProvider provider
=
new
DESCryptoServiceProvider();
provider.Key
=
Encoding.ASCII.GetBytes(Strings.UCase(Strings.Left(
"
WorkHelper 办公助手 8.180
"
,
8
)));
provider.IV
=
Encoding.ASCII.GetBytes(Strings.UCase(Strings.Left(
"
WorkHelper 办公助手 8.180
"
,
8
)));
string
s
=
Strings.UCase(Environment.MachineName);
byte
[] buffer
=
Encoding.ASCII.GetBytes(RegCode.Substring(
0
,
1
));
MemoryStream stream2
=
new
MemoryStream();
CryptoStream stream
=
new
CryptoStream(stream2, provider.CreateEncryptor(), CryptoStreamMode.Write);
stream.Write(buffer,
0
, buffer.Length);
stream.FlushFinalBlock();
StringBuilder ret
=
new
StringBuilder();
foreach
(
byte
b
in
stream2.ToArray())
ret.AppendFormat(
"
{0:X2}
"
, b);
ret.Insert(
6
,
"
00
"
);
return
ret.ToString();
}
会员力量,点亮园子希望
刷新页面
返回顶部
Powered by:
博客园
Copyright © 2024 faib
Powered by .NET 8.0 on Kubernetes