Re: [PHP] password sanity checker

2001-09-06 Thread George Whiffen
A cheap and cheerful rule is to insist on at least one numeric. Then you don't have to bother with a dictionary check! The php to force only alphas and numerics (upper or lower case) and at least one numeric is something like : - if (!ereg("^[a-zA-Z0-9]*[0-9][a-zA-Z0-9]*$",$password)) { $

Re: [PHP] password sanity checker

2001-07-03 Thread Chris Anderson
Getting the size is easy, and if you had a small dictionary you could see if the password existed in that by looping through it. Not sure about checking if it is LIKE the username - Original Message - From: "Charles Sprickman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July