Question: Having a secure password is a very important practice, when much of our information is stored online. Write a program that validates a new password,
Having a secure password is a very important practice, when much of our information is stored online. Write a program that validates a new password, following these rules:
• The password must be at least 8 characters long.
• The password must have at least one uppercase and one lowercase letter
• The password must have at least one digit.
Write a program that asks for a password, then asks again to confirm it. If the passwords don’t match or the rules are not fulfilled, prompt again. Your program should include a method that checks whether a password is valid.
Step by Step Solution
3.39 Rating (180 Votes )
There are 3 Steps involved in it
Answer In the above code the iteration over password to check its validity is wrong and also the nes... View full answer
Get step-by-step solutions from verified subject matter experts
