code: def urlstate(self, encryption_key):
          
          lzma = LZMACompressor()
          urlstate_data = json.dumps(self._state_dict)
          urlstate_data = lzma.compress(urlstate_data.encode("UTF-8"))
          urlstate_data += lzma.flush()
          urlstate_data = _AESCipher(encryption_key).encrypt(urlstate_data)
          lzma = LZMACompressor()
          urlstate_data = lzma.compress(urlstate_data)
          urlstate_data += lzma.flush()
          urlstate_data = base64.urlsafe_b64encode(urlstate_data)
          return urlstate_data.decode("utf-8")
docs: Will return a url safe representation of the state.
  
          :type encryption_key: Key used for encryption.
          :rtype: str
  
          :return: Url representation av of the state.