Question: Password validation (USING PYTHON) USE DEF FUNCTION AND DICTIONARY Create a password validator program. Ask the user to 'Enter a new password:' then validates against

Password validation (USING PYTHON)

USE DEF FUNCTION AND DICTIONARY

Create a password validator program. Ask the user to

'Enter a new password:'

then validates against complexity requirements. If not met the requirements, display

'Your password does not meet complexity requirements!'

otherwise ask the user to

'Please re-enter the same password:'

If the passwords match, display

'Password is valid and two entries are matching'

If the passwords don't match then display

'Passwords do not match!'

In case of an error, the program shall go back to the beginning and ask the user to enter the password, validate it, and then re-enter the same password.

Your program should include validatePassword(password) that checks whether a password is valid.

Password complexity requirements --->

The password must be at least 8 characters long.

The password must have at least one uppercase, one lowercase letter, and at least one digit.

The password must not included any special characters.

The maximum attempts shall be 3 times.

If the user fails to provide a valid password, then display:

'You have not provided a valid password, goodbye!'

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 Databases Questions!