Data processing method

The secret data packet is processed through matrix arrangement and multiple encoding processes, and is hidden in the network protocol data structure, which solves the problem of low security of information hiding in the existing technology and achieves higher data transmission security.

CN118764248APending Publication Date: 2024-10-11WEBANK (CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410900691.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing information hiding technology transmits hidden information by adjusting the sending time of data packets, which is less secure. A third party can identify secret information through confirmation interval detection.

Method used

The method of matrix arrangement and multiple encoding processing is used to process secret data packets to form multiple target data packets and encoding blocks. The secret data is hidden in the network protocol data structure through the carrier matrix, increasing data complexity and reducing the number of identified data. risk.

Benefits of technology

The security of information hiding is improved, it is difficult to accurately identify secret data, even if it is intercepted, it is difficult to identify, and the security of data transmission is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764248A_ABST
    Figure CN118764248A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method, which comprises the following steps of: performing matrix arrangement processing on secret data in a plurality of secret data packets to form a plurality of target data packets; the matrix arrangement processing means that the secret data are stored in bits, mapped in a target data packet, of a carrier matrix, and the carrier matrix is composed of a plurality of bits determined according to a data structure corresponding to a currently used network protocol; performing multiple times of coding processing on the multiple target data packets to generate multiple coding blocks; wherein each time of coding processing is to select a part of target data packets from a plurality of target data packets and fuse the target data packets into a coding block; and sending the plurality of coding blocks to a data receiving end. According to the technical scheme, the secret data are rearranged through matrix arrangement processing, the data complexity is increased, the secret data are difficult to accurately recognize even if the secret data are intercepted, and therefore the risk that the secret data are recognized by a third party is reduced, and the information hiding safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and specifically relates to a data processing method. Background Art

[0002] Information hiding is a technique that hides secret information in other media (such as images, audio, video or text), making the hidden information invisible to unauthorized observers. The purpose of this method is to make the secret information undetectable during transmission, and even if the media file is intercepted, the secret information will not be exposed.

[0003] At present, information hiding transmits hidden information by adjusting the sending time of data packets. The two communicating parties synchronize their time in advance. The sender sends data packets at specific time intervals. For example, if the packet sending interval is less than or equal to t, it means that the hidden information bit 1 is sent, and if the interval is greater than t, it means that the hidden information bit 0 is sent. The receiver generates binary secret information based on the interval time of receiving data packets. However, under this scheme, as long as the third party confirms the interval time, the secret information can be detected and identified, and the security is low. Summary of the invention

[0004] The purpose of this application is to provide a data processing method to reduce the risk of secret data being identified by a third party and improve the security of information hiding.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to one aspect of an embodiment of the present application, a data processing method is provided, which is applied to a data sending end, and the method includes:

[0007] Performing matrix arrangement processing on the secret data in the plurality of secret data packets to form a plurality of target data packets; the matrix arrangement processing refers to storing the secret data in the bit positions mapped by the carrier matrix in the target data packets, the carrier matrix being composed of a plurality of bits determined according to the data structure corresponding to the currently used network protocol;

[0008] Performing multiple encoding processes on the multiple target data packets to generate multiple encoding blocks; wherein each encoding process is to select some target data packets from the multiple target data packets and merge them into encoding blocks;

[0009] The multiple encoding blocks are sent to a data receiving end.

[0010] According to one aspect of an embodiment of the present application, a data processing method is provided, which is applied to a data receiving end, and the method includes:

[0011] Obtain multiple encoding blocks sent by the data sending end;

[0012] Performing multiple decoding processes on the multiple coding blocks to obtain multiple target data packets; wherein each decoding process selects some coding blocks from the multiple coding blocks and merges them into the target data packet;

[0013] Perform matrix de-mapping processing on the multiple target data packets to obtain secret data packets contained in the multiple target data packets; wherein the matrix de-mapping processing refers to generating secret data packets according to the mapping positions of the bits storing secret data in the target data packets in the carrier matrix, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol.

[0014] According to one aspect of an embodiment of the present application, there is provided a data processing device, applied to a data sending end, comprising:

[0015] A matrix encoding module, used for performing matrix arrangement processing on the secret data in the multiple secret data packets to form multiple target data packets; the matrix arrangement processing refers to storing the secret data in the bit positions mapped by the carrier matrix in the target data packets, the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol;

[0016] The encoding module is used to perform multiple encoding processes on the multiple target data packets to generate multiple encoding blocks; wherein each encoding process is to select some target data packets from the multiple target data packets and merge them into encoding blocks;

[0017] A sending module is used to send the multiple coding blocks to a data receiving end.

[0018] In one embodiment of the present application, the encoding module is specifically used for:

[0019] Determine the maximum number of codes according to the number of the plurality of target data packets; the maximum number of codes represents the maximum number of target data packets corresponding to one coding process;

[0020] When a data transmission instruction is detected, a plurality of designated numbers are generated according to the maximum number of codes; wherein the designated number is less than or equal to the maximum number of codes; when data is transmitted for the first time, the data transmission instruction is actively generated by the data transmitting end; when data is not transmitted for the first time, the data transmission instruction is generated according to a request of the data receiving end;

[0021] The specified number of target data packets are selected from the target data packets for multiple encoding processes to generate multiple encoding blocks; wherein one specified number corresponds to one encoding process.

[0022] In one embodiment of the present application, the encoding module is specifically used for:

[0023] The target data packets corresponding to the specified number are selected from the multiple target data packets, and an exclusive OR operation is performed on the target data packets corresponding to the specified number, and the result of the exclusive OR operation is used as the coding block.

[0024] In one embodiment of the present application, the sending module is specifically used for:

[0025] When the current network packet loss rate reaches a preset threshold, the multiple coding blocks and the multiple target data packets are used as multiple data packets to be sent;

[0026] Performing random packet loss processing on the plurality of data packets to be sent, to obtain a plurality of target sending data packets;

[0027] The target transmission data packet is sent to the data receiving end.

[0028] In one embodiment of the present application, the matrix encoding module is specifically used for:

[0029] Calculate the previous secret data index number according to the current secret data packet number and the carrier matrix size; wherein the secret data index number is the number of the secret data in the secret data sequence corresponding to the multiple secret data packets;

[0030] Determine the current carrier matrix element and the current carrier matrix element index number, and use the sum of the previous secret data index number and the current carrier matrix element index number as the current secret data index number;

[0031] The current secret data corresponding to the current secret data index number is stored in the bit corresponding to the current carrier matrix element.

[0032] In one embodiment of the present application, the matrix encoding module is specifically used for:

[0033] Determine the current carrier matrix element according to the current filling direction, wherein the filling direction represents the direction in which the multiple secret data are filled into the positions of each element in the matrix carrier; the current carrier matrix element indicates the storage position of the current secret data in the carrier matrix;

[0034] The previous carrier matrix element index number is increased by a set value as the current carrier matrix element index number;

[0035] When there are elements in the carrier matrix that are not filled with secret data, the current filling direction is updated according to a preset filling direction path, and the process of returning to the step of determining the current carrier matrix element according to the current filling direction is returned;

[0036] When there is no element in the carrier matrix that is not filled with secret data, the next secret data packet is used as the current secret data packet, and the process returns to the step of calculating the previous secret data index number according to the current secret data packet number and the carrier matrix size.

[0037] The specific details of the data processing device provided in each embodiment of the present application have been described in detail in the corresponding method embodiments and will not be repeated here.

[0038] According to one aspect of an embodiment of the present application, there is provided a data processing device, applied to a data receiving end, comprising:

[0039] A data acquisition module, used to acquire multiple encoding blocks sent by a data sending end;

[0040] A decoding module, configured to perform multiple decoding processes on the multiple coding blocks to obtain multiple target data packets; wherein each decoding process is to select some coding blocks from the multiple coding blocks and merge them into a target data packet;

[0041] A matrix de-mapping module is used to perform matrix de-mapping processing on the multiple target data packets to obtain secret data packets contained in the multiple target data packets; wherein the matrix de-mapping processing refers to generating a secret data packet according to the mapping position of the bits storing the secret data in the target data packets in the carrier matrix, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol.

[0042] In one embodiment of the present application, the decoding module is specifically used for:

[0043] storing the plurality of coding blocks into a first queue and a second queue respectively according to coding identifiers of the coding blocks; wherein the coding identifier indicates the number of target data packets used to generate the coding blocks;

[0044] Performing an XOR operation on the coding blocks in the first queue and the coding blocks in the second queue respectively to obtain multiple target data packets;

[0045] When the obtained target number of data packets is different from the target number of data packets indicated by the data sending end, a data acquisition request is initiated to the data sending end, wherein the data acquisition request is used to instruct the data sending end to continue to send the coded blocks to the data receiving end;

[0046] When receiving the coding blocks that the data receiving end continues to send, the process returns to the step of storing the plurality of coding blocks in the first queue and the second queue respectively according to the coding identifiers of the coding blocks.

[0047] In one embodiment of the present application, the decoding module is specifically used for:

[0048] When the coding identifier of the coding block is a preset value, storing the coding block in the first queue;

[0049] When the encoding identifier of the encoding block is not a preset value, the encoding block is stored in the second queue.

[0050] In one embodiment of the present application, the decoding module is specifically used for:

[0051] Using the coding blocks in the first queue that have not been subjected to the XOR operation as the first coding blocks;

[0052] Using a coding block in the second queue whose coding list does not include the first coding block as a second coding block, wherein the coding list of the coding block is used to record an identifier of a target data packet that generates the coding block;

[0053] Performing an XOR operation on the first coding block and the second coding block in the second queue respectively to obtain a plurality of candidate data packets, and subtracting a set value from the coding identifier of the second coding block as the coding identifier of the candidate data packet to which the second coding block corresponds;

[0054] If the encoding identifier of the candidate data packet is a preset value, the candidate data packet is stored in the first queue as a first encoding block; if the encoding identifier of the candidate data packet is not a set value, the candidate data packet is stored in the second queue;

[0055] When there are coding blocks that have not been XOR-operated in the first queue, return to the step of using the coding blocks that have not been XOR-operated in the first queue as the first coding blocks; when there are no coding blocks that have not been XOR-operated in the first queue, use the coding blocks in the first queue as the target data packets.

[0056] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the data processing method in the above technical solution is implemented.

[0057] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor executes the executable instructions so that the electronic device performs a data processing method as in the above technical solution.

[0058] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data processing method in the above technical solution.

[0059] In the technical solution provided in the embodiment of the present application, the data sending end first performs matrix arrangement processing on the secret data in multiple secret data packets to form multiple target data packets; the matrix arrangement processing refers to storing the secret data in the bit positions mapped by the carrier matrix in the target data packet, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol; then multiple target data packets are encoded multiple times to generate multiple encoding blocks; wherein each encoding process selects part of the target data packets from multiple target data packets and merges them into encoding blocks; finally, multiple encoding blocks are sent to the data receiving end. In this process, the secret data is first rearranged through matrix arrangement processing, which increases the complexity of the data, making it difficult to accurately identify the secret data even if it is intercepted, thereby reducing the risk of the secret data being identified by a third party and improving the security of information hiding; at the same time, multiple encoding processes can further increase the complexity of the data sent by the data sending end, further reducing the risk of the secret data being identified by a third party and improving the security of information hiding.

[0060] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0062] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0063] Figure 2 The flowchart of a data processing method provided by an embodiment of the present application is schematically shown.

