Unlock instant, AI-driven research and patent intelligence for your innovation.

Client updating method and system, client and server

An update method and client-side technology, applied in the Internet field, can solve problems such as client-side security threats, and achieve the effect of improving security

Inactive Publication Date: 2016-09-28
LETV INFORMATION TECH BEIJING
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a client update method, system, client and server to solve the problem that the traditional script language dynamic update mechanism poses a threat to the security of the client

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
  • Client updating method and system, client and server
  • Client updating method and system, client and server
  • Client updating method and system, client and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] A client update method proposed in Embodiment 1 of the present invention is introduced in detail, which is applied to a client to be updated.

[0029] refer to figure 1 , shows a flow chart of steps of a method for updating a client in Embodiment 1 of the present invention.

[0030] Step 100, download the encrypted script program code file from the server.

[0031] The script program code file is used to update the client, and the encrypted script program code file is a script program code file encrypted using a pre-generated private key. The file name and script file storage structure of the encrypted script program code file are the same as the file name and script file storage structure of the script program code file before encryption.

[0032] The private key may be pre-generated on the server using an encryption tool, and the encryption tool may be an asymmetric encryption tool (RSA Algorithm), such as an encryption tool such as OpenSSL.

[0033] While the priv...

Embodiment 2

[0047] A client update method proposed in Embodiment 2 of the present invention is introduced in detail. The client in the embodiment of the present invention is a client under the ios system, and the script language in the embodiment of the present invention is lua script language.

[0048] refer to figure 2 , shows a flow chart of steps of a method for updating a client in Embodiment 2 of the present invention.

[0049] Step 200, in the source code of the lua script language, rewrite the getF function method and the luaL_loadfile function method.

[0050] Specifically: the getF function method (function is to read script program code file, output file stream) is rewritten as getCipherF function (function is to read encrypted script program code file, after decrypting with public key, output file stream). Rewrite the luaL_loadfile function method (the function is to load and execute the code file) into the luaL_loadfile_encryption function (the function is to load and execu...

Embodiment 3

[0060] A client proposed in Embodiment 3 of the present invention is introduced in detail.

[0061] refer to image 3 , shows a schematic structural diagram of a client in Embodiment 3 of the present invention.

[0062] The client may include: a download module 30 , a load module 32 and an update module 34 .

[0063] The functions of each module and the relationship between each module are introduced in detail below.

[0064] Download module 30, is used for downloading the encrypted script program code file from server; Described script program code file is used for updating described client, and described encrypted script program code file is after using the pre-generated private key to encrypt script code file.

[0065] Preferably, the download module 30 downloads the packaged encrypted script program code file from the server.

[0066] The loading module 32 is configured to load the encrypted script program code file by using the scripting language loading engine of the...

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 embodiment of the invention provides a client updating method and system, a client and a server. The method comprises: downloading an encrypted script program code file from the server, wherein the script program code file is configured to update the client and is the script program code file employing a private key generated in advance for encryption; employing the script language load engine with decryption logic built in the client to load the encrypted script program code file; and updating the client by employing the loaded encrypted script program code file. According to the invention, the update safety of the client is improved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and system for updating a client, as well as a client and a server. Background technique [0002] In the Internet age, mobile applications are developing rapidly, new requirements are frequent, and product version updates are iteratively fast. In order to efficiently respond to flexible and changeable requirements, or to fix bugs in the code of the online client, many scripting language dynamic update mechanisms have emerged, without publishing The new client version replaces the code of the old version of the client. The script language file can be downloaded during the running of the client, and the script language file can be dynamically executed locally on the client to modify the original logic code of the client. [0003] While the existing scripting language dynamic update mechanism quickly solves the client's needs and bugs, it also leaves a security risk t...

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): H04L29/06H04L29/08G06F9/445
CPCH04L67/06G06F9/445H04L63/0428H04L63/06
Inventor 曹士谦
Owner LETV INFORMATION TECH BEIJING