Password decryption
| From: | Nasreen Laghari | Date: | Sun, 17 Feb 2008 03:17:46 +0000 |
| Subject: | Password decryption | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-44609@lists.php.net to get a copy of this message | ||
Hi,
I'm junior in PHP and stuck on Encryption.
I have encrypted password using SQL :
$query = "insert into user (userid,password,) values
('$username',Password('$pass'));";
Which is working perfect. Now I'm working on Login page where I have to compare passwords.. As
password in database is encrypted so I need to decrypt it back for compression. I have tried the
flowing but not working.
if ($pwd != Password("$info['password']"))
{
echo("-----------------");
//header("Location: abuse.php");
}
and
if ($pwd != $info(Password("['password']"))
{
echo("-----------------");
//header("Location: abuse.php");
}
Could any one please help..
Thank you
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