You are here

11 March 2019

HMAC (a keyed-hash message authentication code) is used to verify API request. HMAC is constructed by concatenating form parameter key and value pairs into a string ordered by alphabetic order of the key name and returning its hexdigest with shared secret.

Source code viewer
  1. import hashlib
  2. import hmac
  4.'secret', 'string', hashlib.sha1).hexdigest()
Programming Language: Python