At 23:27 -0800 11/12/02, Ben C. wrote:
I am using the MySQL password() function for the my passwords on the user
names. How do I decrypt the password in PHP to send it in an e-mail. I am
making a forgot your password page and want to have the user enter their
e-mail and have the password sent to them.
Please help!
It's always a good idea to read the manual before assuming that a function
behaves in a certain way. In this case, what you ask is impossible.
The manual makes it clear that PASSWORD() encryption is non-reversable:
http://www.mysql.com/doc/en/Miscellaneous_functions.html
Alternatives:
ENCODE()/DECODE()
AES_ENCRYPT()/AES_DECRYPT()
DES_ENCRYPT()/DES_DECRYPT()
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php