sregistry/main/registry/utils.py
def generate_signature(payload, secret):
    '''use an endpoint specific payload and client secret to generate
    a signature for the request'''
    payload = _encode(payload)
    secret = _encode(secret)
    return hmac.new(secret, digestmod=hashlib.sha256,
                    msg=payload).hexdigest()
def generate_signature(payload, secret):
    '''use an endpoint specific payload and client secret to generate
    a signature for the request'''
    payload = _encode(payload)
    secret = _encode(secret)
    return hmac.new(secret, digestmod=hashlib.sha256,
                    msg=payload).hexdigest()
def generate_signature ( payload , secret ) : payload = _encode ( payload ) secret = _encode ( secret ) return hmac . new ( secret , digestmod = hashlib . sha256 , msg = payload ) . hexdigest ( )
use an endpoint specific payload and client secret to generate
    a signature for the request
use an endpoint specific payload and client secret to generate a signature for the request