Re: [PHP-DB] Password decryption

2008-02-17 Thread Daniel Brown
On Feb 16, 2008 10:17 PM, Nasreen Laghari <[EMAIL PROTECTED]> wrote: > 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'));"; It's a one-way encryption method, s

Re: [PHP-DB] Password decryption

2008-02-17 Thread Matteo Cisilino
Nasreen Laghari wrote: > 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

RE: [PHP-DB] Password decryption

2008-02-17 Thread Gary Wardell
password from the logon and compare the encrypted versions; rather than decrypting for the compare. Gary > -Original Message- > From: Nasreen Laghari [mailto:[EMAIL PROTECTED] > Sent: Sat, February 16, 2008 10:18 PM > To: php-db@lists.php.net > Subject: [PHP-DB] Pass

[PHP-DB] Password decryption

2008-02-16 Thread Nasreen Laghari
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