Should I only deploy .pyc files on the server if I am worried about code security?

I want to deploy a Django application in a cloud computing environment, but I'm worried about source code security. Can I only deploy compiled .pyc files? According to a python whitepaper, pyc files are "moderately difficult to reverse engineer."

What are the pros and cons of this approach? Is this standard practice?

I do not use AWS, let me say that I am in a country where cloud computing cannot be trusted at all ...

+4
source share
4 answers

.pyc . , Apache/mod_wsgi, , WSGI script - Python.

- , . .pyc , , -.

, .pyc - , , , .

, , .

, . , , .

+5

, . .

, , ... , 100%? pyc (), ? , .

+8

, . - . , , , , () . , , .

+1

, PYC .

, , .

, , :

1). PYC Python. , "a.pyc" Python2.6, "b.pyc" 2,7, b.pyc "import a", . , "python2.6 b.pyc" . Python PYC,

2). SSH - , PYC

3).

+1

Source: https://habr.com/ru/post/1532402/


All Articles