Click here to Skip to main content
15,905,612 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I need to do for password strength.


• Passwords must not contain repeating or sequential characters or numbers like 12345 or abcd etc.
• Passwords must not contain a sequence of two (2) or more characters more than once, e.g., a12x12


Thanks
Posted
Updated 28-Jan-13 1:59am
v3
Comments
Zoltán Zörgő 28-Jan-13 4:19am    
Excellent. And your question is?
Sumit_Kumar_Sinha 28-Jan-13 4:23am    
You can use Ajax Toolkit control Password Strength.............

1 solution

I would not use a regex for this - it is not a good regex task. You could create one, but it would be extremely complex and difficult to understand and maintain.

Use code - it's a lot easier to read when it comes to jobs like this!
 
Share this answer
 
Comments
Andreas Gieriet 28-Jan-13 15:09pm    
My 5!
I'd say, it's not possible with Regex. E.g. how to tell in a generic form to not have sequence of characters, i.e. how to tell that the next must not be the collating successor of the current? Simply the wrong approach.
Andi

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900