Category: C#
view more software Tips and Tricks
Updated: 07/12/2009 13:07 PM
Author: Shiju Mathews Status: Resolved. |
It is easy to validate the password using regular expressions. According the the security criteria the password rules may vary. 1. The password must be at least 8 characters long and start and end with a letter. 2. The password length doesn’t matter, but the password must contain at least 1 number, at least 1 lower case letter, and at least 1 upper case letter. 3. Must be at least 10 characters Must contain at least one one lower case letter, one upper case letter, one digit and one special character Valid special characters are - @#$%^&+= 4. Between 5 and 18 characters Must contain at least one one letter, one digit Only Alphanumeric 5. Between 5 and 18 characters Must contain at least one one letter, one digit and one of "- @#$%^&+=" Ony Alphanumeric and "- @#$%^&+=" 6. At least 6 characters long, with at least one lower case and at least one uppercase letter |