For instance the length and complexity of your password can reduce your risk “brute force…
For instance the length and complexity of your password can reduce your risk “brute force attack.” This is a process where a computer program runs every possible combination of letters, numbers, and symbols to crack your password. Write a python program that implements a password strength checker that check how strong is your password based on the following password policy:
Must be at least 8 characters long.
Must contain a capital letter.
Must contain a lowercase letter.
Must contain a numeric character (digit).
Must contain any special character(_,%,!,@,. etc)
Must not contain a character repeated more than 4 times.
Must not be found in the common breached passwords.
You should provide the following functions:
def passwordStrengthMeter(password,breachedpassword) function takes a user password as string, and a common breached passwords as a list. Then, based on the password policy requirements it returns feedback massage/s around the strength of the user password as list.
def passwordPolicy(index):function creates a tuple that contains all password policy feedback massage/s. Then, it retrun the feedback massage based on the input index.
Open and read common breached passwords from a text file breachedpass.txt and fill it into a dictionary.
Prompts the user to enter a password and call the passwordStrengthMeter function to display the password feedback message/s on the screen.
if the input file does not exit, display the following message Input file is not found .
Your need to run the below cell to gererate the file breachedpass.txt.