Block Django source code

3

I'm developing some projects where I'll use , but I'll have to host the server on the client machine. Where it will be installed there is no internet, so I have to make the system work locally.

I need to know if I can somehow protect the source code so that when someone tries to access the server and get my files they are somehow "illegible".

Once I saw that in Asp it was possible to create a middle of a code DLL, in is there something similar?

    
asked by anonymous 30.10.2015 / 16:49

2 answers

2

Dude, if the infra is not yours or your indication, the responsibility belongs to the client.

Each * .py file you have, when compiled, it generates a * .pyc file, which is nothing more than the compiled python.

This question of getting your code involves much more infrastructure issues than programming itself.

They are different things:  - Security of your server;  - Security of your application (permissions and access).

Do not fall for the idea of a program that generates dll or hash of your code or whatever. Your code will be on the server and period.

Access to the server will involve network issues, security, which machines can access the server, local network, public network. There are several factors.

    
31.10.2015 / 19:55
-3

A good way for you to achieve this may be by translating your code into the C language. In addition to making it ineligible your code will run much faster. For this you can use Cython .

    
01.11.2015 / 02:10