[jdev] Reproducability of XEP-0115: Entity Capabilities - 5.3 Complex Generation Example

Peter Saint-Andre stpeter at stpeter.im
Tue Apr 22 11:02:49 CDT 2008


Peter Saint-Andre wrote:
> Stephan Maka wrote:
>> "Sergei Golovan" <sgolovan at nes.ru> wrote:
>>> I guess spaces are added to allow line breaking. Hash is computed for
>>> the string without spaces.
>>>> Look again. I can't even reproduce with the SHA-1 method given in
>>>>  XEP-0115:
>>> Remove http://jabber.org/protocol/caps< from a hashed string and
>>> you'll get the desired hash value.
>> Great, that works. Thank you very much.
>>
>>>> Because it is required. Perhaps this is a bug in the XEP?
>>> It looks like a bug in XEP.
> 
> Yes, thanks for the bug report. I'll regenerate the hash (clearly the
> entities support http://jabber.org/protocol/caps so it doesn't make
> sense to remove that from "S").

Well, I removed 'http://jabber.org/protocol/caps' from "S" because I
couldn't duplicate the results any other way. :) Typically I generate
the hashes using this command:

  echo -n 'S' | openssl dgst -binary -sha1 | openssl enc -nopad -base64

However, that doesn't work for this example because it has the Greek
character Ψ in the string and that character is not properly encoded at
the command line on my system. IIRC Joe Hildebrand generated that hash
for me using Jabber-Net.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20080422/8d078ab6/attachment-0002.bin>


More information about the JDev mailing list