Hi all,

I'd like to hash this string

[EMAIL PROTECTED]/Gabber

with MD5, when I run echo [EMAIL PROTECTED]/Gabber|md5sum I got this result :

8a6d946e132886e619bf5eb3bb9e7dbd where as in my jabberd server, I got :
dbead67fa6dc31c2f45dda7c98aaaeb1

This is the part of my code c2s/c2s.c which is responsible for encoding the string to MD5 :
md5_state_t temp;
md5_byte_t result[16];
char *jidMD5;



md5_init(&temp); md5_append(&temp,(char*) sess->jid, strlen((char*) sess->jid) ); md5_finish(&temp, result);

           jidMD5Hex = (char*) malloc(2* sizeof(md5_byte_t)*16 + 1);
           hex_from_raw(result, sizeof(md5_byte_t)*16, jidMD5Hex);

Please someone can help me, I don't understand what is wrong with that.

--
Remy Harel - [EMAIL PROTECTED]
G.I.C.M - Distributed Systems & IT
Linux Registered User #224740



_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
https://jabberstudio.org/mailman/listinfo/jdev

Reply via email to