(self)
| 41 | self.error_signal.emit(str(e)) |
| 42 | |
| 43 | def _encrypt_payload(self): |
| 44 | self.progress_signal.emit(0) |
| 45 | self.log_signal.emit('Encrypting...') |
| 46 | self.progress_signal.emit(10) |
| 47 | |
| 48 | enc_map = get_encryption_map() |
| 49 | enc_method_arg = enc_map.get( |
| 50 | self.params['enc_method'], |
| 51 | self.params['enc_method'] |
| 52 | ) |
| 53 | |
| 54 | enc_cmd = [ |
| 55 | sys.executable, 'encrypt.py', |
| 56 | '-i', self.params['input_bin'], |
| 57 | '-o', 'output/encrypt.bin', |
| 58 | '-m', enc_method_arg, |
| 59 | '-e', self.params.get('encode_method', 'base64') |
| 60 | ] |
| 61 | |
| 62 | result = subprocess.run(enc_cmd, capture_output=True, text=True, encoding='utf-8', errors='ignore', check=True) |
| 63 | self.log_signal.emit(result.stdout) |
| 64 | if result.stderr: |
| 65 | self.log_signal.emit(result.stderr) |
| 66 | |
| 67 | self.progress_signal.emit(40) |
| 68 | |
| 69 | def _build_rust_project(self): |
| 70 | self.log_signal.emit('Building Rust project...') |
no test coverage detected