def cookie_encode(data, key):
    msg = base64.b64encode(pickle.dumps(data, -1))
    sig = base64.b64encode(hmac.new(tob(key), msg).digest())
    return tob('!') + sig + tob('?') + msg
Get an iterator over all child services.
dataset/ETHPy150Open adampresley/bottlepy-bootstrap/app/bottle.py/cookie_encode--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/application/service.py/IServiceCollection.__iter__