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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started