def encrypt(data):
    """encrypt some data with the crypt keeper.

    data will be serialized with pickle.
    Returns a Future whose result will be bytes.
    """
    return CryptKeeper.instance().encrypt(data)
encrypt some data with the crypt keeper.

data will be serialized with pickle.
Returns a Future whose result will be bytes.
jupyterhub/crypto.py