Data transmission method, device and system

CN118611980APending Publication Date: 2024-09-06小芒电子商务有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410888571.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

[0004]有鉴于此,本发明提供一种数据传输方法、装置及系统,以解决javascript语言在使用过程中容易被逆向破解,数据传输安全性较低的问题

Benefits of technology

[0044] The present invention provides a data transmission method, device and system. In the present invention, when transferring a file, the file to be transferred is subjected to a data extraction operation to obtain the extracted first sub-file and the remaining second sub-file after extraction. , and then transmit the first sub-file and the second sub-file to the user terminal. During the transmission process of the first sub-file and the second sub-file, at least one first sub-file and the The second sub-file adopts different data transmission methods. Due to the different data transmission methods, the probability that the file to be transferred is completely obtained is reduced, so that the file to be transferred cannot be compiled normally and thus cannot be cracked, which improves data security. In addition, the present invention performs content adjustment operations before data extraction, which can further increase the difficulty of data cracking and improve data transmission security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611980A
    Figure CN118611980A
Patent Text Reader

Abstract

The invention provides a data transmission method, device and system, and relates to the field of data transmission. According to the file transmission method and device, when the file is transmitted, the file to be transmitted is subjected to data extraction operation, the extracted first sub-file and the remaining second sub-file after extraction are obtained, then the first sub-file and the second sub-file are transmitted to the user side, and in the transmission process of the first sub-file and the second sub-file, the first sub-file and the second sub-file are transmitted to the user side. The data transmission modes adopted by the at least one first sub-file and the second sub-file are different, and due to the adoption of the different data transmission modes, the probability that the to-be-transmitted file is completely acquired is reduced, so that the to-be-transmitted file cannot be normally compiled and thus cannot be cracked, and the data security is improved. Besides, content adjustment operation is performed before data extraction, so that the data cracking difficulty can be further improved, and the data transmission security is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data transmission, and more particularly to a data transmission method, device and system. Background Art

[0002] In the rapidly developing Internet environment, JavaScript has become an indispensable language tool for modern software development due to its flexibility, strong ecological support and excellent platform capabilities.

[0003] However, in the actual process of transmitting files using the JavaScript language, it was found that since JavaScript is a public language, it is easy to be reverse-engineered, and the data transmission security is low. Summary of the invention

[0004] In view of this, the present invention provides a data transmission method, device and system to solve the problem that the JavaScript language can be easily reverse cracked during use and the data transmission security is low.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] A data transmission method, comprising:

[0007] Responding to a data acquisition request from a user terminal when executing a target business operation, acquiring a basic target file corresponding to the data acquisition request;

[0008] Performing a content adjustment operation on the basic target file to obtain a file to be transferred;

[0009] Performing a data extraction operation on the file to be transmitted to obtain a first subfile, and using the remaining content of the file to be transmitted after the extraction operation is performed as a second subfile; the number of the first subfile is at least one;

[0010] Transmitting the first subfile and the second subfile to the user terminal, so that the user terminal combines the first subfile and the second subfile to obtain the file to be transmitted, and uses the file to be transmitted to perform the target service operation;

[0011] During the transmission of the first subfile and the second subfile, at least one of the first subfile and the second subfile adopts a different data transmission mode.

[0012] Optionally, performing a content adjustment operation on the basic target file to obtain a file to be transmitted includes:

[0013] Generate a dynamic key based on a key generation parameter; the key generation parameter includes at least one of the identification information of the user terminal and the current time;

[0014] The generated dynamic key replaces the preset key in the basic target file to obtain an intermediate target file;

[0015] An obfuscation operation is performed on the intermediate target file to obtain a file to be transmitted.

[0016] Optionally, performing a data extraction operation on the file to be transmitted to obtain a first sub-file includes:

[0017] Determine a data extraction location identifier; the number of the data extraction location identifier is at least one;

[0018] Extracting content corresponding to the data extraction location identifier from the file to be transmitted, and obtaining a first subfile based on the extracted content;

[0019] The data extraction location identifier corresponds to the first sub-file in a one-to-one manner.

[0020] Optionally, determining the data extraction location identifier includes:

[0021] Determine the location identifier of the specified data in the file to be transmitted, and use the determined location identifier as the data extraction location identifier;

