Supercharge Your Innovation With Domain-Expert AI Agents!

Implementation method and system for Python source code security protection

Inactive Publication Date: 2020-08-11
广州锦行网络科技有限公司
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Aiming at the problems existing in the above-mentioned prior art, the present invention discloses a method and system for implementing Python source code security protection. The present invention improves the Python source code security to binary file security by packing the compiled Python interpreter. Solve the problem of low security of Python source code files in the prior art, increase the difficulty of deciphering Python source code, and strengthen the security of Python source code

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method and system for Python source code security protection
  • Implementation method and system for Python source code security protection
  • Implementation method and system for Python source code security protection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0036] combine Figure 1-2 As shown, an implementation method of Python source code security protection includes the following steps:

[0037] S01. Encrypt the content of the Python source code file;

[0038] S02. Modify the source code of the Python interpreter to obtain the modified source code of the Python interpreter;

[0039] S03. recompile the modified Python interpreter source code to obtain the Python binary file, and pack and protect the Python binary file to obtain a packed Python interpreter;

[0040] S04. Use the packed Python interpreter to execute the encrypted Python source code program.

[0041] Further, the specific method of modifying the source code of the Python interpreter in the S02 step is:

[0042] S0211. Add the decryption code to the encrypted .zxx file in the Python interpreter source code;

[0043]S0212. Cancel the generation of the .pyc file in the Python interpreter.

[0044] Further, the encryption method in the step S01 adopts a symmetric ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an implementation method and system for Python source code security protection. The method comprises the following steps: S01, encrypting the content of a Python source code file; S02, modifying the Python interpreter source code to obtain a modified Python interpreter source code; S03, recompiling the modified Python interpreter source code to obtain a Python binary file,and carrying out encasing protection on the Python binary file to obtain an encasing Python interpreter; and S04, executing the encrypted Python source code program by using a shelled Python interpreter. According to the method, on the basis of Python source code file encryption, by adding a shell to a compiled Python interpreter, the Python source code security is improved to the binary file security, the problem that in the prior art, the Python source code file security is low is solved, the decoding difficulty of the Python source code is increased, and the Python source code security isenhanced.

Description

technical field [0001] The invention relates to the technical field of network security, in particular to a method and system for realizing security protection of Python source code. Background technique [0002] The Python programming language is the most popular computer language for programming. Since the birth of the Python language in the early 1990s, it has been widely used in system management task processing and Web programming. More and more people start to use Python. Python can be seen in various fields. Python is a scripting (interpretation) language, that is, the written Python code is finally interpreted and executed by the Python interpreter, and its Python code file (.py) is essentially the same as a text file, and can be opened with any text editor .py file and view its source code. In some business scenarios, we don't actually want to expose the source code, so we need to use some technical means to protect the security of our Python source code. [0003...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F21/56G06F21/60
CPCG06F21/563G06F21/602
Inventor 吴建亮胡鹏展艺
Owner 广州锦行网络科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More