[PHP] real password value

2002-12-13 Thread empty
Hi all; do you know how to decrypt password('xxx'); value? For example I have a function that mails password to user's mail address but result is here; User Name: xjunky Password :1ef781ad7c4b0dc2 Thanks. I've inserted the password as password('$passw'); and selected as belove function

Re: [PHP] real password value

2002-12-13 Thread Johannes Schlueter
On Friday 13 December 2002 20:58, empty wrote: do you know how to decrypt password('xxx'); value? You can't do this. The only thing you could do is to send the User who lost his password a new one with an activation link. The new Password is saved somewhere else. Then the user clicks on the

Re: [PHP] real password value

2002-12-13 Thread Joseph Guhlin
The better strategy would be to generate a new random password and assign that as the password. MySQL's password function is one-way, meaning you can encrypt it, but not decrypt it. The way you test it is by taking what the user has entered, along with the salt, and encrypting that and seeing