[0022] Or, randomly generate a specified number of location identifiers, and use the randomly generated location identifiers as data extraction location identifiers;

[0023] Or, obtain the location identifier specified by the user, and use the specified location identifier as the data extraction location identifier.

[0024] Optionally, determining the data extraction location identifier includes:

[0025] Acquire historical extraction data, wherein the historical extraction data includes a location identification sample and a data cracking difficulty identification;

[0026] Statistical analysis is performed on the historical extracted data to obtain a data extraction location identifier.

[0027] Optionally, obtaining a first sub-file based on the extracted content includes:

[0028] A mapping relationship between the data extraction location identifier and the content corresponding to the data extraction location identifier is established to obtain a first sub-file.

[0029] Optionally, transmitting the first subfile and the second subfile to the user terminal includes:

[0030] Transmitting the first subfile to the user terminal via a long link communication method;

[0031] The second sub-file is transmitted to the user terminal via a communication method corresponding to the hypertext transfer protocol.

[0032] A data transmission device, comprising:

[0033] The file acquisition module is used to respond to the data acquisition request of the user terminal when executing the target business operation, and acquire the basic target file corresponding to the data acquisition request;

[0034] A content adjustment module, used for performing a content adjustment operation on the basic target file to obtain a file to be transferred;

[0035] A data extraction module, configured to perform a data extraction operation on the file to be transmitted to obtain a first sub-file, and to use the remaining content of the file to be transmitted after the extraction operation is performed as a second sub-file; the number of the first sub-file is at least one;

[0036] a data transmission module, configured to transmit the first subfile and the second subfile to the user terminal, so that the user terminal combines the first subfile and the second subfile to obtain the file to be transmitted, and uses the file to be transmitted to perform the target service operation;

[0037] During the transmission of the first subfile and the second subfile, at least one of the first subfile and the second subfile adopts a different data transmission mode.

[0038] A data transmission system, comprising:

[0039] A user terminal and a risk control server for executing the above-mentioned data transmission method;

[0040] The user terminal is used to send a data acquisition request to the risk control server when executing a target business operation, and to combine the first sub-file and the second sub-file to obtain a file to be transmitted, so as to execute the target business operation using the file to be transmitted.

[0041] Optionally, a business server is also included;

[0042] The service server is used for responding to a received user operation instruction and executing a target operation corresponding to the user operation instruction during the process in which the user terminal executes the target service operation using the file to be transferred.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] The present invention provides a data transmission method, device and system. In the present invention, when transmitting a file, a data extraction operation is performed on the file to be transmitted to obtain a first subfile extracted and a second subfile remaining after the extraction, and then the first subfile and the second subfile are transmitted to the user end. During the transmission of the first subfile and the second subfile, at least one of the first subfile and the second subfile adopts a different data transmission method. Due to the use of different data transmission methods, the probability of the file to be transmitted being completely obtained is reduced, so that the file to be transmitted cannot be normally compiled and thus cannot be cracked, thereby improving data security. In addition, the present invention performs a content adjustment operation before data extraction, which can further increase the difficulty of data being cracked and improve data transmission security. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0046] Figure 1 A schematic diagram of device interaction provided by an embodiment of the present invention;

[0047] Figure 2 A flowchart of a data transmission method provided by an embodiment of the present invention;

[0048] Figure 3 A flowchart of a file processing method provided by an embodiment of the present invention;

[0049] Figure 4 A flow chart of a method for data extraction provided by an embodiment of the present invention;

[0050] Figure 5 A schematic diagram of a scenario of a data transmission method provided by an embodiment of the present invention;

[0051] Figure 6 A schematic diagram of extracting files provided by an embodiment of the present invention;

[0052] Figure 7 A flowchart of another data transmission method provided by an embodiment of the present invention;

[0053] Figure 8 A schematic diagram of the structure of a data transmission device provided by an embodiment of the present invention;

[0054] Fig. 9 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] In the rapidly developing Internet environment, JavaScript (JS for short) has become an indispensable language tool for modern software development due to its flexibility, strong ecological support and excellent platform capabilities.

[0057] However, in the actual process of transmitting files using the JavaScript language, it was found that JavaScript is a public language. Its source code can be captured by users, making it easy to be reverse-engineered, and the data transmission security is low.

