[Omaha.pm] One-liner regexp to check for password strength...

Daniel Linder dan at linder.org
Fri Jul 15 15:19:38 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan Linder wrote:
>> The tests are:
>> 1:  Length >= 6 characters
>> 2a: Contains number(s) (0-9)
>> 2b: Contains lowercase letter(s) (a-z)
>> 2c: Contains uppercase letter(s) (A-Z)
>> 2d: Contains symbol character(s) (!@#$%^&*()-=_+`~\|":;<>,.?/ ... etc)
>>
>> A password is good if it meets rule #1 and three of the four in #2.

Jay Hannah said:
> P.S.  That's the MS Active Directory test set isn't it? I think that
> this thread has a cleaner set than what I wrote months ago -- I'll have
> to look at updating whatever it was I wrote way back when... -grin-

It's actually a made-up 'worst case' scenario for a general password
checking section I was helping a co-worker work on.  The system he was
working in uses Perl on the back-end to do the check, but the regexp
enabled control box is limited to one line long.  I suppose I could try to
put the code I came up with on one long line... :)

Dan


- - - - -
"Wait for that wisest of all counselors, time." -- Pericles
"I do not fear computer, I fear the lack of them." -- Isaac Asimov
GPG fingerprint:9EE8 ABAE 10D3 0B55 C536  E17A 3620 4DCA A533 19BF

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFC2DZ6NiBNyqUzGb8RAsBcAJ9ygwI+/+8CRc96FtEracjjGKdg6gCfWMLy
8Jy/cW/n2xjK8WulWa4imMo=
=N8u3
-----END PGP SIGNATURE-----


More information about the Omaha-pm mailing list