Python's anti-compilation and Python code security

Source: Internet
Author: User

Discover the advantages of Python temporarily:

Simple and easy to learn (as a good scripting language should be the characteristics)

Object-oriented support

Rapid development and commissioning

Rich and powerful support for a variety of function libraries

However, as a scripting language, basically as long as you can get PYc and pyo files, is equal to get the source code, with uncompyle2 anti-compilation, missing only a few comments. Of course, Python can be mutated into EXE or Linux executable files, but, if it is a multi-language programming scene, Python role, more is very close to the top of the interface layer (responsible for receiving and processing user data, sent to the underlying processing), The main reason is that Python is better able to handle complex user input data types, as well as powerful libraries to support file parsing (XML,JSON,EXCL, etc.).

So the question is, is it safe to choose Python as the intermediate data transfer layer to protect user data?

From the current contact of the project, to understand and capture user data is simply too easy, as long as the device can buy, and then through the network port landing device, all the Python related code can be all compiled into the source, including the framework code and business-related code. Therefore, the most basic is the most fundamental security measures, is to hold the original door, protect all the ports with the external, GE Port, fe port, USB port and so on.

So, next is the second question, how to protect the port? General Black-box devices are Linux systems, so the security of the device is very dependent on the security of Linux. So in a safe environment, you can do whatever you please.

Leads to the next topic on Linux Security: How does Linux do security?

------------------not finished, not necessarily orderly--------------------------

Single file See: Is the so file of C + + + safe?

Overall engineering Look: C + + and Python, which is more secure?

Python's anti-compilation and Python code security

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.