Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code protection method, device and system and readable storage medium

A technology for protection devices and storage media, which is applied in the direction of program/content distribution protection, etc., and can solve problems such as insufficiency

Active Publication Date: 2020-02-28
SUZHOU KEDA TECH
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for the security of client-side JavaScript code, data encryption alone is not enough

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
  • Code protection method, device and system and readable storage medium
  • Code protection method, device and system and readable storage medium
  • Code protection method, device and system and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] Please refer to figure 1 , figure 1 It is a flow chart of the first code protection method in the embodiment of the present application. This method can be applied to the client, and the method includes the following steps:

[0063] S101. Send a function type request carrying a function type to the server, and receive the target key, calculation function and code request function sent by the server.

[0064] The client (front end), such as the foreground part of the website, runs on browsers such as PCs and mobiles to display web pages for users to browse.

[0065] The server (backend) such as the background part of the website, that is, something invisible to the user, is usually used for data interaction with front-end engineers and storage and reading of website data.

[0066] In this embodiment, each function type that needs to keep the function code secret can be defined in advance, and a unique identifier can be set for each function type. In this way, the clien...

Embodiment 2

[0094] Based on the first embodiment above, this application also proposes another code protection method that can be applied to the server. The code protection method in the second embodiment and the code protection method in the first embodiment can be referred to each other, and the overlapping parts will not be repeated one by one. .

[0095] Please refer to figure 2 , figure 2 It is a flow chart of the second code protection method in the embodiment of the present application. The method can be applied to the server (such as a server running a backend or background), and the method includes the following steps:

[0096]S201. Receive and analyze the function type request sent by the client, determine the function type, and generate a target key, calculation function and code request function.

[0097] When the user has a demand for a certain function, the client can send a function type request to the server by operating the user interface.

[0098] After the server p...

Embodiment 3

[0118] It should be noted that the above two code protection methods may be used alone or in combination in practical applications. The following uses a specific application scenario as an example to describe the combined application of the two in detail.

[0119] Such as image 3 As shown, the main modules of the system with code protection function are at the back end, which are Key generation module, function code library, verification module and encryption module. Among them, the Key generation module is used to generate Key after receiving the function type request sent by the front end; the function code library is used to store various function codes; the verification module is used to verify whether the key value is valid and correct, and the encryption module is used to Encrypt the function code.

[0120] Among them, the decryption method refers to the decryption function and key; the ciphertext refers to the function code ciphertext; the function request refers to ...

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, device and system and a readable storage medium. According to the code protection method applied to the client side and the code protection method applied to the server side, even if an illegal person performs breakpoint debugging on the client side, only the target key, the calculation function and the code request function can be obtained, and the function code needing to be protected cannot be obtained. And after the client executes the calculation function and the code request function, a function code request is sent to the server, and a function code ciphertext, a key and a decryption function sent by the server are received after the verification of the verification key value is passed. Therefore, the client can automatically load the function code ciphertext and decrypt the function code ciphertext in combination with the secret key and the decryption function, and then the function code can be executed. Namely, according to themethod provided by the invention, the function code can be protected under the condition that the normal function business service provided for the client is not influenced, and leakage is avoided.

Description

technical field [0001] The present application relates to the technical field of computer software, in particular to a code protection method, device, system and readable storage medium. Background technique [0002] JavaScript is a scripting language that can make web pages more lively, and it is also the simplest and most convenient language in dynamic web design. The JavaScript script program can be directly written in the HTML file, and can be directly executed by the browser. The code written in JavaScript is currently the most popular and widespread on the Internet. The JavaScript script code is stored in plain text, and the script source code carefully written by the script designer can be viewed through tools such as Notepad. In this way, the script code will be directly used and modified by a third party to steal user data. [0003] Nowadays, most websites use data encryption technology to improve code security. Data encryption is to convert sensitive plaintext d...

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
IPC IPC(8): G06F21/14
CPCG06F21/14
Inventor 覃丁丁房滔翟小刚
Owner SUZHOU KEDA TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products