Checksum Note

13 views
Skip to first unread message

john....@xanesti.com

unread,
Aug 26, 2016, 1:12:54 AM8/26/16
to BigBlueButton-dev
Please forgive me if this has already been noted; I'll share it in case others run into the same thing:

When hashing the API call + query string, some hashing functions return an upper case hash.  That apparently fails.  I tried calling getMettings by hashing the following:

getMettings + <<my installation's secret>>

I hashed that one one site and got an ALL CAPS hash, and the API call failed.  I tried another site and got a lower case hash - the same hex values - and it succeeded.

Johhn

HostBBB.com

unread,
Aug 26, 2016, 8:06:49 AM8/26/16
to BigBlueButton-dev
John,


here is a good tool for testing calls.

in bash I use this

epochTime=$(date +%s)
   string="createmeetingID=Meeting-$epochTime-$i&moderatorPW=mp&attendeePW=ap"
   string="$string|fdb42e03f73518814e9e9459123456"
   string=$(echo $string | sed 's/|//g')
   echo $string
   checksum=$(echo -n "$string" | sha1sum)
   checksum=$(echo $checksum | sed 's/ -//g')
   echo $checksum
Reply all
Reply to author
Forward
0 new messages