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.

If you really want to use public key encryption take a look at the PHP
GPG Exetension or GPG.

Again unless you have information that you want to encrypt on the
machine but not decrypt you don't need public key encryption and hashing
with either md5 or sha1 will work fine.

Jason
On Mon, 2003-02-17 at 01:54, José León Serna wrote:
> El mié, 12-02-2003 a las 16:27, Chris Hewitt escribió:
> > Or it could be an MD5 hash.
> > 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.
>  I'm not trying to *log the user* this is already done with MD5, what
> I'm trying is to allow the user to change it's own password. I need
> decryption.
> 
> Regards.
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to