[0064] Figure 3 A flowchart of a matrix arrangement process provided by an embodiment of the present application is schematically shown.

[0065] Figure 4AThe figure schematically shows a schematic diagram of a spiral matrix arrangement provided by an embodiment of the present application.

[0066] Figure 4B The diagram schematically shows a Z-type matrix arrangement provided by an embodiment of the present application.

[0067] Figure 5 The flowchart of a data processing method provided by an embodiment of the present application is schematically shown.

[0068] Figure 6 The flowchart of a data processing method provided by an embodiment of the present application is schematically shown.

[0069] Figure 7 A schematic diagram of a decoding process provided by an embodiment of the present application is schematically shown.

[0070] Figure 8 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0071] Fig. 9 A schematic diagram of a target data packet provided by an embodiment of the present application is schematically shown.

[0072] Fig.10 The structural block diagram of a data processing device provided by an embodiment of the present application is schematically shown.

[0073] Fig.11 The structural block diagram of a data processing device provided by an embodiment of the present application is schematically shown.

[0074] Fig.12 The structure block diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0075] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0076] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0077] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0078] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0079] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0080] It is understandable that in the specific implementation of this application, related data such as customer information (such as identity information) is involved. When the above embodiments of this application are applied to specific products or technologies, customer permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0081] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0082] like Figure 1 As shown, the system architecture 100 may include a terminal device 110, a network 120 and a server 130. The terminal device 110 may include a smart phone, a tablet computer, a laptop computer, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, etc. The server 130 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The network 120 may be a communication medium of various connection types that can provide a communication link between the terminal device 110 and the server 130, for example, a wired communication link or a wireless communication link.

[0083] According to the implementation requirements, the system architecture in the embodiment of the present application can have any number of terminal devices, networks and servers. For example, the server 130 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the terminal device 110, can also be applied to the server 130, or can be implemented by the terminal device 110 and the server 130 together, and the present application does not make any special restrictions on this.

[0084] The data processing method provided by the present application is described in detail below in conjunction with specific implementation methods.

[0085] Figure 2 The flowchart of a data processing method provided by an embodiment of the present application is schematically shown. The method can be implemented by a terminal device or a server. The method is implemented by a data sending end. Figure 2 As shown, the data processing method provided in this embodiment includes steps 210 to 230, which are specifically as follows:

[0086] Step 210, matrix arrangement processing is performed on the secret data in the multiple secret data packets to form multiple target data packets; matrix arrangement processing refers to storing the secret data in the bits mapped by the carrier matrix in the target data packet, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol.

[0087] Specifically, secret data is data that a data transmitter expects to send to a data receiver in a covert manner without being identified by a third party. In this embodiment, secret data refers to a single data, and a secret data packet refers to a plurality of secret data. Exemplarily, in the case of data transmission in binary form, a secret data refers to a bit of binary data, and a secret data packet is a string of data consisting of multiple bits of binary data. For example, for the data 0110 0111 0011 1101, this string of data can be called a secret data packet, and the first bit of binary data 0, the second bit of binary data 1, the third bit of binary data 1, etc. are all called secret data.

[0088] Before the data sender and the data receiver transmit data, they usually agree on the network protocol to be used. The network protocol here refers to the network protocols of each layer in the OSI (Open System Interconnection) model of computer networks, such as the transport layer protocol: TCP (Transmission Control Protocol), UDP (User Datagram Protocol), RTP (Real-time Transport Protocol), and the network layer protocol: IP (Interconnect Protocol). These protocols define the structure of the data sent by the data sender. The data sent by the data sender is generally also called a message, so the data structure is also called a message structure. For example, the UDP protocol stipulates that the data to be sent must have UDP header information, which must include source port, destination port, data length, checksum, and other information; for another example, the RTP protocol stipulates that the data to be sent must have RTP header information, which must include version, timestamp, and other information. Generally, the implementation of the RTP protocol relies on the UDP protocol, so these two protocols are usually used together.

[0089] The data structure specified by the network protocol is generally filled with information by bits, and one bit is filled with one character. In the data structures specified by these network protocols, based on the limitation of the amount of data transmitted, there are usually some bits of data that do not change during the communication process, which means that the specific data of these bits will not affect the normal data communication, and this bit is called an idle bit. Based on this, the technical solution of the present application uses multiple bits that do not change during the general data communication process as carriers of secret information, and stores the secret data in these bits for secret transmission. In the data storage process, these bits are arranged in a matrix form to form a carrier matrix, and then according to the mapping relationship between the secret data and the elements in the carrier matrix, the secret data is stored in the bits mapped by the corresponding elements. This process is matrix arrangement processing.

[0090] For example, in the IP protocol, the message header (i.e., IP header information) defines 20 bytes. Taking TTL (Time To Live) as an example, the meaning of this field is the life cycle of the message. The maximum number of hops that an IP message goes through during the routing transmission process to reach the target host. Each time it passes through a router, the TTL value decreases by 1. This field has 8 bits, so the maximum number of hops allowed is 2. 8-1=255. With the continuous development of routing technology, most messages currently only go through a few hops from the source IP to the target IP, that is, only some of the 8 bits of the TTL field in the message will change, which is used to indicate the change of the TTL value, and the remaining bits will not change during the communication process, which is equivalent to being unused. Therefore, the bits of the TTL field that do not change during the communication process (such as the upper 2 bits) can be used for the transmission of secret data, and the remaining bits (such as the lower 6 bits) can be used to store the TTL value normally.

[0091] For example, the UDP header information contains a length field, which contains 16 bits. The UDP protocol is encapsulated in an IP data packet, and the header of the IP data packet occupies 20 bytes, so the maximum theoretical length of the UDP data packet is 2 16 -1-8-20=65507 bytes. When the UDP data packet transmission volume is not that large, the high bits of the length field are fixed to 0 (idle bits). Assuming that the length of each UDP data packet is 1kb (2 10 bit), then the length field only occupies the lower 10 bits, and the upper 6 bits are not used. Therefore, the upper 6 bits can be used as the bits for constructing the carrier matrix. Unless there is a requirement for the amount of hidden information, the data sender and receiver often make an agreement before communication. For example, only the lower 8 bits of the port number are used as valid bits, and the port number is specially processed during the protocol parsing process. In this case, these high bits of the port number field can be used as the bits for constructing the carrier matrix.

[0092] For example, the RTP protocol is generally used together with the UDP protocol. The RTP header information includes a sequence number field, which includes 18 bits. Generally, only the lower 6 bits of the sequence number field are occupied, and the upper 12 bits are usually fixed to 0. Therefore, the upper 12 bits of the sequence number field can be selected as the bits for constructing the carrier matrix.

[0093] According to the size of the secret data to be transmitted, one or more free bits in the network protocol can be selected to construct the carrier matrix. The size of the carrier matrix can be determined according to the amount of secret data to be sent. Generally speaking, a carrier matrix can at least accommodate the amount of data of a secret data packet. When the amount of secret data is too large, it can be divided into data packets that adapt to the carrier matrix, so that the carrier matrix matches the amount of data of the secret data packet. Exemplarily, the upper 8 bits of the UDP header information length field and the upper 12 bits of the RTP header information sequence number field are used as the bits for constructing the carrier matrix. All 20 bits can be used to construct the carrier matrix, or some bits can be selected from them to construct the carrier matrix, for example, 16 bits can be selected to construct a 4*4 carrier matrix. When the amount of data of a data packet in the original secret data is greater than 16 bits, the original secret data can be divided according to the amount of 16 bits of secret data in each data packet.

