Question: Strong password detectionSkills and elements usedRegular expression matching, string processingProgram specificationWrite a program that uses regular expressions to make sure a password string passed in

Strong password detectionSkills and elements usedRegular expression matching, string processingProgram specificationWrite a program that uses regular expressions to make sure a password string passed in via commandline is strong. A strong password is defined as one that is:1. At least eight characters long2. Contains both uppercase and lowercase characters3. Has at least one digitVerify that the user has passed in a password and display an error if they have not.If the password fails, relay to the user the reason for the failure. You will likely need to test the stringagainst multiple regex patterns to validate its strength.Example$ python password_strength.pyError: You must supply a passwordEx. python password_strength.py My_pass1$ python password_strength.py My_pass1Password meets specification$ python password_strength.py Mypass1Password is too short$ python password_strength.py MypasswordPassword must contain at least one digit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!