05-09-2009, 02:50 PM
|
#33 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by captainmerton
Whats MD5? I assume I would encrypt the password then store it on the database then unencrypt after i've read it from the database.
|
yeah you can do that with mcrypt if you have that extension installed.
http://us.php.net/mcrypt
But the best route is to one-way hash it with MD5 so that there is no way to display the password ever...
If a user forgets, they would have to come up with a new password.
|
|
|
|