[0094] Matrix arrangement processing is to store the secret data in the bits mapped by each element in the carrier matrix. In simple terms, it is to fill the secret data into the carrier matrix. Then it is necessary to determine the element position of the secret data in the carrier matrix, that is, to determine the association between the secret data index number and the matrix element. The secret data index number represents the position of the secret data in the secret data packet. Exemplarily, a[i][j] represents the element in the i-th row and j-th column of the carrier matrix. If the size of the carrier matrix is ​​row*col, row represents the number of rows, col represents the number of columns, and i and j both start from 0, then i≤row-1, j≤col-1. The mapping relationship between the matrix elements and their corresponding secret data index numbers can be predefined, for example, a[0][0]=1, indicating that the matrix element in the 1st row and 1st column is used to store the secret data with index number 1. At the same time, the mapping relationship between the matrix elements and the corresponding bits is already known when constructing the carrier matrix, for example, a[0][0] represents the first bit in the high 8 bits of the UDP header information length field. After determining the relationship between the secret data index number and the elements in the carrier matrix, the secret data can be stored in the bit corresponding to the matrix element. For example, a[0][0]=1, the secret data corresponding to the secret data index number 1 is 0, so the secret data 0 is stored in the first bit of the upper 8 bits of the UDP header information length field.

[0095] Matrix arrangement is performed for all secret data, and the obtained data packet is recorded as the target data packet. This matrix arrangement method can make the secret data to be transmitted distributed in the bits of different protocol information, thereby increasing the difficulty of secret data detection, thereby reducing the risk of secret data being detected and improving the security of secret data transmission; and the change of these bits does not affect the transmission of general data, so that the transmission of secret data can be achieved without affecting the transmission of general data.

[0096] Step 220, perform multiple encoding processes on the multiple target data packets to generate multiple encoding blocks; wherein each encoding process selects part of the target data packets from the multiple target data packets and merges them into an encoding block.

[0097] Specifically, the encoding process can further process the target data packet, which is equivalent to performing covert processing on the target data packet again, which can further improve the concealment and security of secret data transmission. In this embodiment, one encoding process refers to selecting part of the target data packets from multiple target data packets and merging these part of the target data packets into a coding block. By performing multiple encoding processes on multiple target data packets multiple times, multiple coding blocks can be obtained, and duplicate coding blocks are generally excluded. The target data packet selected for each encoding process can be random. Exemplarily, after matrix encoding processing, target data packets A to C are obtained, and target data packets A and B can be selected for encoding processing once to obtain coding block D; target data packets A and C can be selected for encoding processing once to obtain coding block E; target data packets A, B, and C can be selected for encoding processing once to obtain coding block F; a single target data packet A, B or C can be selected for encoding processing once to obtain the corresponding coding block. Generally, when only a single target data packet is selected for encoding processing, the obtained coding block is the same as the target data packet before encoding, that is, the target data packet is directly used as the coding block.

[0098] In one embodiment of the present application, the fusion of multiple target data packets in the encoding process can be achieved by an XOR operation of the multiple target data packets. For example, target data packets A and B are encoded once by performing an XOR operation on target data packets A and B, and the result of the XOR operation is the encoding block D.

[0099] Step 230: Send multiple coding blocks to a data receiving end.

[0100] Specifically, after obtaining the coding block, the coding block can be sent to the data receiving end. After receiving the data, the data receiving end can obtain the original secret data through the decoding process corresponding to the coding process and the matrix de-matrix process corresponding to the matrix arrangement process.

[0101] In the technical solution provided in the embodiment of the present application, the data sending end first performs matrix arrangement processing on the secret data in multiple secret data packets to form multiple target data packets; the matrix arrangement processing refers to storing the secret data in the bit positions mapped by the carrier matrix in the target data packet, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol; then multiple target data packets are encoded multiple times to generate multiple encoding blocks; wherein each encoding process selects part of the target data packets from multiple target data packets and merges them into encoding blocks; finally, multiple encoding blocks are sent to the data receiving end. In this process, the secret data is first rearranged through matrix arrangement processing, which increases the complexity of the data, making it difficult to accurately identify the secret data even if it is intercepted, thereby reducing the risk of the secret data being identified by a third party and improving the security of information hiding; at the same time, multiple encoding processes can further increase the complexity of the data sent by the data sending end, further reducing the risk of the secret data being identified by a third party and improving the security of information hiding.

[0102] Figure 3 The flowchart of the matrix arrangement process provided by one embodiment of the present application is schematically shown, and the method is a further optimization of the matrix arrangement process in the above embodiment. Figure 3 As shown, the matrix arrangement process provided in this embodiment includes the following steps:

[0103] Step 310, calculate the previous secret data index number according to the current secret data packet number and the carrier matrix size; wherein the secret data index number is the number of the secret data in the secret data sequence corresponding to the multiple secret data packets; the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol.

[0104] Specifically, the secret data packets to be arranged are arranged in order, and each secret data packet has a corresponding number. When performing the matrix arrangement process, each secret data packet is sequentially arranged according to the number of the secret data packet. In the sequence formed by the secret data packets, each secret data has a corresponding number, and the secret data number is recorded as the secret data index number. Exemplarily, assuming that there are secret data packets NO1: [0110 0111 0011 1101], secret data packet NO2: [1101 1110 0001 0010] and secret data packet NO3: [1001 1101 0110 0011], each secret data packet has 16 bits of data, and all the secret data are numbered, then the secret data index number ranges from 1 to 16 in the secret data packet NO1, the secret data index number ranges from 17 to 32 in the secret data packet NO2, and the secret data index number ranges from 33 to 48 in the secret data packet NO3. When there are more secret data packets, the secret data packet index number is analogized according to this numbering rule.

[0105] In one embodiment of the present application, the previous secret data index number index pre The calculation method is as follows:

[0106] index pre =(packet num -1)*(row*col)

[0107] Among them, packet num represents the current secret data packet number, row represents the number of rows in the carrier matrix, and col represents the number of columns in the carrier matrix. For example, assuming that the size of the carrier matrix is ​​4*4, if packet num =1, then index pre =0; if packet num =2, then index pre =16; if packet num =3, then index pre =32.

[0108] Step 320: Determine the current carrier matrix element and the current carrier matrix element index number, and use the sum of the previous secret data index number and the current carrier matrix element index number as the current secret data index number.

[0109] Specifically, the association relationship between the carrier matrix elements and their index numbers can be preset. For example, the association relationship between the carrier matrix elements and the secret data index numbers is as follows: Figure 4A As shown, Figure 4A A grid in represents a matrix element, and the number in the grid represents the index number of the secret data. pre The sum of the current carrier matrix element index matrix[i][j] is the current secret data index index cur , as shown below:

[0110] index cur =index pre +matrix[i][j]

[0111] In one embodiment of the present application, the current carrier matrix element and the current carrier matrix element index number are calculated as follows: the previous carrier matrix element index number is increased by a set value and used as the current carrier matrix element index number; when there are elements in the carrier matrix that are not filled with secret data, the current filling direction is updated according to a preset filling direction path, and the step of determining the current carrier matrix element according to the current filling direction is returned; when there are no elements in the carrier matrix that are not filled with secret data, the next secret data packet is used as the current secret data packet, and the step of calculating the previous secret data index number based on the current secret data packet number and the carrier matrix size is returned.

[0112] Taking the arrangement method based on the spiral matrix as an example, the calculation method of the current carrier matrix element index number matrix[i][j] and the corresponding index number num is shown in the following formula:

[0113]

[0114] Where k represents the filling direction (k=1 represents from left to right, k=2 represents from top to bottom, k=3 represents from right to left, k=4 represents from bottom to top, and the directions are as follows Figure 4A ), each round k cycles in this way according to 1->2->3->4 (i.e., the preset filling direction path). Define left, right, top, and bottom to represent the upper, lower, left, and right boundaries of the carrier matrix, and initialize top = left = 0, bottm = row-1, and right = col-1. Matrix represents the spiral matrix, num represents the matrix element index number, and initializes num = 1. p is the matrix element position coordinate variable, which is used to calculate the elements of the matrix matrix, and initializes p = 0. After multiple rounds of calculation (top and left are increased by 1, and bottom and right are decreased by 1 after each round), the process ends until top>bottom and left>right.

[0115] matrix[top][p++]=mum++ means: first calculate the value of matrix[top][p]=num, then perform p+1 operation, if the condition of p<right is still satisfied at this time, then use the value of num+1 as the value of matrix[top][p+1], that is, increase the previous carrier matrix element index by a set value (the set value is 1 in this embodiment) and use it as the current carrier matrix element index. The p--operation in the above formula is similar to the p++ operation, the difference is that p-- performs a p-1 operation, and p++ performs a p+1 operation, and the rest of the processing is the same.

[0116] by Figure 4ATaking the carrier matrix shown as an example: row = col = 4. When initializing, top = left = 0, right = bottom = 3, p = 0, num = 1, k = 1. According to the above calculation method:

