def _sign_vals(key, vals, prefix, expire):
    exp = str(int(time.time()) + expire)

    val = '|'.join(vals + [ exp ])
    b64 = base64.b64encode(val)
    cookie = '%s|%s' % (prefix, b64)

    sig = _hmac_sha1(key, cookie)
    return (cookie, sig) % '%s|%s'
dataset/ETHPy150Open GluuFederation/community-edition-setup/static/auth/lib/duo_web.py/_sign_vals/swapped operands of `%`