Hi,
is anybody here who knows the max_length of a string which is encoded by
md5()?
thx, Michael
Berlin, Germany
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It's always a 32 character string.
http://us4.php.net/manual/en/function.md5.php
-Peter
On Fri, 2004-01-09 at 11:30, Michael Mller wrote:
Hi,
is anybody here who knows the max_length of a string which is encoded by
md5()?
thx, Michael
Berlin, Germany
--
perl -e 'print pack(H*,
mhm, I think there was a missunderstanding ;)
I want to know, how long the input-string could be (so that the encoded
strings, that you get, are unique)
Michael
On Fri, 2004-01-09 at 10:29, Michael Mller wrote:
mhm, I think there was a missunderstanding ;)
I want to know, how long the input-string could be (so that the encoded
strings, that you get, are unique)
I don't think there is a limit, theoretically. In practice you might
have other constraints
On Saturday 10 January 2004 01:29, Michael Müller wrote:
mhm, I think there was a missunderstanding ;)
I want to know, how long the input-string could be (so that the encoded
strings, that you get, are unique)
Basically, as long as you like (within memory constraints).
--
Jason Wong -
No limit for the input string
-Message d'origine-
De : Michael Müller [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 9 janvier 2004 18:29
À : [EMAIL PROTECTED]
Objet : Re: [PHP] md5() and string-length?
mhm, I think there was a missunderstanding ;)
I want to know, how long the input-string
mhm, I think there was a missunderstanding ;)
I want to know, how long the input-string could be (so that the encoded
strings, that you get, are unique)
In theory, you are limited by the fact that the MD5 message digest is 128
bits long, so collisions are /possible/, but not /probable/. In
Sorry my bad; I read your post but I didn't understand it fully. I agree with the others; there is no theoretical limit (only physical like available memory, disk space, etc..) to the size of a string which you can pass to the md5() function.
-Pete
On Fri, 2004-01-09 at 12:29, Michael Mller
8 matches
Mail list logo