Re: translating password($var) back to text
| From: | Paul DuBois | Date: | Fri, 03 May 2002 23:01:16 +0000 |
| Subject: | Re: translating password($var) back to text | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18972@lists.php.net to get a copy of this message | ||
At 15:47 -0700 5/3/02, John Hughes wrote:
I am setting up a PHP-mySQL login script. One key feature I need is the ability automatically to e-mail people their password when they forget it. Obviously, I can store the password without using password() and retrieve it at any time. Is it possible to store the password using password() and retrieve a decoded value from mySQL? John HughesAccording to the MySQL manual, PASSWORD() implements one-way encryption. You might want to consider ENCODE()/DECODE() instead.