Quantum entanglement-based encryption method, device, equipment and storage medium
Patent Information
- Application Number
- CN202310678869.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-08
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2043-06-08
AI Technical Summary
虽然可以识别量子被截获的行为,但导致了量子密码生成效率较低的问题
[0019]本申请提供了一种基于量子纠缠的加密方法、装置、设备及存储介质,应用于量子加密的场景中。第一加密设备通过量子接口接收量子对生成器发送的多个第一量子,并从多个第一量子中选择至少一个第一量子进行量子测量,确定第一目标秘钥。然后第一加密设备将至少一个第一量子对应的标识区段、用于指示第一目标秘钥为基于第一加密设备的量子测量结果确定的第一指示信息发送至第二加密设备,从而使得第二加密设备基于这些信息,确定第一目标秘钥。通过上述方法,第一加密设备和第二加密设备在约定秘钥时,无需直接传输秘钥信息,而是通过传输至少一个第一量子对应的标识区段、用于指示第一目标秘钥为基于第一加密设备的量子测量结果确定的第一指示信息,使得对方设备基于这些信息对量子进行量子测量,确定对应的秘钥。从而可以提高量子加密技术生成秘钥的效率、以及提高生成的秘钥的安全性。
Smart Images

Figure CN116527256B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an encryption method, apparatus, device and storage medium based on quantum entanglement. Background Technology
[0002] Quantum encryption technology utilizes quantum principles to perform a series of encryption techniques, including key generation, plaintext obfuscation and encryption, ciphertext decryption, ciphertext communication, and anti-eavesdropping. Existing quantum encryption technologies, such as the BB84 protocol, require the transmission of quantum data, which carries the risk of interception. While interception can be detected, it leads to low efficiency in quantum key generation. Existing classical communication encryption technologies require key transmission over classical communication channels. Although the key is protected by various encryption methods, it still faces the possibility of interception and cracking. Therefore, current quantum encryption technologies have low key generation efficiency and low security. Summary of the Invention
[0003] This application provides a quantum entanglement-based encryption method, apparatus, device, and storage medium to improve the efficiency of key generation using quantum encryption technology and enhance the security of the generated keys.
[0004] To achieve the above objectives, this application adopts the following technical solution:
[0005] In a first aspect, a quantum entanglement-based encryption method is provided, applied to a first encryption device. The method includes: the first encryption device receiving multiple first quantum particles sent by a quantum pair generator through a quantum interface, each of the multiple first quantum particles corresponding to a second quantum particle, a first quantum particle and a corresponding second quantum particle forming an entangled quantum pair, the multiple second quantum particles being sent to the second encryption device by the quantum pair generator; the first encryption device selecting at least one first quantum particle from the multiple first quantum particles for quantum measurement to determine a first target key; the first encryption device sending first target information to the second encryption device, so that the second encryption device determines the first target key based on the first target information, the first target information including: an identification segment corresponding to at least one first quantum particle and first indication information, the first indication information being used to indicate that the first target key is determined based on the quantum measurement result of the first encryption device.
[0006] In one possible implementation, the method further includes: a first encryption device receiving second target information sent by a second encryption device, the second target information including: an identifier segment corresponding to at least one second quantum and second indication information, the second indication information being used to indicate that the second target key is determined based on the quantum measurement result of the second encryption device; the second encryption device performing quantum measurement on at least one second quantum to determine the second target key; and the first encryption device, based on the second target information, determining at least one first quantum from a plurality of first quantumes and performing quantum measurement to obtain the second target key.
[0007] In one possible implementation, the first encryption device determines at least one first quantum from a plurality of first quantumes based on the second target information and performs quantum measurement to obtain the second target key, including: the first encryption device determines at least one first quantum corresponding to at least one second quantum from a plurality of first quantumes based on the identifier segment corresponding to at least one second quantum and performs quantum measurement to obtain the measurement result; the first encryption device inverts the measurement result based on the second indication information to obtain the second target key.
[0008] In one possible implementation, the method further includes: the first encryption device storing multiple first quantum bits in a local first quantum memory, and adjusting the quantum storage pointer based on the number of the multiple first quantum bits.
[0009] Secondly, a quantum entanglement-based encryption method is provided, applied to a quantum pair generator. The method includes: the quantum pair generator generating multiple pairs of entangled quantum quanta, each pair of entangled quantum quanta including a first quantum and a second quantum; sending the first quantum of each pair of entangled quantum quanta to a first encryption device via a quantum interface, and sending the second quantum of each pair of entangled quantum quanta to a second encryption device, so that the first encryption device and the second encryption device determine a target key based on the multiple pairs of entangled quantum quanta.
[0010] In one possible implementation, the method further includes: a quantum pair generator triggering a first encryption device to clear the first quantum memory via a quantum interface, and setting the quantum storage pointer to the starting cell of the first quantum memory; and a quantum pair generator triggering a second encryption device to clear the second quantum memory via a quantum interface, and setting the quantum storage pointer to the starting cell of the second quantum memory.
[0011] Thirdly, a quantum entanglement-based encryption device is provided, applied to a first encryption device. This quantum entanglement-based encryption device includes: a receiving unit, a processing unit, and a sending unit. The receiving unit is used by the first encryption device to receive multiple first quantum particles sent by a quantum pair generator via a quantum interface. Each first quantum particle corresponds to a second quantum particle, and a first quantum particle and its corresponding second quantum particle constitute an entangled quantum pair. The multiple second quantum particles are sent to the second encryption device by the quantum pair generator. The processing unit is used by the first encryption device to select at least one first quantum particle from the multiple first quantum particles for quantum measurement to determine a first target key. The sending unit is used by the first encryption device to send first target information to the second encryption device, so that the second encryption device determines the first target key based on the first target information. The first target information includes: an identifier segment corresponding to at least one first quantum particle and first indication information, the first indication information indicating that the first target key is determined based on the quantum measurement results of the first encryption device.
[0012] In one possible implementation, the receiving unit is further configured to have the first encryption device receive second target information sent by the second encryption device. The second target information includes: an identifier segment corresponding to at least one second quantum and second indication information. The second indication information is used to indicate that the second target key is determined based on the quantum measurement result of the second encryption device. The second encryption device performs quantum measurement on at least one second quantum to determine the second target key. The processing unit is further configured to have the first encryption device determine at least one first quantum from a plurality of first quantumes based on the second target information and perform quantum measurement to obtain the second target key.
[0013] In one possible implementation, the processing unit is further configured to: the first encryption device determines at least one first quantum corresponding to at least one second quantum from a plurality of first quantumes based on the identifier segment corresponding to at least one second quantum, and performs quantum measurement to obtain a measurement result; the processing unit is further configured to: the first encryption device inverts the measurement result based on second indication information to obtain a second target key.
[0014] In one possible implementation, the processing unit is further configured to store multiple first quantum bits into a local first quantum memory, and adjust the quantum storage pointer based on the number of the multiple first quantum bits.
[0015] Fourthly, a quantum entanglement-based encryption device is provided, applied to a quantum pair generator. The quantum entanglement-based encryption device includes: a processing unit and a sending unit; the processing unit is used to generate multiple pairs of entangled quantum pairs, each pair including a first quantum and a second quantum; the sending unit is used to send the first quantum of each pair of entangled quantum pairs to a first encryption device via a quantum interface, and to send the second quantum of each pair of entangled quantum pairs to a second encryption device, so that the first encryption device and the second encryption device determine a target key based on the multiple pairs of entangled quantum pairs.
[0016] In one possible implementation, the processing unit is further configured to have the quantum pair generator trigger the first encryption device to clear the first quantum memory through the quantum interface and set the quantum storage pointer to the starting cell of the first quantum memory; the processing unit is further configured to have the quantum pair generator trigger the second encryption device to clear the second quantum memory through the quantum interface and set the quantum storage pointer to the starting cell of the second quantum memory.
[0017] Fifthly, an electronic device includes: a processor and a memory; wherein the memory is used to store one or more programs, the one or more programs including computer-executable instructions, and when the electronic device is running, the processor executes the computer-executable instructions stored in the memory to cause the electronic device to perform a quantum entanglement-based encryption method as described in the first or second aspect.
[0018] In a sixth aspect, a computer-readable storage medium is provided for storing one or more programs, the one or more programs including instructions that, when executed by a computer, cause the computer to perform a quantum entanglement-based encryption method as described in the first or second aspect.
[0019] This application provides a quantum entanglement-based encryption method, apparatus, device, and storage medium for use in quantum encryption scenarios. A first encryption device receives multiple first quantum particles from a quantum pair generator via a quantum interface and selects at least one first quantum particle for quantum measurement to determine a first target key. Then, the first encryption device sends an identification segment corresponding to at least one first quantum particle, along with first indication information indicating that the first target key is determined based on the quantum measurement results of the first encryption device, to a second encryption device. This allows the second encryption device to determine the first target key based on this information. Through this method, when agreeing on a key, the first and second encryption devices do not need to directly transmit key information. Instead, they transmit an identification segment corresponding to at least one first quantum particle and first indication information indicating that the first target key is determined based on the quantum measurement results of the first encryption device. This allows the other device to perform quantum measurements based on this information to determine the corresponding key. This improves the efficiency of key generation in quantum encryption technology and enhances the security of the generated key. Attached Figure Description
[0020] Figure 1 A schematic diagram of a quantum entanglement-based encryption system structure is provided for embodiments of this application;
[0021] Figure 2 A schematic flowchart of a quantum entanglement-based encryption method provided for embodiments of this application. Figure 1 ;
[0022] Figure 3 A schematic diagram of quantum measurement provided for embodiments of this application. Figure 1 ;
[0023] Figure 4 A schematic diagram of quantum measurement provided for embodiments of this application. Figure 2 ;
[0024] Figure 5 A schematic diagram of quantum measurement provided for embodiments of this application. Figure 3 ;
[0025] Figure 6 A schematic flowchart of a quantum entanglement-based encryption method provided for embodiments of this application. Figure 2 ;
[0026] Figure 7 A schematic flowchart of a quantum entanglement-based encryption method provided for embodiments of this application. Figure 3 ;
[0027] Figure 8 A schematic flowchart of a quantum entanglement-based encryption method provided for embodiments of this application. Figure 4 ;
[0028] Figure 9 A schematic flowchart of a quantum entanglement-based encryption method provided for embodiments of this application. Figure 5 ;
[0029] Figure 10 A schematic diagram of a quantum memory provided for an embodiment of this application;
[0030] Figure 11 A schematic flowchart of a quantum entanglement-based encryption method provided for embodiments of this application. Figure 6 ;
[0031] Figure 12 A schematic diagram of an encryption device structure provided for embodiments of this application. Figure 1 ;
[0032] Figure 13 A schematic diagram of an encryption device structure provided for embodiments of this application. Figure 2 ;
[0033] Figure 14 A schematic diagram of an encryption device structure provided for embodiments of this application. Figure 3 ;
[0034] Figure 15 A schematic diagram of a quantum entanglement-based encryption device structure provided for embodiments of this application. Figure 1 ;
[0035] Figure 16 A schematic diagram of a quantum entanglement-based encryption device structure provided for embodiments of this application. Figure 2 ;
[0036] Figure 17 This is a schematic diagram of an electronic device structure provided for an embodiment of this application. Detailed Implementation
[0037] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0038] In the description of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" and "multiple" refer to two or more. The terms "first," "second," etc., do not limit the quantity or order of execution, and "first," "second," etc., do not necessarily imply differences.
[0039] The quantum entanglement-based encryption method provided in this application embodiment can be applied to quantum entanglement-based encryption systems. Figure 1 A schematic diagram of one structure of this quantum entanglement-based encryption system is shown. Figure 1 As shown, the quantum entanglement-based encryption system 20 includes: a first encryption device 21, a second encryption device 22, and a quantum pair generator 23.
[0040] The first encryption device 21 and the second encryption device 22 are respectively connected to the quantum pair generator 23 through a chain interface. The first encryption device 21 is used to receive multiple first quantum signals sent by the quantum pair generator 23 through the quantum interface, select at least one first quantum signal from the multiple first quantum signals for quantum measurement, and determine the first target key; and send the first target information to the second encryption device 22 so that the second encryption device 22 can determine the first target key based on the first target information.
[0041] The quantum pair generator 23 is used to generate multiple pairs of entangled quantum pairs, and sends the first quantum in each pair of entangled quantum pairs to the first encryption device 21 and the second quantum in each pair of entangled quantum pairs to the second encryption device 22 through the quantum interface, so that the first encryption device 21 and the second encryption device 22 determine the target key based on the multiple pairs of entangled quantum pairs.
[0042] The following description, in conjunction with the accompanying drawings, describes an encryption method based on quantum entanglement provided by an embodiment of this application. Figure 2 As shown, the quantum entanglement-based encryption method provided in this application embodiment can be applied to a first encryption device, including S201-S203:
[0043] S201, The first encryption device receives multiple first quantum signals sent by the quantum pair generator through a quantum interface.
[0044] In this system, each of the multiple first quantum units corresponds to a second quantum unit, and a first quantum unit and a corresponding second quantum unit constitute an entangled quantum pair. The multiple second quantum units are sent to the second encryption device by the quantum pair generator.
[0045] Optionally, the quantum pair generator connects to the first encryption device and the second encryption device via a quantum interface to send multiple first quantum particles to the first encryption device and multiple second quantum particles to the second encryption device.
[0046] S202, The first encryption device selects at least one first quantum from a plurality of first quantum particles for quantum measurement to determine the first target key.
[0047] For example, such as Figure 3As shown, the first encryption device can select at least one first quantum from a plurality of first quantumes for quantum measurement, and agrees in advance with the second encryption device to use the same basis (e.g., 10) for measurement, measuring one quantum in each pair of entangled quantumes.
[0048] like Figure 4 As shown, in an entangled quantum state, both quanta undergo wave function collapse, breaking the entanglement. According to quantum entanglement theory, the first and second encryption devices will inevitably obtain a set of opposite polarization results (e.g., the result of the first encryption device is →, and the result of the second encryption device is ↓). Figure 5 As shown, we define → as 0 and ↓ as 1. The result of the first encryption device is 0, and the result of the second encryption device is 1. Through this process, the first encryption device selects at least one first quantum from multiple first quantum units for quantum measurement, and will obtain a key consisting of 0s and 1s (i.e., the first target key, for example: 01000110).
[0049] S203. The first encryption device sends the first target information to the second encryption device so that the second encryption device can determine the first target key based on the first target information.
[0050] The first target information includes: at least one identifier segment corresponding to the first quantum and first indication information, wherein the first indication information is used to indicate that the first target key is determined based on the quantum measurement results of the first encryption device.
[0051] Optionally, based on the property that entangled quantum pairs produce opposite measurement results, the first and second encryption devices both know each other's keys without needing to communicate key information to each other through classical communication channels, thus avoiding key leakage.
[0052] Optionally, the key agreement process can be initiated by either the first or second encryption device. For example, the first encryption device can initiate the process. Assuming the first encryption device stores 100 quantum particles entangled with the second encryption device, and 20 quantum particles have already been used through quantum measurements, the first encryption device selects 8 quantum particles starting from quantum number 21 (quantum particles 21 to 28). The first encryption device measures these quantum particles and obtains the key 00110101. The first encryption device already knows that the measurement results for quantum particles 21 to 28 on the second encryption device's side are 11001010. Therefore, the first encryption device only needs to inform the second encryption device of the identifier segment of the quantum key, i.e., quantum particles 21 to 28, through a classical communication channel, and inform them that the measurement results from the first encryption device will be used as the final key. In this way, the second encryption device knows that the currently used key is the inverse of the measurement results for quantum particles 21 to 28 on its side, i.e., key = ~11001010 = 00110101.
[0053] Understandably, since the key information is not communicated through classical channels, and the entangled quantum pairs are always stored in the first and second encryption devices, the risk of key leakage is avoided.
[0054] In this embodiment, the generation of the quantum key does not require transmitting quantum quanta, thus avoiding the possibility of quantum interception and improving the efficiency of quantum cryptography generation. Furthermore, it eliminates the need to transmit the key over a classical communication channel; only key-independent information such as the identifier segment corresponding to the quantum quanta needs to be transmitted, preventing the key from being intercepted and cracked. By using a quantum pair generator, several entangled quantum pairs are pre-stored between two encryption devices, and the encryption devices transmit key-independent information such as the number of quantum bits, identifier segments, and password sequence numbers through a classical channel, thereby realizing the quantum cryptography generation process.
[0055] In a design, such as Figure 6 As shown in the embodiment of this application, an encryption method based on quantum entanglement may further include S301-S302:
[0056] S301, The first encryption device receives the second target information sent by the second encryption device.
[0057] The second target information includes: an identifier segment corresponding to at least one second quantum and second indication information. The second indication information is used to indicate that the second target key is determined based on the quantum measurement results of the second encryption device. The second encryption device performs quantum measurement on at least one second quantum to determine the second target key.
[0058] Optionally, when the second encryption device initiates the key agreement process, it can select at least one second quantum from multiple second quantum keys for quantum measurement to determine the second target key, and then send the corresponding second target information to the first encryption device.
[0059] S302. Based on the second target information, the first encryption device determines at least one first quantum from multiple first quantumes and performs quantum measurement to obtain the second target key.
[0060] In a design, such as Figure 7 As shown in the embodiment of this application, a quantum entanglement-based encryption method is provided. The method in step S302 above may specifically include steps S401-S402:
[0061] S401. The first encryption device determines at least one first quantum corresponding to at least one second quantum from a plurality of first quantumes based on the identifier segment corresponding to at least one second quantum, performs quantum measurement, and obtains the measurement result.
[0062] For example, suppose the second encryption device performs quantum measurements on quantum numbers 21 to 28 among a plurality of second quantum numbers to determine a second target key (e.g., 11001010). Then the first encryption device can determine quantum numbers 21 to 28 from a plurality of first quantum numbers based on the identifier segment corresponding to at least one second quantum number (i.e., quantum numbers 21 to 28) to perform quantum measurements and obtain measurement results (e.g., 00110101).
[0063] S402. The first encryption device inverts the measurement result based on the second indication information to obtain the second target key.
[0064] Optionally, the second target key indicated by the first encryption device based on the second indication information is determined based on the quantum measurement result of the second encryption device. The second target key can be obtained by inverting the measurement result.
[0065] For example, the first encryption device can invert the measurement result (e.g., 00110101) to obtain the second target key = ~00110101 = 11001010.
[0066] In this embodiment of the application, the first encryption device can also receive the second target information sent by the second encryption device, and based on the identifier segment corresponding to at least one second quantum in the second target information, determine at least one first quantum corresponding to at least one second quantum from multiple first quantumes to perform quantum measurement and obtain the measurement result; then based on the second indication information in the second target information, the measurement result is inverted to obtain the second target key, thereby eliminating the need to send quantum, avoiding the possibility of quantum interception, and improving the efficiency of quantum cryptography generation.
[0067] In a design, such as Figure 8 As shown in the embodiment of this application, in a quantum entanglement-based encryption method, the method may further include step S501:
[0068] S501, The first encryption device stores multiple first quantum bits into a local first quantum memory and adjusts the quantum storage pointer based on the number of multiple first quantum bits.
[0069] Optionally, the first encryption device includes a first quantum memory, and the second encryption device includes a second quantum memory. After receiving multiple first quantum quanta, the first encryption device can store the multiple first quantum quanta in its local first quantum memory and adjust the quantum storage pointer based on the number of first quantum quanta. After receiving multiple second quantum quanta, the second encryption device can store the multiple second quantum quanta in its local second quantum memory and adjust the quantum storage pointer based on the number of first quantum quanta.
[0070] like Figure 9 As shown, the quantum entanglement-based encryption method provided in this application embodiment can be applied to a quantum pair generator, including steps S601-S602:
[0071] S601, The quantum pair generator generates multiple pairs of entangled quantum pairs.
[0072] Each of the multiple entangled quantum pairs includes a first quantum and a second quantum.
[0073] S602, Send the first quantum of each pair of entangled quantum to the first encryption device and send the second quantum of each pair of entangled quantum to the second encryption device through the quantum interface, so that the first encryption device and the second encryption device determine the target key based on multiple pairs of entangled quantum.
[0074] Optionally, the first and second encryption devices can be constructed identically, each capable of storing an equal amount of quantum particles.
[0075] Optionally, the quantum pair generator generates a pair of entangled quantum particles each time, and sends the first quantum particle in the pair of entangled quantum particles to the first encryption device, and sends the second quantum particle in the pair of entangled quantum particles to the second encryption device.
[0076] For example, such as Figure 10 As shown, after receiving the first quantum, the first encryption device stores the first quantum in the quantum memory and adjusts the position of the quantum storage pointer.
[0077] Optionally, the quantum pair generator generates multiple pairs of entangled quantum quanta multiple times, and sends the first quantum of an entangled quantum pair to the first encryption device and the second quantum of an entangled quantum pair to the second encryption device each time, until the quantum memory of the first encryption device and the quantum memory of the second encryption device are full, at which point the quantum interface connection between the generator and the first encryption device can be disconnected.
[0078] In this embodiment, multiple entangled quantum pairs are generated by a quantum pair generator, and the first quantum in each entangled quantum pair is sent to a first encryption device and the second quantum in each entangled quantum pair is sent to a second encryption device through a quantum interface. This allows the first and second encryption devices to determine the target key based on the multiple entangled quantum pairs. Thus, during the key agreement process between the first and second encryption devices, the key can be determined based on the multiple entangled quantum pairs without sending quantum data, avoiding the possibility of quantum interception and improving the efficiency of quantum cryptography generation.
[0079] In a design, such as Figure 11 As shown in the embodiment of this application, in a quantum entanglement-based encryption method, the method may further include steps S701-S702:
[0080] S701, The quantum pair generator triggers the first encryption device to clear the first quantum memory through the quantum interface and sets the quantum storage pointer to the starting cell of the first quantum memory.
[0081] S702, The quantum pair generator triggers the second encryption device to clear the second quantum memory through the quantum interface and points the quantum storage pointer to the starting cell of the second quantum memory.
[0082] It is understandable that, in order to ensure that the first quantum stored in the first quantum memory of the first encryption device corresponds to the second quantum stored in the second quantum memory of the second encryption device, it is necessary to clear the first quantum memory and the second quantum memory in advance and point the quantum storage pointer to the starting unit.
[0083] This application provides an encryption method based on quantum entanglement. A first encryption device receives multiple first quantum particles sent by a quantum pair generator through a quantum interface, and selects at least one first quantum particle for quantum measurement to determine a first target key. Then, the first encryption device sends an identification segment corresponding to at least one first quantum particle, along with first indication information indicating that the first target key is determined based on the quantum measurement results of the first encryption device, to a second encryption device. This allows the second encryption device to determine the first target key based on this information. Through this method, the first and second encryption devices do not need to directly transmit key information when agreeing on a key. Instead, they transmit an identification segment corresponding to at least one first quantum particle and first indication information indicating that the first target key is determined based on the quantum measurement results of the first encryption device. This allows the other device to perform quantum measurement based on this information to determine the corresponding key. This improves the efficiency of key generation in quantum encryption technology and enhances the security of the generated key.
[0084] like Figure 12 As shown in the embodiment of this application, an encryption device (first encryption device or second encryption device) is provided. The device is boxed and its overall size is similar to that of portable devices such as MP3 players and USB tokens. It consists of a device panel, a printed circuit board (PCB), a power module, a quantum interface, and a device shell.
[0085] like Figure 13 As shown, the device panel consists of the following components (information): 1. Device identifier, total quantum quantity, number of quantum used, starting number of unused quantum, encryption bit length, current key, key serial number, quantum key generation control, and encryption bit length addition / subtraction control.
[0086] The device identifier is a unique code that identifies the device. The code format is: Unique Identifier Code***. Since this application uses entangled quantum pairs to generate the password, the encryption devices are used in pairs. A pair of encryption devices uses the same unique identifier code, for example: M001. Because the measurement results obtained by the first encryption device or the second encryption device after measuring the entangled quantum pair are opposite, it is necessary to indicate whether the device is A or B in the device identifier. This is used to determine whether the key generated by this device needs to be inverted before the key is used. Therefore, the final device identifier examples are: M001-A, M001-B.
[0087] Quantum total: This refers to the total number of quantum units that the device can store. The first and second encryption devices have the same structure and the same total quantum unit. For example, 100 means that the encryption device can store a total of 100 quantum units.
[0088] Quantum number used: This indicates the number of quantum numbers that have been used by the encryption device at the current moment, indicating that the measurement has been completed, the key has been generated, and the quantum number has been synchronized to the other encryption device. For example, if the quantum number used by the first encryption device is 20, it means that 20 quantum units have been used to complete the measurement, generate the key, and synchronize it to the second encryption device.
[0089] Unused quantum starting number: The number of quantum used + 1, for example: 21, which means that 20 quantumes have been used, and new keys are now generated starting from the 21st quantum.
[0090] Encryption bit length: Used in conjunction with the "encryption bit length plus / minus control" to determine the number of bits used in this key generation. Encryption devices have some commonly used encryption bit lengths preset (such as 8 bits, 16 bits, 32 bits), which users can adjust according to their needs. For example, 8 bits means that the 21st quantum number to the 28th quantum number will be used as the key for this quantum measurement.
[0091] Current key: This refers to the key generated after the last press of the Generate Quantum Key control, for example: 00110101.
[0092] Key sequence number: This indicates which key the "current key" is generated by this encryption device. For example, 3 means that the currently displayed key is the third key generated by this encryption device. The key sequence number will be sent when the first encryption device and the second encryption device communicate, so that both parties can align the key sequence numbers and use the same key to encrypt the data.
[0093] Quantum Key Generation Control: After pressing the control, the device determines the quantum range to be used when generating the quantum key based on the "Unused Quantum Start Number" and "Encryption Bits" displayed on the panel. For example, this time, the range from the 21st quantum to the 28th quantum is used as the key for quantum measurement. After the measurement is completed, the quantum state is read to generate the local key. The segment of the quantum key and the key sequence number are then communicated to the peer device through the communication module inside the encryption device.
[0094] like Figure 14 As shown, the PCB board consists of the following components: quantum storage module, quantum erasure module, quantum key module, quantum measurement module, quantum key reading module, communication module, wireless network module, communication protocol module, identity authentication module, quantum interface, and power supply module.
[0095] The quantum storage module connects to an external quantum interface to obtain quantum data from an external quantum pair generator and store it in the encrypted device. It includes: a quantum clearing module to clear existing quantum data from the device, preventing storage errors when receiving new quantum data; and a quantum storage module with multiple quantum storage units for storing quantum data and using quantum storage pointers to indicate the next quantum storage unit.
[0096] Quantum Key Module: Used to measure quantum states within the device and convert them into digital keys. Includes: Quantum Measurement Module: Used to measure a specified quantum state using a specified basis (e.g., +); Quantum Key Reading Module: Used to convert the measured quantum state, such as →, into a digital value, such as 0.
[0097] Communication module: Used for communication with peer devices. Includes: Wireless network module: Provides a wireless communication channel for the device by integrating various wireless communication technologies (cellular network, WIFI, etc.) and antennas; Communication protocol module: Integrates a certain existing communication protocol for communication with peer encrypted devices; Authentication module: Stores the digital signature of the local encrypted device (unalterable) for mutual authentication when communicating with peer encrypted devices.
[0098] Quantum interface: Used to connect the device to an external entangled quantum pair generator for quantum transmission.
[0099] Power module: Used to power the equipment, and can use battery, DC, AC or other modes.
[0100] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0101] This application embodiment can divide a quantum entanglement-based encryption device into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0102] Figure 15 This is a schematic diagram of a quantum entanglement-based encryption device provided in an embodiment of this application, applied to a first encryption device. For example... Figure 15As shown, a quantum entanglement-based encryption device 100 is used to improve the efficiency of key generation in quantum encryption technology and to enhance the security of the generated key, for example, for executing... Figure 2 The diagram illustrates an encryption method based on quantum entanglement. The quantum entanglement-based encryption device 100 includes: a receiving unit 1001, a processing unit 1002, and a sending unit 1003;
[0103] The receiving unit 1001 is used for the first encryption device to receive multiple first quantum particles sent by the quantum pair generator through the quantum interface. Each of the multiple first quantum particles corresponds to a second quantum particle. A first quantum particle and a corresponding second quantum particle constitute an entangled quantum pair. The multiple second quantum particles are sent to the second encryption device by the quantum pair generator.
[0104] Processing unit 1002 is used by the first encryption device to select at least one first quantum from a plurality of first quantum particles for quantum measurement to determine a first target key;
[0105] The sending unit 1003 is used for the first encryption device to send the first target information to the second encryption device, so that the second encryption device determines the first target key based on the first target information. The first target information includes: at least one identifier segment corresponding to a first quantum and first indication information. The first indication information is used to indicate that the first target key is determined based on the quantum measurement result of the first encryption device.
[0106] In one possible implementation, in a quantum entanglement-based encryption device 100 provided in this application embodiment, the receiving unit 1001 is further configured to receive second target information sent by a second encryption device from a first encryption device. The second target information includes: an identification segment corresponding to at least one second quantum and second indication information. The second indication information is used to indicate that the second target key is determined based on the quantum measurement result of the second encryption device. The second encryption device performs quantum measurement on at least one second quantum to determine the second target key.
[0107] The processing unit 1002 is also used to determine at least one first quantum from a plurality of first quantumes based on the second target information, and perform quantum measurement to obtain the second target key.
[0108] In one possible implementation, in a quantum entanglement-based encryption device 100 provided in this application embodiment, the processing unit 1002 is further configured to: the first encryption device, based on the identifier segment corresponding to at least one second quantum, determine at least one first quantum corresponding to at least one second quantum from a plurality of first quantumes and perform quantum measurement to obtain a measurement result;
[0109] The processing unit 1002 is also used to invert the measurement result based on the second indication information to obtain the second target key.
[0110] In one possible implementation, in a quantum entanglement-based encryption device 100 provided in this application embodiment, the processing unit 1002 is further configured to store multiple first quantum particles into a local first quantum memory, and adjust the quantum storage pointer based on the number of multiple first quantum particles.
[0111] Figure 16 This is a schematic diagram of a quantum entanglement-based encryption device provided in an embodiment of this application, applied to a quantum pair generator. For example... Figure 16 As shown, a quantum entanglement-based encryption device 110 is used to improve the efficiency of key generation in quantum encryption technology and to enhance the security of the generated key, for example, for executing... Figure 9 The diagram illustrates a quantum entanglement-based encryption method. The quantum entanglement-based encryption device 110 includes a processing unit 1101 and a sending unit 1102.
[0112] The processing unit 1101 is used to generate multiple pairs of entangled quantum particles by a quantum pair generator, wherein each pair of entangled quantum particles includes a first quantum particle and a second quantum particle.
[0113] The sending unit 1102 is used to send the first quantum in each pair of entangled quantum to the first encryption device and to send the second quantum in each pair of entangled quantum to the second encryption device through a quantum interface, so that the first encryption device and the second encryption device determine the target key based on multiple pairs of entangled quantum.
[0114] In one possible implementation, in a quantum entanglement-based encryption device 110 provided in this application embodiment, the processing unit 1101 is further configured to have the quantum pair generator trigger the first encryption device to clear the first quantum memory through the quantum interface, and to point the quantum storage pointer to the starting unit of the first quantum memory;
[0115] The processing unit 1101 is also used to trigger the second encryption device to clear the second quantum memory through the quantum interface of the quantum pair generator, and to point the quantum storage pointer to the starting cell of the second quantum memory.
[0116] In the case of implementing the functions of the integrated modules described above in hardware, this application provides another possible structural diagram of the electronic device involved in the above embodiments. For example... Figure 17 As shown, an electronic device 90 is used to improve the efficiency of key generation using quantum encryption technology and to enhance the security of the generated keys, for example, for performing... Figure 2 or Figure 9This illustrates a quantum entanglement-based encryption method. The electronic device 90 includes a processor 901, a memory 902, and a bus 903. The processor 901 and the memory 902 are connected via the bus 903.
[0117] Processor 901 is the control center of the communication device. It can be a single processor or a collective term for multiple processing elements. For example, processor 901 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0118] As one embodiment, processor 901 may include one or more CPUs, for example Figure 17 CPU 0 and CPU 1 are shown in the diagram.
[0119] The memory 902 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0120] As one possible implementation, the memory 902 can exist independently of the processor 901. The memory 902 can be connected to the processor 901 via a bus 903 and is used to store instructions or program code. When the processor 901 calls and executes the instructions or program code stored in the memory 902, it can implement the quantum entanglement-based encryption method provided in this application embodiment.
[0121] In another possible implementation, the memory 902 can also be integrated with the processor 901.
[0122] Bus 903 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 17 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0123] It should be pointed out that, Figure 17 The structure shown does not constitute a limitation on the electronic device 90. Except... Figure 17 In addition to the components shown, the electronic device 90 may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0124] As an example, combined Figure 15 The functions implemented by the receiving unit 1001, processing unit 1002, and transmitting unit 1003 in the electronic device are the same as those of the receiving unit 1001, processing unit 1002, and transmitting unit 1003. Figure 17 The processor 901 in it has the same function.
[0125] As an example, combined Figure 16 The functions implemented by the processing unit 1101 and the transmitting unit 1102 in the electronic device are the same as Figure 17 The processor 901 in it has the same function.
[0126] Optional, such as Figure 17 As shown, the electronic device 90 provided in this application embodiment may further include a communication interface 904.
[0127] Communication interface 904 is used to connect with other devices via a communication network. This communication network can be Ethernet, a wireless access network, a wireless local area network (WLAN), etc. Communication interface 904 may include a receiving unit for receiving data and a transmitting unit for transmitting data.
[0128] In one design, the communication interface in the electronic device provided in this application embodiment can also be integrated into the processor.
[0129] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0130] This application also provides a computer-readable storage medium storing instructions. When a computer executes these instructions, the computer performs each step of the method flow shown in the above method embodiments.
[0131] An embodiment of this application provides a computer program product containing instructions that, when executed on a computer, cause the computer to perform a quantum entanglement-based encryption method as described in the above method embodiment.
[0132] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing, or any other form of computer-readable storage medium in the art.
[0133] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside within an application-specific integrated circuit (ASIC).
[0134] In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0135] Since the electronic devices, computer-readable storage media, and computer program products in the embodiments of this application can be applied to the above methods, the technical effects they can achieve can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.
[0136] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application.
Claims
1. A quantum entanglement-based encryption method, characterized in that, Applied to a first encryption device, the method includes: The first encryption device receives multiple first quantum particles sent by the quantum pair generator through a quantum interface. Each of the multiple first quantum particles corresponds to a second quantum particle. A first quantum particle and a corresponding second quantum particle constitute an entangled quantum pair. The multiple second quantum particles are sent to the second encryption device by the quantum pair generator. The first encryption device selects at least one first quantum from the plurality of first quantum particles for quantum measurement to determine the first target key; The first encryption device sends first target information to the second encryption device, so that the second encryption device determines the first target key based on the first target information. The first target information includes: an identification segment corresponding to the at least one first quantum and first indication information. The identification segment corresponding to the at least one first quantum is used to identify the number segment of the selected quantum in the first encryption device, so that the second encryption device determines the corresponding second quantum according to the number segment. The first indication information is used to instruct the second encryption device to invert the quantum measurement result of the corresponding second quantum to obtain the first target key.
2. The method according to claim 1, characterized in that, The method further includes: The first encryption device receives second target information sent by the second encryption device. The second target information includes: an identification segment corresponding to at least one second quantum and second indication information. The identification segment corresponding to the at least one second quantum is used to identify the number segment of the selected quantum in the second encryption device, so that the first encryption device can determine the corresponding first quantum according to the number segment. The second indication information is used to instruct the first encryption device to invert the quantum measurement result of the corresponding first quantum to obtain the second target key. The first encryption device determines at least one first quantum from the plurality of first quantumes based on the second target information and performs quantum measurement to obtain the second target key.
3. The method according to claim 2, characterized in that, The first encryption device, based on the second target information, determines at least one first quantum from the plurality of first quantum particles, performs quantum measurement, and obtains the second target key, including: The first encryption device determines at least one first quantum corresponding to the at least one second quantum from the plurality of first quantumes based on the identifier segment corresponding to the at least one second quantum, performs quantum measurement, and obtains the measurement result; The first encryption device inverts the measurement result based on the second indication information to obtain the second target key.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: The first encryption device stores the plurality of first quantum bits in a local first quantum memory and adjusts the quantum storage pointer based on the number of the plurality of first quantum bits.
5. A quantum entanglement-based encryption method, characterized in that, Applied to quantum pair generators, the method includes: The quantum pair generator generates multiple pairs of entangled quantum particles, each of which includes a first quantum particle and a second quantum particle. The first quantum of each entangled quantum pair is sent to a first encryption device via a quantum interface, and the second quantum of each entangled quantum pair is sent to a second encryption device, so that the first and second encryption devices determine a target key based on the multiple entangled quantum pairs; wherein, the first and second encryption devices communicate via a classical channel to transmit identification segments and indication information, but not key information; the identification segment is used to identify the selected quantum in the numbered segment of the first encryption device, so that the second encryption device can determine the corresponding second quantum according to the numbered segment; or to identify the selected quantum in the numbered segment of the second encryption device, so that the first encryption device can determine the corresponding first quantum according to the numbered segment; The instruction information is used to instruct the second encryption device to invert the quantum measurement result of the corresponding second quantum, or to instruct the first encryption device to invert the quantum measurement result of the corresponding first quantum to obtain the target key.
6. The method according to claim 5, characterized in that, The method further includes: The quantum pair generator triggers the first encryption device to clear the first quantum memory through the quantum interface and sets the quantum storage pointer to the starting cell of the first quantum memory; The quantum pair generator triggers the second encryption device to clear the second quantum memory through the quantum interface and points the quantum storage pointer to the starting cell of the second quantum memory, so that the numbering order of the entangled quantum pairs stored in the first encryption device and the second encryption device is completely consistent. The numbering order is used to locate the entangled quantum corresponding to the identifier segment between the first encryption device and the second encryption device.
7. A quantum entanglement-based encryption device, characterized in that, The quantum entanglement-based encryption device, applied to a first encryption device, comprises: a receiving unit, a processing unit, and a sending unit; The receiving unit is used for the first encryption device to receive multiple first quantum particles sent by the quantum pair generator through a quantum interface. Each of the multiple first quantum particles corresponds to a second quantum particle. A first quantum particle and a corresponding second quantum particle constitute an entangled quantum pair. The multiple second quantum particles are sent to the second encryption device by the quantum pair generator. The processing unit is used by the first encryption device to select at least one first quantum from the plurality of first quantum particles for quantum measurement to determine the first target key; The sending unit is configured to send first target information from the first encryption device to the second encryption device, so that the second encryption device determines the first target key based on the first target information. The first target information includes: an identification segment corresponding to the at least one first quantum and first indication information. The identification segment corresponding to the at least one first quantum is used to identify the number segment of the selected quantum in the first encryption device, so that the second encryption device determines the corresponding second quantum according to the number segment. The first indication information is used to instruct the second encryption device to invert the quantum measurement result of the corresponding second quantum to obtain the first target key.
8. The quantum entanglement-based encryption device according to claim 7, characterized in that, The receiving unit is further configured to receive second target information sent by the second encryption device from the first encryption device. The second target information includes: an identification segment corresponding to at least one second quantum and second indication information. The identification segment corresponding to the at least one second quantum is used to identify the number segment of the selected quantum in the second encryption device, so that the first encryption device can determine the corresponding first quantum according to the number segment. The second indication information is used to instruct the first encryption device to invert the quantum measurement result of the corresponding first quantum to obtain the second target key. The processing unit is further configured to, based on the second target information, determine at least one first quantum from the plurality of first quantum particles and perform quantum measurement to obtain the second target key.
9. The quantum entanglement-based encryption device according to claim 8, characterized in that, The processing unit is further configured to allow the first encryption device to determine at least one first quantum corresponding to the at least one second quantum from among the plurality of first quantumes based on the identifier segment corresponding to the at least one second quantum, and to perform quantum measurement to obtain a measurement result; The processing unit is further configured to invert the measurement result based on the second indication information to obtain the second target key.
10. The quantum entanglement-based encryption device according to any one of claims 7 to 9, characterized in that, The processing unit is further configured to store the plurality of first quantum bits into a local first quantum memory, and adjust the quantum storage pointer based on the number of the plurality of first quantum bits.
11. A quantum entanglement-based encryption device, characterized in that, Applied to quantum pair generators, the quantum entanglement-based encryption device includes: a processing unit and a sending unit; The processing unit is used by the quantum pair generator to generate multiple pairs of entangled quantum particles, each of the multiple pairs of entangled quantum particles including a first quantum particle and a second quantum particle. The transmitting unit is configured to send the first quantum of each entangled quantum pair to a first encryption device and the second quantum of each entangled quantum pair to a second encryption device via a quantum interface, so that the first encryption device and the second encryption device determine a target key based on the multiple entangled quantum pairs; wherein the first encryption device and the second encryption device transmit identification segments and indication information through classical channel communication, but do not transmit key information; the identification segment is used to identify the number segment of the selected quantum in the first encryption device, so that the second encryption device determines the corresponding second quantum according to the number segment; or to identify the number segment of the selected quantum in the second encryption device, so that the first encryption device determines the corresponding first quantum according to the number segment; The instruction information is used to instruct the second encryption device to invert the quantum measurement result of the corresponding second quantum, or to instruct the first encryption device to invert the quantum measurement result of the corresponding first quantum to obtain the target key.
12. The quantum entanglement-based encryption device according to claim 11, characterized in that, The processing unit is also used to trigger the first encryption device to clear the first quantum memory through the quantum interface and to point the quantum storage pointer to the starting unit of the first quantum memory. The processing unit is further configured to have the quantum pair generator trigger the second encryption device to clear the second quantum memory through the quantum interface, and to point the quantum storage pointer to the starting unit of the second quantum memory, so that the numbering order of the entangled quantum pairs stored in the first encryption device and the second encryption device is completely consistent, and the numbering order is used to locate the entangled quantum corresponding to the identifier segment between the first encryption device and the second encryption device.
13. An electronic device, characterized in that, include: A processor and a memory; wherein the memory is used to store one or more programs, the one or more programs including computer execution instructions, wherein when the electronic device is running, the processor executes the computer execution instructions stored in the memory to cause the electronic device to perform a quantum entanglement-based encryption method according to any one of claims 1-4 or any one of claims 5-6.
14. A computer-readable storage medium for storing one or more programs, characterized in that, The one or more programs include instructions that, when executed by a computer, cause the computer to perform a quantum entanglement-based encryption method as claimed in any one of claims 1-4 or any one of claims 5-6.
Citation Information
Patent Citations
Information transfer method for instantaneous wireless quantum communication
CN107612627A