密码箱的比较 [英] comparison of password boxes

查看:120
本文介绍了密码箱的比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何比较两个等于或不等的密码框....

How to Compare two password boxes equal or not....

推荐答案

如果您在ASP.NET中编写代码,则使用验证控件,即比较验证器。在那使用Control来控制验证器。



设置属性为:

控制验证:textBox1

控制比较:textBox2

错误信息:密码不匹配!
If ur writing code in ASP.NET then use validation controls i.e., compare validator.In that use Control to control validator.

set properties as:
Control to validate:textBox1
Control to compare:textBox2
error message:Password doesn''t matched!


比较密码的整个想法是错误的。在安全系统中,密码不会存储在任何地方,并且绝对不需要进行身份验证。



不同意这一点?惊讶吗?不过,这是真的。请查看我过去的答案:

以安全的方式存储密码值int sql server [ ^ ],

解密加密密码 [ ^ ],

i已加密我的密码,但当我登录它给我一个错误。如何解密 [ ^ ] ,

使用用户名和密码进行TCP连接 [ ^ ]。



-SA
The whole idea to compare passwords is wrong. In a secure systems, passwords are not stored anywhere, and it is absolutely not needed for authentication.

Cannot agree with that? Surprised? Nevertheless, it''s true. Please see my past answers:
storing password value int sql server with secure way[^],
Decryption of Encrypted Password[^],
i already encrypt my password but when i log in it gives me an error. how can decrypte it[^],
TCP Connection with username and password[^].

—SA


if (pass1.Password != pass2.Password)
               {
                   MessageBox.Show("Passwords Not Matching.....","Confirmation");
               }


这篇关于密码箱的比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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