A quantum key-based encryption method for IoT terminals
By selecting the transmission method based on the key pool of the relay node, the problem of low transmission efficiency of multiple relay nodes in the Internet of Things terminal authentication is solved, the data transmission speed and security are improved, and the key and ciphertext are ensured. Efficient delivery.
Patent Information
- Application Number
- CN202411253908.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-09-09
AI Technical Summary
When the IoT terminal is far from the receiver, transmitting identity information and encrypted quantum keys through multiple relay nodes may affect transmission efficiency, increasing latency and computing burden.
Calculate the target coefficient based on the key pool key quantity of the relay node. If the coefficient is greater than the threshold, the target ciphertext and key are transmitted through the trusted relay network; if the coefficient is less than or equal to the threshold, the secret is transmitted only through the trusted relay network. Key, target ciphertext is transmitted through classic channels, avoiding the burden of relay nodes to generate quantum keys.
It improves data transmission speed, ensures the efficiency of passing target ciphertext and quantum keys, prevents potential attacks and data leakage, and effectively prevents malicious access.
Smart Images

Figure CN118764199B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum communication technology. More specifically, the present invention relates to an Internet of Things terminal encryption method based on quantum keys. Background Art
[0002] With the rapid development of the mobile communications industry, the number of IoT terminals is also increasing day by day. At the same time, the security issues of Internet terminals are becoming more and more prominent, and the security protection of biometric features, personal privacy, and corporate trade secrets is crucial. At this time, quantum key distribution technology (QKD) is particularly critical. Quantum key distribution technology uses the principles of quantum mechanics to generate true random keys. These keys are theoretically unbreakable and can therefore provide higher security than traditional encryption methods. This characteristic of quantum keys makes them excellent in protecting sensitive data and helps to solve various security challenges faced in IoT environments. The Chinese patent application document with publication number CN112804059A discloses an IoT communication system based on quantum technology. The patent improves the security of IoT data transmission by setting up a U-key and storing a key generated by a quantum random number generator in it. When the IoT terminal interacts with the cloud platform, it encrypts data through the key in the U-key, and the cloud platform also pre-stores the same key for decryption.
[0003] Furthermore, in order to increase the transmission distance of the key in quantum communication, the existing technology divides the QKD circuit between the sender and the receiver into multiple small segments through a QKD network based on a trusted relay (i.e., a trusted relay network). A trusted relay connection is used between two adjacent nodes, and the key distribution between adjacent nodes is used to generate a quantum key. Then, the quantum key is combined with the one-time pad technology to encrypt and decrypt segment by segment, so that the sender and the receiver share a pair of quantum keys. When verifying the identity of the IoT terminal, the identity information of the IoT terminal and the quantum key used to encrypt it need to be transmitted to the receiver through a trusted relay network. When the IoT terminal is far away from the receiver and a trusted relay network is required to increase the transmission distance, each relay node needs to encrypt the identity information and the quantum key used to encrypt it separately through the quantum key to ensure the security of the communication. However, each relay node may introduce delays and additional computational burdens, which may reduce the overall transmission rate. Therefore, transmitting the identity information and the quantum key used to encrypt it through multiple relay nodes may affect the transmission efficiency. Summary of the invention
[0004] In order to solve the above-mentioned technical problem that the transmission of identity information through multiple relay nodes and the quantum key used to encrypt it may affect the transmission efficiency, the present invention provides an Internet of Things terminal encryption method based on quantum key.
[0005] A quantum key-based encryption method for an Internet of Things terminal comprises: obtaining a first identity tag of an Internet of Things terminal, using a quantum key stored in the Internet of Things terminal as a target key, encrypting the first identity tag with the target key to obtain a target ciphertext; encrypting the first identity tag with the target key according to the key amount of a key pool corresponding to each relay node in a trusted relay network and the sum of the data amount of the target key and the target ciphertext; m Calculate target coefficient φ : ,in M i For the i The key amount of the key pool of the relay nodes. The first relay node is the relay node adjacent to the IoT terminal. The key amount of its key pool is M 1, n is the number of relay nodes, exp() is an exponential function with the real number e as the base; in response to the target coefficient being greater than a target threshold of a preset size, the target ciphertext and the target key are transmitted to the receiving terminal through a trusted relay network; in response to the target coefficient being less than or equal to the target threshold, the target key is transmitted to the receiving terminal through the trusted relay network, and the target ciphertext is transmitted to the receiving terminal through a classical channel; in response to the receiving terminal receiving the target ciphertext and the target key, the target ciphertext is decrypted by the target key to obtain a first identity tag; a second identity tag is obtained according to the stored data of the receiving terminal; in response to the first identity tag being equal to the second identity tag, it is determined that the identity authentication of the Internet of Things terminal is successful, and the plaintext data obtained by the Internet of Things terminal is encrypted by quantum key distribution technology and transmitted to the receiving terminal.
[0006] The beneficial effects of the present invention are:
[0007] When the present invention authenticates the identity of the IoT terminal, the target ciphertext containing the identity information of the IoT terminal and the transmission method of the quantum key (target key) used to decrypt the target ciphertext are selected through the key amount of the key pool of each relay node. When the key amount stored in the key pool of the relay node is relatively large and does not affect the transmission efficiency of the target ciphertext and the quantum key, the target ciphertext and the quantum key are both transmitted through a trusted relay network containing multiple relay nodes; and when the key amount stored in the key pool of the relay node is relatively small, the quantum keys are all transmitted through the trusted relay network, and the target ciphertext is transmitted through the classical channel, so as to avoid the relay nodes in the trusted relay network from needing to generate quantum keys and affecting the transmission efficiency. Based on this, the present invention selects the transmission method of the ciphertext according to the key amount stored in the key pool of each relay node, thereby improving the data transmission speed of the entire network.
[0008] Preferably, obtaining the first identity tag of the Internet of Things terminal includes: serially combining the user name of the Internet of Things terminal with the target key to obtain a first character string; encrypting the first character string through a hash algorithm to obtain a first hash value, and using the first hash value as the first identity tag.
[0009] The beneficial effect is that the present invention combines the user name of the IoT terminal with the quantum key and performs hash encryption to obtain the hash value as the identity tag of the IoT terminal. Based on this, the randomness of the quantum key and the irreversibility of the hash algorithm make the identity tag difficult to crack, ensuring the privacy of the user name and quantum key, thereby effectively preventing potential attacks and data leakage.
[0010] Preferably, obtaining the second identity tag based on the stored data of the receiving terminal includes: serially combining the user name stored in the receiving terminal with the target key to obtain a second character string; encrypting the second character string through a hash algorithm to obtain a second hash value, and using the second hash value as the second identity tag.
[0011] Preferably, comparing the first identity tag and the second identity tag includes: comparing the first Hash value and the second Hash value, and in response to the first Hash value and the second Hash value being the same, determining that the first identity tag is equal to the second identity tag; and in response to the first Hash value and the second Hash value being different, determining that the first identity tag is not equal to the second identity tag.
[0012] Preferably, transmitting the target key to the receiving terminal through a trusted relay network includes: using the quantum key generated by the relay node as the relay key, in response to a relay node receiving the target key, encrypting the target key by the relay key of the relay node to obtain a first ciphertext; in response to another relay node receiving the first ciphertext, decrypting the first ciphertext by the relay key corresponding to the relay node that sends the second ciphertext to the other relay node to obtain the target key, and encrypting the target key by another relay key to obtain an updated first ciphertext; in response to the receiving terminal receiving the first ciphertext, decrypting the first ciphertext by the relay key corresponding to the relay node that sends the first ciphertext to the receiving terminal to obtain the target key.
[0013] The beneficial effect is that when each relay node transmits the relay ciphertext and relay key to the next node, the decrypted target key is encrypted by a new quantum key (relay key), thus avoiding the problem of quality degradation of the quantum key (including the relay key) during long-distance transmission.
[0014] Preferably, transmitting the target ciphertext to the receiving terminal through a trusted relay network includes: in response to a relay node receiving the target ciphertext, encrypting the target ciphertext by using the relay key of the node to obtain a second ciphertext; in response to another relay node receiving the second ciphertext, decrypting the second ciphertext by using the relay key corresponding to the relay node that sends the second ciphertext to the other relay node to obtain the target ciphertext, and encrypting the target ciphertext by using another relay key to obtain an updated second ciphertext; in response to the receiving terminal receiving the second ciphertext, decrypting the second ciphertext by using the relay key corresponding to the relay node that sends the second ciphertext to the receiving terminal to obtain the target ciphertext.
[0015] The beneficial effect is that when each relay node transmits the relay ciphertext and relay key to the next node, the decrypted target ciphertext is encrypted by a new quantum key (relay key), thus avoiding the problem of quality degradation of the quantum key (including the relay key) during long-distance transmission.
[0016] Preferably, the encrypting the plaintext data obtained by the Internet of Things terminal through the quantum key distribution technology and then transmitting it to the receiving terminal includes: using the quantum key produced and / or stored by the Internet of Things terminal as the transmission key, encrypting the plaintext data through the transmission key to obtain a third ciphertext; in response to the receiving terminal receiving the third ciphertext and the transmission key through the trusted relay network, decrypting the third ciphertext through the transmission key to obtain the plaintext data.
[0017] Preferably, in response to the first identity tag being not equal to the second identity tag, it is determined that the identity authentication of the Internet of Things terminal has failed; the first identity tag and the second identity tag are re-obtained and identity authentication is performed based on the re-obtained first identity tag and the second identity tag; in response to the total number of identity authentication failures of the Internet of Things terminal being greater than a preset number threshold, data transmission between the Internet of Things terminal and the receiving terminal is rejected.
[0018] The beneficial effects are: the present invention limits the number of authentication failures, effectively prevents malicious attacks or unauthorized access, and ensures the security of data transmission.
[0019] The beneficial effects of the present invention are:
[0020] In the present invention, different transmission modes are selected according to the amount of keys in the key pool of the relay node, thereby effectively balancing the transmission requirements of the quantum key and the target ciphertext. When the amount of keys in the key pool is large, both the key and the ciphertext are transmitted through the quantum relay network; when the amount of keys is small, the quantum key is transmitted through the quantum network, and the target ciphertext is transmitted through the classical channel. This flexible transmission strategy effectively reduces the burden of the relay node to generate quantum keys and optimizes the transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0022] Figure 1 is a flowchart schematically illustrating a quantum key-based encryption method for an Internet of Things terminal according to an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of transmitting a target ciphertext to a receiving terminal through a trusted relay network according to an embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of transmitting a target key to a receiving terminal through a trusted relay network according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0026] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0027] Figure 1 The present invention is a flowchart schematically showing a quantum key-based encryption method for an Internet of Things terminal according to an embodiment of the present invention.
[0028] like Figure 1 As shown, a quantum key-based encryption method for an Internet of Things terminal includes steps S1 to S7.
[0029] Step S1: Obtain a first identity tag of an Internet of Things terminal, use the quantum key stored in the Internet of Things terminal as a target key, and encrypt the first identity tag with the target key to obtain a target ciphertext.
[0030] The first identity tag of the IoT terminal is a unique identifier used when the IoT terminal performs identity authentication in the network. In one embodiment, the first identity tag of the IoT terminal is the ID of its corresponding device.
[0031] In another embodiment, obtaining the first identity tag of the IoT terminal includes: combining the user name of the IoT terminal with the target key in series to obtain a first string; encrypting the first string through a hash algorithm to obtain a first hash value, and using the first hash value as the first identity tag. It should be noted that in this embodiment, by combining the user name of the IoT terminal with the quantum key (i.e., the target key) and then encrypting it through a hash algorithm to obtain the identity tag (i.e., the first identity tag) of the IoT terminal, the security and privacy of the identity tag of the IoT terminal are improved. The reason is that due to the randomness and unpredictability of the quantum key, it is difficult for an attacker to obtain the first string before the hash algorithm encryption through an exhaustive method; furthermore, the hash algorithm converts the input data (i.e., the first string) into a first hash value of a fixed length. This irreversible process makes it impossible for an attacker to infer the specific content of the user name and the target key even if he obtains the first identity tag.
[0032] In one embodiment, the IoT terminal is a data acquisition device configured with a QKD device and a wireless communication device. The data acquisition device may be: a camera, a meteorological instrument, a sensor, an access control system, etc.
[0033] Step S2: Calculate the target coefficient according to the key amount of the key pool corresponding to each relay node in the trusted relay network and the sum of the data amount of the target key and the target ciphertext.
[0034] The formula for calculating the target coefficient is: , φ is the target coefficient, M i For the i The key amount of the key pool of relay nodes, m is the sum of the target key and the target ciphertext data. The first relay node is adjacent to the IoT terminal relay node, and the key amount of its key pool is M 1, n is the number of relay nodes, and exp() is an exponential function with the real number e as the base.
[0035] It should be noted that m The sum of the target key and the target ciphertext data is recorded as the target data volume. Represents the average value of the key pool of all relay nodes in the trusted relay network. Among all nodes including all relay nodes, IoT terminals and receiving terminals, quantum keys will be exchanged between two adjacent nodes, and the storage capacity of the corresponding key pool of the two adjacent nodes will affect the transmission efficiency between the two nodes. Because if the key pool is small, the corresponding node needs to frequently generate new keys or replace existing keys, which will cause delays in the transmission process. And because the quantum key (relay key) generated by the relay node is used to encrypt the quantum key (target key) or / and the first identity tag generated by the IoT terminal, the key amount of the quantum key that the relay node needs to provide is proportional to the data amount of the quantum key or / and the first identity tag generated by the IoT terminal (usually equal in size). Based on this, the average value of the key amount of the key pool of all relay nodes in the trusted relay network (i.e. ) and target data volume m The larger the ratio of , the larger the target coefficient is, and the greater the efficiency of quantum key transmission between relay nodes is. Because the first relay node is a bridge between the terminal device and the rest of the network, any delay or efficiency problem of the node will directly affect the data flow from the terminal to other nodes. If the first relay node has low processing efficiency, it will cause delays in the encryption and decryption process, thereby affecting the data transmission speed of the entire network. Therefore, the present invention uses the key amount of the key pool of the first relay node to The correction coefficient is , and the key amount M The larger the 1, the larger the coefficient used for correction The larger the value, the larger the target coefficient. φ , the greater the key transmission efficiency in the relay trusted network.
[0036] Step S3: In response to the target coefficient being greater than a target threshold of a preset size, the target ciphertext and the target key are transmitted to the receiving terminal via the trusted relay network.
[0037] Among them, due to the target coefficient φ The larger the value is, the greater the key transmission efficiency in the relay trusted network is. Therefore, when the target coefficient is greater than the target threshold of the preset size, the target ciphertext and target key can be transmitted through the trusted relay network.
[0038] In one embodiment, the empirical value of the target threshold is 1.
[0039] Step S4: In response to the target coefficient being less than or equal to the target threshold, the target key is transmitted to the receiving terminal through the trusted relay network, and the target ciphertext is transmitted to the receiving terminal through the classical channel.
[0040] Among them, due to the target coefficient φThe smaller it is, the lower the key transmission efficiency in the relay trusted network. Therefore, when the target coefficient is less than the target threshold of the preset size, the target key is transmitted through the trusted relay network, while the target ciphertext is transmitted through the classical channel.
[0041] In one embodiment, transmitting a target ciphertext to a receiving terminal via a trusted relay network includes: in response to a relay node receiving the target ciphertext, encrypting the target ciphertext using the relay key of the node to obtain a second ciphertext; in response to another relay node receiving the second ciphertext, decrypting the second ciphertext using the relay key corresponding to the relay node that sends the second ciphertext to the other relay node to obtain the target ciphertext, and encrypting the target ciphertext using another relay key to obtain an updated second ciphertext; in response to the receiving terminal receiving the second ciphertext, decrypting the second ciphertext using the relay key corresponding to the relay node that sends the second ciphertext to the receiving terminal to obtain the target ciphertext.
[0042] Figure 2 It is a schematic diagram of transmitting a target ciphertext to a receiving terminal through a trusted relay network according to an embodiment of the present invention.
[0043] like Figure 2 As shown, h 1 is the target ciphertext, A is the IoT terminal, B is the receiving terminal, k 1.…… k n-1 , k n All are relay keys. h 2.…… h n , h n+1 All are relay ciphertexts. In this embodiment, all ciphertexts (including all relay ciphertexts and target ciphertexts) are transmitted between all nodes (including A, B and all relay nodes) through classical channels, and all keys (including all relay keys) are transmitted between all nodes through quantum channels. j Relay Node j , j is less than n Any positive integer of .
[0044] Among them, A will target ciphertext h 1 is transmitted to relay node 1, and relay node 1 negotiates the relay key with relay node 2 k 1, and the target ciphertext h 1 via relay key k 1 Encrypt to get relay ciphertext h 2. Relay node 2 receives the relay ciphertext h 2. After that, pass the relay key k 1Decrypt it and then pass it through the relay keyk 2 Encrypt it to get the relay ciphertext h 3. Update the relay ciphertext and repeat the process until B receives the relay ciphertext. h n+1 , then B passes the relay key k n Relay ciphertext h n+1 Decrypt to get the target ciphertext h 1.
[0045] Figure 3 is a schematic diagram of transmitting a target key to a receiving terminal through a trusted relay network according to an embodiment of the present invention.
[0046] like Figure 3 As shown, K 1 is the target key, A is the IoT terminal, B is the receiving terminal, K 2.…… K n , K n+1 All are relay keys. H 1.…… H n-1 , H n All are relay ciphertexts. In this embodiment, all ciphertexts (including all relay ciphertexts) are transmitted between all nodes (including A, B and all relay nodes) through classical channels, and all keys (including all relay keys and target keys) are transmitted between all nodes through quantum channels. q Relay Node q , q is less than n Any positive integer of .
[0047] Among them, A will target key K 1 is transmitted to relay node 1, and relay node 1 negotiates the relay key with relay node 2 K 2, and the target key K 1 via relay key K 2 Encrypt to get relay ciphertext H 1. Relay node 2 receives the relay ciphertext H 1 after passing the relay key K 2 Decrypt it and then pass it through the relay key K 3 Encrypt it to get the relay ciphertext H 2. Update the relay ciphertext and repeat the process until B receives the relay ciphertext. H n , then B passes the relay key K n+1 Relay ciphertextH n Decrypt to get the target key K 1.
[0048] Step S5: In response to the receiving terminal receiving the target ciphertext and the target key, the target ciphertext is decrypted using the target key to obtain a first identity tag.
[0049] Among them, after the receiving terminal obtains the target ciphertext and the target key, since the target ciphertext is obtained by encrypting the first identity tag with the target key, the first identity tag can be obtained by decrypting the target ciphertext with the target key through the QKD device.
[0050] Step S6: Obtain a second identity tag according to the storage data of the receiving terminal.
[0051] In one embodiment, obtaining a second identity tag based on the stored data of the receiving terminal includes: serially combining the user name stored in the receiving terminal with the target key to obtain a second character string; encrypting the second character string through a hash algorithm to obtain a second hash value, and using the second hash value as the second identity tag.
[0052] Furthermore, the present invention also includes comparing the first identity tag and the second identity tag: comparing the first hash value and the second hash value, and in response to the first hash value and the second hash value being the same, determining that the first identity tag is equal to the second identity tag; in response to the first hash value and the second hash value being different, determining that the first identity tag is not equal to the second identity tag.
[0053] Step S7: In response to the first identity tag being equal to the second identity tag, determining that the identity authentication of the IoT terminal is successful and encrypting the plaintext data obtained by the IoT terminal through quantum key distribution technology and transmitting it to the receiving terminal.
[0054] Among them, the method of encrypting the plaintext data obtained by the Internet of Things terminal through the quantum key distribution technology and then transmitting it to the receiving terminal includes: using the quantum key produced and / or stored by the Internet of Things terminal as the transmission key, encrypting the plaintext data through the transmission key to obtain a third ciphertext; in response to the receiving terminal receiving the third ciphertext and the transmission key through the trusted relay network, decrypting the third ciphertext through the transmission key to obtain the plaintext data.
[0055] In one embodiment, in response to the first identity tag being not equal to the second identity tag, it is determined that the identity authentication of the Internet of Things terminal has failed; the first identity tag and the second identity tag are regained and identity authentication is performed based on the regained first identity tag and the second identity tag; in response to the total number of identity authentication failures of the Internet of Things terminal being greater than a preset number threshold, data transmission between the Internet of Things terminal and the receiving terminal is rejected.
[0056] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0057] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
Claims
1. An Internet of Things terminal encryption method based on quantum key, It is characterized in that include: Obtain a first identity tag of the Internet of Things terminal, use the quantum key stored in the Internet of Things terminal as a target key, and encrypt the first identity tag with the target key to obtain a target ciphertext; According to the key amount of the key pool corresponding to each relay node in the trusted relay network and the sum of the target key and the target ciphertext data amount m Calculate target coefficient : ,in M i For the i The key amount of the key pool of the relay nodes. The first relay node is the relay node adjacent to the IoT terminal. The key amount of its key pool is M 1 , n is the number of relay nodes, exp() is an exponential function with the real number e as the base; in response to the target coefficient being greater than a target threshold of a preset size, the target ciphertext and the target key are transmitted to the receiving terminal through the trusted relay network, wherein transmitting the target key to the receiving terminal through the trusted relay network includes: using the quantum key generated by the relay node as the relay key, in response to a relay node receiving the target key, encrypting the target key by the relay key of the relay node to obtain a first ciphertext; in response to another relay node receiving the first ciphertext, decrypting the first ciphertext by the relay key corresponding to the relay node that sends the second ciphertext to the other relay node to obtain the target key, and encrypting the target key by the other relay key to obtain an updated first ciphertext; in response to the receiving terminal receiving the first ciphertext, decrypting the first ciphertext by the relay key corresponding to the relay node that sends the first ciphertext to the receiving terminal to obtain the target key, and transmitting the target ciphertext to the receiving terminal through the trusted relay network includes: in response to a relay node receiving the target ciphertext, transmitting the target ciphertext by the relay key of the node The method comprises the following steps: encrypting the second ciphertext with a relay key to obtain a second ciphertext; in response to another relay node receiving the second ciphertext, decrypting the second ciphertext by using the relay key corresponding to the relay node that sends the second ciphertext to the other relay node to obtain a target ciphertext, and encrypting the target ciphertext by using another relay key to obtain an updated second ciphertext; in response to the receiving terminal receiving the second ciphertext, decrypting the second ciphertext by using the relay key corresponding to the relay node that sends the second ciphertext to the receiving terminal to obtain the target ciphertext; in response to the target coefficient being less than or equal to the target threshold, transmitting the target key to the receiving terminal through a trusted relay network, and transmitting the target ciphertext to the receiving terminal through a classical channel; in response to the receiving terminal receiving the target ciphertext and the target key, decrypting the target ciphertext by using the target key to obtain a first identity tag; obtaining a second identity tag according to the storage data of the receiving terminal; in response to the first identity tag being equal to the second identity tag, determining that the identity authentication of the Internet of Things terminal is successful, and encrypting the plaintext data obtained by the Internet of Things terminal through quantum key distribution technology and transmitting it to the receiving terminal.
2. According to claim 1, a quantum key-based Internet of Things terminal encryption method, It is characterized in that Obtaining the first identity tag of the IoT terminal includes: Combining the user name of the Internet of Things terminal with the target key in series to obtain a first character string; The first character string is encrypted by a hash algorithm to obtain a first Hash value, and the first Hash value is used as the first identity tag.
3. According to claim 2, a quantum key-based Internet of Things terminal encryption method, It is characterized in that The obtaining of the second identity tag according to the stored data of the receiving terminal includes: Serially combining the user name stored in the receiving terminal and the target key to obtain a second character string; The second character string is encrypted by a hash algorithm to obtain a second Hash value, and the second Hash value is used as the second identity tag.
4. According to claim 3, a quantum key-based Internet of Things terminal encryption method, It is characterized in that Comparing the first identity tag and the second identity tag includes: The first Hash value and the second Hash value are compared, and in response to the first Hash value being the same as the second Hash value, the first identity tag is determined to be equal to the second identity tag; in response to the first Hash value being different from the second Hash value, the first identity tag is determined to be not equal to the second identity tag.
5. According to claim 1, a quantum key-based Internet of Things terminal encryption method, It is characterized in that The encrypting the plaintext data obtained by the Internet of Things terminal through the quantum key distribution technology and transmitting it to the receiving terminal comprises: Using the quantum key generated or / and stored by the IoT terminal as a transmission key, the plaintext data is encrypted by the transmission key to obtain a third ciphertext; In response to the receiving terminal receiving the third ciphertext and the transmission key through the trusted relay network, the third ciphertext is decrypted by the transmission key to obtain the plaintext data.
6. According to claim 1, a quantum key-based Internet of Things terminal encryption method, It is characterized in that In response to the first identity tag being not equal to the second identity tag, determining that the identity authentication of the Internet of Things terminal has failed; re-obtaining the first identity tag and the second identity tag and performing identity authentication based on the re-obtained first identity tag and the second identity tag; and in response to the total number of identity authentication failures of the Internet of Things terminal being greater than a preset number threshold, refusing data transmission between the Internet of Things terminal and the receiving terminal.