[0117] The first round: When k = 1, matrix[0][0] = 1, which means the element matrix[0][0] in the carrier matrix fills the secret data with index 1 (for example, the first secret data 0 in the secret data packet NO1: [0110 0111 0011 1101] in the previous example); at this time, there are still elements in the carrier matrix that have not been filled with secret data. According to the above formula, the condition p < right is satisfied. At this time, the current filling direction k = 1, and continue to calculate to get matrix[0][1] = 2 (for example, the second secret data 1 in the secret data packet NO1: [0110 0111 0011 1101]), matrix[0][2] = 3 (for example, the third secret data 1 in the secret data packet NO1: [0110 0111 0011 1101]). At this time, there are still elements in the carrier matrix that have not been filled with secret data. According to the above formula, the condition p < right is no longer satisfied. At this time, according to the preset filling direction path, k is updated to 2.

[0118] When k = 2, according to the above formula, matrix[0][3] = 4, matrix[1][3] = 5, matrix[2][3] = 6. At this time, there are still elements in the carrier matrix that have not been filled with secret data. According to the above formula, the condition p < bottom is no longer satisfied. At this time, according to the preset filling direction path, k is updated to 3.

[0119] When k = 3, matrix[3][3] = 7, matrix[3][2] = 8, matrix[3][1] = 9. At this time, there are still elements in the carrier matrix that have not been filled with secret data. According to the above formula, the condition p > left is no longer satisfied. At this time, according to the preset filling direction path, k is updated to 4.

[0120] When k = 4, matrix[3][0] = 10, matrix[2][0] = 11, matrix[1][0] = 12. At this time, there are still elements in the carrier matrix that have not been filled with secret data. According to the above formula, the condition p > top is no longer satisfied. At this time, according to the preset filling direction path, k is updated to 1. It is equivalent to that the first round of filling has ended at this time, and the second round of filling begins. At this time, it is also necessary to update top = left = 1, right = bottom = 2.

[0121] Second round: when k=1, matrix[1][1]=13; update k=2, matrix[1][2]=14; update k=3, matrix[2][2]=15; update k=4, matrix[2][1]=16, update top=left=2, right=bottom=1, now the termination condition top>bottom and left>right is met, and the spiral matrix is ​​filled.

[0122] After the data of the current secret data packet (the first secret data packet N01) is filled, the matrix arrangement of the next secret data packet (the second secret data packet N02) is entered. According to the above calculation formula, the index number of the previous secret data at this time is index pre =(2-1)*4*4=16, then in the arrangement of the next secret data packet, the current secret data index number index cur =16+matrix[i][j], the calculation method of matrix[i][j] refers to the above example. For example, matrix[0][0]=1, then the current secret data index index cur =16+1=17, which means that the 17th secret data is filled into the bit corresponding to the matrix element matrix[0][0]. Here, the 17th secret data is the first bit 1 in the second secret data packet N02[11011110 0001 0010]. For another example, matrix[0][1]=2, then the current secret data index index cur =16+2=18, which means filling the 18th secret data into the bit corresponding to the matrix element matrix[0][1]. The 18th secret data here is the second bit 1 in the second secret data packet N02[1101 1110 0001 0010].

[0123] In one embodiment of the present application, the matrix arrangement method can also be arranged based on a Z-type matrix, such as Figure 4B In the arrangement path described by the arrow in the middle. In the arrangement mode of the Z-type matrix, the calculation method of the current carrier matrix element index number matrix[i][j] and the corresponding index number num is as follows:

[0124]

[0125] Where k represents the filling direction (k=1 means filling from left to right, k=2 means filling from upper right to lower left, k=3 means filling downward, k=4 means filling from lower left to upper right, and the directions are as follows Figure 4B). Initialize num=1 (used to calculate the secret data index number corresponding to the matrix element), matrix[0][0]=num, i=0, j=0, k=1. In the formula, ++j / --i / ++num means to perform j+1 / i-1 / num+1 operation first, and then perform the formula calculation. For example, matrix[i][++j]=++num means: perform j+1 operation and num+1 operation first, and then calculate matrix[i][j+1]=num+1.

[0126] The update process of the filling direction k is: first determine whether j is an even number, i = 0 or i = row-1, i is an odd number, j = 0 or j = row-1. If these two conditions are not met, then determine the parity of i+j to determine the k value. Refer to the following formula:

[0127]

[0128] by Figure 4B Take the matrix carrier shown as an example, initialize matrix[0][0]=num=1, i=0, j=0, k=1, row=4, col=4. Start the loop calculation:

[0129] The first step is to calculate i=0, j=1, matrix[0][1]=2, k=2; the second step is to calculate i=1, j=0, matrix[1][0]=3, k=3; the third step is to calculate i=2, j=0, matrix[2][0]=4, k=4; the fourth step is to calculate i=1, j=1, matrix[1][1]=5, k=4; the fifth step is to calculate i=0, j=2, matrix[0][2]=6, k=1; the sixth step is to calculate i=0, j=3, matrix[0][3]=7, k=2; the seventh step is to calculate i=1, j=2, matrix[1][2]=8, k=2; the eighth step is to calculate i=2, j=1, matrix[2][1]=9, k=2; the ninth step is to calculate i= 3, j=0, matrix[3][0]=10, k=1; the tenth step calculates i=3, j=1, matrix[3][1]=11, k=4; the eleventh step calculates i=2, j=2, matrix[2][2]=12, k=4; the twelfth step calculates i=1, j=3, matrix[1][3]=13, k=3; the thirteenth step calculates i=2, j=3, matrix[2][3]=14, k=2; the fourteenth step calculates i=3, j=2, matrix[3][2]=15, k=1; the fifteenth step calculates i=3, j=3, matrix[3][3]=16, at this time the termination condition of i=row-1 and j=col-1 is met, the process ends, and the calculation of the "Z" type matrix is ​​completed.

[0130] Step 330: store the current secret data corresponding to the current secret data index number into the bit corresponding to the current carrier matrix element.

[0131] Specifically, after determining the current secret data index number and the current carrier matrix element, the current secret data corresponding to the current secret data index number can be stored in the bit corresponding to the current carrier matrix element. For example, index cur =16+matrix[0][0]=16+1=17, which means that the 17th secret data is stored in the bit corresponding to the matrix element matrix[0][0].

[0132] In the technical solution provided in the embodiment of the present application, matrix arrangement processing is implemented through carrier matrix elements and secret data index numbers. The matrix arrangement processing can increase the obfuscation level of secret data, resist detection of communication data packets by detection tools, prevent eavesdroppers from discovering the transmitted secret data, and thereby improve the security of secret data transmission.

[0133] Figure 5The flowchart of a data processing method provided by an embodiment of the present application is schematically shown, and the method can be implemented by a terminal device or a server. Figure 5 As shown, the data processing method provided in this embodiment includes the following steps:

[0134] Step 510, matrix arrangement processing is performed on the secret data in the multiple secret data packets to form multiple target data packets; matrix arrangement processing refers to storing the secret data in the bits mapped by the carrier matrix in the target data packet, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol.

[0135] Step 510 may refer to the description in the aforementioned step 210 or steps 310 - 330 , and will not be repeated here.

[0136] Step 520: determine the maximum number of codes according to the number of the multiple target data packets; the maximum number of codes represents the maximum number of target data packets corresponding to one encoding process.

[0137] Specifically, the maximum number of codes is less than or equal to the total number of target data packets, and a data not greater than the total number of target data packets can be randomly generated as the maximum number of codes. For example, assuming that the number of target data packets is N and the maximum number of codes is m, then m∈[1, N].

[0138] In one embodiment of the present application, before encoding the target data packets, the lengths of the target data packets may be unified. The data sender calculates the maximum length len through the lengths of the target data packets, and then fills all the target data packets with the same length to ensure that the target data packets are of equal length. The length of the target data packet refers to the amount of data contained, which is also the number of data bits contained. When the length of a target data packet is less than the maximum value, a set value may be filled in the target data packet to make the length of the target data packet reach the maximum value.

[0139] Step 530: When a data sending instruction is detected, multiple specified numbers are generated according to the maximum coding number; wherein the specified number is less than or equal to the maximum coding number; when sending data for the first time, the data sending instruction is actively generated by the data sending end; when it is not the first time to send data, the data sending instruction is generated according to the request of the data receiving end.

[0140] Specifically, the data sending instruction is used to instruct the data sending end to send the encoded data to the data receiving end, so the actual multiple encoding processes are performed only when the data sending instruction is detected. When sending data for the first time, the data sending instruction is actively generated by the data sending end; when sending data for a non-first time, the data sending instruction is triggered by the data receiving end.

[0141] Each encoding process needs to select some target data packets, and the number of selected target data packets is a specified number, which is randomly generated according to the maximum number of codes, and the specified number is not greater than the maximum number of codes. For example, assuming that there are N target data packets, the maximum number of codes is m, and the specified number is d, then m∈[1,N], d∈[1,m]. Multiple specified numbers can be randomly generated at one time. Each encoding process is performed according to a specified number, and multiple encoding processes corresponding to multiple specified numbers generated at one time can be recorded as one round of encoding process.

[0142] Step 540: Select a plurality of specified numbers of target data packets from the plurality of target data packets to perform multiple encoding processes to generate multiple encoding blocks; wherein one specified number corresponds to one encoding process.

