显示消息密码文本框是弱还是强 [英] Show message the password text box is weak or strong

查看:67
本文介绍了显示消息密码文本框是弱还是强的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个用于密码文本框的功能,该功能将根据用户输入的字符显示密码的强度,如-弱,中或强.

我想使用javaScript实现相同的功能.

I need a functionality for a password text box which will show the strength of the password like - weak, midium or strong according to the characters entered by the user.

I want to achieve the same using javaScript.

推荐答案

您可以通过jquery做到:-
密码强度验证 [使用C#的AJAX控制工具包PasswordStrength Extender [ ^ ]

希望对您有帮助.
祝您好运.
You can do it by jquery:-
Password Strength Validation[^]

Or you can use Ajax Control Toolkit:-
AJAX Control toolkit PasswordStrength Extender using C#[^]

Hope it will help you.
Best of luck.


从以前的解决方案开始您还可以检查以下链接

1. JavaScript密码强度验证器
2. 检查密码强度:JavaScript
3. 10个密码强度计脚本,用于更好的注册界面
Aprat from the previous solution you can check the below links also

1.Javascript Password Strength Validator
2. Check password strength: Javascript
3.10 Password Strength Meter Scripts For A Better Registration Interface


根据您的要求,您可以在该密码字段中设置弱",中"或强"

取一个标准长度.
弱>如果密码长度小于4
中等>如果密码长度大于4且小于7
如果密码长度大于7,则为强

As per your requirement you can set weak, midium or strong in that password field

Take one criteria length.
weak >if password length is less than 4
medium>if password length is greater than 4 and less than 7
Strong >if password length is greater than 7

if(


这篇关于显示消息密码文本框是弱还是强的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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