kshitizrohilla / javascript-password-validation

This is a simple JavaScript code snippet that provides real-time password validation based on specific requirements.

Home Page:https://kshitizrohilla.github.io/javascript-password-validation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript Password Validation

This is a simple JavaScript code snippet that provides real-time password validation based on specific requirements. It checks whether a password meets the following criteria:

  • At least 8 characters in length
  • At least one lowercase letter (a...z)
  • At least one uppercase letter (A...Z)
  • At least one special character (!, @, #, $, %, ^, &, *, (, ), -, _, +, =, {, }, [, ], :, ;, <, >, ., ,, ?, /, |, , `, ~)
  • At least one digit (0...9)

Getting Started

To use the password validation code, follow these steps:

  1. Include the JavaScript code in your project.
  2. Ensure you have the required HTML structure as provided in the example code.
  3. Customize the file paths for CSS and icon resources, if necessary.
  4. Run your project and test the password validation by typing in the password field.

File Structure

  • index.html: The HTML file containing the password input field and requirements list.
  • styles/index.css: The CSS file containing styles for the HTML elements.
  • scripts/index.js: The JavaScript file containing the password validation code.

About

This is a simple JavaScript code snippet that provides real-time password validation based on specific requirements.

https://kshitizrohilla.github.io/javascript-password-validation/


Languages

Language:JavaScript 45.2%Language:HTML 30.4%Language:CSS 24.4%