RE: [PHP] MD5 usage
| From: | Thoenen, Peter Mr. EPS | Date: | Tue, 22 Oct 2002 21:48:34 +0000 |
| Subject: | RE: [PHP] MD5 usage | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120986@lists.php.net to get a copy of this message | ||
Nope. md5() is a oneway hash algorithm ... there is no decrypt for it (nor
is there supposed to be, its point is to be oneway)... it works like this:
Encrypted hash = 100
Now you tell me what 2 numbers you multiplied to get 100? It works a little
more complicated than that but thats the general idea behind it. Given C
(your hash) ... its hard to find P (plain text) where E(P)=C or something
along those lines.
If you want decyrption, use something else. Blowfish is nice.
-Peter
> -----Original Message-----
> From: Francisco Vaucher [mailto:fvaucher@tycoint.com]
> Sent: Tuesday, October 22, 2002 23:37
> To: 'php-general@lists.php.net'
> Subject: [PHP] MD5 usage
>
>
> Hi to all,
>
> I'm using
>
> $string = 'test';
> md5($string);
>
> to crypt $string. I get the hash output and works fine.
>
> Now, how do I retrieve and check that info? is there a
> decrypt method ?
>
> if my concern is not well explained pls tell me...
>
> regards,
>
> f.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>