[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Random passwords and E-mail regex



Will we be storing passwords using the crypt() function?  That limits
them to 8 characters, right?

As far as random passwords go, we'll need a way to generate them.  But I
wanted to do something a bit different so we wouldn't get "sdlfk238"
which is rather boring at best.

I was thinking of writing a program to randomly put two words together -
the first one being an adjective and the second being an animal name
(sort of like what the GNOME people use to name releases :-) )  I guess
it could be done with both words being 4 letters, but that would limit
the potential entertainment value of it.

But maybe it's too late at night and I'm off my rocker... :-)

I figured I'd do the random password program as a Perl script that would
be called from signup.php3.

Any other thoughts or ideas?

Anyway, I'll put the signup page up Real Soon Now(TM).  Hopefully
tomorrow.

Regular expression for E-mail address checking - here's what I came up
with.  I have not tested it yet, and am not extremely familiar with
regexes.  Anyone want to take a look and see if it can be improved upon?

if (!ereg("^\w+@\w+\.\w+$", $email))

(this is PHP remember, not Perl.  Hopefully the regex syntax is the
same)