[sync] MD5 authentication

Karsten Fourmont fourmont at gmx.de
Sat Jul 8 08:49:16 PDT 2006


Hi,

I still have difficulties getting MD5 authentication working. Does 
anybody have experience with this?

The SyncML Spec says this:

"Example: The following is an example of a MD5 digest authentication 
credential scheme consisting of the character string 
bruce1:ohbehave:nonce. The MD5 Digest is also Base64 character encoded. ...
<Data>Zz6EivR3yeaaENcRN6lpAQ==</Data>

However when I do

print base64_encode(pack( 'H*' , md5("bruce1:ohbehave:nonce")))

I end up with something different.
Note: the "pack( 'H*' ,...)" part does (should?) produce a binary 
representation of the md5 hex value, like md5(...,true) does in php5.

Any ideas?

Cheers,
  Karsten



More information about the sync mailing list