RE: [PHP-DB] un-encrypting passwords

From: Date: Mon, 28 Jul 2003 20:06:52 +0000
Subject: RE: [PHP-DB] un-encrypting passwords
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-29541@lists.php.net to get a copy of this message
mysql has ENCRYPT() which will do the job Peter -----Original Message----- From: Sam Folk-Williams [mailto:sfolkwilliams@mn.rr.com] Sent: 28 July 2003 21:05 To: php-db@lists.php.net Subject: [PHP-DB] un-encrypting passwords Hi, I've got a PHP/MySQL site that uses a simple user table to check for a valid username/password match when logging someone in. I encrypted the passwords using mysql's PASSWORD() function. I now realize that was probably not the best choice, because I don't think it's possible to un-encrypt them. I want to add a feature that allows users to request to have their password emailed to them. Can anyone recommend a better method for encypting passwords and how to unencrypt? (is there a function in PHP for this? Or a different MySQL function?) Thanks, Sam -- Sam Folk-Williams Service Team Leader/Webmaster Rise, Inc -- Creative Partnerships South (952) 884 8330 (V); (952) 884 8371 (F) www.rise.org -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#29541) next »