我的哈希方法有什么问题? [英] What's wrong with my hash method?

查看:82
本文介绍了我的哈希方法有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用我的哈希方法来验证用户的密码,谁能告诉我哪些是错的?

i can't use my hash method to verify user's password,who can tell me what's the wrong?

推荐答案

< span lang ="EN-US"style ="margin:0px"> 可能
VerifyHash 函数不正确,或者数据库不包含使用相同算法进行哈希处理的有效值。您还应该检查将密码写入数据库的代码。在调试期间验证值。

Maybe the VerifyHash function is incorrect, or the database does not contain a valid value that was hashed using the same algorithm. You should also check the code that writes the password to database. Verify the values during debugging.

同时检查是否确实需要区分大小写的条件
'newUserName == userName.Text'


这篇关于我的哈希方法有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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