如何在c#asp.net中解密密码以获取密码 [英] How to decrypt hased password to get password in c# asp.net

查看:67
本文介绍了如何在c#asp.net中解密密码以获取密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取数据库中保存的当前密码,以便限制用户更改密码



我尝试过:



Membership.getpassword()抛出异常验证密码为false,当我将其更改为true时,密码=hased,我希望它是hased

I want to get the current password that is saved in the databse so that i should restrict user of changing password

What I have tried:

Membership.getpassword() is throwing exception retrival password is false and when i changed it to true the password ="hased" and i want it to be hased

推荐答案

哈希是不可逆的,否则就会失败。

学习:

1. < a href =http://www.codeproject.com/Articles/608860/Understanding-and-Implementing-Password-Hashing>初学者教程,用于理解和实施密码哈希和腌制 [ ^ ]

2. Salted Password Hashing - 正确行事 [ ^ ]
A hash is NOT reversible else it defeats the purpose.
Learn:
1. A Beginner's Tutorial for Understanding and Implementing Password Hashing and Salting[^]
2. Salted Password Hashing - Doing it Right[^]


这篇关于如何在c#asp.net中解密密码以获取密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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