I'm validating passwords. I need to check how many letters and numbers there are in a password. If there were less than 2 numbers or less than 2 letters, the user should be warned about an invalid password.
Asked
Active
Viewed 168 times
1
-
What language or other tools are available? – Hew Wolff Oct 14 '15 at 13:32
-
sorry I completely forgot, I'm coding on C# using visual studio 2013 as programming environment. – Josh C Oct 19 '15 at 10:31
-
This sounds like a job for Regex, especially if your password requirements are rigid. – Skintkingle Jun 01 '16 at 15:42
1 Answers
0
For each character in the password, check against the ASCII table and count letters and numbers appearances:
Consider adding special characters to the validation.

cahen
- 15,807
- 13
- 47
- 78