A data transmission system, a transmission method, a device and a medium
By using double encryption and state modification methods in the data transmission system, it ensures that the data is encrypted twice, solving the problems of complex data transmission algorithms and low efficiency in the existing technology, and improving data security and efficiency.
Patent Information
- Application Number
- CN202111632800.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-12-29
AI Technical Summary
Existing technology relies on public key encryption and unreliable transmission during multi-party data interaction, resulting in complex algorithms, low efficiency, and high performance requirements for electronic devices, which cannot effectively ensure data security.
Provide a data transmission system, including a convergence device and at least two encryption devices. Each encryption device double-encrypts data using preset random numbers and encryption algorithms, and modifies the status after the encryption is completed, and sends the encrypted data to Other encryption devices finally send the data to the aggregation device to ensure that the data is encrypted twice to prevent other devices from obtaining the original data.
It improves the security and efficiency of data transmission, simplifies the algorithm, reduces the performance requirements of electronic equipment, and ensures that data is not stolen during the transmission process.
Smart Images

Figure CN114422204B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security technology, and in particular to a data transmission system and a transmission method, device and medium. Background Art
[0002] Driven by the wave of digitalization, technological innovation, scenario applications and management services in the data field are increasingly becoming important driving forces for the digital transformation and development of various industries. At the same time, the contradiction between "data circulation" and "data security" is also escalating, becoming a constraint on digital development.
[0003] When ensuring the safety of people's property, the most important point is how to ensure the security of one's own data and prevent it from being stolen by partners or third parties, that is, to obtain the same data held by each participant without leaking any additional information, where additional information refers to any information other than the same data of each participant. Existing technologies mainly rely on public key encryption and unreliable transmission when multi-party data interact, or are based on feasible third parties and reliable operating environments, but there are problems such as complex algorithms, low efficiency and high performance requirements for electronic equipment. Summary of the invention
[0004] The present application provides a data transmission system and a data transmission method to solve the problems of complex algorithms, low efficiency and high performance requirements for electronic devices in the prior art data transmission.
[0005] In a first aspect, the present application provides a data transmission system, the system comprising: a convergence device and at least two encryption devices:
[0006] Any encryption device is used for, if data to be encrypted is obtained, encrypting each sub-data in the data to be encrypted according to a stored first random number and a preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, modifying its corresponding first encryption state to a completed state, and sending the encrypted data to other encryption devices whose first encryption state is incomplete; if the first encryption states corresponding to other encryption devices are all completed states, for each sub-data in the data to be encrypted, using a stored second random number and a preset encryption algorithm, encrypting the sub-data to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, modifying its corresponding second encryption state to a completed state, and sending the encrypted data to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, sending the encrypted data to the aggregation device;
[0007] The aggregation device is used to receive each encrypted data, and for any sub-data in any encrypted data, determine whether the sub-data is the same as the sub-data in other encrypted data; if the sub-data is the same as the sub-data in any other encrypted data, send the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data to each encryption device.
[0008] In a second aspect, the present application provides a data transmission method, applied to an encryption device, the method comprising:
[0009] If the data to be encrypted is obtained, for each sub-data in the data to be encrypted, the sub-data is encrypted according to the saved first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, the corresponding first encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose first encryption state is incomplete; if the first encryption states corresponding to other encryption devices are all completed states, for each sub-data in the data to be encrypted, the sub-data is encrypted using the saved second random number and the preset encryption algorithm to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the corresponding second encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent.
[0010] In a third aspect, the present application provides a data transmission method, which is applied to a convergence device, and the method includes:
[0011] Receive each encrypted data, and for any sub-data in any encrypted data, determine whether the sub-data is the same as the sub-data in other encrypted data; if the sub-data is the same as the sub-data in any other encrypted data, send the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data.
[0012] In a fourth aspect, the present application provides a data transmission device, the device comprising:
[0013] The first encryption module is used for, if the data to be encrypted is obtained, encrypting each sub-data in the data to be encrypted according to the stored first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, modifying the first encryption state corresponding to itself to the completed state, and sending the encrypted data to other encryption devices whose first encryption state is incomplete;
[0014] The second encryption module is used to encrypt each sub-data in the data to be encrypted using the saved second random number and the preset encryption algorithm if the first encryption states corresponding to other encryption devices are all completed states to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the second encryption state corresponding to itself is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent.
[0015] In a fifth aspect, the present application provides a data transmission device, the device comprising:
[0016] A receiving module, used for receiving each encrypted data;
[0017] The judgment module is used to judge whether any sub-data in any encrypted data is the same as the sub-data in other encrypted data. If the sub-data is the same as the sub-data in any other encrypted data, the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data are sent.
[0018] In a sixth aspect, the present application also provides an electronic device, which includes at least a processor and a memory, and the processor is used to implement the steps of the above-mentioned data transmission method when executing a computer program stored in the memory.
[0019] In a seventh aspect, the present application further provides a computer-readable storage medium storing a computer program, which implements the steps of the above-mentioned data transmission method when executed by a processor.
[0020] The embodiment of the present application provides a data transmission system and a transmission method, device and medium. The data transmission system includes a convergence device and at least two encryption devices. For any encryption device, if data to be encrypted is obtained, for each sub-data in the data to be encrypted, the sub-data is encrypted according to a stored first random number and a preset encryption algorithm to obtain encrypted sub-data. If the first encryption is completed for each sub-data in the data, the first encryption state corresponding to itself is modified to a completed state, and the encrypted data is sent to other encryption devices whose first encryption state is incomplete. If the first encryption states corresponding to the other encryption devices are all completed states, for each sub-data in the data to be encrypted, the stored second random number and the preset encryption algorithm are used. The method is to encrypt the sub-data to obtain encrypted sub-data. If the second encryption is completed for each sub-data in the data, the corresponding second encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption states are incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent to a convergence device, which is used to receive each encrypted data, and for any sub-data in any encrypted data, determine whether the sub-data is the same as the sub-data in other encrypted data; if the sub-data is the same as the sub-data in any other encrypted data, then send identification information corresponding to the sub-data and identification information of the sub-data in the other encrypted data to each encryption device. Since in the embodiment of the present application, each encryption device participating in data transmission uses its own first random number or second random number to encrypt each sub-data in the data, and modifies its own corresponding first encryption state or second encryption state to a completed state after the encryption is completed, and sends the encrypted data to other encryption devices whose first encryption state or second encryption state is incomplete, each encryption device encrypts each sub-data in the data to be encrypted according to its own first random number or second random number, and finally sends the encrypted data to the aggregation device, ensuring that each data sent to the aggregation device is encrypted twice. As long as each encryption device does not inform other encryption devices of its own first random number and second random number, other encryption devices cannot obtain the original data, and the use of a simple algorithm improves the security and efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 A schematic diagram of the structure of a data transmission system provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram of a data transmission process provided in an embodiment of the present application;
[0024] Figure 3 Another schematic diagram of a data transmission process provided by an embodiment of the present application;
[0025] Figure 4 A process diagram of a data transmission method provided in an embodiment of the present application;
[0026] Figure 5 A process diagram of a data transmission method provided in an embodiment of the present application;
[0027] Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;
[0028] Figure 7 A schematic diagram of the structure of another data transmission device provided in an embodiment of the present application;
[0029] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the embodiment of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0031] In the embodiment of the present application, each encryption device participating in data transmission uses its own first random number or second random number to encrypt each sub-data in the data, and after the encryption is completed, it modifies its own corresponding first encryption state or second encryption state to a completed state, and sends the encrypted data to other encryption devices whose first encryption state or second encryption state is incomplete, so that each encryption device encrypts each sub-data in the data to be encrypted according to its own first random number or second random number, and finally sends the encrypted data to the aggregation device, ensuring that each data sent to the aggregation device is encrypted twice. As long as each encryption device does not inform other encryption devices of its own first random number and second random number, other encryption devices cannot obtain the original data, thereby improving the security and efficiency of data transmission.
[0032] Embodiment 1:
[0033] Figure 1A schematic diagram of a data transmission system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the data transmission system includes: a convergence device 102 and at least two encryption devices 101:
[0034] Among them, any encryption device 101 is used to, if the data to be encrypted is obtained, encrypt the sub-data in the data to be encrypted according to the saved first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, the first encryption state corresponding to itself is modified to the completed state, and the encrypted data is sent to other encryption devices 101 whose first encryption state is incomplete; if the first encryption states corresponding to other encryption devices 101 are all completed states, for each sub-data in the data to be encrypted, the saved second random number and the preset encryption algorithm are used to encrypt the sub-data to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the second encryption state corresponding to itself is modified to the completed state, and the encrypted data is sent to other encryption devices 101 whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices 101 are all completed states, the encrypted data is sent to the aggregation device 102;
[0035] The aggregation device 102 is used to receive each encrypted data, and for any sub-data in any encrypted data, determine whether the sub-data is the same as the sub-data in other encrypted data; if the sub-data is the same as the sub-data in any other encrypted data, send the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data to each encryption device 101.
[0036] In order to ensure the security of data transmission and prevent the data from being stolen by partners or third parties during the transmission process, the data needs to be encrypted. In the embodiment of the present application, any encryption device 101 pre-randomly generates and stores two random numbers for data encryption. Since each encryption device has its own data to be sent, it is necessary to encrypt the data before sending it to other encryption devices 101.
[0037] In addition, when the encryption device 101 receives data sent by other encryption devices 101, it also needs to encrypt the received data. The data contains multiple sub-data, and each sub-data has its own corresponding identifier. The identifier can be used to distinguish different sub-data in the data, and the identifier can identify which encryption device the data containing the sub-data belongs to. For example, the identifiers corresponding to each sub-data in the data to be sent by encryption device A are A1, A2, A3, and A4, respectively, indicating that the data includes 4 sub-data, A indicates that the data is the data to be sent by encryption device A, and the numbers 1, 2, 3, and 4 indicate the number of sub-data in the data.
[0038] Specifically, after obtaining the data to be encrypted, the encryption device 101 may perform a first encryption on each sub-data in the data to be encrypted according to a first random number and a preset encryption algorithm to obtain encrypted sub-data in order to ensure the security of data transmission. In order to indicate that the encryption device 101 has completed the encryption of the data to be encrypted, after completing the first encryption of each sub-data in the data to be encrypted, the encryption device 101 may modify its corresponding first encryption state to a completed state. The preset encryption algorithm may be any encryption algorithm that is irreversible, as long as the encryption algorithm used by each encryption device is consistent.
[0039] Since in the embodiment of the present application, the data transmission system may include two encryption devices 101, or may include more encryption devices 101, but the number of encryption devices 101 included in each data transmission system is fixed, and each encryption device 101 has its own data to be sent, then during the data transmission process, there may be multiple data to be encrypted being transmitted at the same time. In order to enable each encryption device 101 to perform a first encryption and a second encryption on each data to be encrypted, each data to be encrypted has a first encryption state and a second encryption state corresponding to each encryption device.
[0040] Because each data to be encrypted is encrypted in the same manner, for simplicity, description will be made for one data to be encrypted.
[0041] In order to enable each encryption device in the data transmission system to perform a first encryption on the data to be encrypted, the encryption device 101 performs a first encryption on each sub-data in the data to be encrypted according to the first random number and the preset encryption algorithm to obtain the encrypted sub-data. After performing the first encryption on each sub-data in the data to be encrypted, the encryption device 101 modifies its own first encryption state corresponding to the data to a completed state, and then obtains the first encryption state of other encryption devices 101 in the data transmission system. If there is an unfinished state in the first encryption state of other encryption devices 101, the encrypted data is sent to any encryption device 101 corresponding to the unfinished first encryption state. After receiving the encrypted data, because the other encryption device 101 needs to continue to perform the first encryption on the encrypted data, the encrypted data is still a data to be encrypted for the other encryption device 101, and the subsequent processing of the data to be encrypted by the other encryption device is the same as the above process, which will not be repeated.
[0042] If the first encryption states of the data obtained from other encryption devices 101 are all in the completed state, it means that each encryption device 101 participating in the data transmission has performed the first encryption on the data to be encrypted. In order to further ensure the security of data transmission, each sub-data in the data to be encrypted can be second-encrypted according to the second random number and the preset encryption algorithm to obtain encrypted sub-data. After the encryption device performs the second encryption on each sub-data in the data to be encrypted, the encryption device 101 modifies its second encryption state corresponding to the data to the completed state. Similarly, each encryption device 101 has a corresponding second encryption state for the data.
[0043] In order to enable each encryption device 101 in the data transmission system to perform a second encryption on the data to be encrypted, after the encryption device changes the second encryption state corresponding to the data to the completed state, the second encryption state of other encryption devices 101 in the data transmission system can be obtained. If there is an unfinished state in the second encryption state of other encryption devices 101, the encrypted data is sent to any other encryption device 101 whose second encryption state is an unfinished state. After other encryption devices 101 receive the encrypted data, because the other encryption devices 101 continue to perform the second encryption on the encrypted data, the encrypted data is still a data to be encrypted for the other encryption devices 101, and the subsequent processing of the data to be encrypted by the other encryption devices is the same as the above process, which will not be repeated.
[0044] If the second encryption status corresponding to other encryption devices 101 obtained are all completed, it means that each encryption device 101 participating in the data transmission has performed a second encryption on the data to be encrypted. The encrypted data has been encrypted twice by each encryption device and is secure enough and cannot be cracked by other devices in various ways. The encrypted data can be sent to the aggregation device 102.
[0045] In the embodiment of the present application, a certain encryption device 101 participating in data transmission may be pre-designated as the aggregation device 102, or a device may be set in the data transmission system as the aggregation device 102.
[0046] Since the number of encryption devices 101 participating in the data transmission is known, the aggregation device 102 can determine whether a sufficient amount of encrypted data has been received. After receiving each encrypted data, the aggregation device 102 can determine whether any sub-data in any encrypted data is the same as the sub-data in other encrypted data. For ease of understanding, each encrypted data can be understood as a set, and the sub-data contained in each encrypted data can be understood as the elements contained in the set corresponding to the encrypted data. Determining whether each sub-data in the encrypted data is the same as each sub-data in other encrypted data can be understood as finding the intersection between sets. Because the same sub-data is encrypted by each encryption device using the same method, the encrypted sub-data obtained is also the same. Therefore, if the sub-data is the same as a sub-data in any other encrypted data, it means that the sub-data is shared with another encryption device 101. The aggregation device 102 can send the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data to each encryption device 101, so that each encryption device 101 obtains the data shared by the encryption devices, or send the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data to the encryption device 101 corresponding to the sub-data and the encryption device 101 corresponding to the other encrypted data, so that the two encryption devices 101 obtain the data shared by both.
[0047] Since each encryption device 101 participating in data transmission in the embodiment of the present application uses the first random number or the second random number stored by itself to encrypt each sub-data in the data, and modifies its corresponding first encryption state or second encryption state to a completed state after the encryption is completed, and sends the encrypted data to other encryption devices 101 whose first encryption state or second encryption state is incomplete, each encryption device 101 encrypts each sub-data in the data to be encrypted according to the first random number or the second random number stored by itself, and finally sends the encrypted data to the aggregation device 102, ensuring that each data sent to the aggregation device 102 is encrypted twice. As long as each encryption device does not inform other encryption devices 101 of the first random number and the second random number stored by itself, other encryption devices 101 cannot obtain the original data, and the use of a simple algorithm improves the security and efficiency of data transmission.
[0048] Embodiment 2:
[0049] In order to ensure the security of data transmission, based on the above embodiments, in the embodiments of the present application, the encryption device 101 is specifically used to determine the hash value of each sub-data in the data to be sent by itself by using a hash algorithm, and encrypt the hash value according to the saved first random number and a preset encryption algorithm to obtain the encrypted sub-data.
[0050] Since each encryption device 101 participating in data transmission has its own data to be sent, in order to ensure that its own data to be sent is not stolen and decrypted during the transmission process, and the data should also be kept confidential for other encryption devices 101, before sending the data to be sent to other encryption devices 101, the encryption device 101 can use a hash algorithm to determine the hash value of each sub-data in its own data to be sent.
[0051] Specifically, in the embodiment of the present application, the encryption device can use the MD5 algorithm to encrypt each sub-data in the data to be sent. The MD5 algorithm is a hash algorithm. Any data of any length can be calculated using the MD5 algorithm to calculate a hash value, and the length of the calculated hash value is fixed for data of any length. Of course, those skilled in the art can also choose other hash algorithms to complete the encryption of each sub-data.
[0052] After the hash value of each sub-data is determined by using the Hash algorithm, the hash value of each sub-data may be encrypted according to the stored first random number and a preset encryption algorithm to obtain encrypted sub-data.
[0053] In order to further ensure the security of data transmission, on the basis of the above embodiments, in an embodiment of the present application, the encryption device 101 is specifically used to perform a bitwise XOR operation on the first random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the first random number is the same as the length of the sub-data.
[0054] When encrypting each sub-data in the data to be encrypted, specifically, each sub-data in the data to be sent that has been hashed may be encrypted, or each sub-data in the encrypted data sent by other encryption devices 101 may be encrypted. In addition, because each encryption device 101 first calculates a hash value for each sub-data when there is data to be sent, it can be considered that each sub-data is a binary data at this time.
[0055] Specifically, when each encryption device 101 encrypts each sub-data in the data to be encrypted, it can perform a bitwise XOR operation on the first random number stored in itself and the sub-data for each sub-data to complete the encryption of the sub-data. Since the hash algorithm to be used is pre-set and the length of the hash value is also known, in order to complete the bitwise XOR operation, the length of the stored first random number should be the same as the length of the hash value.
[0056] Embodiment 3:
[0057] In order to further ensure the security of data transmission, on the basis of the above embodiments, in the embodiment of the present application, the encryption device 101 is specifically used to determine the hash value of each sub-data in the encrypted data using a Hash algorithm if the first encryption states corresponding to other encryption devices are all in the completed state, and encrypt the hash value according to the saved second random number and the preset encryption algorithm to obtain the encrypted sub-data.
[0058] In order to further ensure the security of data transmission and prevent data from being stolen during transmission, after the first encryption state corresponding to the data is modified to the completed state, the first encryption state of other encryption devices 101 corresponding to the data in the data transmission system can be obtained. If the first encryption states corresponding to the other encryption devices 101 obtained are all completed states, and the second encryption states are all incomplete states, it means that each encryption device 101 in the data transmission system has performed the first encryption on the data to be encrypted. In order to further ensure the accuracy of data transmission, the data needs to be encrypted again.
[0059] Specifically, for each sub-data in the encrypted data after the first encryption, a Hash algorithm can be used to determine the Hash value of the sub-data, and the Hash value can be encrypted according to the saved second random number and the preset encryption algorithm to obtain the encrypted sub-data. The technicians in this field can choose which Hash algorithm to use to encrypt each sub-data as needed.
[0060] In order to further ensure the accuracy of data transmission, on the basis of the above embodiments, in an embodiment of the present application, the encryption device 101 is specifically used to perform a bitwise XOR operation on the second random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the second random number is the same as the length of the sub-data.
[0061] When encrypting each sub-data in the data to be encrypted, specifically, each sub-data in the encrypted data that has been subjected to hash calculation may be encrypted, or each sub-data in the encrypted data sent by other encryption devices 101 may be encrypted. In addition, because each encryption device 101 first calculates a hash value for each sub-data when there is data to be sent, it can be considered that each sub-data is a binary data at this time. In addition, because each encryption device first calculates a hash value for each sub-data when there is data to be sent, it can be considered that each sub-data is a binary data at this time.
[0062] Specifically, when each encryption device 101 encrypts each sub-data in the data to be encrypted, it can perform a bitwise XOR operation on the second random number stored in itself and the sub-data for each sub-data to complete the encryption of the sub-data. Similarly, in order to complete the bitwise XOR operation, the length of the stored second random number should be the same as the length of the hash value.
[0063] Embodiment 4:
[0064] The data transmission process of the data transmission system provided by the embodiment of the present application is described below with reference to a specific embodiment. Figure 2 A schematic diagram of a data transmission process provided in an embodiment of the present application, such as Figure 2 As shown, the data transmission system includes: a first encryption device, a second encryption device, and the second encryption device is pre-designated as a convergence device.
[0065] The first random number stored by the first encryption device itself is ra, the second random number is RA, and the data to be sent by itself is DA; the first random number stored by the second encryption device itself is rb, the second random number is RB, and the data to be sent by itself is DB.
[0066] The first encryption device uses the MD5 algorithm to determine the hash value of each sub-data in its own data to be sent, and performs a bitwise XOR operation on the hash value of the sub-data and the first random number ra to complete the first encryption of DA, thereby determining the encrypted data DA1 of its own data DA to be sent.
[0067] For the convenience of description, the process of obtaining the encrypted data can be expressed as DA1 = H(DA) ⊕ra, where H(DA) represents the hash value of the data DA to be sent using MD5, and ⊕ represents an XOR operation. The first encryption device modifies its first encryption state corresponding to the data to a completed state, and sends the encrypted data DA1 to the second encryption device whose first encryption state is an unfinished state.
[0068] The second encryption device obtains the encrypted data DA1 sent by the first encryption device. For each sub-data in the encrypted data DA1, the second encryption device performs a bitwise XOR operation on the sub-data and the first random number rb stored in itself, completes the first encryption of DA1 to obtain DA2, modifies its own first encryption state corresponding to the data to a completed state, and obtains the first encryption state of other encryption devices corresponding to the data. The first encryption states of other encryption devices corresponding to the data are all completed states, that is, each encryption device has completed the first encryption of the data. For each sub-data in the encrypted data DA2, the second encryption device performs a bitwise XOR operation on the sub-data and the second random number RB, completes the second encryption of DA2, and thus determines the encrypted data DA3 of DA2.
[0069] For the convenience of description, the process of obtaining the encrypted data can be expressed as DA3 = H (DA1 ⊕ rb) ⊕ RB. The second encryption device modifies its own second encryption state corresponding to the data to a completed state, and obtains the second encryption state corresponding to the data of other encryption devices. Because the second encryption state of the first encryption device corresponding to the data is an unfinished state, the second encryption device sends the encrypted data DA3 to the first encryption device whose second encryption state is an unfinished state.
[0070] After the first encryption device obtains the encrypted data DA3 sent by the second encryption device, because its own first encryption state corresponding to the data is a completed state and its second encryption state is an unfinished state, the first encryption device performs a bitwise XOR operation on each sub-data in the encrypted data DA3 and the second random number RA stored in itself, and completes the second encryption of DA3, thereby determining the encrypted data DA4 of the encrypted data DA3.
[0071] For the convenience of description, the process of obtaining the encrypted data can be expressed as DA4=DA3⊕RA. The first encryption device modifies its own second encryption state corresponding to the data to a completed state, and obtains the second encryption state of other encryption devices corresponding to the data. The second encryption states of other encryption devices corresponding to the data are all completed states, that is, the second encryption device and the first encryption device have completed the second encryption of the data. The first encryption device sends the encrypted data DA4 to the aggregation device. Because the aggregation device is a pre-designated second encryption device in the embodiment of the present application, the first encryption device sends the encrypted data DA4 to the second encryption device.
[0072] The second encryption device uses the MD5 algorithm to determine the hash value of each sub-data in the data to be sent by itself, and performs a bitwise XOR operation on the hash value of the sub-data and the first random number rb to complete the first encryption of DB, thereby determining the encrypted data DB1 of the data to be sent by itself.
[0073] For ease of description, the acquisition process of the encrypted data DB1 can be expressed as DB1 = H(DB) ⊕ rb. The second encryption device changes its first encryption state corresponding to the data to a completed state, and sends the encrypted data DB1 to the first encryption device whose first encryption state is an unfinished state.
[0074] The first encryption device obtains the encrypted data DB1 sent by the second encryption device. For each sub-data in the encrypted data DB1, the first encryption device performs a bitwise XOR operation on the sub-data and the first random data ra stored by itself, completes the first encryption of DB1 to obtain DB2, modifies its first encryption state corresponding to the data to a completed state, and obtains the first encryption state of other encryption devices corresponding to the data. The first encryption states of other encryption devices corresponding to the data are all completed states, that is, each encryption device has completed the first encryption of the data. For each sub-data in the encrypted data DB2, the first encryption device performs a bitwise XOR operation on the sub-data and the second random number RA, completes the second encryption of DB2, and thus determines the encrypted data DB3 of DB2.
[0075] For the convenience of description, the acquisition process of the encrypted data DB3 can be expressed as DB3 = H (DB1 ⊕ ra) ⊕ RA. The first encryption device modifies its second encryption state corresponding to the data to a completed state, and obtains the second encryption state corresponding to the data of the other encryption device. Because the second encryption state of the second encryption device corresponding to the data is an unfinished state, the first encryption device sends the encrypted data DB3 to the second encryption device whose second encryption state is an unfinished state.
[0076] After the second encryption device obtains the encrypted data DB3 sent by the first encryption device, because its first encryption state corresponding to the data is a completed state and its second encryption state is an unfinished state, the second encryption device performs a bitwise XOR operation on each sub-data in the encrypted data DB3 and the second random number RB stored in itself, and completes the second encryption of DB3, thereby determining the encrypted data DB4 of the encrypted data DB3.
[0077] For the convenience of description, the acquisition process of the encrypted data DB4 can be expressed as DB4=DB3⊕RB. The second encryption device modifies its own second encryption state corresponding to the data to a completed state, and obtains the second encryption state of other encryption devices corresponding to the data. The second encryption states of other encryption devices corresponding to the data are all completed states, that is, the first encryption device and the second encryption device have completed the second encryption of the data. The second encryption device sends the encrypted data DB4 to the aggregation device. Because the aggregation device is a pre-designated second encryption device in the embodiment of the present application, the second encryption device does not need to send DB4 to other devices.
[0078] After obtaining each encrypted data, the aggregation device, i.e., the second encryption device, determines the intersection of DA4 and DB4. For the convenience of description, the process of determining the same sub-data can be expressed as R=DA4∩DB4, where R represents the same sub-data in DA4 and DB4. The aggregation device sends the identification information of each identical sub-data determined to the first encryption device.
[0079] Embodiment 5:
[0080] The data transmission process of the data transmission system provided in the embodiment of the present application is described below in conjunction with another specific embodiment. Figure 3 Another schematic diagram of the data transmission process provided by the embodiment of the present application is as follows: Figure 3 As shown, the data transmission system includes: a first encryption device, a second encryption device, a third encryption device, a fourth encryption device, a fifth encryption device and a convergence device. In the embodiment of the present application, any encryption device is connected to other encryption devices. Figure 3 More clarity, Figure 3 The connection between the encryption devices is not reflected, only the direction of data transmission is shown.
[0081] Since in the embodiment of the present application, the transmission process for any data to be sent is basically the same, therefore, in the embodiment of the present application, only the transmission process of the data to be sent by the first encryption device itself between the encryption devices is described.
[0082] The first random number stored by the first encryption device itself is r1, the second random number is R1, and the data to be sent by itself is X; the first random numbers stored by the second to fifth encryption devices are r2 to r5, and the second random numbers are R2 to R5, respectively.
[0083] The first encryption device uses the MD5 algorithm to determine the hash value of each sub-data in the data X to be sent by itself, and performs a bitwise XOR operation on the hash value of the sub-data and the first random data r1 to complete the first encryption of X, thereby determining the encrypted data X1 of the data X to be sent by itself. For the convenience of description, the process of obtaining the encrypted data can be expressed as X1=H(X)⊕r1. The first encryption device modifies its first encryption state corresponding to the data to a completed state, and sends the encrypted data X1 to any other encryption device whose first encryption state is an uncompleted state, such as the second encryption device.
[0084] The second encryption device obtains the encrypted data X1 sent by the first encryption device. For each sub-data in the encrypted data X1, the second encryption device performs an XOR operation on the sub-data and the first random number r2 stored by itself, and completes the first encryption of X1 to obtain the encrypted data X2. For the convenience of description, the acquisition process of the encrypted data X2 can be expressed as X2 = H (X) ⊕ r1 ⊕ r2. The second encryption device modifies its first encryption state corresponding to the data to a completed state, and sends the encrypted data X2 to any other encryption device whose first encryption state is an uncompleted state, such as a third encryption device.
[0085] The third encryption device obtains the encrypted data X2 sent by the second encryption device. For each sub-data in the encrypted data X2, the third encryption device performs an XOR operation on the sub-data and the first random number r3 stored by itself, and completes the first encryption of X2 to obtain the encrypted data X3. For the convenience of description, the acquisition process of the encrypted data X3 can be expressed as X3 = H (X) ⊕ r1 ⊕ r2 ⊕ r3. The third encryption device modifies its first encryption state corresponding to the data to a completed state, and sends the encrypted data X3 to the fourth encryption device whose first encryption state is an uncompleted state.
[0086] The fourth encryption device obtains the encrypted data X3 sent by the third encryption device. For each sub-data in the encrypted data X3, the fourth encryption device performs an XOR operation on the sub-data and the first random number r4 stored by itself, and completes the first encryption of X3 to obtain the encrypted data X4. For the convenience of description, the acquisition process of the encrypted data X4 can be expressed as X4 = H (X) ⊕ r1 ⊕ r2 ⊕ r3 ⊕ r4. The fourth encryption device changes its first encryption state corresponding to the data to a completed state, and sends the encrypted data to the fifth encryption device whose first encryption state is an uncompleted state.
[0087] The fifth encryption device obtains the encrypted data X4 sent by the fourth encryption device. The fifth encryption device performs an XOR operation on each sub-data in the encrypted data X4 and the first random number r5 stored by itself, and completes the first encryption of X4 to obtain the encrypted data X5. For the convenience of description, the acquisition process of the encrypted data X5 can be expressed as X5 = H (X) ⊕ r1 ⊕ r2 ⊕ r3 ⊕ r4 ⊕ r5, and the fifth encryption device changes its first encryption state corresponding to the data to a completed state.
[0088] Since the first encryption devices of other encryption devices are all in the completed state, the fifth encryption device uses the MD5 algorithm to determine the hash value of each sub-data in the encrypted data X5, and performs a bitwise XOR operation on the hash value of the sub-data and the second random data R5 to complete the second encryption of X5 to obtain the encrypted data X6. For the convenience of description, the acquisition process of the encrypted data X6 can be expressed as X6 = H (X5) ⊕ R5. The fifth encryption device modifies its own second encryption state corresponding to the data to the completed state, and sends the encrypted data X6 to any other encryption device whose second encryption state is in the unfinished state, such as the fourth encryption device.
[0089] The fourth encryption device obtains the encrypted data X6 sent by the fifth encryption device. For each sub-data in the encrypted data X6, the fourth encryption device performs an XOR operation on the sub-data and the second random number R4 stored by itself, and completes the second encryption of X6 to obtain the encrypted data X7. For the convenience of description, the acquisition process of the encrypted data X7 can be expressed as X7 = H (X5) ⊕ R5 ⊕ R4. The fourth encryption device modifies its own second encryption state corresponding to the data to a completed state, and sends the encrypted data X7 to any other encryption device whose second encryption state is an uncompleted state, such as the third encryption device.
[0090] The third encryption device obtains the encrypted data X7 sent by the fourth encryption device. The third encryption device performs an XOR operation on each sub-data in the encrypted data X7 and the second random number R3 stored by itself, and completes the second encryption of X7 to obtain the encrypted data X8. For the convenience of description, the acquisition process of the encrypted data X8 can be expressed as X8 = H (X5) ⊕ R5 ⊕ R4 ⊕ R3. The third encryption device modifies its second encryption state corresponding to the data to a completed state, and sends the encrypted data X8 to any other encryption device whose second encryption state is an uncompleted state, such as the second encryption device.
[0091] The second encryption device obtains the encrypted data X8 sent by the third encryption device. The second encryption device performs an XOR operation on each sub-data in the encrypted data X8 and the second random number R2 stored by itself, and completes the second encryption of X8 to obtain the encrypted data X9. For the convenience of description, the acquisition process of the encrypted data X9 can be expressed as X9=H(X5)⊕R5⊕R4⊕R3⊕R2. The second encryption device modifies its own second encryption state corresponding to the data to a completed state, and sends the encrypted data X9 to the first encryption device whose second encryption state is an uncompleted state.
[0092] The first encryption device obtains the encrypted data X9 sent by the second encryption device. For each sub-data in the encrypted data X9, the first encryption device performs an XOR operation on the sub-data and the second random number R1 stored in itself, and completes the second encryption of X9 to obtain the encrypted data X10. For the convenience of description, the acquisition process of the encrypted data X10 can be expressed as X10 = H (X5) ⊕ R5 ⊕ R4 ⊕ R3 ⊕ R2 ⊕ R1. The first encryption device modifies its second encryption state corresponding to the data to a completed state, and obtains the second encryption state of other encryption devices corresponding to the data. The second encryption states of other encryption devices corresponding to the data are all completed states. The first encryption device sends the encrypted data X10 to the aggregation device.
[0093] Embodiment 6:
[0094] In order to ensure the security of data transmission, based on the above embodiments, in an embodiment of the present application, a data transmission method is provided, which is applied to an encryption device. Figure 4 A schematic diagram of a data transmission method provided in an embodiment of the present application, the process includes the following steps:
[0095] S401: If data to be encrypted is obtained, for each sub-data in the data to be encrypted, the sub-data is encrypted according to the saved first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, the corresponding first encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose first encryption state is incomplete.
[0096] S402: If the first encryption states corresponding to other encryption devices are all completed states, for each sub-data in the data to be encrypted, the saved second random number and the preset encryption algorithm are used to encrypt the sub-data to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the corresponding second encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is unfinished.
[0097] S403: If the second encryption states corresponding to other encryption devices are all in the completed state, the encrypted data is sent.
[0098] In a possible implementation manner, if the data to be encrypted is data to be sent by itself, before encrypting the sub-data to obtain encrypted sub-data according to the stored first random number and a preset encryption algorithm, the method further includes:
[0099] For each sub-data in the data to be sent, a hash value of the sub-data is determined by using a hash algorithm.
[0100] In a possible implementation manner, obtaining the encrypted sub-data according to the stored first random number and a preset encryption algorithm includes:
[0101] A bitwise XOR operation is performed on the first random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the first random number is the same as the length of the sub-data.
[0102] In a possible implementation, if the first encryption states corresponding to the other encryption devices are all in the completed state, for each sub-data in the data to be encrypted, using the saved second random number and the preset encryption algorithm to encrypt the sub-data to obtain the encrypted sub-data, the method further includes:
[0103] For each sub-data in the encrypted data, a Hash algorithm is used to determine the hash value of the sub-data.
[0104] In a possible implementation manner, obtaining the encrypted sub-data according to the stored second random number and a preset encryption algorithm includes:
[0105] A bitwise XOR operation is performed on the second random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the second random number is the same as the length of the sub-data.
[0106] Specifically, the method is applied to a data transmission system. The specific implementation process is shown in the above embodiment and will not be described in detail here.
[0107] Embodiment 7:
[0108] On the basis of the above embodiments, in an embodiment of the present application, a data transmission method is further provided, which is applied to a convergence device. Figure 5 A schematic diagram of a data transmission method provided in an embodiment of the present application, the process includes the following steps:
[0109] S501: Receive each encrypted data.
[0110] S502: For any sub-data in any encrypted data, determine whether the sub-data is the same as the sub-data in other encrypted data; if the sub-data is the same as the sub-data in any other encrypted data, send the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data.
[0111] Specifically, the method is applied to a data transmission system. The specific implementation process is shown in the above embodiment and will not be described in detail here.
[0112] Embodiment 8:
[0113] Figure 6 A schematic diagram of a data transmission device provided in an embodiment of the present application is provided, and the device is applied to any encryption device, such as Figure 6 As shown, the device comprises:
[0114] The first encryption module 601 is used for, if data to be encrypted is obtained, encrypting each sub-data in the data to be encrypted according to the stored first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, changing the first encryption state corresponding to itself to the completed state, and sending the encrypted data to other encryption devices whose first encryption state is incomplete;
[0115] The second encryption module 602 is used to encrypt each sub-data in the data to be encrypted using the saved second random number and the preset encryption algorithm if the first encryption states corresponding to other encryption devices are all completed states to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the second encryption state corresponding to itself is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent.
[0116] In a possible implementation, the first encryption module 601 is specifically used to determine the hash value of each sub-data in the data to be sent by the data transmission device itself using a hash algorithm, and encrypt the hash value according to the saved first random number and a preset encryption algorithm to obtain encrypted sub-data.
[0117] In a possible implementation manner, the first encryption module 601 is specifically configured to perform a bitwise XOR operation on the first random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the first random number is the same as the length of the sub-data.
[0118] In a possible implementation, the second encryption module 602 is specifically used to determine the hash value of each sub-data in the encrypted data using a hash algorithm if the first encryption states corresponding to other encryption devices are all in a completed state, and encrypt the hash value according to the saved second random number and a preset encryption algorithm to obtain encrypted sub-data.
[0119] In a possible implementation manner, the second encryption module 602 is specifically configured to perform a bitwise XOR operation on the second random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the second random number is the same as the length of the sub-data.
[0120] Embodiment 9:
[0121] Figure 7 A schematic diagram of the structure of another data transmission device provided in an embodiment of the present application, the device is applied to a convergence device, such as Figure 7 As shown, the device comprises:
[0122] The receiving module 701 is used to receive each encrypted data;
[0123] The judgment module 702 is used to judge whether any sub-data in any encrypted data is the same as the sub-data in other encrypted data. If the sub-data is the same as the sub-data in any other encrypted data, the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data are sent.
[0124] Embodiment 10:
[0125] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Based on the above embodiments, the present application further provides an electronic device, such as Figure 8 As shown, it includes: a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804;
[0126] The memory 803 stores a computer program. When the program is executed by the processor 801, the processor 801 performs the following steps:
[0127] If the data to be encrypted is obtained, for each sub-data in the data to be encrypted, the sub-data is encrypted according to the saved first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, the corresponding first encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose first encryption state is incomplete; if the first encryption states corresponding to other encryption devices are all completed states, for each sub-data in the data to be encrypted, the sub-data is encrypted using the saved second random number and the preset encryption algorithm to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the corresponding second encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent.
[0128] In a possible implementation manner, if the data to be encrypted is data to be sent by itself, before encrypting the sub-data to obtain encrypted sub-data according to the stored first random number and a preset encryption algorithm, the method further includes:
[0129] For each sub-data in the data to be sent, a hash value of the sub-data is determined by using a hash algorithm.
[0130] In a possible implementation manner, obtaining the encrypted sub-data according to the stored first random number and a preset encryption algorithm includes:
[0131] A bitwise XOR operation is performed on the first random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the first random number is the same as the length of the sub-data.
[0132] In a possible implementation, if the first encryption states corresponding to the other encryption devices are all in the completed state, for each sub-data in the data to be encrypted, using the saved second random number and the preset encryption algorithm to encrypt the sub-data to obtain the encrypted sub-data, the method further includes:
[0133] For each sub-data in the encrypted data, a Hash algorithm is used to determine the hash value of the sub-data.
[0134] In a possible implementation manner, obtaining the encrypted sub-data according to the stored second random number and a preset encryption algorithm includes:
[0135] A bitwise XOR operation is performed on the second random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the second random number is the same as the length of the sub-data.
[0136] Since the principle of solving the problem by the above electronic device is similar to the data transmission method, the implementation of the above electronic device can refer to the above embodiment, and the repeated parts will not be repeated.
[0137] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface 802 is used for communication between the above electronic device and other devices. The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor. The above processor may be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it may also be a digital signal processing processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0138] Based on the above embodiments, the present application also provides an electronic device, the structural diagram of the electronic device is as follows: Figure 8 As shown, it includes: a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804;
[0139] The memory 803 stores a computer program. When the program is executed by the processor 801, the processor 801 performs the following steps:
[0140] Receive each encrypted data, and for any sub-data in any encrypted data, determine whether the sub-data is the same as the sub-data in other encrypted data; if the sub-data is the same as the sub-data in any other encrypted data, send the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data.
[0141] Since the principle of solving the problem by the above electronic device is similar to the data transmission method, the implementation of the above electronic device can refer to the above embodiment, and the repeated parts will not be repeated.
[0142] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface 802 is used for communication between the above electronic device and other devices. The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor. The above processor may be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it may also be a digital signal processing processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0143] Embodiment 12:
[0144] On the basis of the above embodiments, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executable by a processor, and when the program runs on the processor, the processor implements the following steps when executing:
[0145] If the data to be encrypted is obtained, for each sub-data in the data to be encrypted, the sub-data is encrypted according to the saved first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, the corresponding first encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose first encryption state is incomplete; if the first encryption states corresponding to other encryption devices are all completed states, for each sub-data in the data to be encrypted, the sub-data is encrypted using the saved second random number and the preset encryption algorithm to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the corresponding second encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent.
[0146] In a possible implementation manner, if the data to be encrypted is data to be sent by itself, before encrypting the sub-data to obtain encrypted sub-data according to the stored first random number and a preset encryption algorithm, the method further includes:
[0147] For each sub-data in the data to be sent, a hash value of the sub-data is determined by using a hash algorithm.
[0148] In a possible implementation manner, obtaining the encrypted sub-data according to the stored first random number and a preset encryption algorithm includes:
[0149] A bitwise XOR operation is performed on the first random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the first random number is the same as the length of the sub-data.
[0150] In a possible implementation, if the first encryption states corresponding to the other encryption devices are all in the completed state, for each sub-data in the data to be encrypted, using the saved second random number and the preset encryption algorithm to encrypt the sub-data to obtain the encrypted sub-data, the method further includes:
[0151] For each sub-data in the encrypted data, a Hash algorithm is used to determine the hash value of the sub-data.
[0152] In a possible implementation manner, obtaining the encrypted sub-data according to the stored second random number and a preset encryption algorithm includes:
[0153] A bitwise XOR operation is performed on the second random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the second random number is the same as the length of the sub-data.
[0154] Since the principle of solving the problem by the computer-readable medium provided above is similar to that of the data transmission method, after the processor executes the computer program in the computer-readable medium above, the steps implemented can refer to the above embodiment, and the repeated parts will not be repeated.
[0155] Embodiment 13:
[0156] On the basis of the above embodiments, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executable by a processor, and when the program runs on the processor, the processor implements the following steps when executing:
[0157] Receive each encrypted data, and for any sub-data in any encrypted data, determine whether the sub-data is the same as the sub-data in other encrypted data; if the sub-data is the same as the sub-data in any other encrypted data, send the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data.
[0158] Since the principle of solving the problem by the computer-readable medium provided above is similar to that of the data transmission method, after the processor executes the computer program in the computer-readable medium above, the steps implemented can refer to the above embodiment, and the repeated parts will not be repeated.
[0159] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0160] As for the system / device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0161] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0162] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0163] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0164] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0165] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data transmission system, It is characterized in that The system comprises: a convergence device and at least two encryption devices: Any encryption device is used for, if data to be encrypted is obtained, encrypting each sub-data in the data to be encrypted according to a stored first random number and a preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, modifying its corresponding first encryption state to a completed state, and sending the encrypted data to other encryption devices whose first encryption state is incomplete; if the first encryption states corresponding to other encryption devices are all completed states, for each sub-data in the data to be encrypted, using a stored second random number and a preset encryption algorithm, encrypting the sub-data to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, modifying its corresponding second encryption state to a completed state, and sending the encrypted data to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, sending the encrypted data to the aggregation device; The aggregation device is used to receive each encrypted data, and for any sub-data in any encrypted data, determine whether the sub-data is the same as the sub-data in other encrypted data; if the sub-data is the same as the sub-data in any other encrypted data, send the identification information corresponding to the sub-data and the identification information of the sub-data in the other encrypted data to each encryption device.
2. The system according to claim 1, It is characterized in that The encryption device is specifically used to determine the hash value of each sub-data in the data to be sent by itself by using a hash algorithm, and encrypt the hash value according to the stored first random number and a preset encryption algorithm to obtain the encrypted sub-data.
3. The system according to claim 1 or 2, It is characterized in that The encryption device is specifically used to perform a bitwise XOR operation on the first random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the first random number is the same as the length of the sub-data.
4. The system according to claim 1, It is characterized in that The encryption device is specifically used to determine the hash value of each sub-data in the encrypted data using a hash algorithm if the first encryption states corresponding to other encryption devices are all in a completed state, and encrypt the hash value according to the saved second random number and a preset encryption algorithm to obtain encrypted sub-data.
5. The system according to claim 1 or 4, It is characterized in that The encryption device is specifically used to perform a bitwise XOR operation on the second random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the second random number is the same as the length of the sub-data.
6. A data transmission method, It is characterized in that Applied to an encryption device, the method comprises: If the data to be encrypted is obtained, for each sub-data in the data to be encrypted, the sub-data is encrypted according to the saved first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, the corresponding first encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose first encryption state is incomplete; if the first encryption states corresponding to other encryption devices are all completed states, for each sub-data in the data to be encrypted, the sub-data is encrypted using the saved second random number and the preset encryption algorithm to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the corresponding second encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent to the aggregation device.
7. The method according to claim 6, It is characterized in that If the data to be encrypted is data to be sent, before encrypting the sub-data to obtain encrypted sub-data according to the stored first random number and the preset encryption algorithm, the method further includes: For each sub-data in the data to be sent, a Hash algorithm is used to determine the hash value of the sub-data.
8. The method according to claim 6 or 7, It is characterized in that The step of obtaining encrypted sub-data according to the stored first random number and the preset encryption algorithm includes: A bitwise XOR operation is performed on the first random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the first random number is the same as the length of the sub-data.
9. The method according to claim 6, It is characterized in that If the first encryption states corresponding to the other encryption devices are all in the completed state, for each sub-data in the data to be encrypted, the stored second random number and the preset encryption algorithm are used to encrypt the sub-data to obtain the encrypted sub-data, the method further includes: For each sub-data in the encrypted data, a Hash algorithm is used to determine the hash value of the sub-data.
10. The method according to claim 6 or 9, It is characterized in that The step of obtaining encrypted sub-data according to the stored second random number and the preset encryption algorithm includes: A bitwise XOR operation is performed on the second random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the second random number is the same as the length of the sub-data.
11. A data transmission method, It is characterized in that Applied to a convergence device, the method comprises: receiving each encrypted data, and determining, for any sub-data in any encrypted data, whether the sub-data is the same as the sub-data in other encrypted data, and if the sub-data is the same as the sub-data in any other encrypted data, sending identification information corresponding to the sub-data and identification information of the sub-data in the other encrypted data to each encryption device; Wherein, any encrypted data is sent by the encryption device to the aggregation device, and the encryption device determines the encrypted data according to the following steps: If the data to be encrypted is obtained, for each sub-data in the data to be encrypted, the sub-data is encrypted according to the saved first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, the corresponding first encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose first encryption state is incomplete; if the first encryption states corresponding to other encryption devices are all completed states, for each sub-data in the data to be encrypted, the sub-data is encrypted using the saved second random number and the preset encryption algorithm to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the corresponding second encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent to the aggregation device.
12. An encryption device, It is characterized in that The encryption device comprises: The first encryption module is used for, if the data to be encrypted is obtained, encrypting each sub-data in the data to be encrypted according to the stored first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, modifying the first encryption state corresponding to itself to the completed state, and sending the encrypted data to other encryption devices whose first encryption state is incomplete; The second encryption module is used to encrypt each sub-data in the data to be encrypted using the saved second random number and the preset encryption algorithm if the first encryption states corresponding to other encryption devices are all completed states to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the corresponding second encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent to the aggregation device.
13. The encryption device according to claim 12, It is characterized in that The first encryption module is specifically used to determine the hash value of each sub-data in the data to be sent by the data transmission device itself using a hash algorithm, and encrypt the hash value according to the stored first random number and a preset encryption algorithm to obtain encrypted sub-data.
14. The encryption device according to claim 12 or 13, It is characterized in that The first encryption module is specifically used to perform a bitwise XOR operation on the first random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the first random number is the same as the length of the sub-data.
15. The encryption device according to claim 12, It is characterized in that The second encryption module is specifically used to determine the hash value of each sub-data in the encrypted data using a hash algorithm if the first encryption states corresponding to other encryption devices are all in the completed state, and to encrypt the hash value according to the saved second random number and the preset encryption algorithm to obtain the encrypted sub-data.
16. The encryption device according to claim 12 or 15, It is characterized in that The second encryption module is specifically used to perform a bitwise XOR operation on the second random number and the sub-data to determine the encrypted sub-data of the sub-data, wherein the length of the second random number is the same as the length of the sub-data.
17. A convergence device, It is characterized in that The convergence device comprises: A receiving module, used for receiving each encrypted data; a judgment module, used for judging, for any sub-data in any encrypted data, whether the sub-data is the same as the sub-data in other encrypted data, and if the sub-data is the same as the sub-data in any other encrypted data, sending identification information corresponding to the sub-data and identification information of the sub-data in the other encrypted data to each encryption device; Wherein, any encrypted data is sent by the encryption device to the aggregation device, and the encryption device determines the encrypted data according to the following steps: If the data to be encrypted is obtained, for each sub-data in the data to be encrypted, the sub-data is encrypted according to the saved first random number and the preset encryption algorithm to obtain encrypted sub-data; if the first encryption is completed for each sub-data in the data, the corresponding first encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose first encryption state is incomplete; if the first encryption states corresponding to other encryption devices are all completed states, for each sub-data in the data to be encrypted, the sub-data is encrypted using the saved second random number and the preset encryption algorithm to obtain encrypted sub-data; if the second encryption is completed for each sub-data in the data, the corresponding second encryption state is modified to a completed state, and the encrypted data is sent to other encryption devices whose second encryption state is incomplete; if the second encryption states corresponding to other encryption devices are all completed states, the encrypted data is sent to the aggregation device.
18. An electronic device, It is characterized in that The electronic device comprises at least a processor and a memory, and the processor is used to implement the steps of the data transmission method as claimed in any one of claims 6 to 10 or 11 when executing the computer program stored in the memory.
19. A computer-readable storage medium, It is characterized in that It stores a computer program, which, when executed by a processor, implements the steps of the data transmission method as claimed in any one of claims 6 to 10 or 11.
