Supercharge Your Innovation With Domain-Expert AI Agents!

LUA script encryption method and device

An asymmetric encryption and scripting technology, which is applied to secure communication devices, computer security devices, and key distribution, can solve problems such as easy decompilation of LUA scripts and potential information security risks, and achieve increased difficulty and improved technical effects

Inactive Publication Date: 2017-09-15
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present application provides a method and device for encrypting LUA scripts, which solves the technical problem that LUA scripts are easy to be decompiled in the prior art and there are serious hidden dangers in information 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
  • LUA script encryption method and device
  • LUA script encryption method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0075] This embodiment provides a method for encrypting LUA scripts, which is applied to a server (for example, a webcast platform server), and the server can perform data communication with a client (for example, a webcast client).

[0076] During the webcast, the server will send the written LUA script to the client. At present, a simple encryption algorithm will be used to encrypt all the LUA scripts, and the client will decrypt the encrypted LUA script. After the hacker obtains the LUA script, he can decrypt all the LUA scripts as long as he understands the decryption of one file, so that he can obtain all the plaintext LUA scripts, which poses serious information security risks.

[0077] In order to improve the security of LUA scripts and prevent hacker attacks, in this embodiment, a new method of encrypting LUA scripts is adopted, such as figure 1 As shown, the method for encrypting the LUA script includes:

[0078] Step S101: Obtain the first LUA script.

[0079] In a specific ...

Embodiment 2

[0141] Based on the same inventive concept, this embodiment provides a device for encrypting LUA scripts, such as figure 2 Shown, including:

[0142] The first obtaining module 201 is used to obtain the first LUA script;

[0143] The compression module 202 is configured to compress the first LUA script file to obtain a compressed file;

[0144] The encryption module 203 is configured to use an asymmetric encryption algorithm to encrypt the compressed file to obtain an encrypted file.

[0145] As an optional embodiment, the encryption module 203 includes:

[0146] The first calculation submodule is used to obtain the file name of the first LUA script and calculate the MD5 value of the file name of the first LUA script;

[0147] The second calculation sub-module is used to calculate at least one random number through a random algorithm;

[0148] A creation sub-module for creating a private key based on the MD5 value of the file name of the first LUA script and the random number, wherein th...

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 an LUA script encryption method. The method comprises the following steps of: obtaining a first LUA script; compressing the first LUA script to obtain a compressed file; and encrypting the compressed file by adoption of an asymmetric encryption algorithm to obtain an encrypted file. According to the method and device, the technical problem that serious potential information safety hazards exist as the LUA scripts are easy to be decompiled in the prior art is solved, and the difficulty of decompiling the LUA scripts is increased, so that the technical effect of improving the information safety is achieved. Meanwhile, the invention furthermore discloses an LUA script encryption device.

Description

Technical field [0001] The present invention relates to the technical field of webcasting, in particular to a method and device for encrypting LUA scripts. Background technique [0002] At present, with the development of program software, compiled languages ​​will become the mainstream language for program development, and compiled languages ​​are characterized by high efficiency and fast execution speed. The disadvantage is that every time you modify the code, you need to recompile, and for large programs, the compilation time will be very long. [0003] With the development of programming languages, some scripting languages ​​have appeared. The scripting languages ​​are executed using virtual machines, so that when the script code changes, it can be run directly without recompiling. Therefore, most programs currently use a compiled language to develop the program framework, and the changed part of the process is developed using a scripting language. This not only ensures the e...

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 Applications(China)
IPC IPC(8): G06F21/12G06F21/14G06F21/62H04L29/06H04L9/32H04L9/08
CPCG06F21/125G06F21/14G06F21/6209G06F2221/2107H04L9/0869H04L9/3236H04L63/0442H04L63/061H04L63/123
Inventor 周志刚陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More