Home  >  Article  >  Web Front-end  >  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
WBOYOriginal
2016-05-16 17:59:011010browse

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


Statement:
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