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
Hi, Note from the manual: PASSWORD() encryption is one-way (not reversible). Also note: === Note The PASSWORD() function is used by the authentication system in MySQL Server; you should not use it in your own applications. For that pu