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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