[0058] In order to increase the difficulty of cracking the JavaScript language, in this embodiment, after obtaining a JavaScript file (referred to as js file) generated by the JavaScript language, the key in the js file is replaced with a dynamic key to increase the difficulty of cracking the key, and then the js file is obfuscated to increase the complexity of cracking the js file. Subsequently, the js file is split into multiple files, which are transmitted separately using long links and http (hypertext transfer protocol). Compared with the method of transmitting files using the same transmission method, the difficulty of completely obtaining the file can be reduced, so that the file cannot be completely obtained, and then the file cannot be compiled, and thus cannot be cracked.

[0059] Based on the above content, an embodiment of the present invention provides a data transmission method. The executor of the data transmission method can be a risk control server. The risk control server is a server used for risk control verification, which can provide long link access capability and js file acquisition capability, etc.

[0060] Reference Figure 1 , Figure 1 Given the risk control server, user end (such as Figure 1 The communication relationship between the client in the application and the business server. The client refers to the terminal installed with Android system, iOS system, or Hongmeng system, including mobile phones, tablets, computers, browsers, etc. The business server refers to the specific business server used for user comments and posting bullet comments.

[0061] In actual applications, the user end can establish a long connection with the risk control server. For example, when the user opens the user end (including the browser), the user end initiates authentication to the risk control server and establishes a long connection. If the user end establishes a long connection through the APP, a TCP (Transmission Control Protocol) long connection is established. If the user end establishes a long connection through a web page, a websocket long connection is established.

[0062] When a user participates in voting or ranking-related services, the user terminal first initiates an http request to the risk control server to obtain the js file. After obtaining the js file, it runs the file to render the voting or other business interface. Taking voting as an example, when the user clicks to vote, the business server can respond to the operation and execute the voting operation.

[0063] Reference Figure 2 , a data transmission method in an embodiment of the present invention may include:

[0064] S11. Respond to a data acquisition request from a user terminal when executing a target business operation, and acquire a basic target file corresponding to the data acquisition request.

[0065] The target business operation in this embodiment can be voting, ranking and other businesses. Taking voting as an example, when a user clicks a link that requires voting, the user terminal can obtain the user ID uuid, generate a data acquisition request including the uuid, and transmit the data acquisition request to the risk control server through an http request to obtain the corresponding javascript file (js file for short). The js file is a scripting language that can control the display and modification of HTML (Hyper Text Markup Language) markup language.

[0066] The js file includes encryption schemes, process control and other contents. The user side needs to use this js file when rendering voting or ranking. Therefore, when the user clicks on a link that requires voting, the user side needs to send a data acquisition request to obtain the js file.

[0067] After receiving the data acquisition request, the risk control server will query the basic target file corresponding to the request. The basic target file refers to the basic js file.

[0068] In actual applications, a basic target file can be set for the same business. Whenever a user who executes the business obtains a js file, the basic target file can be adjusted to suit the user.

[0069] In this embodiment, the basic target file is pre-configured, which can save time in generating js files and improve efficiency. The basic target file can be pre-stored in the database of the risk control server, including encryption schemes, process control and other contents. After receiving the data acquisition request, the basic target file can be obtained from the database.

[0070] It should be noted that before executing step S11, a long link between the user terminal and the risk control server needs to be established in advance. The specific implementation process refers to the above corresponding instructions.

[0071] S12: performing a content adjustment operation on the basic target file to obtain a file to be transmitted.

[0072] In actual applications, for the same business, the basic target files are the same. In order to make the basic target files recognizable and adaptively adjusted according to different users, in this embodiment, the content adjustment operation can be performed on the basic target files.

[0073] The content adjustment operation may include key replacement and obfuscation operations.

[0074] A preset key is configured in the basic target file. Since different users use the same key when using the file, the risk of key leakage increases. Therefore, in this embodiment, a dynamic key is used to replace the preset key to increase the difficulty of cracking the key.

[0075] After key replacement, an obfuscation operation may also be performed to make the contents of the base target file less easily decipherable.

[0076] In another implementation of the present invention, referring to Figure 3 , step S12 may include:

[0077] S21. Generate a dynamic key based on the key generation parameters.

[0078] The key generation parameters include at least one of the identification information of the user terminal (ie the uuid mentioned above) and the current time.

[0079] Specifically, in order to generate a dynamic key, in this embodiment, since there are many time values, the current time can be used to generate a dynamic key. Specifically, the current time is obtained, and the current time is encrypted using an encryption algorithm to obtain the dynamic key.

[0080] In addition, the UUID of the user end is the unique identification information of the user end, and there are many of them. The UUID can also be encrypted to obtain a dynamic key.

[0081] In addition, the uuid and the current time can be processed by encryption algorithm or hash processing to obtain a dynamic key. The specific generation of the dynamic key can be based on actual configuration. For example, other parameters such as the location of the user terminal can be added as parameters used in the generation of the dynamic key.

[0082] S22. Replace the preset key in the basic target file with the generated dynamic key to obtain an intermediate target file.

[0083] Specifically, the location of the preset key in the basic target file is directly queried, and then the preset key is replaced with the dynamic key, and the remaining content remains unchanged to obtain the intermediate target file.

[0084] It should be noted that in this embodiment, the dynamic key is more difficult to crack than the fixed key, and therefore, the difficulty of cracking the key can be increased. In addition, other fixed keys can also be used, such as configuring a corresponding fixed key for each user, and using the fixed key to replace the preset key in the basic target file, which can also achieve the technical effect of increasing the difficulty of key cracking.

[0085] S23, performing an obfuscation operation on the intermediate target file to obtain a file to be transmitted.

[0086] In this embodiment, the intermediate target file is obfuscated to obtain the file to be transmitted. When obfuscating, the names of various elements in the code, such as variables, functions, and classes, can be rewritten into meaningless names. For example, they can be rewritten into single letters, or short meaningless letter combinations, or rewritten into various symbols, so that readers cannot guess their purpose based on the names.

[0087] When obfuscating, you can also rewrite some of the logic in the code to make it functionally equivalent but more difficult to understand. For example, rewrite the for loop into a while loop, rewrite the loop into recursion, simplify the intermediate variables, etc. Disrupt the format of the code. For example, delete spaces, squeeze multiple lines of code into one line, or break one line of code into multiple lines, etc.

[0088] When obfuscating, you can also split the key into multiple subkeys and store each subkey in a different row. The specific obfuscation method can be configured according to actual needs.

[0089] S13: Perform a data extraction operation on the file to be transmitted to obtain a first sub-file, and use the remaining content after the extraction operation is performed on the file to be transmitted as a second sub-file.

[0090] The number of the first sub-file is at least one.

[0091] In actual applications, through data transmission analysis, it is found that if the same file is split into multiple files and the split files are transmitted using different transmission methods, when an illegal user obtains the file, he may only obtain part of the file and cannot obtain the complete file, so he cannot compile the file and cannot crack it.

[0092] The data transmission method is analyzed and it is found that the data transmission method of the long link is a non-standard http protocol, and the encryption algorithm can be designed by oneself. Therefore, in this embodiment, the long link is used as a data transmission method.

[0093] In addition, when the client communicates with the risk control server, it sends requests via http, so http serves as another way of data transmission.

[0094] Therefore, in this embodiment, a combination of http and long link is used for data transmission.

[0095] During data transmission, it is necessary to determine which part of the file to be transmitted uses HTTP transmission and which part uses long link transmission. To this end, in the present invention, a data extraction operation can be performed on the file to be transmitted to obtain a first subfile, and after the data extraction operation, the remaining content constitutes a second subfile.

[0096] In actual extraction, there are multiple data extraction methods, such as random extraction, extraction according to user needs, or extraction of data where the key is located, which can be specifically configured according to actual conditions.

[0097] In another implementation of the present invention, a specific implementation of the data extraction operation is given, referring to Figure 4 , which may include:

[0098] S31. Determine a data extraction location identifier.

[0099] Among them, the number of the data extraction location identifiers is at least one, which can be specifically determined according to actual configuration.

[0100] For the data extraction position identifier, it can be determined according to the number of first sub-files to be extracted. If two second sub-files need to be extracted from the file to be transmitted, the number of data extraction position identifiers is two. If five second sub-files need to be extracted from the file to be transmitted, the number of data extraction position identifiers is five. The content extracted according to one data extraction position identifier is regarded as a first sub-file, that is, the data extraction position identifier corresponds one-to-one to the first sub-file.

[0101] In practical applications, there are various ways to determine the data extraction location identifier, such as determining the location identifier of the specified data in the file to be transmitted, and using the determined location identifier as the data extraction location identifier.

[0102] The designated data may be a dynamic key, and the paragraph or line where the dynamic key is located is used as a data extraction position identifier.

[0103] In this embodiment, the dynamic key is used as the designated data because the dynamic key is of high importance. If it is lost, the data will be easily cracked. Therefore, in this embodiment, the dynamic key is extracted and transmitted using a long link communication method to improve the transmission security of the dynamic key.

[0104] In addition, a specified number of location identifiers may be randomly generated and used as data extraction location identifiers.

[0105] That is, several paragraphs or lines of data may be randomly selected as the first sub-file, wherein during the random selection, one or more position identifiers may be randomly generated, and each position identifier is a data extraction position identifier.

[0106] In addition, the user can also specify which paragraphs or lines to extract, and at this time, the position identifier specified by the user is obtained and the specified position identifier is used as the data extraction position identifier.

[0107] Specifically, a corresponding interface can be configured on the user side or the risk control server. The file to be transferred is displayed on the configuration interface. The file to be transferred can use paragraph marks or line marks. The user selects the paragraphs or lines to be extracted on the configuration interface. Each paragraph or line selected by the user is marked with a position.

[0108] In addition, statistical analysis can be performed on historical extraction results to determine which extracted data will increase the difficulty of data cracking.

[0109] Specifically, historical extraction data is obtained, wherein the historical extraction data includes a location identification sample and a data cracking difficulty identification.

[0110] The position identification sample can be a sample of the position of the extracted content marked in each file sample. For example, in the first file sample, the three paragraphs 1, 15, and 20 are extracted, in the second file sample, the paragraphs 20-40, 60, and 80 are extracted, and in the third file sample, the paragraphs 1, 100, 120, 180, and 190 are extracted.

[0111] After obtaining each position identification sample, humans can manually annotate the data cracking difficulty level, such as difficult, relatively difficult, not difficult, simple, etc.

[0112] Subsequently, the historical extracted data is statistically analyzed to obtain a data extraction location identifier.

[0113] In practical applications, statistical analysis can be processed using statistical analysis algorithms such as correlation analysis, variance analysis, principal component analysis, and factor analysis to determine which paragraphs will make data decryption more difficult and more difficult.

[0114] After the results are counted, if through statistical analysis, it is found that extracting at least three paragraphs 1, 10 and 20 will make the data cracking difficult and difficult, the three paragraphs 1, 10 and 20 can be used as data extraction position identifiers.

[0115] S32: extracting content corresponding to the data extraction location identifier from the file to be transmitted, and obtaining a first subfile based on the extracted content.

[0116] Specifically, assuming that the data extraction position is identified as extracting the contents of paragraphs 1, 10, and 20, the content of paragraph 1 will be extracted and used as a first sub-file, the content of paragraph 10 will be extracted and used as a first sub-file, and the content of paragraph 20 will be extracted and used as a first sub-file. At this time, three first sub-files can be obtained.

[0117] After each content is extracted, a mapping relationship between the data extraction position identifier and the content corresponding to the data extraction position identifier may be established to obtain a first sub-file.

[0118] For example, the first sub-file includes:

[0119] Paragraph marker: Paragraph 1;

[0120] Extract the content "Content of the first paragraph".

[0121] S14, transmitting the first subfile and the second subfile to the user terminal, so that the user terminal combines the first subfile and the second subfile to obtain the file to be transmitted, and uses the file to be transmitted to perform the target service operation;

[0122] During the transmission of the first subfile and the second subfile, at least one of the first subfile and the second subfile adopts a different data transmission mode.

[0123] In practical applications, according to the above discussion, the communication combination adopted in this embodiment is http+long link, and the communication reliability of the long link is better than http. Therefore, at least one first sub-file can be transmitted using a long link, and the remaining first sub-files and second sub-files are transmitted using http communication.

[0124] For example, a first subfile is transmitted using a long link, and the remaining first subfiles and second subfiles are transmitted using HTTP. When using HTTP for transmission, each subfile can be transmitted separately, such as serial transmission, so as to avoid the probability of all data being obtained. In addition, parallel transmission can also be used for transmission.

[0125] In addition, the first subfile may be transmitted to the user end through a long link communication method, and the second subfile may be transmitted to the user end through a communication method corresponding to the Hypertext Transfer Protocol (http).

[0126] When the first subfile is transmitted via the long link communication mode, each first subfile may be transmitted separately, or at least one first subfile may be combined and transmitted together. For example, if there are six first subfiles in total, they may be combined in pairs to obtain three files, and the three files may be transmitted separately.

[0127] In addition, in order to improve the security of data transmission, sub-files can be transmitted at intervals. For example, after the first sub-file is transmitted, there can be an interval of 1 or 2 seconds before transmitting the next one. This can avoid the probability of all sub-files being illegally obtained.

[0128] In addition, the sub-files can be encrypted again when they are transmitted to improve transmission security.

[0129] In this embodiment, when transmitting a file, a data extraction operation is performed on the file to be transmitted to obtain a first subfile extracted and a second subfile remaining after the extraction, and then the first subfile and the second subfile are transmitted to the user terminal. During the transmission of the first subfile and the second subfile, at least one of the first subfile and the second subfile adopts a different data transmission method. Due to the different data transmission methods, the probability of the file to be transmitted being completely obtained is reduced, so that the file to be transmitted cannot be compiled normally, and thus cannot be cracked, thereby improving data security. In addition, the present invention performs a content adjustment operation before performing data extraction, which can further increase the difficulty of data being cracked and improve data transmission security.

[0130] In another embodiment of the present invention, the overall process of the entire data transmission method is provided, referring to Figure 5 , the specific contents are as follows:

[0131] When a user opens a client (including a browser), the client initiates authentication to the risk control server and establishes a persistent connection. If the client is a browser, a persistent connection using the websocket protocol is established.

[0132] When a user participates in voting or ranking-related services, the client first initiates an HTTP request carrying a uuid to the risk control server to obtain the JavaScript file, and waits for the risk control server to return the HTTP request result and long link push data.

[0133] The risk control server first performs dynamic key replacement and obfuscation on the original js template file (i.e. the basic target file mentioned above) through uuid to obtain the ori_js1 file. Then, one or more code segments are randomly extracted to obtain the extracted js file js1 and the remaining file js2. The js1 file is returned to the client via http, and then the js2 file is pushed to the client via a long link. For examples of js1 and js2 files, please refer to Figure 6 , Figure 6 In the JS template file, there are 1-600 lines in total. The ori_js1 file obtained after key replacement and obfuscation includes 1-1000 lines. Lines 200-260 are extracted as js2 files, and the remaining lines 1-199 and 261-1000 are used as js1 files. In the extracted js2 file, the start (begin) and end (end) tags are set to record the start and end lines of the extracted lines. In addition, the js2 file also includes the corresponding extracted code data of lines 200-260.

[0134] During the execution waiting period, after receiving the js1 and js2 files, the client merges the js1 and js2 execution files according to the start and end identifiers in js2 to obtain the complete js file ori_js1, and immediately runs ori_js1 to render the voting or other business interfaces.

[0135] The user clicks to vote, and the client passes in the dynamic key (the dynamic key is hidden in the delivered ori_js1 file and can run normally without additional operations) and other general parameters to request the business server to initiate a voting request.

[0136] The business server passes the uuid and dynamic key to the risk control server to verify whether the key is passed. If the verification is passed, the voting is normal. If the verification fails, the voting fails. For the entire process, refer to Figure 7 .

[0137] In this embodiment, some codes in the obfuscated js file are dynamically extracted for different users and distributed through long links, so that the js file captured by the illegal user is incomplete and cannot be compiled and debugged normally (causing interference to the illegal user and greatly increasing the cost of reverse cracking). It will be extremely difficult for the illegal user to reverse crack the obfuscated js file by manual reading.

[0138] Based on the above embodiment of the data transmission method, another embodiment of the present invention provides a data transmission device, referring to Figure 8 , which may include:

[0139] The file acquisition module 11 is used to respond to the data acquisition request of the user terminal when executing the target business operation, and acquire the basic target file corresponding to the data acquisition request;

[0140] A content adjustment module 12, configured to perform a content adjustment operation on the basic target file to obtain a file to be transmitted;

[0141] A data extraction module 13 is used to perform a data extraction operation on the file to be transmitted to obtain a first sub-file, and to use the remaining content after the extraction operation is performed on the file to be transmitted as a second sub-file; the number of the first sub-file is at least one;

[0142] A data transmission module 14, configured to transmit the first subfile and the second subfile to the user terminal, so that the user terminal combines the first subfile and the second subfile to obtain the file to be transmitted, and uses the file to be transmitted to perform the target service operation;

[0143] During the transmission of the first subfile and the second subfile, at least one of the first subfile and the second subfile adopts a different data transmission mode.

[0144] In a possible implementation, the content adjustment module 12 includes:

[0145] A key generation submodule, used to generate a dynamic key based on a key generation parameter; the key generation parameter includes at least one of the identification information of the user terminal and the current time;

[0146] A key replacement submodule, used to replace the preset key in the basic target file with the generated dynamic key to obtain an intermediate target file;

[0147] The obfuscation operation submodule is used to perform an obfuscation operation on the intermediate target file to obtain a file to be transmitted.

[0148] In a possible implementation, the data extraction module 13 includes:

[0149] An identifier determination submodule, used to determine a data extraction position identifier; the number of the data extraction position identifier is at least one;

[0150] An extraction submodule, configured to extract content corresponding to the data extraction position identifier from the file to be transmitted, and obtain a first subfile based on the extracted content;

[0151] The data extraction location identifier corresponds to the first sub-file in a one-to-one manner.

[0152] In a possible implementation, the identification determination submodule is specifically used for:

[0153] Determine the location identifier of the specified data in the file to be transmitted, and use the determined location identifier as the data extraction location identifier;

[0154] Or, randomly generate a specified number of location identifiers, and use the randomly generated location identifiers as data extraction location identifiers;

[0155] Or, obtain the location identifier specified by the user, and use the specified location identifier as the data extraction location identifier.

[0156] In a possible implementation, the identification determination submodule is specifically used for:

[0157] Acquire historical extraction data, the historical extraction data including location identification samples and data cracking difficulty identification; perform statistical analysis on the historical extraction data to obtain data extraction location identification.

[0158] In a possible implementation, when the extraction submodule is used to obtain the first subfile based on the extracted content, it is specifically used to:

[0159] A mapping relationship between the data extraction location identifier and the content corresponding to the data extraction location identifier is established to obtain a first sub-file.

[0160] In a possible implementation, the data transmission module 14 is specifically used for:

[0161] The first sub-file is transmitted to the user terminal through a long link communication method; the second sub-file is transmitted to the user terminal through a communication method corresponding to the hypertext transfer protocol.

[0162] In this embodiment, when transmitting a file, a data extraction operation is performed on the file to be transmitted to obtain a first subfile extracted and a second subfile remaining after the extraction, and then the first subfile and the second subfile are transmitted to the user terminal. During the transmission of the first subfile and the second subfile, at least one of the first subfile and the second subfile adopts a different data transmission method. Due to the different data transmission methods, the probability of the file to be transmitted being completely obtained is reduced, so that the file to be transmitted cannot be compiled normally, and thus cannot be cracked, thereby improving data security. In addition, the present invention performs a content adjustment operation before performing data extraction, which can further increase the difficulty of data being cracked and improve data transmission security.

[0163] It should be noted that, for the working process of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiment, which will not be repeated here.

[0164] The embodiment of the present application also provides an electronic device, which may be the above-mentioned risk control server. Fig. 9 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Fig. 9 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0165] like Fig. 9 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603 to implement the above-mentioned data transmission method. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0166] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0167] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the data transmission methods provided in the embodiments of the present application.

