Strong Passwords

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jez123456

    #1

    Strong Passwords

    Hi

    I'm in the process of writing a program to ensure that a user will setup a
    strong password for a particular application. One of the requirements is:-

    A Strong Password must include characters from at least three of the
    following four categories...
    Uppercase characters (A though Z)
    Lowercase characters (a though z)
    Numeric digits (0 through 9)
    Non-alphanumeric characters (!, $, #, %, etc.)

    Does anybody know of a vb class, api or addin that can do this?

    thanks


  • Ken Tucker [MVP]

    #2
    Re: Strong Passwords

    Hi,

    You can use a regular expression for that.



    Dim regStrongPasswo rd As New
    System.Text.Reg ularExpressions .Regex("(?=^.{6 ,10}$)(?=.*\d)( ?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()_+}{" ":;'?/>.<,])(?!.*\s).*$")
    Trace.WriteLine (regStrongPassw ord.IsMatch("1A 2a$5"))
    Trace.WriteLine (regStrongPassw ord.IsMatch("ap ple"))


    Ken
    ---------------------------
    "jez123456" <jez123456@disc ussions.microso ft.com> wrote in message
    news:FE5C84D8-CA26-45A9-8263-2F1A458DDD95@mi crosoft.com...[color=blue]
    > Hi
    >
    > I'm in the process of writing a program to ensure that a user will setup a
    > strong password for a particular application. One of the requirements is:-
    >
    > A Strong Password must include characters from at least three of the
    > following four categories...
    > Uppercase characters (A though Z)
    > Lowercase characters (a though z)
    > Numeric digits (0 through 9)
    > Non-alphanumeric characters (!, $, #, %, etc.)
    >
    > Does anybody know of a vb class, api or addin that can do this?
    >
    > thanks
    >
    >[/color]


    Comment

    • Hal Rosser

      #3
      Re: Strong Passwords


      "jez123456" <jez123456@disc ussions.microso ft.com> wrote in message
      news:FE5C84D8-CA26-45A9-8263-2F1A458DDD95@mi crosoft.com...[color=blue]
      > Hi
      >
      > I'm in the process of writing a program to ensure that a user will setup a
      > strong password for a particular application. One of the requirements is:-
      >
      > A Strong Password must include characters from at least three of the
      > following four categories...
      > Uppercase characters (A though Z)
      > Lowercase characters (a though z)
      > Numeric digits (0 through 9)
      > Non-alphanumeric characters (!, $, #, %, etc.)
      >
      > Does anybody know of a vb class, api or addin that can do this?
      >
      > thanks[/color]

      you may as well try Regular expressions
      the pain of learning it will be well worth the trouble.
      you can save many lines of <future> code - (however obfusicated it may look)
      (its the beer that made Perl famous )
      I think that's where the term "Swiss Army Chain Saw" was earned.


      Comment

      • Hal Rosser

        #4
        Re: Strong Passwords


        "jez123456" <jez123456@disc ussions.microso ft.com> wrote in message
        news:FE5C84D8-CA26-45A9-8263-2F1A458DDD95@mi crosoft.com...[color=blue]
        > Hi
        >
        > I'm in the process of writing a program to ensure that a user will setup a
        > strong password for a particular application. One of the requirements is:-
        >
        > A Strong Password must include characters from at least three of the
        > following four categories...
        > Uppercase characters (A though Z)
        > Lowercase characters (a though z)
        > Numeric digits (0 through 9)
        > Non-alphanumeric characters (!, $, #, %, etc.)
        >
        > Does anybody know of a vb class, api or addin that can do this?
        >
        > thanks[/color]

        you may as well try Regular expressions
        the pain of learning it will be well worth the trouble.
        you can save many lines of <future> code - (however obfusicated it may look)
        (its the beer that made Perl famous )
        I think that's where the term "Swiss Army Chain Saw" was earned.


        Comment

        Working...