T
T
Twelfth Doctor2018-02-25 18:51:39
Python
Twelfth Doctor, 2018-02-25 18:51:39

How can you secure your Python application code?

Hello. I have an API in python. This "API" includes the so-called. "router" - part of the API that redirects requests to the kernel. This router is started with gunicorn. There are also several extremely important classes in the API that I would also like to protect. These classes are imported into unprotected open source files. By protection, I mean the inability to somehow get the source code of individual parts of the application (not at all). How can this be implemented?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2018-02-25
@sergey-gornostaev

Rewrite them in Cython and compile to pyd.

S
Sly_tom_cat ., 2018-02-25
@Sly_tom_cat

Any code that you give to the side can be reverse engineered, no matter how you protect it (the only question is the desire to receive this code).
Therefore, either just score on defense, or not give the code (execute on your side).
The other is not given a priori. You can accept this and live in peace, or you can not accept it and continue to fight windmills.

M
mihavxc, 2019-12-02
@mihavxc

There is such a commercial solution: https://safenet-sentinel.ru/protection/python/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question