A kind of Linux operating system dynamic library code protection method and device

An operating system and dynamic library technology, applied in the computer field, can solve the problem that key codes cannot be protected, and achieve the effect of enhanced protection

Active Publication Date: 2016-03-16
CHINA STANDARD SOFTWARE
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] From the disassembled code, it is relatively easy to see the function to be realized by this function, so that the key code in the dynamic library cannot be protected
[0013] Therefore, there is an urgent need for a code protection method to protect the key code in the dynamic library, so that the dynamic library cannot obtain its assembly code through disassembly

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
  • A kind of Linux operating system dynamic library code protection method and device
  • A kind of Linux operating system dynamic library code protection method and device
  • A kind of Linux operating system dynamic library code protection method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0036] figure 1 is a schematic flow chart of the code protection method according to the first embodiment of the present invention, refer to below figure 1 , each step of this embodiment is described in detail.

[0037] In step S110 (the word "step" is omitted hereinafter), the code file is generated into a dynamic library file A of the Linux operating system.

[0038] Specifically, for a dynamic library file generated by the general method of the Linux operating system, the source file is first compiled by a compiler to generate an .o file, and then the .o file is linked to generate a .so file. The .so file is the dynamic library file.

[0039] S120, extract the code to be protected from the dynamic library file A.

[0040] Specifically, since the standard format of the dynamic library file is the ELF file format, it will record the name and code length of the function, so the code to be extracted can be located according to the function name.

[0041] Preferably, when ext...

no. 2 example

[0097] figure 2 is a schematic structural diagram of the code protection device according to the second embodiment of the present invention, and the following refers to figure 2 to describe the components of this module.

[0098] The code protection device of this embodiment includes the following parts: a generation unit 21 , an extraction unit 22 , a processing unit 23 and a combination unit 24 . Generation unit 21 is connected to one end of extraction unit 22, the other end of extraction unit 22 is connected to one end of processing unit 23, and the other end of processing unit 23 is connected to merging unit 24. Next, the functions of each part of the code protection device will be described in detail.

[0099] The generation unit 21 is used for generating the dynamic library file A of the Linux operating system from the code file.

[0100] Specifically, the dynamic library file generated by the generation unit 21 in a general way of the Linux operating system first ge...

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 code protection method for a Linux operating system and a module of the method. The method comprises the steps of generating, wherein a code file is produced into a dynamic library file of the Linux operating system; extracting, wherein a code to be protected is extracted from the dynamic library file; and processing, wherein the extracted code is stored in a first file. According to the method, the code is extracted from the code file in a general format, and the extracted code is stored in a set format, so that the disassembling of the code by existing tools can be eliminated, and the code in the file can be protected.

Description

technical field [0001] The invention relates to the field of computers, in particular to a Linux operating system dynamic library code protection method and a device thereof. Background technique [0002] Due to the advantages of open source, low software licensing fees and abundant application development resources, the Linux system has been widely used, and has more and more users in civil, office and development fields. [0003] The Linux system has the advantages of safety and reliability, customizable kernel, open source code, etc., but because of its openness, some key codes, such as the core encryption algorithm, cannot be protected. [0004] For example, the standard format of Linux dynamic libraries is ELF, which can be disassembled by general disassembly tools such as objdump tools. The following example shows the Linux dynamic library and disassembly: [0005] (1) c code file test.c [0006] [0007] (2) Generate dynamic library libtest.so: [0008] cc-c. / t...

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/14G06F17/30
Inventor 程超
Owner CHINA STANDARD SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products