易截截图软件、单文件、免安装、纯绿色、仅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实现网页信息采集的几点思考

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

在asp.net中怎样跳转框架

我有一个login.aspx的页面,假如登录成功后就会自动跳转到index.html的框架. 
index.html有三个页面,top.aspx,left.aspx,main.aspx,然后left.aspx里面显示用户信息 
假如在left.aspx里没有Session的话,会返回login.aspx页面,而不显示index.html页面里的任何一页. 
我现在的情况是没有Session的时候还是在i ......

asp.net 读取身份证源码

一般来说winform应用程序解决这个问题起来时很容易的,web应用程序就麻烦一点了。 这里我说说我的解决思路: 一、你必要有联机型居民身份证阅读器一个(带驱动光盘),这里我用的是精伦电子公司的iDR200,并有这个阅读器的开发接口说明。 二、新建一个winform控件项目ReadCardControl,添加一个主类ReadCard 1、 声明dll入口 ......

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位加密 ......

Mix 10 上的asp.net mvc 2的相关Session

Beyond File | New Company: from Cheesy Sample to Social Platform Scott Hanselman in Lagoon L on Monday at 11:30 AM The web has changed and there's a new way of thinking about your applications. You can't just write some HTML and CSS anymore and expect to be the next Twitter. Hear h ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号