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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com