import hmac
import hashlib


def create_signature(secret, payload):
    """ Creates signature using secret and request payolad """
    key = bytes(secret, "utf-8")
    digester = hmac.new(key=key, msg=payload, digestmod=hashlib.sha1)
    signature = digester.hexdigest()
    return signature