def decrypt_config_item()

in asyncrat/asyncrat.py [0:0]


    def decrypt_config_item(self, key: bytes, data: list[bytes], index: int) -> str | bool:
        _data: bytes = base64.b64decode(self.get_string(data, index))
        plaintext = self.decrypt(key, _data)
        if plaintext.lower() == "true":
            return True
        if plaintext.lower() == "false":
            return False
        return plaintext