Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Password Checking
- Software to reset passwords often requires the user to enter the password twice, checking to make sure it was entered the same way both times. Create a program that can match and verify that the two passwords entered are correct. Your project should contain a method that ask the user to enter a password twice, then either tell the user that the two entries were not the same and start the process over again, or, if they are the same, tell the user that the new password was accepted.
- Additionally, the user is required to enter in a password that meets specific security requirements.
- Proper passwords are required to follow these rules:
- 1) The password must be at least 8 characters long.
- 2) The password must contain at least:
- - one alpha character [a-z A-Z];
- - one numeric character [0-9];
- - one character that is not alpha or numeric, such as
- ! @ $ % ^ & * ( ) - _ = + [ ] ; : ' " , < . > / ?
- 3) The password must not:
- - contain spaces;
- - begin with an exclamation [!] or a question mark [?];
- - contain repeating character strings of 3 or more identical characters, such as “1111” or “aaa”.
- Your task is to create a project to verify whether or not a prospective proper password meets these requirements and that the user has entered the correct password in twice.
- Important: Make sure your application is well documented and exhibits good modular development. Also, remember that you must submit a lab report (see lab report template) with this programming assignment to document your design, implementation and testing process. Do not zip (compress) your lab report. It should be submitted as a separate file from your zipped project file.
Advertisement
Add Comment
Please, Sign In to add comment