且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查在ASP.NET成员的问题和密码是否正确,如果不使用密码

更新时间:2022-11-01 12:52:48

询问用户的问题,并与他们的previously提供的答案对比他们的答案?

Ask the user a question and compare their answer with their previously provided answer?

然而,哈希密码不会从验证它prevent你。简单哈希用户的响应,并与存储的密码哈希比较散。需要注意的是哈希方案可能含有盐,或者初始化字符prevent字典攻击。

However, a hashed password doesn't prevent you from verifying it. Simply hash the user's response and compare the hash with the stored password hash. Note that the hashing scheme may contain salt, or initialization characters to prevent dictionary attacks.