Re: RSA implementation
| From: | Chris Hewitt | Date: | Wed, 12 Feb 2003 15:27:12 +0000 |
| Subject: | Re: RSA implementation | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135314@lists.php.net to get a copy of this message | ||
José León Serna wrote:
El mar, 11-02-2003 a las 18:49, Chris Hewitt escribió:Have you considered using on one-way MD5 hash instead?That's how I'm doing it now, but I would like to allow the user to change it's password, and I want to encrypt it, of course ;-) Yes.
The procedure here will be to: -Encrypt the new password with javascript on the client's browser using RSA and the public key Or it could be an MD5 hash.
-Decode the entered password on the server using the private key Current password hash compared with what is in the database, if OK then store new password hash.I'm just suggesting that its possible to use MD5 and not a two-way encryption/decryption. I have no experience of using RSA, I'd have to leave it to others to help. Regards Chris