[0143] Specifically, a specified number of target data packets are selected from multiple target data packets, and then an XOR operation is performed on the target data packets corresponding to the specified number, and the result of the XOR operation is the coding block corresponding to the specified number. Based on multiple coding processes corresponding to multiple specified numbers, multiple coding blocks can be obtained.

[0144] Step 550: Send multiple coding blocks to a data receiving end.

[0145] In one embodiment of the present application, when the coding blocks are sent to the data receiving end, the specified number corresponding to each coding block and the target data packet list constituting each coding block can be synchronously sent to the data receiving end as coding block information, so that the data receiving end can perform decoding processing based on the coding block information.

[0146] In one embodiment of the present application, when sending the coding block to the data receiving end, the current network packet loss rate can be detected. When the current network packet loss rate does not reach the preset threshold, it means that the network condition is good. At this time, multiple coding blocks can be directly sent to the data receiving end. When the current network packet loss rate reaches the preset threshold, it means that the network condition is poor at this time. At this time, multiple coding blocks and multiple target data packets can be used as multiple data packets to be sent; then random packet loss processing is performed on the multiple data packets to be sent to obtain multiple target sending data packets; finally, the target sending data packets are sent to the data receiving end. That is, when the network condition is poor, random packet processing is used to simulate the packet matching problem caused by the poor network condition, so that the special inspection mechanism for the poor network condition can be avoided, and the accuracy and security of secret data transmission in the poor network condition can be ensured. For example, assume that the target data packets (A, B, C) are encoded multiple times to generate coding blocks (D, E, F), which are combined to form the data packets to be sent (A, B, C, D, E, F). At this time, the packet loss phenomenon caused by network fluctuations is simulated to confuse hackers or message interceptors. When sending data to the receiving end, some data packets are randomly discarded, such as discarding the data packets to be sent (B, E), and only sending the data packets to be sent (A, C, D, F) to the receiving end. The random algorithm used for packet loss can adopt a pseudo-random algorithm based on a random number seed.

[0147] In one embodiment of the present application, the process of detecting the network packet loss rate is as follows:

[0148] 1. Select a test tool. Common test tools include ping command, traceroute, iperf, etc.

[0149] 2. Determine the test parameters. Define the size of the data packet to be sent, the sending frequency, the test duration, etc.

[0150] 3. Execute the test. Send data packets at the predetermined time and frequency, and record the number of data packets sent and the number of data packets successfully received.

[0151] 4. Calculate the packet loss rate. The formula is as follows:

[0152]

[0153] The specific detection steps are as follows:

[0154] 1) Here we select the ping command to test. Ping is a common network tool that can send ICMP echo requests to the target host and wait for the echo message. If it does not return within the predetermined time, ping will regard it as a lost data packet.

[0155] 2) Determine the test parameters. For the packet size, set a standard ICMP packet size, which is usually 32 bytes of payload plus 8 bytes of ICMP header, a total of 40 bytes. For the sending frequency, set it to send 5 ICMP requests per second. For the sending frequency, set the duration to 1 minute to obtain enough data samples.

[0156] 3) Open the terminal command line tool and enter the following command:

[0157] ping-c num-i gap_time target_ip

[0158] This command will send num(number) ICMP requests to the target host, with gap_time(s) between each request.

[0159] The experiment was repeated five times with the following parameters: (100, 0.6), (200, 0.3), (300, 0.2), (600, 0.1), (1200, 0.05), and the number of packets successfully received in each time period was observed.

[0160] 4) Calculate the packet loss rate. Assume that 100 packets sent in the first minute received 99 responses and 1 packet was lost, 200 packets sent in the second minute received 191 responses and 9 packets were lost, 300 packets sent in the third minute received 265 responses and 35 packets were lost, 600 packets sent in the fourth minute received 521 responses and 79 packets were lost, and 1200 packets sent in the fifth minute received 1029 responses and 171 packets were lost. The packet loss rate calculation results of this test network environment are as follows:

[0161]

[0162] In the technical solution provided in the embodiment of the present application, the degree of obfuscation of the data packet is increased through multiple encoding processes, which can prevent secret data from being detected; at the same time, taking into account the problem of network delay caused by packet loss due to network fluctuations, network packet loss is simulated based on random packet loss, and multiple encodings are introduced to abandon the traditional retransmission confirmation mechanism, thereby achieving the purpose of resisting network fluctuations and efficient transmission.

[0163] Figure 6 The flowchart of a data processing method provided by an embodiment of the present application is schematically shown. The method can be implemented by a terminal device or a server, and the method is implemented by a data receiving end. Figure 6 As shown, the data processing method provided in this embodiment includes steps 610 to 630, which are specifically as follows:

[0164] Step 610: Acquire multiple coding blocks sent by the data sending end.

[0165] Step 620: Perform multiple decoding processes on the multiple coding blocks to obtain multiple target data packets; wherein each decoding process selects part of the coding blocks from the multiple coding blocks and merges them into the target data packet.

[0166] Specifically, the decoding process is equivalent to the reverse operation of the aforementioned encoding process. In the decoding process, some coding blocks are still selected and merged into one coding block, so as to determine the target data packet required in the end.

[0167] In one embodiment of the present application, the decoding process includes: storing multiple coding blocks in a first queue and a second queue respectively according to the coding identifier of the coding block; wherein the coding identifier indicates the number of target data packets used to generate the coding block; performing an XOR operation on the coding blocks in the first queue and the coding blocks in the second queue respectively to obtain multiple target data packets; when the number of target data packets obtained is different from the number of target data packets indicated by the data sending end, initiating a data acquisition request to the data sending end, and the data acquisition request is used to instruct the data sending end to continue sending the coding blocks to the data receiving end; when the coding blocks continued to be sent by the data receiving end are received, returning to the step of storing the multiple coding blocks in the first queue and the second queue respectively according to the coding identifier of the coding block.

[0168] Specifically, when sending a coding block, the data sending end marks the specified number corresponding to the coding block with a coding identifier, and at the same time represents the target data packet list corresponding to the coding block with a coding block list, and sends these two pieces of information together to the data receiving end. When receiving a coding block, the data receiving end obtains the above two pieces of information at the same time, and the data receiving end stores the coding block in different queues according to the coding identifier. Specifically, when the coding identifier of the coding block is a preset value, the coding block is stored in the first queue; when the coding identifier of the coding block is not a preset value, the coding block is stored in the second queue. Taking the preset value of 1 as an example, the coding identifier of the coding block is d, which indicates the number of target data packets used to generate the coding block, then the first queue is the d=1 queue, and the second queue is the d>1 queue.

[0169] According to the encoding process, when d=1, the encoding block is the target data packet itself, so the encoding block in the d=1 queue is the decoded target data packet. Taking the encoding block in the d=1 queue as a reference, the encoding blocks in the d>1 queue are XORed with the encoding blocks in the d=1 queue, and the decoding process of the encoding blocks in the d>1 queue can be realized.

[0170] In one embodiment of the present application, the decoding process specifically includes: taking the coding block that has not been XOR-operated in the first queue as the first coding block; taking the coding block in the coding list of the second queue that does not contain the first coding block as the second coding block, wherein the coding list of the coding block is used to record the identifier of the target data packet that generates the coding block; performing XOR operations on the first coding block and the second coding block in the second queue respectively to obtain multiple candidate data packets, and subtracting the set value from the coding identifier of the second coding block as the coding identifier of the candidate data packet corresponding to the second coding block; if the coding identifier of the candidate data packet is a preset value, the candidate data packet is stored in the first queue as the first coding block; if the coding identifier of the candidate data packet is not the set value, the candidate data packet is stored in the second queue; when there are coding blocks that have not been XOR-operated in the first queue, return to the step of taking the coding blocks that have not been XOR-operated in the first queue as the first coding block; when there are no coding blocks that have not been XOR-operated in the first queue, take the coding blocks in the first queue as the target data packets.

[0171] Specifically, the coding blocks in the first queue are traversed, and the coding blocks that are not subjected to the XOR operation are extracted as the first coding blocks. Then the coding blocks in the second queue are traversed to determine whether each coding block can be decoded. When the coding block list of a coding block does not contain the identifier of the first coding block currently used for the XOR operation, it means that the coding block is not generated based on the first coding block, then the coding block is not decoded through the first coding block, which means that the coding block cannot be decoded, then the coding block is not decoded, the coding block is skipped, and the next coding block in the second queue is judged. When the coding block list of a coding block contains the identifier of the first coding block currently used for the XOR operation, it means that the coding block is generated based on the first coding block, then the decoding operation can be performed, and then the coding block is used as the second coding block, and the first coding block and the second coding block are XORed to obtain a candidate data packet. In the case where the decoding operation can be performed, it is also necessary to generate a coding identifier of the candidate data packet, and the coding identifier of the candidate data packet is the coding identifier of the corresponding second coding block minus a preset value, and generally, the preset value is 1.

[0172] After obtaining the encoding identifier of the candidate data packet, determine whether the encoding identifier of the candidate data packet is a preset value; if it is the preset value, it means that the candidate data packet has completed the decoding operation and can be stored in the first queue as the target data packet; if it is not the preset value, it means that the candidate data packet has not completed the decoding operation and will continue to be stored in the second queue.