[0168] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any data transmission method provided in the embodiment of the present application.

[0169] In another embodiment of the present application, a data transmission system is provided, characterized in that it includes:

[0170] A user terminal and a risk control server for executing the above-mentioned data transmission method;

[0171] The user terminal is used to send a data acquisition request to the risk control server when executing a target business operation, and to combine the first sub-file and the second sub-file to obtain a file to be transmitted, so as to execute the target business operation using the file to be transmitted.

[0172] Further, it also includes a business server;

[0173] The business server is used to respond to received user operation instructions (such as the above-mentioned voting or ranking instructions) and perform the target operation corresponding to the user operation instruction during the process of the user terminal using the file to be transferred to perform the target business operation.

[0174] Specifically, for the specific working process of the user terminal, risk control server and business server in this embodiment, please refer to the corresponding description in the above embodiment, which will not be repeated here.

[0175] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data transmission method, characterized in that: include: Responding to a data acquisition request from a user terminal when executing a target business operation, acquiring a basic target file corresponding to the data acquisition request; Performing a content adjustment operation on the basic target file to obtain a file to be transferred; Performing a data extraction operation on the file to be transmitted to obtain a first subfile, and using the remaining content of the file to be transmitted after the extraction operation is performed as a second subfile; the number of the first subfile is at least one; Transmitting the first subfile and the second subfile to the user terminal, so that the user terminal combines the first subfile and the second subfile to obtain the file to be transmitted, and uses the file to be transmitted to perform the target service operation; During the transmission of the first subfile and the second subfile, at least one of the first subfile and the second subfile adopts a different data transmission mode.

