[jdev] Case sensitive & jid

Matthias Wimmer m at tthias.net
Sat May 8 02:59:59 CDT 2004

Hi Trejkaz!

Trejkaz Xaoza schrieb am 2004-05-08 10:01:57:
> > Therefore md5(lowercase(jid_full)) would result in
> > the same hash for two different addresses!
> That's actually a property of all hashes anyway.  Comes with the territory of 
> reducing Y bytes to X bytes where X < Y.

No not really. Sure there are always different strings that are mapped
to the same hash. But it's the property of hashes, that it is
hard/impossible to generate a second string that has the same hash on
purpose. (Else you could take a signature of one document and generate a
second document for which this signature is valid too and which tells
that the other person owes you 1,000,000 €.

In the case of md5(lowercase(jid_full)) it would be trivial to generate
two addresses, that are mapped to the same hash.

In case you think that this is "only" possible for resources and one
would only break his own addresses ... nope ... there are components
that allow different users to habe the same node and domain, but a
different resource: e.g. conference servers.

Tot kijk
Fon: +49-(0)70 0770 07770       http://matthias.wimmer.name/
HAM: DB1MW                      xmpp:mawis at charente.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20040508/d2e32221/attachment-0002.pgp>

More information about the JDev mailing list