RE: [PHP-DB] MySQLPHP decrypt(password)

2005-02-28 Thread Bastien Koert
Password and MD$ return different values. They are not compatible. Since both are one way encryptions, you can not retrive the orginal value From: "moses Woldeselassie" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], php-db@lists.php.net Subject: RE: [PHP-DB] MySQLPHP decrypt(passwor

RE: [PHP-DB] MySQLPHP decrypt(password)

2005-02-28 Thread moses Woldeselassie
s.php"); > die(); > }//end if > > setcookie('last_time', date("Ymd-his"),time()+60*60*24*30,'/'); > echo "here"; > header("location:/login_unit/brokerpanel.htm"); > exit(); > }else{ > $err_msg = "<font color=r

RE: [PHP-DB] MySQLPHP decrypt(password)

2005-02-28 Thread moses Woldeselassie
I get a user password without changing a user password? kind regards m >From: "Bastien Koert" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], php-db@lists.php.net >Subject: RE: [PHP-DB] MySQLPHP decrypt(password) >Date: Fri, 25 Feb 2005 14:04:30 -0500 > >You can

Re: [PHP-DB] MySQLPHP decrypt(password)

2005-02-25 Thread Robby Russell
On Fri, 2005-02-25 at 10:20 +, moses Woldeselassie wrote: >hi all > >I am using password() to crypt a user password online. but how do i decrypt >a user password, when user forgot his/her password? > > >kind regards >m > You don't. You make them reset their password. -Robby -- /**

RE: [PHP-DB] MySQLPHP decrypt(password)

2005-02-25 Thread Bastien Koert
the password in the db $sql = "update cust_info set cust_pw ='".md5($pass)."', temp_pass = 1 where cust_lg = '$id' and cust_pw = '$password'"; $result = connect($sql); if ($result){ return $pass; }else{ change_password($id, $password); }

Re: [PHP-DB] MySQLPHP decrypt(password)

2005-02-25 Thread Martin Norland
moses Woldeselassie wrote: hi all I am using password() to crypt a user password online. but how do i decrypt a user password, when user forgot his/her password? kind regards m You don't - that's the point. You have to provide them with a way to reset their password, based on some other method

[PHP-DB] MySQLPHP decrypt(password)

2005-02-25 Thread moses Woldeselassie
hi all I am using password() to crypt a user password online. but how do i decrypt a user password, when user forgot his/her password? kind regards m -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php