Blue Theme Orange Theme Green Theme Red Theme
 
Discover the top 5 tips for understanding .NET Interop
Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
Search :       Advanced Search »
Home » Blogs Home » Blog Detail

Most secure Password regular expession validator

 by hameed on Sep 01, 2010

password must be at least 6 characters and must contain at least 3 of the following 4 categories: uppercase, lowercase, digits, symbols (e.g. !, $, #, %).
Comments: 0 Views: 1504 Printable Version 

<asp:TextBox ID="txtPassword" runat="server" style="margin-bottom: 0px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegEv" runat="server"
            ErrorMessage="RegularExpressionValidator"  ControlToValidate="txtPassword"
            ValidationExpression="^(^.*(?=.{4,8})(?=.*\d)(?=.*[A-Za-z])(?=.*[@#$%^&+=]).*$)$|^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$|
            (?=^.{4,8}$)(\w*(?=\w*\d)(?=\w*[a-z])(?=\w*[A-Z])\w*)$
            |^(^.*(?=.{4,8})(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=]).*$)$"></asp:RegularExpressionValidator>
       
Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
 
What do you say about this post? Post a comment here
*Title:
*Comment:
 
Comments not available.
Nevron Chart
Become a Sponsor

 Blogger's Profile
Age: 28
Location:
Title: Developer
Joined: Sep 01, 2010
Education: Bachelors Degree
 More Blogs from this Blogger
Most secure Password regular expession validator
View all »
 Latest Blogs
Manipulating Huge Integers In C#
Implement Synchronization in Application State Using ASP.NET
Unable to update the EntitySet Table because it has a DefiningQuery and no InsertFunction element exists in the ModificationFunctionMapping element to support the current operation
Transaction Isolation - Part 7 [Serializable Isolation]
Transaction Isolation - Part 6 [Repeatable Read]
Metadata Exception in Entity Framework Connection Strings
Sending any value from one form to another form in WPF
Dealing with Database Reader to avoid errors when DB has null value
How to use multiple checked items from the CheckedListBox?
HTML 5 brings slow death to Silverlight and Flash
View all »
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 
Discover the top 5 tips for understanding .NET Interop
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.