I try to calculate the activation code from the privacy of the product and the serial number of the device, my calculated activation code is always different from the Xively code.
Can someone please help me indicate where I am going wrong?
From the Xievely Web Portal:
Product ID: 4sA5tK9XF_3xKfOawmyO Product Secret: be0f6928e3653cf175b7f8ebb2da50c6658b30b7 Serial Number: 123123123 Activation Code: 93d80b284a19d14e99d9abb7d637afc59d4b0f95
I tested with PHP:
echo hash_hmac("sha1","123123123","be0f6928e3653cf175b7f8ebb2da50c6658b30b7");
The activation code I generated is: 66b02f4c691287144c09e3b76816275742c155b5 , which is different from Xively's.
Please help, thanks a million.
source share