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
import hashlib import hmac hmac.new('secret', 'string', hashlib.sha1).hexdigest()Programming Language: Python