If the password is md5, then no - you can't reverse it because md5 is a one way hash.
If you want to have bi-direction encryption/decryption, look into using mcrypt. - just not on windows... Because it will make you want to kill yourself. http://www.php.net/mcrypt -----Original Message----- From: Ben C. [mailto:benc@;cox.net] Sent: Tuesday, November 12, 2002 5:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Trying to e-mail password Is there not any way to reverse the crypted password before e-mailing?? If not, how do I use ENCODE / DECODE? > > From: "rija" <[EMAIL PROTECTED]> > Date: 2002/11/12 Tue PM 07:32:28 EST > To: "php" <[EMAIL PROTECTED]>, > "Ben C." <[EMAIL PROTECTED]> > Subject: Re: [PHP] Trying to e-mail password > > You should do like this: > > $password = $row['password']; > This return weird crypted value of your password. > > Unless you want send the this weird password. The function > mysql_password is irreversible, you cannot get back the value crypted > by password. Use ENCODE and DECODE instead, > > > > ----- Original Message ----- > From: "Ben C." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, November 13, 2002 11:09 AM > Subject: [PHP] Trying to e-mail password > > > > I am trying to have a form that send a user their email and password > > to > login. I am using the following: > > > > while ($row = mysql_fetch_array($result)) { > > $email = $row['email']; > > $password = $row['password(password)']; > > > > When I use the mail() function to send both $email and $password I > > receive > an e-mail with a blank password. > > > > What am I doing wrong. Please help! > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Outgoing mail is certified Virus Free. Can McAfee do that? - Hell NO! Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php