Data security transmission method and system based on industrial equipment data collection
By combining the national secret algorithm and equipment fingerprint information, dynamic keys and encryption algorithms are used to ensure security in industrial equipment data transmission, the security risks of industrial equipment data in the Internet of Things environment are solved, and the confidentiality and integrity of the data are achieved Assure.
Patent Information
- Application Number
- CN202211647333.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-12-21
AI Technical Summary
Industrial equipment data has security risks of data leakage, data theft and data tampering in the Internet of Things environment. The existing encryption methods are easily hijacked and cracked by public keys, resulting in malicious attacks.
The combination of national secret algorithm and equipment fingerprint information is used to ensure data transmission security through random factors. Using dynamic keys and SM2, SM3, and SM4 encryption algorithms, the snowflake algorithm generates a high-entropy random number calculation working key to encrypt the data. and decrypt and ensure the integrity of the data through verification.
Effectively prevent malicious attacks after public keys are hijacked, ensure the confidentiality and integrity of data during transmission, and reduce the security risks faced by industrial equipment data.
Smart Images

Figure CN115987500B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of industrial equipment data collection, and in particular relates to a data security transmission method and system based on industrial equipment data collection. Background Art
[0002] At present, the Industrial Internet is a product of the deep integration of modern industrial technology and a new generation of digital technology. It is also one of the important construction areas of my country's new infrastructure. Under the new concept and new ecology of the Industrial Internet, equipment data is a production factor of the Industrial Internet, playing an important role in the entire process of industry and running through the entire process of industrial production. The status of industrial equipment data in the Industrial Internet of Things is self-evident. In the era of the Internet of Everything, industrial data security also faces very large security risks, such as data leakage, data theft, data tampering, etc.
[0003] The existing data encryption is at risk of public key hijacking, and general encryption methods can be easily cracked by hijacking the public key. By hijacking the public key, it is also possible to simulate sending wrong information data and cause malicious attacks on the system. Summary of the invention
[0004] In view of the problems existing in the prior art, the present invention provides a data security transmission method and system based on industrial equipment data collection.
[0005] The present invention is implemented as follows: a data security transmission method based on industrial equipment data collection uses national secret algorithms and device fingerprint information to ensure the security of data transmission in the Internet of Things environment, ensures data security through the calculation of random factors, and prevents malicious attacks after the public key is hijacked through device fingerprints.
[0006] Furthermore, the data security transmission method based on industrial equipment data collection includes:
[0007] Initialize the cloud-preset public and private key pairs and the cloud-preset random factor RA; the edge computing gateway sends data to the cloud, uses dynamic keys, SM2, SM3, SM4 encryption algorithms, and high entropy random numbers generated by the snowflake algorithm to calculate the working key, and then encrypts the original data to obtain the ciphertext data; the cloud receives the ciphertext data sent by the edge computing gateway, calculates the working key, and then decrypts the ciphertext data to obtain the original data; finally, verification is performed.
[0008] Further, the initialization includes:
[0009] The cloud creates public and private keys for encryption and decryption of some data when communicating with the edge computing gateway. At the same time, a binary string is randomly generated as the cloud random factor RA; the device fingerprint data of the edge gateway is converted into binary form; the generated random factor RA and binary device fingerprint are preset in the edge gateway device.
[0010] Further, the edge computing gateway sends data to the cloud including:
[0011] Prepare the original data to be sent; use the snowflake algorithm to generate the edge computing gateway random factor RB, use the public key as the key to encrypt the edge computing gateway random factor RB using the SM2 encryption algorithm to obtain the random factor ciphertext RB1;
[0012] The cloud random factor RA plus the edge computing gateway random factor RB plus the device fingerprint and the public key obtain the working key SK;
[0013] Use the public key as the key to encrypt the device fingerprint of the edge computing gateway using the SM2 encryption algorithm to obtain the device fingerprint ciphertext PP;
[0014] The original data is used for entropy and the SM3 encryption algorithm is used to obtain the summary information M1;
[0015] The working key SK is used as a key, and the original data is encrypted using the SM4 encryption algorithm to obtain ciphertext data; and a data structure for transmission data is created.
[0016] Furthermore, the generation process of the working key SK includes:
[0017] The result RC is obtained by performing an XOR operation on the cloud random factor RA and the edge computing gateway random factor RB, and the result is obtained by encrypting RC using the SM4 encryption algorithm using the public key as the key and converting it into binary data RD, taking the first eight bits of RD as F1 and the last eight bits of RD as F2;
[0018] Use the SM4 encryption algorithm to encrypt the device fingerprint of the current device, where the key is F1, obtain the ciphertext data and convert it into binary data FA;
[0019] The result obtained by performing an XOR operation on the binary data RD and FA is then XORed with F2 to obtain the working key SK. If the number of bits in F2 is insufficient, 0 is added to the high bit.
[0020] The data structure of the transmission data includes:
[0021] Filling data field 1: random factor ciphertext RB1;
[0022] Fill in data field 2: device fingerprint ciphertext PP;
[0023] Fill in data field three: summary information M1;
[0024] Fill data field four: ciphertext data.
[0025] Further, the cloud receives data sent by the edge computing gateway including:
[0026] Receive the ciphertext data; add the random factor ciphertext RB1 to the private key and use the SM2 asymmetric algorithm to decrypt to obtain the edge computing gateway random factor RB;
[0027] The fingerprint ciphertext PP plus the private key is decrypted using the SM2 asymmetric algorithm to obtain the device fingerprint DF;
[0028] The cloud random factor RA plus the edge computing gateway random factor RB plus the device fingerprint and private key obtain the working key SK;
[0029] The working key SK is used as the key, and the SM4 algorithm is used to decrypt the ciphertext data to obtain the original data.
[0030] Further, the receiving of the ciphertext data is performed by parsing the data structure to obtain the value of each data field, including:
[0031] Parsing data domain 1: random factor ciphertext RB1;
[0032] Parsing data domain 2: device fingerprint ciphertext PP;
[0033] Parsing data domain three: summary information M1;
[0034] Parsing data domain four: ciphertext data.
[0035] Further, the verification process includes:
[0036] The cloud uses the SM3 digest algorithm to calculate the decrypted original data to obtain the summary information M2;
[0037] Compare it with the summary information M1 transmitted to the cloud by the edge computing gateway. If M1 and M2 are the same, the data is available; if M1 and M2 are different, the data is unavailable and is directly discarded.
[0038] Another object of the present invention is to provide a data security transmission system based on industrial equipment data collection.
[0039] The cloud includes an initialization module, a decryption module and a verification module. The initialization module is used to create a public key and a private key and generate a random factor RA; the decryption module is used to decrypt the decrypted data to obtain the original data; the verification module is used to compare the encrypted summary information M1 with the decrypted summary information M2 to verify the correctness of the data.
[0040] Edge computing gateway,the encryption module is used to encrypt device data using encryption algorithms and generate,transmission protocols.
[0041] Furthermore, the cloud initialization module creates public and private keys for encryption and decryption of part of the data when communicating with the edge computing gateway. At the same time, it generates a random string and converts it into binary data defined as the cloud random factor RA (this random factor can be updated at any time according to the specific situation), and converts the device fingerprint of each edge computing gateway into binary, and presets the generated public key, random factor RA and binary device fingerprint in each data acquisition device (edge computing gateway).
[0042] The encryption module of the edge computing gateway generates the edge computing gateway random factor RB by using the snowflake algorithm, and then uses the public key, random factor RA and device fingerprint to encrypt the device data through the encryption algorithm and generate a transmission protocol.
[0043] The cloud receives the transmission protocol, and the decryption module decrypts the encrypted device data through the public key pair, random factor RA and device fingerprint through the decryption algorithm to obtain the original data. The verification module verifies the correctness of the data by comparing the encrypted summary information M1 with the decrypted summary information M2.
[0044] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the data security transmission method based on industrial equipment data collection.
[0045] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the data security transmission method based on industrial equipment data collection.
[0046] Another object of the present invention is to provide an information data processing terminal, which is used to implement the data security transmission system based on industrial equipment data collection.
[0047] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:
[0048] First, in view of the technical problems existing in the above-mentioned prior art and the difficulty of solving the problems, the technical solutions to be protected by the present invention and the results and data during the research and development process are closely combined to analyze in detail and deeply how the technical solutions of the present invention solve the technical problems, and some creative technical effects brought about after solving the problems. The specific description is as follows:
[0049] The present invention integrates dynamic keys, domestic encryption algorithms, digital signature technology, and special keys for special purposes, providing security protection, availability, and integrity verification for data. Through digital signatures, the device can be verified and simulated attacks after the public key is hijacked can be effectively prevented. This solution realizes the dynamic nature of the key through random factors and national secret algorithm technology, effectively ensuring the secure transmission of data information.
[0050] Second, considering the technical solution as a whole or from the perspective of the product, the technical effects and advantages of the technical solution to be protected by the present invention are described in detail as follows:
[0051] The present invention uses a domestic encryption algorithm to encrypt device data to ensure the confidentiality of device data during transmission. The key is generated using a high-entropy random number and a complex calculation of the device fingerprint. Even if an attacker obtains the key, the key is dynamically changed, and the attacker cannot deduce a new key based on the old key.
[0052] The present invention uses the SM3 encryption algorithm to ensure the integrity and availability of data. Even if an attacker tampers with the transmitted data, the cloud can determine whether the data has been tampered with by verifying the message digest.
[0053] The present invention adopts the snowflake algorithm to efficiently generate non-repetitive random numbers in the edge computing gateway, which are then encrypted through the SM2 algorithm and converted into binary data. This high-entropy random number is used to participate in the production of the working key, ensuring that the key is difficult to infer.
[0054] Third, as auxiliary evidence of the inventiveness of the claims of the present invention, it is also reflected in the following important aspects:
[0055] (1) The expected benefits and commercial value of the technical solution of the present invention after transformation are:
[0056] Safety is an important indicator of industrial production. The present invention can effectively solve the security of data collection and data transmission of industrial equipment, and prevent malicious attacks caused by public key data leakage.
[0057] (2) Whether the technical solution of the present invention solves the technical problems that people have been eager to solve but have not been able to solve successfully:
[0058] The present invention effectively solves the technical problems existing in the prior art by combining the domestic encryption algorithm, the SM3 encryption algorithm and the snowflake algorithm, making it difficult for the key to be tampered with and calculated, thereby ensuring the availability, security and integrity of the data and reducing the security risks faced by industrial data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1This is an architecture diagram of a data security transmission method based on industrial equipment data collection provided by an embodiment of the present invention;
[0060] Figure 2 This is a core algorithm flow chart of a data security transmission method based on industrial equipment data collection provided by an embodiment of the present invention;
[0061] Figure 3 is an encryption flow chart provided by an embodiment of the present invention;
[0062] Figure 4 is a decryption flow chart provided by an embodiment of the present invention;
[0063] Figure 5 is a verification flow chart provided by an embodiment of the present invention;
[0064] Figure 6 It is an architecture diagram of a data security transmission system based on industrial equipment data collection provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0066] In order to enable those skilled in the art to fully understand how to implement the present invention in detail, this section is an explanatory embodiment that expands and describes the technical solution of the claims.
[0067] like Figure 1 As shown, the data security transmission method based on industrial equipment data collection provided by the embodiment of the present invention mainly includes data sending and data receiving parts, and a new definition is made for the transmission involving instruction-type or command-type protocols.
[0068] The edge computing gateway data sending process includes the following steps:
[0069] S1: original data to be sent;
[0070] S2: The random factor RA plus the random factor RB plus the device fingerprint and the public key are used to obtain the working key.
[0071] S3: The random factor RB is added to the public key to obtain the random factor ciphertext RB1;
[0072] S4: add the device fingerprint to the public key to obtain the device fingerprint ciphertext PP;
[0073] S5: perform entropy analysis on the original data to obtain summary information M1;
[0074] S6: Encrypt the original data using the working key.
[0075] The cloud data receiving process includes the following steps:
[0076] S1: receiving data;
[0077] S2: Random factor RB1 plus private key decryption to obtain random factor RB;
[0078] S3: Fingerprint ciphertext PP plus private key decryption to obtain device fingerprint;
[0079] S4: The random factor RA plus the random factor RB plus the device fingerprint and the private key obtain the working key;
[0080] S5: Working key + encrypted data to obtain original data;
[0081] S6: Perform entropy calculation on the original data to obtain M2, and compare it with the summary information M1. If they are the same, the data is valid; if they are different, the data is invalid.
[0082] In an embodiment of the present invention, the initialization stage: the cloud initialization module creates a public key and a private key for encryption and decryption of part of the data when communicating with the edge computing gateway, and generates a random string and converts it into binary data defined as a cloud random factor RA (this random factor can be updated according to time based on the specific situation). At the same time, the device fingerprint of each edge computing gateway is obtained and converted into binary, and finally the generated random factor RA, binary device fingerprint and public key are preset in each edge computing gateway device.
[0083] In an embodiment of the present invention, an edge computing gateway obtains an encryption process.
[0084] S1: The original data to be sent is the original data of the device;
[0085] S2: Next, the working key is obtained. A unique identifier is generated according to the snowflake algorithm. The data is defined as a random factor RB. The random factor RA is used to perform an XOR operation with RB to obtain the result RC. The public key is used as the key to encrypt RC using the SM4 encryption algorithm to obtain the result and convert it into binary RD. The first eight bits of RD are taken as F1, and the last eight bits of RD are taken as F2. The device fingerprint of the current device is encrypted using the SM4 encryption algorithm, where the key is F1, and the ciphertext data is obtained and converted into binary data FA. The result obtained by performing an XOR operation on RD and FA is then XORed with F2 to obtain the working key SK. If the number of bits in F2 is insufficient, the high bits are filled with 0.
[0086] S3: Use the public key as the key to encrypt the random factor RB using the SM2 encryption algorithm to obtain the edge computing gateway random factor RB1
[0087] S4: Use the public key as the key to encrypt the device fingerprint of the edge computing gateway using the SM2 algorithm to obtain the device fingerprint ciphertext PP.
[0088] S5: Information summary data M1 generated by the original device data through the SM3 hash algorithm
[0089] S6: Use the working key SK generated in the second step as the key and adopt the SM4 symmetric algorithm to encrypt the data collected by the device to obtain ciphertext data.
[0090] In an embodiment of the present invention, a data structure of a transmission protocol is created:
[0091] Filling data field 1: random factor ciphertext RB1;
[0092] Fill in data field 2: device fingerprint ciphertext PP;
[0093] Fill in data field three: summary information M1;
[0094] Fill data field four: ciphertext data;
[0095] Finally, the transmission protocol is sent to the cloud
[0096] In an embodiment of the present invention, the cloud receives the data decryption process sent by the edge computing gateway:
[0097] S1 receives data, that is, receives the transmission protocol, and parses the transmission protocol.
[0098] Parse the data protocol structure and obtain the value of each data field:
[0099] Parsing data domain 1: random factor ciphertext RB1;
[0100] Parsing data domain 2: device fingerprint ciphertext PP;
[0101] Parsing data domain three: summary information M1;
[0102] Parsing data domain four: ciphertext data;
[0103] S2: Obtain a random factor RB.
[0104] Use the private key as the key and adopt the SM2 asymmetric algorithm to decrypt the random factor ciphertext RB1 to obtain the random factor RB.
[0105] S3: Get device fingerprint DF:
[0106] Use the private key as the key and the SM2 asymmetric algorithm to decrypt the device fingerprint ciphertext PP to obtain the device fingerprint DF.
[0107] S4: Calculate the working key SK:
[0108] Use the cloud random factor RA and the edge computing gateway random factor RB to perform an XOR operation to obtain RC, use the public key as the key to encrypt RC using the SM4 encryption algorithm to obtain the result and convert it into binary data RD, take the first eight bits of RD as F1, and take the last eight bits of RD as F2;
[0109] The device fingerprint DF is encrypted using the SM4 encryption algorithm, where the key is F1, and the ciphertext data is obtained and converted into binary data FA;
[0110] The result obtained by XORing RD and FA is XORed with F2 to obtain the working key SK. If the number of digits in F2 is insufficient, the high digits are filled with 0;
[0111] S5: Decrypt the ciphertext data to obtain the original data, use the working key SK as the key, and use the SM4 algorithm to decrypt the ciphertext data to obtain the device data.
[0112] S6: Verification
[0113] The cloud uses the SM3 digest algorithm to calculate the decrypted device data to obtain the summary information M2.
[0114] Compare the summary information M1 of the edge computing gateway transmission parsed by the transmission protocol:
[0115] Compare with the summary data obtained by the edge computing gateway. If they are the same, the data is valid; if they are different, the data is invalid.
[0116] The initialization phase is for the cloud to complete the generation of public-private key pairs, random factors RA, and the conversion of fingerprints of each device, and then pre-set the public key, random factor RA and the converted device fingerprint to each corresponding device, so that the next encryption and decryption phase can be carried out.
[0117] like Figure 2 As shown in the figure, the specific process of the data security transmission method based on industrial equipment data collection
[0118] include:
[0119] During initialization, the cloud will preset the public and private key pairs, as well as the cloud random factor RA. All data collection devices (edge computing gateways preset the public key generated by the cloud). During data encryption and data transmission, all encryption algorithms used are national secret encryption algorithms, using the idea of dynamic keys, using the edge computing gateway and the high entropy random generated by the cloud and the device fingerprint number to obtain the working key through complex calculations.
[0120] When receiving data, the working key is calculated by decrypting the device fingerprint and random factor RB, as well as the cloud random factor RA, and then the ciphertext data is decrypted to obtain the original data.
[0121] Finally, the summary is calculated using the original data, and the received message summary ciphertext is decrypted. If the two are the same, the data is available.
[0122] Further, the specific initialization process includes:
[0123] The cloud creates public and private keys for encryption and decryption of some data when communicating with the edge computing gateway. At the same time, a random string is generated and converted into binary data, which is defined as the cloud random factor RA (this random factor can be updated at any time according to the specific situation) and the device fingerprint of each edge computing gateway and converted into binary. The generated random factor RA binary device fingerprint is preset in each device.
[0124] like Figure 3 As shown, the encryption process includes:
[0125] Generate the working key (SK): First, use the snowflake algorithm to generate the edge computing gateway random factor RB, and then use RB to perform an XOR operation with the cloud random factor RA to obtain the process parameter RC. Use the public key as the key, and use the SM4 symmetric encryption algorithm on the process parameter RC to obtain the process parameter RD. Take the first eight bits of the process parameter RD as the process parameter F1, and the last eight bits of RD as the process parameter F2. Use F1 as the key (if the number of bits is not enough, add 0 to the high bit), and use the SM4 symmetric encryption algorithm to encrypt the device fingerprint DF to obtain the process parameter FA. Finally, use the process parameter FA and the process parameter F2 to obtain the XOR result, and then use the process parameter RD to obtain the result of the XOR operation as the working key.
[0126] Generate random factor ciphertext RB1: Use the public key as the key and use the SM2 asymmetric encryption algorithm to encrypt the random factor RB to obtain the ciphertext data RB1.
[0127] Data encryption and digest calculation: SM3 digest algorithm is applied to the device data to obtain the digest information M1;
[0128] The generated working key SK is used as the key and the SM4 symmetric algorithm is adopted to encrypt the data collected by the device.
[0129] Finally, create the data structure for transferring the data:
[0130] (1) Filling data field 1: random factor ciphertext RB1;
[0131] (2) Fill in data field 2: device fingerprint ciphertext PP;
[0132] (3) Fill in data field three: summary information M1;
[0133] (4) Filling data field 4: ciphertext data;
[0134] Further, the data element definition explains:
[0135]
[0136] Further, the transport protocol structure is defined as follows:
[0137] Data domain 1: random factor ciphertext RB1, the random number generated by the data acquisition device is encrypted using the SM4 encryption algorithm.
[0138] Data domain 2: Device fingerprint ciphertext PP, data collection device fingerprint is encrypted and generated by SM4 encryption algorithm.
[0139] Data field three: summary information M1, information summary data generated by the original data through the SM3 hash algorithm.
[0140] Data domain four: ciphertext data, the original data is generated by encrypting the working key.
[0141] like Figure 4 As shown, the decryption process includes:
[0142] Parse the data protocol structure and obtain the values of each data field, including:
[0143] (1) Parsing data domain 1: random factor ciphertext RB1;
[0144] (2) Parsing data domain 2: device fingerprint ciphertext PP;
[0145] (3) Parsing data field three: summary information M1;
[0146] (4) Parsing data domain 4: ciphertext data;
[0147] Calculate the random factor RB: Use the private key as the key and use the SM2 decryption algorithm to decrypt to obtain the random factor RB.
[0148] Calculate the device fingerprint DF: Use the SM2 decryption algorithm to decrypt the device fingerprint ciphertext PP to obtain the device fingerprint plaintext DF, where the key is the private key.
[0149] Calculate the working key SK: Use the random factor RA and the edge computing gateway random factor RB to perform an XOR operation to obtain the process parameter RC. Use the public key as the key and use the SM4 symmetric encryption algorithm to encrypt the process parameter RC to obtain the process parameter RD. Take the first eight bits of the process parameter RD as the process parameter F1, and the last eight bits of RD as the process parameter F2. Use F1 as the key (if the number of bits is not enough, add 0 to the high bit), and use the SM4 symmetric encryption algorithm to encrypt the device fingerprint DF to obtain the process parameter FA. Finally, use the process parameter FA and the process parameter F2 to obtain the XOR result, and then use the process parameter RD to obtain the working key.
[0150] Decrypt ciphertext data: Use the working key to perform the SM4 decryption algorithm on the ciphertext data to obtain the plaintext device data.
[0151] like Figure 5 As shown, the verification process includes:
[0152] Calculate message digest M2: Use the SM3 digest algorithm on the plaintext device data to calculate the message digest M2.
[0153] Compare the two summary information: compare the summary information M1 transmitted by the edge computing gateway to the cloud with the summary information M2 calculated in the previous step to get the result. If M1 and M2 are the same, the data is available; if M1 and M2 are different, the data is unavailable and is directly discarded.
[0154] In order to prove the creativity and technical value of the technical solution of the present invention, this section provides application examples of the claimed technical solution on specific products or related technologies.
[0155] The embodiments of the present invention can be applied to the instruction transmission of industrial production equipment, such as PLC, DCS and other equipment. In the scenario of simulating the information transmission and reception of industrial equipment, by comparing with the traditional encryption method, the public key of this scheme is hijacked and the simulated data transmission data is rejected, which does not cause the erroneous operation of industrial equipment, and 100% guarantees the equipment communication and normal industrial production. However, after the public key of traditional encryption is hijacked and attacked by data, the equipment will receive wrong instructions, posing a threat to industrial production.
[0156] Another object of the present invention is to provide a data security transmission system based on industrial equipment data collection.
[0157] The cloud includes an initialization module, a decryption module and a verification module. The initialization module is used to create a public key and a private key and generate a random factor RA; the decryption module is used to decrypt the decrypted data to obtain the original data; the verification module is used to compare the encrypted summary information M1 with the decrypted summary information M2 to verify the correctness of the data.
[0158] Edge computing gateway,the encryption module is used to encrypt device data using encryption algorithms and generate,transmission protocols.
[0159] The cloud initialization module creates public and private keys for encryption and decryption of some data when communicating with the edge computing gateway. At the same time, it generates a random string and converts it into binary data defined as the cloud random factor RA (this random factor can be updated at any time according to the specific situation), and converts the device fingerprint of each edge computing gateway into binary, and presets the generated public key, random factor RA and binary device fingerprint in each data acquisition device (edge computing gateway).
[0160] The encryption module of the edge computing gateway generates the edge computing gateway random factor RB by using the snowflake algorithm, and then uses the public key, random factor RA and device fingerprint to encrypt the device data through the encryption algorithm and generate a transmission protocol.
[0161] The cloud receives the transmission protocol, and the decryption module decrypts the encrypted device data through the public key pair, random factor RA and device fingerprint through the decryption algorithm to obtain the original data. The verification module verifies the correctness of the data by comparing the encrypted summary information M1 with the decrypted summary information M2.
[0162] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0163] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A data security transmission method based on industrial equipment data collection, characterized in that: The national secret algorithm and device fingerprint information are used to ensure the security of data transmission in the IoT environment, the data security is guaranteed through the calculation of random factors, and the device fingerprint is used to prevent malicious attacks after the public key is hijacked; The data security transmission method based on industrial equipment data collection includes: Initialize the cloud-preset public and private key pairs and the cloud-preset random factor RA; the edge computing gateway sends data to the cloud, uses dynamic keys, SM2, SM3, SM4 encryption algorithms, and high entropy random numbers generated by the snowflake algorithm to calculate the working key, and then encrypts the original data to obtain ciphertext data; the cloud receives the ciphertext data sent by the edge computing gateway, calculates the working key, and then decrypts the ciphertext data to obtain the original data; and finally performs verification; The initialization includes: The cloud creates a public key and a private key for encryption and decryption of some data when communicating with the edge computing gateway. At the same time, a binary string is randomly generated as the cloud random factor RA; the device fingerprint data of the edge gateway is converted into binary form; the generated random factor RA and binary device fingerprint are preset in the edge gateway device; The edge computing gateway sends data to the cloud including: Prepare the original data to be sent; use the snowflake algorithm to generate the edge computing gateway random factor RB, use the public key as the key to encrypt the edge computing gateway random factor RB using the SM2 encryption algorithm to obtain the random factor ciphertext RB1; The cloud random factor RA plus the edge computing gateway random factor RB plus the device fingerprint and the public key obtain the working key SK; Use the public key as the key to encrypt the device fingerprint of the edge computing gateway using the SM2 encryption algorithm to obtain the device fingerprint ciphertext PP; The original data is used for entropy and the SM3 encryption algorithm is used to obtain the summary information M1; Using the working key SK as a key, encrypting the original data using the SM4 encryption algorithm to obtain ciphertext data; and creating a data structure for transmission data; The generation process of the working key SK includes: The result RC is obtained by performing an XOR operation on the cloud random factor RA and the edge computing gateway random factor RB, and the result is obtained by encrypting RC using the SM4 encryption algorithm using the public key as the key and converting it into binary data RD, taking the first eight bits of RD as F1 and the last eight bits of RD as F2; Use the SM4 encryption algorithm to encrypt the device fingerprint of the current device, where the key is F1, obtain the ciphertext data and convert it into binary data FA; The result obtained by performing an XOR operation on the binary data RD and FA is then XORed with F2 to obtain the working key SK. If the number of bits in F2 is insufficient, 0 is added to the high bit. The data structure of the transmission data includes: Filling data field 1: random factor ciphertext RB1; Fill in data field 2: device fingerprint ciphertext PP; Fill in data field three: summary information M1; Fill data field four: ciphertext data; The cloud receiving the data sent by the edge computing gateway includes: Receive the ciphertext data; add the random factor ciphertext RB1 to the private key and use the SM2 asymmetric algorithm to decrypt to obtain the edge computing gateway random factor RB; The fingerprint ciphertext PP plus the private key is decrypted using the SM2 asymmetric algorithm to obtain the device fingerprint DF; The cloud random factor RA plus the edge computing gateway random factor RB plus the device fingerprint and private key obtain the working key SK; The working key SK is used as the key, and the SM4 algorithm is used to decrypt the ciphertext data to obtain the original data; The verification process includes: The cloud uses the SM3 digest algorithm to calculate the decrypted original data to obtain the summary information M2; Compare it with the summary information M1 transmitted to the cloud by the edge computing gateway. If M1 and M2 are the same, the data is available; if M1 and M2 are different, the data is unavailable and is directly discarded.
2. The data security transmission method based on industrial equipment data collection as claimed in claim 1 is characterized in that: The receiving of the ciphertext data is performed by parsing the data structure to obtain the value of each data field, including: Parsing data domain 1: random factor ciphertext RB1; Parsing data domain 2: device fingerprint ciphertext PP; Parsing data domain three: summary information M1; Parsing data domain four: ciphertext data.
3. A data security transmission system based on industrial equipment data collection using the data security transmission method based on industrial equipment data collection according to any one of claims 1-2, characterized in that: include: The cloud includes an initialization module, a decryption module, and a verification module. The initialization module is used to create a public key and a private key, and generate a random factor RA; The decryption module is used to decrypt the decrypted data to obtain the original data; the verification module is used to compare the encrypted summary information M1 with the decrypted summary information M2 to verify the correctness of the data; Edge computing gateway,the encryption module is used to encrypt device data using encryption algorithms and generate,transmission protocols.
4. The data security transmission system according to claim 3, characterized in that: The cloud initialization module creates a public key and a private key for encryption and decryption of part of the data when communicating with the edge computing gateway, and generates a random string and converts it into binary data defined as the cloud random factor RA, and converts the device fingerprint of each edge computing gateway into binary, and presets the generated public key, random factor RA and binary device fingerprint in each data collection device; The encryption module of the edge computing gateway generates the edge computing gateway random factor RB by using the snowflake algorithm, and then uses the public key, random factor RA and device fingerprint to encrypt the device data through the encryption algorithm and generate a transmission protocol; The cloud receives the transmission protocol, and the decryption module decrypts the encrypted device data through the public key pair, random factor RA and device fingerprint through the decryption algorithm to obtain the original data. The verification module verifies the correctness of the data by comparing the encrypted summary information M1 with the decrypted summary information M2.
Citation Information
Patent Citations
Network data secure transmission method
CN106506470A
Method and system for realizing industrial information secure transmission based on secure transmission protocol
CN115242392A
