Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
AnswerRe: Security of Passwords Pin
Peter_in_278028-Aug-12 15:13
professionalPeter_in_278028-Aug-12 15:13 
GeneralRe: Security of Passwords Pin
Paul Conrad28-Aug-12 18:24
professionalPaul Conrad28-Aug-12 18:24 
AnswerRe: Security of Passwords Pin
Paul Conrad28-Aug-12 18:25
professionalPaul Conrad28-Aug-12 18:25 
AnswerRe: Security of Passwords Pin
Bernhard Hiller28-Aug-12 21:42
Bernhard Hiller28-Aug-12 21:42 
AnswerRe: Security of Passwords Pin
BobJanova28-Aug-12 23:36
BobJanova28-Aug-12 23:36 
AnswerRe: Security of Passwords Pin
Dave Kreskowiak29-Aug-12 2:06
mveDave Kreskowiak29-Aug-12 2:06 
GeneralRe: Security of Passwords Pin
Eddy Vluggen29-Aug-12 2:24
professionalEddy Vluggen29-Aug-12 2:24 
AnswerRe: Security of Passwords Pin
Pete O'Hanlon29-Aug-12 3:09
mvePete O'Hanlon29-Aug-12 3:09 
zephaneas wrote:
A) It must contain at least one vowel.

So, a password of a is enough to satisfy the criteria.

As others have said, he needs to be educated as to best practices (e.g. use of symbols, minimum length, etc).

To answer the question though - I wouldn't use RegEx for something like this. You may get a working regular expression, but it will be tied to these requirements. If the criteria expands, you'll have to revisit the regex, and you may find that the solution is no longer valid. A fairly elegant solution would be to use the Visitor Pattern[^]. With this, you can add new rules without affecting the underlying logic, simply by adding new visitors.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

QuestionC# create folder and place documents Pin
dcof28-Aug-12 12:05
dcof28-Aug-12 12:05 
AnswerRe: C# create folder and place documents Pin
Richard Andrew x6428-Aug-12 12:57
professionalRichard Andrew x6428-Aug-12 12:57 
AnswerRe: C# create folder and place documents Pin
Wes Aday28-Aug-12 14:49
professionalWes Aday28-Aug-12 14:49 
QuestionDelete From XML File Pin
Kevin Marois28-Aug-12 10:54
professionalKevin Marois28-Aug-12 10:54 
AnswerRe: Delete From XML File Pin
Richard Andrew x6428-Aug-12 11:10
professionalRichard Andrew x6428-Aug-12 11:10 
GeneralRe: Delete From XML File Pin
Kevin Marois28-Aug-12 11:16
professionalKevin Marois28-Aug-12 11:16 
GeneralRe: Delete From XML File Pin
PIEBALDconsult28-Aug-12 11:36
mvePIEBALDconsult28-Aug-12 11:36 
AnswerRe: Delete From XML File Pin
PIEBALDconsult28-Aug-12 11:35
mvePIEBALDconsult28-Aug-12 11:35 
GeneralRe: Delete From XML File Pin
Kevin Marois28-Aug-12 11:47
professionalKevin Marois28-Aug-12 11:47 
GeneralRe: Delete From XML File Pin
PIEBALDconsult28-Aug-12 12:07
mvePIEBALDconsult28-Aug-12 12:07 
GeneralRe: Delete From XML File Pin
Kevin Marois28-Aug-12 12:21
professionalKevin Marois28-Aug-12 12:21 
AnswerRe: Delete From XML File Pin
PIEBALDconsult28-Aug-12 12:02
mvePIEBALDconsult28-Aug-12 12:02 
QuestionHow can I change this event handler? Pin
turbosupramk328-Aug-12 10:52
turbosupramk328-Aug-12 10:52 
AnswerRe: How can I change this event handler? Pin
Richard Andrew x6428-Aug-12 11:08
professionalRichard Andrew x6428-Aug-12 11:08 
GeneralRe: How can I change this event handler? Pin
turbosupramk328-Aug-12 14:32
turbosupramk328-Aug-12 14:32 
GeneralRe: How can I change this event handler? Pin
Richard Andrew x6428-Aug-12 15:20
professionalRichard Andrew x6428-Aug-12 15:20 
GeneralRe: How can I change this event handler? Pin
turbosupramk328-Aug-12 15:24
turbosupramk328-Aug-12 15:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.