在winform应用程序中使用重复密码验证密码 [英] validating password with the repeated password in the winform application

查看:92
本文介绍了在winform应用程序中使用重复密码验证密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,

我想比较一个用户已经使用的密码存储在SQL服务器数据库中。



我怎样才能实现这一目标?

dear sir,
I want to compare a password with one the user has already used stored in a SQL server database.

How can I achieve that?

推荐答案

如果你想将密码与存储在数据库中的密码进行比较,你最好在数据库中进行密码或者你有,非常严重的安全问题。比较密码的方法是散列用户输入的密码,然后将该散列与存储在数据库中的散列进行比较。如果你没有这样做,立即修复!
If you want to compare passwords with one stored in a database, you better have that one in the database hashed or you have very, very serious security issues. The way to compare passwords, is to hash the password a user has entered and then compare that hash with the one stored in a database. If you haven''t done it this way, FIX IT NOW!


这篇关于在winform应用程序中使用重复密码验证密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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