decrypting passwords

From: Date: Fri, 13 Jul 2001 06:04:32 +0000
Subject: decrypting passwords
Groups: php.general 
Request: Send a blank email to php-general+get-57687@lists.php.net to get a copy of this message
User enters a new password through a form. Then it is put in the table by the following. ($userid is the username) $query = mysql_query("update users set password = encrypt('$password','$userid') where userid = '$userid'") or die("Couldn't execute query."); I need to know how to decrypt the password so that I can have it emailed to the user should they forget it. Any help would be appreciated Thanks Steph

« previous php.general (#57687) next »