Home > Web Front-end > JS Tutorial > Use Javascript to evaluate the strength of the password entered by the user to implement the code_javascript skills

Use Javascript to evaluate the strength of the password entered by the user to implement the code_javascript skills

WBOY
Release: 2016-05-16 17:59:01
Original
1068 people have browsed it

1. If the password is less than 5 characters, it is considered a weak password.
2. If the password only consists of one of numbers, lowercase letters, uppercase letters or other special symbols, it is considered a weak password.
3. If the password consists of two types of numbers, lowercase letters, uppercase letters or other special symbols, it is considered a moderately secure password.
4. If the password consists of more than three types of numbers, lowercase letters, uppercase letters or other special symbols, it is considered a relatively secure password.

Copy code The code is as follows:



Enter password:
bordercolor="#cccccc" height="23" style='display:inline '>





Weak strong


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template