2. The data transmission method according to claim 1, characterized in that: Performing a content adjustment operation on the basic target file to obtain a file to be transmitted includes: Generate a dynamic key based on a key generation parameter; the key generation parameter includes at least one of the identification information of the user terminal and the current time; The generated dynamic key replaces the preset key in the basic target file to obtain an intermediate target file; An obfuscation operation is performed on the intermediate target file to obtain a file to be transmitted.

3. The data transmission method according to claim 1, characterized in that: Performing a data extraction operation on the file to be transmitted to obtain a first sub-file, including: Determine a data extraction location identifier; the number of the data extraction location identifier is at least one; Extracting content corresponding to the data extraction location identifier from the file to be transmitted, and obtaining a first subfile based on the extracted content; The data extraction location identifier corresponds to the first sub-file in a one-to-one manner.

4. The data transmission method according to claim 3, characterized in that: Determine the location of data extraction includes: Determine the location identifier of the specified data in the file to be transmitted, and use the determined location identifier as the data extraction location identifier; Or, randomly generate a specified number of location identifiers, and use the randomly generated location identifiers as data extraction location identifiers; Or, obtain the location identifier specified by the user, and use the specified location identifier as the data extraction location identifier.

5. The data transmission method according to claim 3, characterized in that: Determine the location of data extraction includes: Acquire historical extraction data, wherein the historical extraction data includes a location identification sample and a data cracking difficulty identification; Statistical analysis is performed on the historical extracted data to obtain a data extraction location identifier.

