Hi Remy! Remy HAREL schrieb am 2004-05-07 14:46:01: > Still in my project to make jabberd 2 an high availibility > application, I'm currently adding datas in xmpp packets. These datas are > MD5 hashed, and among these data there is the full_jid ( i.e. : > [EMAIL PROTECTED]/Gabber for example ). > > The main problem is to know which of the three parts of this > full_jid are case sensitive, because if case is ignored I could have two > differents md5 sums for the same full jid. If i'm not clear, the md5 > sums for 'remy' and 'Remy' are differents. For a non sensitive case > application it would be the same person if we work on name but two > differents persons if we work on names'md5sums.
None of the parts are case-sensitive and non of them are
case-insensitive. You have to use different string-prep profiles to
check if two are the same.
Therefore to hash them you first have to normalize them using stringprep
with the nodeprep profile for the user part, the nameprep profile for
the domain part and the resourceprep profile for the resource part.
Tot kijk
Matthias
--
Fon: +49-(0)70 0770 07770 http://matthias.wimmer.name/
HAM: DB1MW xmpp:[EMAIL PROTECTED]
signature.asc
Description: Digital signature
_______________________________________________ jdev mailing list [EMAIL PROTECTED] https://jabberstudio.org/mailman/listinfo/jdev
