def encode_cookie(payload):
    return u'{0}|{1}'.format(payload, _cookie_digest(payload))
This will encode a ``unicode`` value into a cookie, and sign that cookie
dataset/ETHPy150Open maxcountryman/flask-login/flask_login/utils.py/encode_cookie