Re: [PHP4BETA] CVS update: php4/ext/session
| From: | Sascha Schumann | Date: | Tue, 08 Jun 1999 12:27:09 +0000 |
| Subject: | Re: [PHP4BETA] CVS update: php4/ext/session | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1394@lists.php.net to get a copy of this message | ||
On Tue, Jun 08, 1999 at 02:16:25PM +0200, Kristian Köhntopp wrote:
>
> Sascha Schumann wrote:
> > > An md5() hash may have collisions, but the probability
> > > for such collisions is so incredibly low that we do not
> > > need to care about that. It is an evenly distributed
> > > 2^128 bit value. With a million simultaneously active
> > > sessions (2^20 sessions), this leaves you with a
> > > collision probability of 2^-108. This is zero for all
> > > practical purposes.
> >
> > Where did you get the numbers from? Please quote your source.
>
> This is simple mathmatics.
Oh, you were playing the stochastik game (dunno what is the
correct English term).
> That is treating MD5 as a valid implementation of a cryptographic
> hash function.
That is what made me suspicious. Going that way you can calculate
the lowest possible probability for collisions. The reality could
be magnitudes worse, of course.
> > So, we might as well drop MD5 as hash function and use SHA
> > instead. The only cause for the current choice is that PHP
> > always includes MD5.
>
> Correct. Does anybody know which hash- and digest functions can
> be included into PHP without making it unexportable? I would like
> to load as much crypto functionality into the PHP distribution as
> is legally possible (and provide the rest from somewhere in the
> free world as a simple module).
Steve Reid's SHA implementation is in the public domain, so there
would be no license problem.
Since PHP is not developed at a central place, I don't know which
legislation would apply.
And don't forget the mhash/mcrypt modules. They support many
hashes and block ciphers and are distributed from Germany and
Greece.
--
Regards,
Sascha Schumann
Consultant