Community discussion forum

need Regular Expression for strong password

  • 9 months ago
    Hi All, I need help on creating regular expression for Password. the conditions are 1. At least 1 numeric 2. At least one small letter 3. At least one capital letter 4. Special character may or may not exist 5. length should be minimum 8 chars 6. any order of characters in password 7. Allowed special characters are @\$=!:.#% I have one Expression i.e "^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@\$=!:.#%]).*$" which allowing at least special character, but in my case special chars may or may not exits thanks in advence for help. Raj...
    Post was edited on 27/01/2009 16:11:07 Report abuse
  • 9 months ago
    why not convert to ASCII, do some calculations and then go back to CHAR. This is *not* a strong way of encryption. If something else is needed, why not take a look at MD5 for example.
  • 9 months ago
    thanks for your replay, I'm encrypting the password with some encryption method, but before encryption I need to form strong strength passwod. For that I need regular expression
  • 9 months ago
    Hi All, Reg Expression is ^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(^[a-zA-Z0-9@\$=!:.#%]+$) -Raj
  • 9 months ago
    Hi All, Reg Expression is ^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(^[a-zA-Z0-9@\$=!:.#%]+$) -Raj

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback