Ask coding questions

← Back to all posts
password checker
scott_francis (2)

Write a program to check the validity of password input by users.

Following are the criteria for checking the password:

At least 1 letter between [a-z]
At least 1 number between [0-9]
At least 1 letter between [A-Z]
At least 1 character from [$#@]
Minimum length of transaction password: 6
Maximum length of transaction password: 12

Your program should accept a sequence of comma separated passwords and will check them according to the above criteria. Passwords that match the criteria are to be printed, each separated by a comma

If the following passwords are given as input to the program:
[email protected],a F1#,2w3E*,2We3345
Then, the output of the program should be:
[email protected]

Include tests

spybrave (336)

@scott_francis : By the way was this a challenge or you wanted to show us the Stack Overflow question..