Sha1sum in 0084 xmpp

6 views
Skip to first unread message

Convergence Tester

unread,
Jan 8, 2018, 11:07:07 AM1/8/18
to Strophe
Hello ,

We are implementing Avatar Publish(0084 XMPP).
Do you have any idea, what is sha_key ?
How can we generate in javascript ?

`var iq = $iq({
                        //     type: 'set',
                        // }).c('pubsub', {
                        //     xmlns: 'http://jabber.org/protocol/pubsub'
                        // }).c('publish', {
                        //     node: 'urn:xmpp:avatar:data'
                        // }).c('item', {
                        //     id: sha_key
                        // }).c('data',dataURL.replace(/^data:image\/(png|jpg|jpeg);base64,/, ''), {
                        //     xmlns: 'urn:xmpp:avatar:data'
                        // });`
Reply all
Reply to author
Forward
0 new messages