[0173] If there are newly added coding blocks in the first queue, such as a candidate data packet whose coding identifier obtained in the previous round of decoding operation is a preset value, then continue to use the newly added coding block to perform the above decoding operation until there are no newly added coding blocks in the first queue, that is, all the coding blocks in the first queue have been XORed, and at this time all the coding blocks in the first queue (including candidate data packets) are target data packets.

[0174] When there is no new coding block in the first queue, determine whether the number of target data packets in the first queue is the same as the number of target data packets indicated by the data sending end; if they are the same, it means that all target data packets have been obtained, and all decoding operations are completed at this time, and decoding ends; if they are not the same, it means that all target data packets have not been obtained. At this time, the data sending end needs to send the coding block again to decode the remaining unobtained target data packets. Here, the data receiving end needs to generate a data acquisition request and send the request to the data sending end. After receiving the request, the data sending end triggers the data sending instruction, re-encodes the target data packet and continues to send it to the data receiving end. The data receiving end continues to perform decoding operations based on the coding block that the data sending end continues to send.

[0175] For example, Figure 7 Schematically shows a schematic diagram of the decoding process. Figure 7 As shown, the number of target data packets N=8, assuming that the target data packets are numbered {1, 2, 3, 4, 5, 6, 7, 8}, the maximum number of codes m=4 is selected, and then the target data packets are encoded multiple times to generate coding blocks. A random number random≤4 is generated each time the encoding is performed, and the random number random represents the specified number.

[0176] The first round of encoding was performed 9 times, and the random number generated by each encoding was random = {4, 1, 2, 3, 2, 4, 2, 2, 2}, and a total of 9 encoding blocks were generated with the contents of {1^2^3^4, 2, 2^3, 3^4^6, 4^5, 3^5^7^8, 5^8, 4^7, 1^8}, where 1^2^3^4 represents the encoding block generated by the XOR operation of target data packet 1, target data packet 2, target data packet 3 and target data packet 4, and each encoding block maintains a encoding representation flag and encoding list list. The data transmitter stores the encoding block with flag = 1 in the cache queue of d = 1, and stores the encoding block with flag> 1 in the cache queue of d> 1. Therefore, after the first encoding, the queue of d = 1 is {2}, and the queue of d> 1 is {1^2^3^4, 2^3, 3^4^6, 4^5, 3^5^7^8, 5^8, 4^7, 1^8}. Then the contents in the two queues are sent to the data receiving end respectively. Optionally, the step of caching the coded blocks in different queues can also be implemented by the data receiving end.

[0177] Then the receiving end starts the first round of decoding based on the cache queue. The decoding process is as follows: first, traverse each coding block in the d=1 cache queue and each coding block in the d>1 cache queue to determine whether the first coding block in the d>1 cache queue can be decoded (the decoding condition here is to determine whether the coding list list of the coding block contains the sequence number of the i-th coding block. If it contains, it means that it can be decoded, otherwise it cannot be decoded). If it can be decoded, the first coding block in the d=1 queue is XORed with the second coding block in the d>1 cache queue to obtain a candidate data packet. Then the coding identification flag of the candidate data packet is set to the coding identification flag-1 of the second coding block. If the coding identification flag of the candidate data packet is 1, the candidate data packet is stored in the d=1 queue; if the coding identification flag of the candidate data packet is >1, the candidate data packet is placed in the d>1 queue. If the coding block in the d>1 cache queue cannot be decoded, no operation is performed on the coding block, and the coding block continues to be stored in the d>1 queue for the next round of decoding to prevent the increase of decoding complexity. Then update the two cache queues (the coding blocks with flag 1 in the d>1 queue are moved to the d=1 queue), and the content in the d=1 cache queue is {2, 3}, and the content in the d>1 cache queue is {1^4, 4^6, 4^5, 5^7^8, 5^8, 4^7, 1^8}. At this time, because a new first coding block is generated in the d=1 queue, decoding can continue, so it is necessary to repeat the above decoding process, and perform decoding operations on the newly added first coding block 3 in the d=1 queue and each coding block in the current d>1 cache queue. However, this decoding fails to generate a new first coding block (i.e., a candidate data packet with flag=1), so the decoding ends. Therefore, the first round of decoding finally obtains {2, 3} in the d=1 queue and {1^4, 4^6, 4^5, 5^7^8, 5^8, 4^7, 1^8} in the d>1 queue.

[0178] The second round also performs 9 encodings. The random number generated by each encoding is random={3, 2, 4, 1, 2, 2, 2, 2, 3}. The encoding block content generated by the data transmitter is {1^4^6, 1^7, 3^4^6^8, 4, 3^7, 2^8, 5^7, 2^6, 3^7^8}. It is stored in queues d=1 and d>1 respectively according to whether the flag value is greater than 1. For the encoding block with flag=1, it is directly stored in the d=1 cache queue, and finally the d=1 cache queue {2, 3, 4} is obtained. For the encoding block with flag>1, it is stored in the d>1 cache queue, and {1^4, 4^6, 4^5, 5^7^8, 5^8, 4^7, 1^8, 1^4^6, 1^7, 3^4^6^8, 3^7, 2^8, 5^7, 2^6, 3^7^8} is obtained.

[0179] At this time, the data receiving end performs a second round of decoding. Traverse each coding block in the d=1 queue, that is, decode coding block 2 with each second coding block in the d>1 queue for the first time. The first d=1 queue is {2, 3, 4, 8, 6}, and the d>1 queue is {1^4, 4^6, 4^5, 5^7^8, 5^8, 4^7, 1^8, 1^4^6, 1^7, 3^4^6^8, 3^7, 5^7, 3^7^8}. Continue to traverse other first coding blocks in the d=1 queue, and decode coding block 3 with each second coding block in the d>1 queue for the second time. And so on, until decoding cannot be continued. The final result of the second round of decoding is d=1 cache queue {2, 3, 4, 8, 6, 7, 1, 5} and d>1 cache queue {}. At this time, according to the sequence number of the data block, the target data packets in the d=1 cache queue can be sorted and reassembled to generate the original message {1, 2, 3, 4, 5, 6, 7, 8}, and the process ends. If the second round cannot be restored, continue with the third round of encoding and decoding process.

[0180] Step 630, perform matrix de-mapping processing on multiple target data packets to obtain secret data packets contained in the multiple target data packets; wherein the matrix de-mapping processing refers to generating a secret data packet according to the mapping position of the bit storing the secret data in the target data packet in the carrier matrix, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol.

[0181] Specifically, after obtaining the target data packet, the secret data packet in the target data packet is restored through matrix de-arrangement processing, thereby obtaining the secret data represented by the secret data packet. Matrix de-arrangement processing is the reverse operation of matrix arrangement processing, and reverse reasoning can be performed based on matrix arrangement processing, which will not be described in detail here.

[0182] In the technical solution provided by the embodiment of the present application, the data receiving end first obtains multiple coding blocks sent by the data sending end; performs multiple decoding processes on the multiple coding blocks to obtain multiple target data packets; wherein each decoding process selects part of the coding blocks from the multiple coding blocks and merges them into a target data packet; performs matrix reverse arrangement processing on the multiple target data packets to obtain secret data packets contained in the multiple target data packets; wherein the matrix reverse arrangement processing refers to generating a secret data packet according to the mapping position of the bit storing the secret data in the target data packet in the carrier matrix, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol. In this process, the secret data is restored through multiple decoding processes and matrix reverse arrangement processing, so that even if the secret data is intercepted, it is difficult to accurately identify, thereby reducing the risk of the secret data being identified by a third party and improving the security of information hiding.

[0183] The implementation process of the technical solution of this application is explained below with a specific embodiment.

[0184] In order to strengthen supervision over the financial securities and other industries, the China Banking Regulatory Commission requires all banks and securities companies to submit technology reports. The content of the report mainly includes: basic customer information (customer identity information, fingerprint records, facial images, voice records, etc.), customer loan repayment transaction flow records, customer loan contract information, customer mortgage information, etc. All information must be submitted on a daily basis and has time limits. The technical solution of this application realizes the real-time collection of basic user information, which is then hidden in the transmission protocol and transmitted over the IP network. It not only solves the pain point of traditional encryption technology being vulnerable to attacks, but also avoids the network delay problem caused by network jitter. The system architecture design is as follows: Figure 8 As shown, the following steps are included:

[0185] Step 1: Data preprocessing, assuming that the customer's basic identity information (Name = Tom, idNo = 101, idType = 1), fingerprint information (fingerPrint = a), voice record (voice = b), image information (face = c), loan information (amt = 10000), etc.; in order to simplify the process, the secret information here is only Name = Tom, idNo = 1001, that is, {N: 4E, a: 61, m: 6D, e: 65, =: 3D, T: 54, o: 6F, m: 6D, i = 69, d: 64, N: 4E, o: 6F, =: 3D, 1: 1, 0:0, 1:1}, expressed in binary {N:01001110, a:01100001, m:01101101, e:01100101, =:00111101, T:01010100, o:01101111, m:01101101, i:01101001, d:01100100, N:01001110, o:01101111, =:00111101, 1:00000001, 0:00000000, 0:00000000, 1:00000001}, audio and video files need to be compressed in real scenes.

[0186] Step 2: Carrier construction matrix. This embodiment implements information transmission based on IP, UDP and RTP protocols. As analyzed above, the high 2 bits of the TTL field in the IP protocol, the high 6 bits of the UDP length field and the high 8 bits of the RTP protocol sequence number field are selected as carriers for embedding secret information.

