def get_mac_signature(key, data, timestamp, nonce):
    hashed = hmac.new(str(key), '%s %s %s' % (timestamp, nonce, data), hashlib.sha1)
    return binascii.b2a_base64(hashed.digest())[:-1]
Returns usage representation string (as embedded in HID device
dataset/ETHPy150Open dcramer/sentry-old/sentry/utils/api.py/get_mac_signature--crossover with--dataset/ETHPy150Open rene-aguirre/pywinusb/pywinusb/hid/core.py/ReportItem.get_usage_string