sinricpro / sample_messages

Sinric Pro example JSON messages
https://sinric.pro
8 stars 6 forks source link

Encode APP_SECRET to base64 #11

Closed thegoliathgeek closed 5 years ago

thegoliathgeek commented 5 years ago

Python HMAC library requires appSecret string to be encoded into utf-8 or ASCII which results in wrong hmac and mismatch in signature. So please encode appSecret to base64 before creating a new hmac.