P
P
Papayaved2018-11-08 09:14:59
linux
Papayaved, 2018-11-08 09:14:59

Is it possible to copy-protect Python code using Linux tools?

An embedded system is being designed, preliminarily on Raspberry PI (in the future, it is possible to switch to a computer of our own design on TI Sitara processors also under Linux). The main role of the computer, the user interface and non-real-time mathematics. I would like to develop a program for Linux in Python, but in such a way that it is impossible to copy the code.
Will it be possible to configure Linux so that the user cannot copy the program from the SD card (ext4 file system), and also does not have access to any Linux tools, except for the program interface (the program must be launched in full screen mode upon booting the OS).
Or do you still need to use the GTK + or Qt and C ++ frameworks?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
M
marataziat, 2018-11-08
@marataziat

No code that you distribute on clients can be protected. The same c++ can be stolen using reverse engineering and debugging. Use a remote server where all this will happen or all your code will be public anyway.

A
Anton Parkhomenko, 2018-11-08
@Astrawelt

Are you a Linux user and want to develop a closed source program? Thank you, I laughed. But what about open-source software and putting the project on github?

D
Dmitry Shitskov, 2018-11-08
@Zarom

The best you can achieve is to use any Python obfuscator to make the code harder to understand, and then optionally package it into a binary using pyinstaller. There is no way to protect yourself from theft of the file itself - only if you do not use some kind of hardware key that executes part of the code.

C
chupasaurus, 2018-11-08
@chupasaurus

SELinux/AppArmour, but then you should keep root access as the apple of your eye.
PS As my colleague said: "Any development in Python automatically comes with open source".

A
Alexander, 2019-02-13
@NeiroNx

You want to do what caused the actions themselves. The user, even if he has code with comments and documentation, will not do anything. Brain is not enough.

I
id2274, 2019-07-29
@id2274

You can use a Bash script instead of Python and then this Bash script can be compiled using the shc utility. It will turn your Bash script into a binary ELF file that will be heavily obfuscated and very difficult to reverse engineer, if at all possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question