A source code obfuscation method and device

A code and provenance technology, applied in the field of source code obfuscation methods and devices, can solve the problems of low source code complexity and easy de-obfuscation, so as to increase complexity, reduce readability and crackability, and improve The effect of debugging difficulty

Active Publication Date: 2022-05-20
深圳市活力天汇科技股份有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the prior art, the obfuscation scheme using the abstract syntax tree principle is relatively simple, and the source code after obfuscation is less complex and easy to be de-obfuscated

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 source code obfuscation method and device
  • A source code obfuscation method and device
  • A source code obfuscation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0077] The source code obfuscation method provided by the embodiment of the present application can be applied to such as figure 1 shown in the application environment. Wherein, the terminal 101 communicates with the server 102 through a network. The terminal 101 can send the source code to be processed to the server 102 . The server 102 can acquire the abstract syntax tree AST corresponding to the source code to be processed. For each AST node in the AST, the server 102 can determine the obfuscation processing strategy corresponding to the AST node according to the nod...

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

This application relates to a source code obfuscation method and device. The method includes: obtaining the abstract syntax tree AST corresponding to the source code to be processed; for each AST node in the AST, according to the node type corresponding to the AST node, determining the obfuscation processing strategy corresponding to the AST node, and based on the The obfuscation processing strategy corresponding to the AST node obfuscates the AST node to obtain an obfuscated AST; performs code restoration processing on the obfuscated AST to obtain an obfuscated source code. By adopting the application, the source code can be obfuscated, so as to realize the protection of the source code.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a source code obfuscation method and device. Background technique [0002] At present, Internet technology is developing rapidly, and Internet reference technologies on PC and mobile terminals are increasing exponentially. At the same time, it has brought about the leakage of key technical codes. For most front-end codes, the JavaScript code is directly interpreted and executed by the browser, and can be directly viewed through the browser's development tools, making the JavaScript code very easy to leak, and easy to be stolen and tampered with. Therefore, there is an urgent need for a source code obfuscation method. [0003] Abstract Syntax Tree (AST) is an abstract representation of source code syntax structure. It represents the grammatical structure of the programming language in the form of a tree, and each node on the tree represents a structure in the source ...

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 深圳市活力天汇科技股份有限公司
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