Thread: PHP Login Class
View Single Post
Old 05-09-2009, 02:50 PM   #33 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by captainmerton View Post
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.
allworknoplay is offline  
Reply With Quote