=关于md5加密解密的问题?

blackwind 2003-10-16 04:38:56
string str = FormsAuthentication.HashPasswordForStoringInConfigFile(Password,"MD5");
这个是可以加密Password.
从数据库读出是密文,怎样解密他?

我感觉密码字段在传输过程中是不加密的,到达服务器端才加密进数据库,是这样吗?
...全文
70 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
冷月孤峰 2003-10-17
  • 打赏
  • 举报
回复
用MD5是将数据发送到服务器,然后在服务端上加密。
在传输过程中不加密的。而且MD5不可逆的。
cuike519 2003-10-17
  • 打赏
  • 举报
回复
If you need to be able to send messages back and forth between two or more people or computers, and you want the other party to be able to read the data, but no one else, then encryption is the way to go! Encryption algorithms allow you to disguise the data in such a way that it is mathematically improbable for anyone other than the intended person to be able to decipher it. However, you can give the people you want to read the data a certain "key" that will be able to decrypt the data so that it is readable again. There are several encryption/decryption algorithms available in the .NET Framework for you to use. This article focuses on symmetric algorithms, and they are:

DES
RC2
Rijndael
TripleDES

// above from MSDN

MD5 is one-way not tow-way!
cuike519 2003-10-17
  • 打赏
  • 举报
回复
这种验证的基本方法是:
用户的密码是加密存入数据库这样可以避免有人恶意直接打开数据库查询代码.你要验证密码也是用户输入密码的明码你要用同样的加密过程加密以后再和数据库里的密文比较这样就可以了!
zag 2003-10-17
  • 打赏
  • 举报
回复
MD5是不可逆的。
cpp2017 2003-10-17
  • 打赏
  • 举报
回复
Md5是不可逆的,
hillseok 2003-10-17
  • 打赏
  • 举报
回复
在网络中传输时应该是不加密的,你要自己写代码来对数据进行简单的加密才好些
gyhongjun 2003-10-17
  • 打赏
  • 举报
回复
没试过,好象不可以
SnApnet 2003-10-17
  • 打赏
  • 举报
回复
MD5 不可逆算
LongBow007 2003-10-17
  • 打赏
  • 举报
回复
支持 SnApnet(rookie)

62,025

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