[Zope] Which method to generate IDs for objects?

Juergen R. Plasser / HEXAGON plasser@hexagon.at
Wed, 16 Jan 2002 17:47:12 +0100


Hash! - Good idea!

--On Mittwoch, 16. J=E4nner 2002 16:25 +0100 Markus Schaber=20
<markus.schaber@student.uni-ulm.de> wrote:

>>
>> mails with exactly the same values for that would be identical (result
>> will be the same hash-value)... and there's no need to store them.
>
> No, not really. A hash is just very likely to be different for different
> data, but it is not guaranteed.
>

That's right, but when you use a cryptographic one-way-hash like MD5 or=20
SHA-1 it's not very likely. Besides that it would mean that there cannot be =

more than one object with exactly the same content.

Juergen