Re: How can I decrypt a password I previously coded with md5()?
| From: | Jason G. | Date: | Wed, 30 Jan 2002 22:06:04 +0000 |
| Subject: | Re: How can I decrypt a password I previously coded with md5()? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82831@lists.php.net to get a copy of this message | ||
Hi Nicolas,
I would be interested in seeing the javascript md5 function if possible.
Thanks,
Jason Garber
IonZoft.com
At 11:18 AM 1/30/2002 +0100, Nicolas Costes wrote:
As already said here, you cannot reverse the md5() function ...
So :
-The user fills a login box (login, password)
-The PHP script 'crypts' this password with md5();
-The already-encrypted password in the database (or the passwd file) is
compared with the one provided by the user (and encrypted by PHP) : if they
aren't the same ... Bye !!!
And for more security, I use a JavaScript MD5 function to encrypt the
provided password in the user's browser so it goes already encrypted on the
net ... Then PHP's just got to compare it with the one in the database !!!
Le Mercredi 30 Janvier 2002 10:51, Jose a écrit :
I'm making a proyect in php, and I have some doubts about the md5.
I encript a password with it, but I don't know how to decrypt it again.
Thanks.
---------------------------------------------------------------------------
- ------------------
Jose Fco. ( josefgaNOSPAM@olinet.es ).
OLINET, S.L. Teléfono: 952207135 - Fax: 952207600
Avda. Juan Sebastián Elcano, 39-41. 29017 Málaga.
---------------------------------------------------------------------------
- ------------------
--
( °> Nicolas Costes
//\\ IUT de La Roche / Yon
/ \/ ) Nicolas.costes@Laroche.univ-nantes.fr
`-<< http://luxregina.free.fr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net