Re: RSA implementation
| From: | José León Serna | Date: | Mon, 17 Feb 2003 17:13:26 +0000 |
| Subject: | Re: RSA implementation | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135859@lists.php.net to get a copy of this message | ||
El lun, 17-02-2003 a las 15:33, Jason Sheets escribió:
> If all you are doing is trying to allow a user to change their password
> you do not need decryption, all you need to do is md5 the new password
> and update the database.
And what happens if this MD5 is sniffed? Any one can make a POST again
the login script and authenticate. I don't use SSL, due hardware
restrictions, it's a lightweight server and I need log this way:
-I generate the login script with a random key
-When the user submits the form, the password is encrypted using
javascript this way: sent_pass=md5(entered_pass+random_key).
-This random key is stored on the server, so I can md5 again with the
"plain text" user password and the random key to authenticate. In any
case (ok or not) I regenerate the random key, so this data is sniffed,
it's not useful
Now I want to enable the user change the password, so I need decription
on the sever, because I need to know the password in plain text.
Regards.