Friday April 04, 2003
How do I implement password rules? Does anyone know of any open source packages or techniques for implementing password rules. For instance, I need to implement the following rules for password in my application:
Passwords must be made up of at least three (3) of the four (4) following classes of characters: Lowercase letters, Uppercase letters, Numbers, Special Characters.
I can probably whip up some JavaScript for this, but I'd need server-side code to catch if JavaScript is disabled. I'm guessing this is not possible with regular expressions. Posted in Java at Apr 04 2003, 10:36:31 AM MST 7 Comments
Matt Raible is the Lead UI Architect at LinkedIn. The opinions on this site are mine, not my employers.
Search This Site
Recent Entries
- What's wrong with JSF
- Why such a busy week?
- New Passport in 9 Days
- EhCache Project Busy this Summer
- Spontaneous Stuff Weekend
- Awesome Birthday Present: A Kegerator
- Maven Plugin for Running Integration Tests against Multiple Containers
- Presenting Web Frameworks of the Future Tomorrow in Denver
- My OSCON Aftermath
- OSCON 2008 Wrapup
Posted by Erik Hatcher on April 04, 2003 at 10:54 AM MST #
Posted by Matt Raible on April 04, 2003 at 11:22 AM MST #
Posted by Anonymous on April 04, 2003 at 11:35 AM MST #
Posted by Vic on April 04, 2003 at 01:00 PM MST #
boolean foundLower = false; boolean foundUpper = false; boolean foundDigit = false; boolean foundSpecial = false; for (int i=0;i<string.length();i++) { char ch = string.charAt(i); if (Character.isLowerCase(ch)) foundLower = true; if (Character.isUpperCase(ch)) foundUpper = true; if (Character.isDigit(ch)) foundDigit = true; if (isSpecial(ch)) foundSpecial = true; } int count = 0; if (foundLower) count++; if (foundUpper) count++; if (foundDigit) count++; if (foundSpecial) count++; return (count >= 3);Posted by Dave on April 04, 2003 at 01:29 PM MST #
Posted by Sheldon Hearn on April 07, 2003 at 04:35 AM MDT #
Posted by Sheldon Hearn on April 07, 2003 at 04:54 AM MDT #