Question: C++ Password Strength Program Create a cpp program that verities the strength of a password that a user is entering is strong (complex/secure) enough. In

C++

Password Strength Program

Create a cpp program that verities the strength of a password that a user is entering is strong (complex/secure) enough. In the main area of the program, prompt the user to enter a password. Then, call a function, passing into it the password that they entered

In the function, use whatever.cpp commands or built-in functions are available to ensure:

a. The password is at least 8 characters in length. b. The password is mixed case (upper and lower) c. You have at least one of these valid special characters in your password

The function will determine if the password is strong enough and then output the correct message. Here is a sample run and output from the program:

First Run

Enter a password: thisis Your password length is too short. Please choose a password that is at least 8 characters long. Your password is not a mixed case. Please choose a password with mixed case. You do not have a valid special character in your password. Please add at least one special character

Second Run

Enter a password: thisismypassword Your password is not a mixed case. Please choose a password with mixed case. You do not have a valid special character in your password. Please add at least one special character

Third Run:

Enter a password: Thisismypassword You do not have a valid special character in your password. Please add at least one special character Fourth Run: Enter a password: thisislmyPassWORD Thank you. Your password is valid.

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!