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