Unlock instant, AI-driven research and patent intelligence for your innovation.

A Python program module encryption method based on symmetric algorithm and special loading module

A program module and loading module technology, applied in the field of network security, can solve the problems of program module confusion, lack of convenient and easy-to-use protective code protection methods, and difficulty in protecting source code intellectual property rights, etc., to achieve the effect of protecting intellectual property rights.

Active Publication Date: 2018-01-30
KOAL SOFTWARE CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, program modules (pyc, pyo) developed in Python language can be easily decompiled into source code
Moreover, due to the characteristics of the Python language itself, it is impossible to confuse program modules with obfuscators similar to Java and C#, so it is difficult to protect the intellectual property rights of its source code for applications developed with Python.
[0003] Some existing protection methods either affect development (such as customizing a dedicated Python interpreter, which is different for development and release), or just package it into an exe file (such as the py2exe tool, but the Python program module can still be easily Take it out and decompile it), lack of a convenient, easy-to-use, and highly protective code protection method

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] In order to make the technical means, creative features, goals and effects achieved by the present invention easy to understand, the present invention will be further described below in conjunction with examples.

[0015] The Python program module encryption method provided by the present invention is based on a symmetric algorithm and a special loading module, using a fixed symmetric key to encrypt the Python program module, and in the main program of the application, through the special loading module containing the fixed symmetric key, when running When loading, decrypting and running the encrypted module, the key used for encryption must be consistent with the key in the dedicated loading module.

[0016] Based on the above principles, the Python program module encryption method is specifically implemented through the following steps:

[0017] 1) Use a fixed key and a symmetric algorithm to encrypt the Python program module to be protected.

[0018] 2) Based on the...

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 discloses a Python program module encryption method based on symmetric algorithm and dedicated loading module; the method uses fixed symmetric keys for encrypting the Python program module; while running a main program of an application, the method loads, decrypts and runs the encrypted module by a dedicated loading module containing the fixed symmetric keys, wherein the keys used for encryption must be the same as the keys in the dedicated loading module. The Python program module encryption method based on symmetric algorithm and dedicated loading module is able to protect the Python program module from being easily decompiled and analyzed, thus protecting the intellectual property of the program developed by Python.

Description

technical field [0001] The invention relates to a network security technology, in particular to a security technology of a Python program module. Background technique [0002] With the popularity of the Python language, many applications are implemented using Python. However, program modules (pyc, pyo) developed in Python language can be easily decompiled into source code. Moreover, due to the characteristics of the Python language itself, it is impossible to obfuscate program modules with obfuscators similar to Java and C#, so it is difficult to protect the intellectual property rights of its source code for applications developed with Python. [0003] Some existing protection methods either affect development (such as customizing a dedicated Python interpreter, which is different for development and release), or just package it into an exe file (such as the py2exe tool, but the Python program module can still be easily Take it out and decompile it), lacking a convenient,...

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 Patents(China)
IPC IPC(8): G06F21/14
CPCG06F21/14
Inventor 任伟
Owner KOAL SOFTWARE CO LTD