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
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
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
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