如何解密使用FormAuthentication.HashPasswordForStoringInConfigFile(TxtUserPassword,MD5)加密的密码 [英] How to decrypt password encrypted by using FormAuthentication.HashPasswordForStoringInConfigFile(TxtUserPassword,MD5)

查看:290
本文介绍了如何解密使用FormAuthentication.HashPasswordForStoringInConfigFile(TxtUserPassword,MD5)加密的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个登录表单,我已经使用了

I have created a login form where i have used

System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(TxtUserPassword, MD5)



现在我通过比较存储在数据库中的加密文本和在用户输入密码时在登录时加密文本来使用。



我想要获取用于解密上述密码的逻辑/源代码。

请帮助我。


Now i have used , by comparing encrypted text stored on database and by encrypting the text at login time when user entering password.

I want to get the logic/Source Code for decrypting above password.
Kindly help me.

推荐答案

这很简单。你不能那样做。



你没有加密密码,你把它搞砸了。加密哈希是一种单向函数。没有办法取消数据并获取原始邮件,在您的情况下,密码,返回。
It''s simple really. You can''t do that.

You didn''t encrypt the password, you HASHED it. A cryptographic hash is a one-way function. There is no way to unhash the data and get the original message, in your case, password, back.


这篇关于如何解密使用FormAuthentication.HashPasswordForStoringInConfigFile(TxtUserPassword,MD5)加密的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