[0187] Step 3: Arrange the mapping. Here, select the spiral matrix to complete the arrangement and mapping. Figure 4AThe spiral matrix shown. The upper two bits of the TTL field in the IP protocol are arranged in the matrix [0, 0], [0, 1] positions respectively. The upper six bits of the length field in the UDP protocol are arranged in the matrix [0, 2], [0, 3], [1, 3], [2, 3], [3, 3], [3, 2] positions respectively. The upper eight bits of the sequence number field in the RTP protocol are arranged in the matrix [3, 1], [3, 0], [2, 0], [1, 0], [1, 1], [1, 2], [2, 2], [2, 1] positions respectively. In this way, we can embed 16 bits of secret information (2 bytes) in each data packet, and then we can embed the bit stream of the secret information into these 16 bits.

[0188] The embedding method is calculated according to the formula in the spiral matrix arrangement method above. Here row = col = 4, and the index values ​​when i = {0, 1, 2, 3}, j = {0, 1, 2, 3} are calculated respectively. For example, the index calculated at position [0, 0] when i = 0, j = 0 cur =1, that is, [0, 0] stores the first bit. The bit stream of the secret information is determined by step 1 {N: 01001110, a: 01100001, m: 01101101, e: 01100101, =: 00111101, T: 01010100, o: 01101111, m: 01101101, i: 01101001, d: 01100100, N: 01001110, o: 01101111, =: 00111101, 1: 000000001, 0: 00000000, 1: 00000001}, so [0, 0] = 0. By analogy, according to this method, we can hide 2 bytes of secret information in each data packet. Fig. 9 As shown, it shows the location where the secret information {N:01001110, a:01100001} is mapped into the first target data packet.

[0189] Step 4: Packet loss rate calculation. Since the purpose of this solution is to resist the problem of network delay caused by packet loss due to network fluctuations, it is assumed that the current network packet loss rate reaches the preset threshold, and an unreliable protocol is selected and redundant coding is introduced to achieve efficient information transmission.

[0190] Step 5: Redundant code encoding and decoding. Based on step 3, 8 target data packets are obtained. The secret information embedded in these 8 target data packets is as follows:

[0191] The first one: {Na->0100000111011001}; The second one: {me->0110001111011010};

[0192] The third one: {=T->0011101100011010}; The fourth one: {om->0110011111011011};

[0193] The fifth one: {id->10001110001010}; The sixth one: {No->0100011111111001};

[0194] The 7th one: {=1->0011000101010010}; The 8th one: {01->0000000001000000}.

[0195] Only the information hidden in the 8 target data packets is shown here. The information in other fields does not affect the encoding and decoding of the redundant code, so it is not shown here. Then the data sender starts redundant code encoding and selects the maximum number of codes d=3 (where d satisfies 1<=d<=N). Assuming that the data sender encodes 8 coding blocks in the first round, in order to simulate the packet loss caused by network jitter, the data sender randomly discards three coding blocks and then sends {2^4^5, 1^7, 8, 2^6, 3^5, 1^7^8, 4^6^7, 3}. The data sender stores the coding blocks in the d=1 cache queue {3} and the d>1 cache queue {1^7, 2^6, 3^5, 4^6^7} respectively. The data receiver decodes in the first round to obtain the d=1 cache queue {3, 5} and the d>1 cache queue {1^7, 2^6, 4^6^7}. At this time, decoding cannot be achieved, so the data sender continues to be requested to send data and receives the coding blocks sent by the data sender. Assume that the data transmitter encodes 6 coding blocks in the second round, and the coding blocks sent are {2, 3^8, 1^3^5, 4^7, 1^8, 1^2^4^7}. The data receiver continues to decode to obtain the d=1 cache queue {3, 5, 2, 8, 1} and the d>1 cache queue {1^7, 2^6, 4^6^7, 4^7}, and continues to decode to obtain the d=1 cache queue {3, 5, 2, 8, 1, 7, 6} and the d>1 cache queue {}, from which the receiver obtains all the target data packets. Then the data receiver reassembles and restores the target data packets in the d=1 cache queue according to the sequence number of the target data packet, and then the receiver reversely restores the original secret data according to the arrangement and mapping method of the spiral matrix.

[0196] The data processing method proposed in the technical solution of the present application takes into account the problem of network delay caused by packet loss due to network fluctuations, simulates network packet loss based on random packet loss, introduces redundant coding to abandon the traditional retransmission confirmation mechanism, and achieves the purpose of resisting network fluctuations and efficient transmission; in addition, considering that the traditional information hiding method of embedding secret information is relatively simple and easy to be detected by statistical methods, a special matrix arrangement mapping is introduced to embed the secret information flow irregularly into the protocol carrier to resist analysis and detection by detection tools.

[0197] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0198] The following introduces an apparatus embodiment of the present application, which can be used to execute the data processing method in the above-mentioned embodiment of the present application. Fig.10 The structure block diagram of the data processing device provided in the embodiment of the present application is schematically shown, and the device is configured at the data sending end. Fig.10 As shown, the data processing device provided in the embodiment of the present application includes:

[0199] The matrix encoding module 1010 is used to perform matrix arrangement processing on the secret data in the multiple secret data packets to form multiple target data packets; the matrix arrangement processing refers to storing the secret data in the bit positions mapped by the carrier matrix in the target data packets, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol;

[0200] The encoding module 1020 is used to perform multiple encoding processes on the multiple target data packets to generate multiple encoding blocks; wherein each encoding process is to select some target data packets from the multiple target data packets and merge them into encoding blocks;

[0201] The sending module 1030 is used to send the multiple coding blocks to a data receiving end.

[0202] In one embodiment of the present application, the encoding module 1020 is specifically used for:

[0203] Determine the maximum number of codes according to the number of the plurality of target data packets; the maximum number of codes represents the maximum number of target data packets corresponding to one coding process;

[0204] When a data transmission instruction is detected, a plurality of designated numbers are generated according to the maximum number of codes; wherein the designated number is less than or equal to the maximum number of codes; when data is transmitted for the first time, the data transmission instruction is actively generated by the data transmitting end; when data is not transmitted for the first time, the data transmission instruction is generated according to a request of the data receiving end;

[0205] The specified number of target data packets are selected from the plurality of target data packets for multiple encoding processes to generate multiple encoding blocks; wherein one specified number corresponds to one encoding process.

[0206] In one embodiment of the present application, the encoding module 1020 is specifically used for:

[0207] The target data packets corresponding to the specified number are selected from the multiple target data packets, and an exclusive OR operation is performed on the target data packets corresponding to the specified number, and the result of the exclusive OR operation is used as the coding block.

[0208] In one embodiment of the present application, the sending module 1030 is specifically used for:

[0209] When the current network packet loss rate reaches a preset threshold, the multiple coding blocks and the multiple target data packets are used as multiple data packets to be sent;

[0210] Performing random packet loss processing on the plurality of data packets to be sent, to obtain a plurality of target sending data packets;

[0211] The target transmission data packet is sent to the data receiving end.

[0212] In one embodiment of the present application, the matrix encoding module 1010 is specifically used for:

[0213] Calculate the previous secret data index number according to the current secret data packet number and the carrier matrix size; wherein the secret data index number is the number of the secret data in the secret data sequence corresponding to the multiple secret data packets;

[0214] Determine the current carrier matrix element and the current carrier matrix element index number, and use the sum of the previous secret data index number and the current carrier matrix element index number as the current secret data index number;

[0215] The current secret data corresponding to the current secret data index number is stored in the bit corresponding to the current carrier matrix element.

[0216] In one embodiment of the present application, the matrix encoding module 1010 is specifically used for:

[0217] Determine the current carrier matrix element according to the current filling direction, wherein the filling direction represents the direction in which the multiple secret data are filled into the respective element positions in the matrix carrier; the current carrier matrix element indicates the storage position of the current secret data in the carrier matrix;

[0218] The previous carrier matrix element index number is increased by a set value as the current carrier matrix element index number;

[0219] When there are elements in the carrier matrix that are not filled with secret data, the current filling direction is updated according to a preset filling direction path, and the process of returning to the step of determining the current carrier matrix element according to the current filling direction is returned;

[0220] When there is no element in the carrier matrix that is not filled with secret data, the next secret data packet is used as the current secret data packet, and the process returns to the step of calculating the previous secret data index number according to the current secret data packet number and the carrier matrix size.

[0221] The specific details of the data processing device provided in each embodiment of the present application have been described in detail in the corresponding method embodiments and will not be repeated here.

[0222] Fig.11 The structure block diagram of the data processing device provided in the embodiment of the present application is schematically shown, and the device is configured at the data receiving end. Fig.11 As shown, the data processing device provided in the embodiment of the present application includes:

[0223] The data acquisition module 1110 is used to acquire multiple coding blocks sent by the data sending end;

[0224] A decoding module 1120 is configured to perform multiple decoding processes on the multiple coding blocks to obtain multiple target data packets; wherein each decoding process selects some coding blocks from the multiple coding blocks and merges them into a target data packet;

[0225] The matrix de-mapping module 1130 is used to perform matrix de-mapping processing on the multiple target data packets to obtain the secret data packets contained in the multiple target data packets; wherein the matrix de-mapping processing refers to generating a secret data packet according to the mapping position of the bits storing the secret data in the target data packets in the carrier matrix, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol.

