Source code protection method and apparatus

A technology of source code and code, applied in the field of information security, can solve problems such as loss and easy deciphering of source code, so as to avoid loss and realize the effect of protective treatment

Active Publication Date: 2018-10-09
北京小唱科技有限公司
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a source code protection method and device to solve the problems in the prior art that the source code of the application program is easy to be deciphered and causes losses, etc.

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
  • Source code protection method and apparatus
  • Source code protection method and apparatus
  • Source code protection method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] refer to figure 1 , shows a flow chart of steps of a source code protection method according to Embodiment 1 of the present invention.

[0025] The source code protection method of the embodiment of the present invention comprises the following steps:

[0026] Step 101: Obtain the source code to be protected.

[0027] The application program is written by the source code. When the source code of the application program needs to be protected, all the source code of the application program is obtained first.

[0028] Step 102: Convert the function name of the source code into garbled characters, and / or hide the specific function code in the source code, so as to realize the protection processing of the code to be protected.

[0029] Use some obfuscation tools to map the function names of the source code of the application into garbled characters. For example: use some obfuscation tool to obfuscate the Objective C source code, and map the function name of the source cod...

Embodiment 2

[0038] refer to figure 2 , shows a flowchart of steps of a source code protection method according to Embodiment 2 of the present invention.

[0039] The source code protection method of the embodiment of the present invention comprises the following steps:

[0040] Step 201: Obtain the source code to be protected.

[0041] The application program is written by the source code. When it is necessary to protect the source code of the application program, first obtain all the source code of the application program, and then perform protection operations on the obtained source code.

[0042] Step 202: Convert the function name of the source code into garbled characters, and / or hide the specific function code in the source code, so as to realize the protection processing of the code to be protected.

[0043] In the specific implementation process, the function name of the source code can be converted into garbled characters to realize the protection processing of the code to be ...

Embodiment 3

[0071] refer to image 3 , shows a structural block diagram of a source code protection device according to Embodiment 3 of the present invention.

[0072] The source code protection device in the embodiment of the present invention includes: a first acquisition module 301, used to obtain the source code to be protected; a conversion module 302, used to convert the function name of the source code into garbled characters; The specific function code in the above source code is hidden, so as to realize the protection processing of the code to be protected; the application module 304 is used to apply the source code after the protection processing to the client.

[0073] The source code protection device provided by the embodiment of the present invention uses some obfuscation tools to convert the function names of the source code of the application program into garbled characters, and maps the function names of the source code into garbled characters. In this way, when the crac...

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 source code protection method. The method comprises the steps of obtaining to-be-protected source codes; performing messy code conversion on function names of the source codes, and / or hiding specific function codes in the source codes, thereby realizing protective processing of the to-be-protected codes; and applying the source codes subjected to the protective processingto a client. According to the source code protection method provided by the invention, the function names of the source codes of an application are subjected to the messy code conversion by using certain obfuscation tools, and the function names of the source codes are mapped into messy codes; when a cracker cracks the source codes of the application, the cracked codes become the messy codes, so that the cracker cannot obtain business logic of the application; or when the cracker cracks the source codes of the application, the specific function codes in the source codes of the application arehidden, so that the cracker cannot obtain the specific function codes; and in the way, the protective processing of the to-be-protected codes is realized, so that the loss of manufacturers is avoided.

Description

technical field [0001] The invention relates to the technical field of information security, in particular to a source code protection method and device. Background technique [0002] At present, with the continuous development of information technology, the whole society relies more and more on application programs, so the importance of security of application programs is also increasing. [0003] At present, there are more and more attacks that threaten application security, such as vulnerability attacks. Vulnerabilities are defects in the specific implementation of hardware, software, protocols, or system security policies. Because of the loopholes in the application program, criminals may access or change the source code of the application program without authorization. Obviously, in the above cases, it is particularly important to protect the source code of the application. [0004] The source code of the current application program is easily deciphered by a series of...

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 & AuthorityApplications(China)
IPC IPC(8): G06F21/14G06F8/72
CPCG06F8/72G06F21/14
Inventor陈华
Owner北京小唱科技有限公司