6. The data transmission method according to claim 3, characterized in that: Based on the extracted content, a first sub-file is obtained, including: A mapping relationship between the data extraction location identifier and the content corresponding to the data extraction location identifier is established to obtain a first sub-file.

7. The data transmission method according to claim 1, characterized in that: Transmitting the first sub-file and the second sub-file to the user terminal includes: Transmitting the first subfile to the user terminal via a long link communication method; The second sub-file is transmitted to the user terminal via a communication method corresponding to the hypertext transfer protocol.

8. A data transmission device, characterized in that: include: The file acquisition module is used to respond to the data acquisition request of the user terminal when executing the target business operation, and acquire the basic target file corresponding to the data acquisition request; A content adjustment module, used for performing a content adjustment operation on the basic target file to obtain a file to be transferred; A data extraction module, configured to perform a data extraction operation on the file to be transmitted to obtain a first sub-file, and to use the remaining content of the file to be transmitted after the extraction operation is performed as a second sub-file; the number of the first sub-file is at least one; a data transmission module, configured to transmit the first subfile and the second subfile to the user terminal, so that the user terminal combines the first subfile and the second subfile to obtain the file to be transmitted, and uses the file to be transmitted to perform the target service operation; During the transmission of the first subfile and the second subfile, at least one of the first subfile and the second subfile adopts a different data transmission mode.

9. A data transmission system, characterized in that: include: A user terminal, and a risk control server for executing the data transmission method according to any one of claims 1 to 7; The user terminal is used to send a data acquisition request to the risk control server when executing a target business operation, and to combine the first sub-file and the second sub-file to obtain a file to be transmitted, so as to execute the target business operation using the file to be transmitted.

10. The data transmission system according to claim 9, characterized in that: Also includes business servers; The service server is used for responding to a received user operation instruction and executing a target operation corresponding to the user operation instruction during the process in which the user terminal executes the target service operation using the file to be transferred.