易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET中字符串进行MD5加密

最近在看《asp.net通用模块及典型系统开发实例导航》,其中用到了MD5加密,代码如下: /// <summary>
/// 字符串加密函数
/// </summary>
/// <param name="strInput">输入被加密的字符串</param>
/// <returns>加密后的字符串</returns>
public static string Encrypt(string strInput)
{
//转换为UTF8编码
byte[] b = System.Text.Encoding.UTF8.GetBytes(strInput);
//计算字符串UTF8编码后的MD5哈希值,并转换为字符串
MD5 md5 = new MD5CryptoServiceProvider();
return System.Text.Encoding.UTF8.GetString(md5.ComputeHash(b));
}

在IE下测试了,在数据库里看到的确实是加密之后的字符串。
现在考虑的问题是,该如何实现解密?


相关文档:

asp.net 制作安装包并自动安装SQL数据库

一).创建部署项目    
  1.   在“文件”菜单上指向“添加项目”,然后选择“新建项目”。    
  2.   在“添加新项目”对话框中,选择“项目类型”窗格中的“安装和部署项目”,然后选择“模板”窗格 ......

asp.net实现网页信息采集的几点思考

最近公司需要开发一个简历导入功能,类似博客搬家或者邮箱搬家,之前抓取信息是利用火车采集器,但是简历导入功能需要用户登陆以后才能获取简历数据,无奈只好自己开发了。
首先是遇到的问题是:如何实现模拟登陆?
我们知道一般的网站都是通过Cookies来维护状态的,我抓的网站也是支持利用Cookies来验证用户的,构造一个 ......

IIS7发布asp.net站点

HTTP Error 500.19 - Internal Server Error
一 首先解锁
配置错误: 不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。锁定是默认设置的(overrideModeDefault="Deny"),或者是通过包含 overrideMode="Deny" 或旧有的 allowOverride="false" 的位置标记明确设置的。
出现这个错误是因为 IIS 7.5 ......

C# asp.net如何使用MD5加密,解密

using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;namespace md5
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(UserMd5("8"));
Console.WriteLine(GetMd5Str("8"));
}
/**//// &lt;summary&gt;
/// MD5 16位加密 ......

Online active users counter in ASP.NET


Online active users counter in ASP.NET
With this tool which is written for ASP.NET, it is possible to count the number of online users, members and guest users in web sites.
Installation
The tool installation is very simple and only takes a few minutes.
Step one - Add Reference:
After downlo ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号