Password Checker

 This project contains a script that tests the passwords, and assigns a score to them, depending upon how strong they are.

The input to the script will be the path to a file which contains only the password which will be tested. We will test the password against multiple regex patterns to see if the password matches any of the patterns we are looking for, and assign a score to the password accordingly.

Password Assignment Rules -

  • Password has less than 6, or more than 32 characters Print "Error: Password length invalid."

  • For any valid password: +1 point for each character in the string

  • If the password contains one of the following special characters (#$+%@) +5 points

  • If the password contains at least one number (0-9) +5 points

  • If the password contains at least one alpha character (A-Za-z) +5 points

  • If the password contains a repeated alphanumeric character (i.e. aa, bbb, 55555) -10 points

  • If the password contains 3 or more consecutive lowercase characters (i.e. bbb, abe, this) -3 points

  • If the password contains 3 or more consecutive uppercase characters (i.e. BBB, XQR, APPLE) -3 points

  • If the password contains 3 or more consecutive numbers (i.e. 55555, 1747, 123, 321) -3 points

Previous
Previous

http concurrent server

Next
Next

CPU & Memory Usage Monitor