Supercharge Your Innovation With Domain-Expert AI Agents!

Python code reinforcement protection method and Python code reinforcement protection system

A technology of code and source code, applied in the field of computer programming, can solve problems such as ineffective code protection, cumbersome reinforcement process, high development cost, etc., to achieve the effect of ensuring normal operation, wide application, and reducing development cost

Active Publication Date: 2020-06-05
福建天晴在线互动科技有限公司
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012]In order to solve the above problems: cumbersome hardening process and high development cost, but the simple general hardening scheme cannot effectively protect the code, the present invention provides a Python Methods of Code Hardening and Protection

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
  • Python code reinforcement protection method and Python code reinforcement protection system
  • Python code reinforcement protection method and Python code reinforcement protection system
  • Python code reinforcement protection method and Python code reinforcement protection system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The present invention will be further described below in conjunction with the accompanying drawings.

[0040] The present invention needs to write an application that analyzes the Python source code file format in the directory, then confuses the name characters, constant character strings, and numerical data in each Python source code, and then compresses and encrypts them. It is also necessary to write a code for decrypting and decompressing the encrypted file, compile it, and then load it when the protection program runs.

[0041]Specifically divided into 3 stages:

[0042] The first is to develop a hardened application, the main function is to analyze each Python source code file in the directory; then first perform obfuscation operation, then compress the whole file, and then encrypt; obfuscation operation can make the hardened file even if it is Cracking can still be protected, increasing the difficulty of restoring the source code.

[0043] Then, according to t...

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 provides a Python code reinforcement protection method. The method comprises the following steps: S1, analyzing each Python source code file in a directory; carrying out confusion operation out after analysis, then compressing the whole file, and then carrying out encryption operation; s2, according to an entry function set by a user, adding a new Python source code of the new entryfunction capable of running the encrypted file, adding the Python source code of the new entry function to enable the program to find a correct decryption path, and performing normal decryption and execution during running; s3, developing a decryption module, wherein the decryption module is used for decrypting the encrypted Python source code file when the program runs and importing the decryptedfile into the program again for running according to the Python source code of the new entry function; according to the method, reinforcement can be performed only by specifying a source code path and a program entry function and adding a decryption module, so that the development cost is greatly reduced.

Description

technical field [0001] The invention relates to the technical field of computer programming, in particular to a method and system for strengthening and protecting Python codes. Background technique [0002] Python is a cross-platform computer programming language. It is an object-oriented dynamic type language, originally designed for writing automation scripts (shell), with the continuous update of the version and the addition of new language features, it is increasingly used for the development of independent and large-scale projects. [0003] Currently, programs written in the Python language will be compiled into files with pyc suffixes, pyw suffixes with interface codes, and optimized pyo suffixes if they are not packaged. Directly using a text editor to view these files will not see the source code, but after simple decompilation, you can see the source code, so that the Python program cannot protect its own rights and interests in commercial use. [0004] External h...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F8/41G06F8/73G06F21/12
CPCG06F8/31G06F8/41G06F8/73G06F21/12
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