就是想用 md5加密 textbox1的中数据 然后再 在 textbox2中显示------
新学 请帮忙 谢谢 请不要从 网上 抄 环境2005
新学 请帮忙 谢谢 请不要从 网上 抄 环境2005
解决方案 »
- 怎么获取手机产品信息
- 编写Windows 窗口应用程序
- 自动轮巡?
- 帮我看下参数是什么意思?能不能改动(钩子相关问题)
- [关于反射的疑问]在c#中可以利用反射加载c++或者其他语言写的dll吗?
- 谁有 wrox 《c# Threading HandBook >>源代码 ? 高分相赠 (尤其是湖南老乡帮忙拉)
- 关于C# 基类库和 VC++ MFC的疑问
- 大家帮我看看,不是很复杂的问题
- C# 引用DLL文件问题
- Zxing二维码照片处理不识别
- The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
- 有关10进制int转化为16进制byte
byte[] buffer = System.Text.Encoding.ASCII.GetBytes(clean);
System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5CryptoServiceProvider.Create();
byte[] hash = md5.ComputeHash(buffer);
string result = Convert.ToBase64String(hash);
Console.WriteLine(result);
Console.Read();
{
//这里你可以对pwd进行一些处理!比如说让pwd=pwd+pwd之类的东东
return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "MD5").ToLower();
}2、public static string Get_MD5_Method4(string pwd)
{ //这里你可以对pwd进行一些处理!比如说让pwd=pwd+pwd之类的东东
return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(pwd,"MD5").ToLower().Substring(8,16) ; //这里的8与16你完全可以换成0-31之间的任何一个数字 ̄ ̄substring是什么意思就不用我说了吧,可以根据自己的意思适当的换掉
}与该方法类似
}
http://blog.csdn.net/ahshow
http://blog.csdn.net/ahshow
string Pwd = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(textBox1.Text, "MD5");
textBox2.Text = Pwd;