Your users are going to HATE you.
You need to check each character and keep a count for each condition.
You also need to keep old passwords in a table along with the username
>All,
>
>I would like have my users to create their passwords in the following format:
>
>
>
>How do I check to see if their passwords meet the criteria once they create and/or change their passwords?
>
>•be at least 10 characters
>•contain at least 2 special characters: ! @ # $ % ^ & * _ - + = ' : ; . ,
>•contain at least 2 numbers
>•contain at least 2 uppercase and 2 lowercase letters
>•not be an old password
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer