circe/core.py
def _encode(self, data: bytes, min_len: int, max_len: int) -> List[Dict]:
        """ Compresses, encodes, and chunks binary data into a list of randomly-ordered bookmark dictionaries. """

        self._compressed = gzip.compress(data)
        self.compressed_then_encoded = base64.b64encode(self._compressed)

        evilmarks = []
        obf_data = base64.b64encode(gzip.compress(data)).decode()

        self.chunks = [chunk for chunk in helpers.yield_chunk_randrange(obf_data, min_len, max_len)]

        for i, b64_chunk in enumerate(self.chunks):
            fake_search = next(self._random_title)
            evilmarks.append({
                "date_added": helpers.time_now_chrome(),
                "guid": "",
                "id": "",
                "name": fake_search,
                "type": "url",
                "url": helpers.rogue_search(urllib.parse.quote_plus(fake_search), b64_chunk, i)
            })

        random.shuffle(evilmarks)
        return evilmarks
 Compresses, encodes, and chunks binary data into a list of randomly-ordered bookmark dictionaries. 
Compresses, encodes, and chunks binary data into a list of randomly-ordered bookmark dictionaries.
Compresses encodes and chunks binary data into a list of randomly - ordered bookmark dictionaries .
def _encode(self, data: bytes, min_len: int, max_len: int) -> List[Dict]:
        self._compressed = gzip.compress(data)
        self.compressed_then_encoded = base64.b64encode(self._compressed)
        evilmarks = []
        obf_data = base64.b64encode(gzip.compress(data)).decode()
        self.chunks = [chunk for chunk in helpers.yield_chunk_randrange(obf_data, min_len, max_len)]
        for i, b64_chunk in enumerate(self.chunks):
            fake_search = next(self._random_title)
            evilmarks.append({
                "date_added": helpers.time_now_chrome(),
                "guid": "",
                "id": "",
                "name": fake_search,
                "type": "url",
                "url": helpers.rogue_search(urllib.parse.quote_plus(fake_search), b64_chunk, i)
            })
        random.shuffle(evilmarks)
        return evilmarks
def _encode ( self , data : bytes , min_len : int , max_len : int ) -> List [ Dict ] : self . _compressed = gzip . compress ( data ) self . compressed_then_encoded = base64 . b64encode ( self . _compressed ) evilmarks = [ ] obf_data = base64 . b64encode ( gzip . compress ( data ) ) . decode ( ) self . chunks = [ chunk for chunk in helpers . yield_chunk_randrange ( obf_data , min_len , max_len ) ] for i , b64_chunk in enumerate ( self . chunks ) : fake_search = next ( self . _random_title ) evilmarks . append ( { "date_added" : helpers . time_now_chrome ( ) , "guid" : "" , "id" : "" , "name" : fake_search , "type" : "url" , "url" : helpers . rogue_search ( urllib . parse . quote_plus ( fake_search ) , b64_chunk , i ) } ) random . shuffle ( evilmarks ) return evilmarks
Compresses, encodes, and chunks binary data into a list of randomly-ordered bookmark dictionaries.
Compresses encodes and chunks binary data into a list of randomly - ordered bookmark dictionaries .
""" Compresses, encodes, and chunks binary data into a list of randomly-ordered bookmark dictionaries. """
self
data
bytes
min_len
int
max_len
int