Computing the digest
Guideline for generating the message digest
Steps
# # Python example # http_payload = { "client_id": "51e2389....02d51", "client_app_key": "MDAxNmxvY2F0aWMz...D9rgv7_DySaiYgo", "skill": "bt_ro_aisp_sbx_#2.0" } # a compact stringified json without any whitespaces compact_http_payload = json.dumps(http_payload, separators=(',', ':')).encode("utf-8")
digest = hashlib.sha256(compact_http_payload).digest() b64_digest = base64.b64encode(digest).decode("utf-8")
Last updated