

def mozsig(expires):
    import hmac, base64
    from hmac import new
    from urllib import quote_plus
    from hashlib import sha1
    from base64 import standard_b64encode
    accessID = globs.config['mozid']
    secretKey = globs.config['mozkey']
    stringToSign = ('%s\n%s' % (accessID, expires))
    binarySignature = new(secretKey, expires, sha1).digest()
    textSignature = standard_b64encode(binarySignature)
    urlSafeSignature = quote_plus(textSignature)
    return urlSafeSignature

dataset/ETHPy150Open miklevin/pipulate/common.py mozsig/VarMisuse@71/98 `stringToSign`->`expires`