Hi Matt!
On Tue, 15 Jul 2003 03:45:40 GMT, "Matt Schroeder"
<wn*********@comcast.net> wrote:
Can anyone tell me about passwords? What I plan to do is write a username
and a password into a mySQL table. How do I encrpyt the password? And after
it's written, how can I match a password submitted in a form to it, because
the password in the form would be unencrypted?
If you want it independent from MySQL, use md5() when you store the
password and compare the stored password with the md5() of the entered
password.
I also tend to strip off spaces (trim()) as users copy the password
from Outlook, which marks the pass-word and the trailing space
HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/