    def encrypt(self, data):
        """Encrypt an object with cryptography"""
        self.check_available()
        return maybe_future(self.executor.submit(self._encrypt, data))
Encrypt an object with cryptography
jupyterhub/crypto.py