[0226] In one embodiment of the present application, the decoding module 1120 is specifically used for:

[0227] storing the plurality of coding blocks into a first queue and a second queue respectively according to coding identifiers of the coding blocks; wherein the coding identifier indicates the number of target data packets used to generate the coding blocks;

[0228] Performing an XOR operation on the coding blocks in the first queue and the coding blocks in the second queue respectively to obtain multiple target data packets;

[0229] When the obtained target number of data packets is different from the target number of data packets indicated by the data sending end, a data acquisition request is initiated to the data sending end, wherein the data acquisition request is used to instruct the data sending end to continue to send the coded blocks to the data receiving end;

[0230] When receiving the coding blocks that the data receiving end continues to send, the process returns to the step of storing the plurality of coding blocks in the first queue and the second queue respectively according to the coding identifiers of the coding blocks.

[0231] In one embodiment of the present application, the decoding module 1120 is specifically used for:

[0232] When the coding identifier of the coding block is a preset value, storing the coding block in the first queue;

[0233] When the encoding identifier of the encoding block is not a preset value, the encoding block is stored in the second queue.

[0234] In one embodiment of the present application, the decoding module 1120 is specifically used for:

[0235] Using the coding blocks in the first queue that have not been subjected to the XOR operation as the first coding blocks;

[0236] Using a coding block in the second queue whose coding list does not include the first coding block as a second coding block, wherein the coding list of the coding block is used to record an identifier of a target data packet that generates the coding block;

[0237] Performing an XOR operation on the first coding block and the second coding block in the second queue respectively to obtain a plurality of candidate data packets, and subtracting a set value from the coding identifier of the second coding block as the coding identifier of the candidate data packet to which the second coding block corresponds;

[0238] If the encoding identifier of the candidate data packet is a preset value, the candidate data packet is stored in the first queue as a first encoding block; if the encoding identifier of the candidate data packet is not a set value, the candidate data packet is stored in the second queue;

[0239] When there are coding blocks that have not been XOR-operated in the first queue, return to the step of using the coding blocks that have not been XOR-operated in the first queue as the first coding blocks; when there are no coding blocks that have not been XOR-operated in the first queue, use the coding blocks in the first queue as the target data packets.

[0240] The specific details of the data processing device provided in each embodiment of the present application have been described in detail in the corresponding method embodiments and will not be repeated here.

[0241] Fig.12 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0242] It should be noted that Fig.12 The computer system 1200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0243] like Fig.12 As shown, the computer system 1200 includes a central processing unit 1201 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1202 (ROM) or the program loaded from the storage part 1208 to the random access memory 1203 (RAM). Various programs and data required for system operation are also stored in the random access memory 1203. The central processing unit 1201, the read-only memory 1202 and the random access memory 1203 are connected to each other through a bus 1204. The input / output interface 1205 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1204.

[0244] The following components are connected to the input / output interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the input / output interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.

[0245] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and / or installed from the removable medium 1211. When the computer program is executed by the central processor 1201, various functions defined in the system of the present application are executed.

[0246] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0247] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0248] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0249] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0250] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0251] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: Applied to a data sending end, the method comprises: Performing matrix arrangement processing on the secret data in the plurality of secret data packets to form a plurality of target data packets; the matrix arrangement processing refers to storing the secret data in the bit positions mapped by the carrier matrix in the target data packets, the carrier matrix being composed of a plurality of bits determined according to the data structure corresponding to the currently used network protocol; Performing multiple encoding processes on the multiple target data packets to generate multiple encoding blocks; wherein each encoding process is to select some target data packets from the multiple target data packets and merge them into encoding blocks; The multiple encoding blocks are sent to a data receiving end.

2. The data processing method according to claim 1, characterized in that: The plurality of target data packets are encoded multiple times to generate a plurality of encoding blocks, including: Determine the maximum number of codes according to the number of the plurality of target data packets; the maximum number of codes represents the maximum number of target data packets corresponding to one coding process; When a data transmission instruction is detected, a plurality of designated numbers are generated according to the maximum number of codes; wherein the designated number is less than or equal to the maximum number of codes; when data is transmitted for the first time, the data transmission instruction is actively generated by the data transmitting end; when data is not transmitted for the first time, the data transmission instruction is generated according to a request of the data receiving end; The specified number of target data packets are selected from the plurality of target data packets for multiple encoding processes to generate multiple encoding blocks; wherein one specified number corresponds to one encoding process.

3. The data processing method according to claim 2, characterized in that: In one encoding process, the method includes: The target data packets corresponding to the specified number are selected from the multiple target data packets, and an exclusive OR operation is performed on the target data packets corresponding to the specified number, and the result of the exclusive OR operation is used as the coding block.

4. The data processing method according to claim 1, characterized in that: Sending the plurality of coded blocks to a data receiving end includes: When the current network packet loss rate reaches a preset threshold, the multiple coding blocks and the multiple target data packets are used as multiple data packets to be sent; Performing random packet loss processing on the plurality of data packets to be sent, to obtain a plurality of target sending data packets; The target transmission data packet is sent to the data receiving end.

5. The data processing method according to claim 1, characterized in that: The matrix arrangement process includes: Calculate the previous secret data index number according to the current secret data packet number and the carrier matrix size; wherein the secret data index number is the number of the secret data in the secret data sequence corresponding to the multiple secret data packets; Determine the current carrier matrix element and the current carrier matrix element index number, and use the sum of the previous secret data index number and the current carrier matrix element index number as the current secret data index number; The current secret data corresponding to the current secret data index number is stored in the bit corresponding to the current carrier matrix element.

6. The data processing method according to claim 5, characterized in that: Determine the current carrier matrix element and the current carrier matrix element index, including: Determine the current carrier matrix element according to the current filling direction, wherein the filling direction represents the direction in which the multiple secret data are filled into the positions of each element in the matrix carrier; the current carrier matrix element indicates the storage position of the current secret data in the carrier matrix; The previous carrier matrix element index number is increased by a set value as the current carrier matrix element index number; When there are elements in the carrier matrix that are not filled with secret data, the current filling direction is updated according to a preset filling direction path, and the process of returning to the step of determining the current carrier matrix element according to the current filling direction is returned; When there is no element in the carrier matrix that is not filled with secret data, the next secret data packet is used as the current secret data packet, and the process returns to the step of calculating the previous secret data index number according to the current secret data packet number and the carrier matrix size.

7. A data processing method, characterized in that: Applied to a data receiving end, the method comprises: Obtain multiple encoding blocks sent by the data sending end; Performing multiple decoding processes on the multiple coding blocks to obtain multiple target data packets; wherein each decoding process selects some coding blocks from the multiple coding blocks and merges them into the target data packet; Perform matrix de-mapping processing on the multiple target data packets to obtain secret data packets contained in the multiple target data packets; wherein the matrix de-mapping processing refers to generating secret data packets according to the mapping positions of the bits storing secret data in the target data packets in the carrier matrix, and the carrier matrix is ​​composed of multiple bits determined according to the data structure corresponding to the currently used network protocol.

8. The data processing method according to claim 7, characterized in that: The multiple encoding blocks are decoded multiple times to obtain multiple target data packets, including: storing the plurality of coding blocks into a first queue and a second queue respectively according to coding identifiers of the coding blocks; wherein the coding identifier indicates the number of target data packets used to generate the coding blocks; Performing an XOR operation on the coding blocks in the first queue and the coding blocks in the second queue respectively to obtain multiple target data packets; When the obtained target number of data packets is different from the target number of data packets indicated by the data sending end, a data acquisition request is initiated to the data sending end, wherein the data acquisition request is used to instruct the data sending end to continue to send the coded blocks to the data receiving end; When receiving the coding blocks that the data receiving end continues to send, the process returns to the step of storing the plurality of coding blocks in the first queue and the second queue respectively according to the coding identifiers of the coding blocks.

9. The data processing method according to claim 8, characterized in that: Storing the plurality of coding blocks in a first queue and a second queue respectively according to the coding identifiers of the coding blocks comprises: When the coding identifier of the coding block is a preset value, the coding block is stored in the first queue; when the coding identifier of the coding block is not a preset value, the coding block is stored in the second queue.

10. The data processing method according to claim 8, characterized in that: Performing an XOR operation on the coding blocks in the first queue and the coding blocks in the second queue respectively to obtain multiple target data packets, including: Using the coding blocks in the first queue that have not been subjected to the XOR operation as the first coding blocks; Using a coding block in the second queue whose coding list does not include the first coding block as a second coding block, wherein the coding list of the coding block is used to record an identifier of a target data packet that generates the coding block; Performing an XOR operation on the first coding block and the second coding block in the second queue respectively to obtain a plurality of candidate data packets, and subtracting a set value from the coding identifier of the second coding block as the coding identifier of the candidate data packet to which the second coding block corresponds; If the encoding identifier of the candidate data packet is a preset value, the candidate data packet is stored in the first queue as a first encoding block; if the encoding identifier of the candidate data packet is not a set value, the candidate data packet is stored in the second queue; When there are coding blocks that have not been XOR-operated in the first queue, return to the step of using the coding blocks that have not been XOR-operated in the first queue as the first coding blocks; when there are no coding blocks that have not been XOR-operated in the first queue, use the coding blocks in the first queue as the target data packets.