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
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
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
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
--
/**
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);
}
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
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