Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Password Validator

This script checks if a given password is strong based on the following criteria:

  • At least 8 characters long
  • Contains at least one uppercase letter
  • Contains at least one lowercase letter
  • Contains at least one digit
  • Contains at least one special character from the set !@#$%^&*(),.?":{}|<>

Functions

  • is_strong_password(password): Returns True if the password meets all the criteria, otherwise returns False.
  • main(): Prompts the user to enter a password and prints whether the password is strong or not.

How to run

  1. Ensure you have Python installed on your system.
  2. Save the script to a file, for example, password.py.
  3. Open a terminal or command prompt.
  4. Navigate to the directory where the script is saved.
  5. Run the script using the command: python password.py.
  6. Enter a password when prompted to check its strength.

Requirements

  • Python 3.x
  • No additional libraries are required.