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: At least eight characters long Contains both uppercase and lowercase characters 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 passwordstrength.pyError: You must supply a passwordEx. python passwordstrength.py Mypass$ python passwordstrength.py MypassPassword meets specification$ python passwordstrength.py MypassPassword is too short$ python passwordstrength.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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
