Script encryption method, decryption method and engine

An encryption method and script technology, applied in the Internet field, can solve problems such as hidden dangers of script file security

Active Publication Date: 2018-08-31
ADVANCED NEW TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the prior art, the user can check the source code of the script file through a simple tool. Once the source code is cracked, the source code can be forged. It can be seen that the existing script file has a large hidden danger in terms of security.

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
  • Script encryption method, decryption method and engine
  • Script encryption method, decryption method and engine
  • Script encryption method, decryption method and engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0081] In an alternative embodiment, such as figure 2 As shown, an implementation manner of the above-mentioned step 102 includes:

[0082] 1021. The script encryption engine creates an abstract syntax tree of the original script, where the first data points to a node on the abstract syntax tree.

[0083] Wherein, the script encryption engine can use the open source tool esprima to create an abstract syntax tree. The specific process can be found in the prior art, and will not be repeated here.

[0084] It is worth noting that in this embodiment, some nodes on the abstract syntax tree correspond to the first data, that is, each first data in the original script points to a node on the abstract syntax tree, and the first data can be used as the node it points to An attribute information of . When the syntax tree is created, the node pointed to by the first data is marked with a type, and the type of the node is the type of the first data pointing to the node, such as a strin...

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 script encryption method, a script decryption method and an engine. The script encryption method comprises the following steps: acquiring an original script to be encrypted, wherein the original script comprises first data required to be encrypted; acquiring a symbol string corresponding to the first data according to the data type of the first data and the mapping relation between pre-configured reference data and the symbol string, wherein the reference data are data which belong to the first data type determined according to the weak type characteristic of a scripting language used by the original script and can be directly mapped to the symbol string; and replacing the first data with the symbol string corresponding to the first data, so as to obtain an encrypted script. According to the technical scheme of the invention, the original script is encrypted with the symbol string, so that the encrypted script looks like a messy code and is difficult to decrypt. Therefore, the security of scripts can be improved.

Description

【Technical field】 [0001] The invention relates to the technical field of the Internet, in particular to a script encryption method, a decryption method and an engine. 【Background technique】 [0002] Certain functions of the browser are usually implemented by the browser calling script files. For example, script files can be used to collect user data or execute some algorithmic logic. In the prior art, the user can view the source code of the script file through a simple tool. Once the source code is cracked, the source code can be forged. It can be seen that the existing script file has a large hidden danger in terms of security. 【Content of invention】 [0003] Aspects of the present invention provide a script encryption method, decryption method and engine to improve the security of script files. [0004] One aspect of the present invention provides a script encryption method, comprising: [0005] Obtaining an original script to be encrypted, the original script includ...

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/10
Inventor 郝立鑫
Owner ADVANCED NEW TECH CO LTD
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