Offline distribution method and system of quantum security key

Through physical connection between the quantum key server and the demand side, the remaining key information is used to judge and generate encrypted supplementary keys, the limitations of the quantum key distribution system in remote areas or special environments are solved, and the key is realized timely supplement and safe distribution improve the adaptability and security of the system.

CN118972058AInactive Publication Date: 2024-11-15SHENZHEN SUNSON TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411432467.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing quantum key distribution system cannot realize online communication in remote areas or special environments, and cannot be replenished in time when the key is insufficient, resulting in limitations in key management.

Method used

Through the physical connection between the key server and the key demand side, the remaining key information is used to determine whether to generate a supplementary key, and an encrypted supplementary key is generated through the preset key generation method and polarization encoding rules to ensure the secret Timely replenishment and secure distribution of keys.

Benefits of technology

It realizes key distribution in offline environments, ensures timely replenishment and secure distribution of keys, and improves the adaptability and security of the system in remote areas or special environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972058A_ABST
    Figure CN118972058A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of information security, and provides an offline distribution method and system for quantum security keys, and the method comprises the steps: a key server side judges whether to generate a supplementary key or not based on the residual key information of a key demand side; if yes, the key server side generates a supplementary key based on a preset key generation method and the residual key information, encrypts the supplementary key based on the residual key information to obtain an encrypted supplementary key, and sends the encrypted supplementary key to the key demand side; and the secret key demand end decrypts the encrypted supplementary secret key based on the residual secret key information to obtain the supplementary secret key. According to the method, the key can be timely supplemented and safely distributed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to an offline distribution method and system for quantum secure keys. Background Art

[0002] Quantum Key Distribution (QKD) technology provides a theoretically absolutely secure key distribution method by utilizing the basic principles of quantum mechanics. QKD technology is widely considered to be an important breakthrough in the future field of information security. However, existing QKD systems mostly rely on online quantum channels and classical channels for real-time key distribution and management, which has certain limitations in some special application scenarios.

[0003] Specifically, in some remote areas, special environments or other scenarios where online communication is not convenient, online quantum key distribution may not be possible due to communication conditions. In addition, the existing quantum key distribution method has the problem of not being able to respond in time when the key needs to be supplemented during use. Therefore, how to achieve timely key supplementation in offline scenarios has become an urgent problem to be solved in the current technical field. Summary of the invention

[0004] The present application provides a method and system for offline distribution of quantum security keys to solve the problems raised by the above background technology.

[0005] In a first aspect, the present application provides a quantum secure key offline distribution method for a quantum secure key offline distribution system, wherein the quantum secure key offline distribution system comprises a key service end and a key demand end, wherein the key service end is physically connected to the key demand end, and the method comprises: The key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end; If yes, the key service end generates a supplementary key based on a preset key generation method and the remaining key information, encrypts the supplementary key based on the remaining key information to obtain an encrypted supplementary key, and sends the encrypted supplementary key to the key demand end; The key demander decrypts the encrypted supplementary key based on the remaining key information to obtain the supplementary key.

[0006] In a possible implementation, the remaining key information includes the key receiving time and the remaining number of keys corresponding to each key generation batch, and the key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end, including: For each of the key generation batches, determine the time difference between the key reception time corresponding to the key generation batch and the current time, compare the time difference with a preset time difference, and when the time difference is less than the preset time difference, determine that the key generation batch is a valid key generation batch; Adding the remaining numbers of keys corresponding to each of the valid key generation batches to obtain the total remaining number of valid keys, and comparing the total remaining number of valid keys with the preset number of valid keys; If the total remaining number of valid keys is less than the preset number of valid keys, it is determined to generate a supplementary key.

[0007] In a possible implementation, the key server generates a supplementary key based on a preset key generation method and the remaining key information, including: The number of keys to be generated is obtained by subtracting the remaining total number of valid keys from the preset number of valid keys; A supplementary key is generated based on a preset key generation method and the number of keys generated; the number of new keys in the supplementary key is consistent with the number of keys generated.

[0008] In a possible implementation, the generating of the supplementary key based on the preset key generation method and the key generation quantity includes: Generate target photons through a preset single photon source; wherein the number of the target photons is consistent with the number of key generation; For each of the target photons, polarization encoding is performed on the target photons a preset number of times based on a preset polarization encoding rule, and encoding results obtained after polarization encoding the target photons each time are recorded in sequence to obtain a new key corresponding to the target photons.

[0009] In a possible implementation, the performing polarization encoding on the target photon for a preset number of times based on a preset polarization encoding rule includes: Obtaining the polarization angle of the target photon; Each time polarization encoding is performed on the target photon, a standard polarization angle is randomly selected from a preset standard polarization angle data set, and the difference between the standard polarization angle and the polarization angle is used as the encoding result of this polarization encoding.

[0010] In a possible implementation, the remaining key information includes the key receiving time and the remaining number of keys corresponding to each key generation batch, and the encrypting the supplementary key based on the remaining key information to obtain the encrypted supplementary key includes: Sequentially dividing the supplementary key based on the number of the key generation batches to obtain a plurality of data groups corresponding to the supplementary key; wherein the number of the data groups is consistent with the number of the key generation batches; Arrange the data groups in sequence based on the positions of the data groups in the supplementary key to obtain a data group sequence; Arrange the key generation batches in sequence to obtain a key generation batch sequence; For each of the data groups, a target key generation batch corresponding to the data group is determined in the key generation batch sequence, and the data group is encrypted based on the key receiving time and the remaining number of keys corresponding to the target key generation batch to obtain an encrypted data group; wherein the order of the data group in the data group sequence is consistent with the order of the target key generation batch in the key generation batch sequence; The encrypted data groups are randomly sorted to obtain the encrypted supplementary key.

[0011] In a possible implementation, the encrypting the data group based on the key receiving time and the remaining number of keys corresponding to the target key generation batch to obtain the encrypted data group includes: Performing matrix encoding on the key receiving moment based on a preset matrix encoding rule to obtain an encoding matrix; For each matrix element of the encoding matrix, multiply the row number and the column number corresponding to the matrix element to obtain a first target number corresponding to the matrix element; Determine a target matrix element based on the first target numbers corresponding to each of the matrix elements; wherein the digital attribute of the first target number corresponding to the target matrix element is consistent with the digital attribute corresponding to the remaining number of the key, and the digital attribute is an odd number or an even number; Obtaining hash values ​​corresponding to each of the target matrix elements based on a preset hash algorithm; wherein each of the hash values ​​includes a plurality of letters and numbers; For each of the hash values, arrange the numbers in the hash value in order to obtain a second target number corresponding to the hash value; Determine a target hash value based on the second target numbers corresponding to the hash values; wherein the digital attribute of the second target number corresponding to the target hash value is consistent with the digital attribute corresponding to the remaining number of the key, and the digital attribute is an odd number or an even number; For each of the target hash values, sequentially extract each letter in the target hash value to obtain a letter sequence corresponding to the target hash value; Based on a preset sorting rule, each of the letter sequences is arranged in order from top to bottom in a left-aligned manner to obtain a target letter distribution map, and the data group is encrypted based on the target letter distribution map to obtain an encrypted data group.

[0012] In a second aspect, the present application provides an offline distribution system for quantum secure keys, including a key service end and a key demand end, wherein the key service end is physically connected to the key demand end; The key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end; If yes, the key service end generates a supplementary key based on a preset key generation method and the remaining key information, encrypts the supplementary key based on the remaining key information to obtain an encrypted supplementary key, and sends the encrypted supplementary key to the key demand end; The key demander decrypts the encrypted supplementary key based on the remaining key information to obtain the supplementary key.

[0013] The present application provides a method and system for offline distribution of quantum security keys. The method is used in a quantum security key offline distribution system, the quantum security key offline distribution system includes a key service end and a key demand end, the key service end is physically connected to the key demand end, and the method includes: the key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end; if so, the key service end generates a supplementary key based on a preset key generation method and the remaining key information, and encrypts the supplementary key based on the remaining key information to obtain an encrypted supplementary key, and sends the encrypted supplementary key to the key demand end; the key demand end decrypts the encrypted supplementary key based on the remaining key information to obtain the supplementary key. The method realizes key distribution in an offline environment through a physical connection between the key service end and the key demand end. The key service end determines whether a supplementary key needs to be generated based on the remaining key information provided by the key demand end. When a supplementary key needs to be generated, a supplementary key is generated, and the supplementary key is encrypted to obtain an encrypted supplementary key. After receiving the encrypted supplementary key, the key demand end uses the remaining key information to decrypt and obtain a usable new key. This method effectively solves the limitations of key management in traditional QKD systems in offline environments, ensures timely replenishment and secure distribution of keys, and improves the adaptability and security of the system in remote areas or special environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0015] Figure 1 A schematic diagram of a flow chart of an offline distribution method of a quantum secure key provided in an embodiment of the present application; Figure 2 A schematic block diagram of the structure of an offline distribution system for quantum secure keys provided in an embodiment of the present application. DETAILED DESCRIPTION

[0016] 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

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

[0018] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0019] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0020] Quantum Key Distribution (QKD) technology provides a theoretically absolutely secure key distribution method by utilizing the basic principles of quantum mechanics. QKD technology is widely considered to be an important breakthrough in the future field of information security. However, existing QKD systems mostly rely on online quantum channels and classical channels for real-time key distribution and management, which has certain limitations in some special application scenarios.

[0021] Specifically, in some remote areas, special environments or other scenarios where online communication is not convenient, online quantum key distribution may not be possible due to communication conditions. In addition, the existing quantum key distribution method has the problem of not being able to respond in time when the key needs to be supplemented during use. Therefore, how to achieve timely supplementation of keys in offline scenarios has become an urgent problem to be solved in the current technical field. To this end, the present application provides an offline distribution method and system for quantum security keys to solve the above problems.

[0022] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0023] See also Figure 1 , Figure 1 A schematic diagram of a flow chart of an offline distribution method for a quantum secure key provided in an embodiment of the present application, wherein the method is used in a quantum secure key offline distribution system, wherein the quantum secure key offline distribution system includes a key service end and a key demand end, such as Figure 1 As shown, the method includes steps S1 to S3.

[0024] Step S1: The key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end.

[0025] Specifically, the key demander sends the remaining key information to the key server in real time. After receiving the remaining key information, the key server determines whether to generate a supplementary key based on the remaining key information of the key demander.

[0026] Furthermore, the remaining key information includes the key receiving time and the remaining number of keys corresponding to each key generation batch. The key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end, including: for each key generation batch, determining the time difference between the key receiving time corresponding to the key generation batch and the current time, and comparing the time difference with the preset time difference, and when the time difference is less than the preset time difference, determining that the key generation batch is a valid key generation batch; adding the remaining number of keys corresponding to each valid key generation batch to obtain the remaining total number of valid keys, and comparing the remaining total number of valid keys with the preset number of valid keys; if the remaining total number of valid keys is less than the preset number of valid keys, determining to generate a supplementary key. Among them, for each key generation batch, the key receiving time corresponding to the key generation batch is the time corresponding to when the key demand end receives the key of the batch.

[0027] It can be understood that, on the one hand, step S1 sends the remaining key information in real time through the key demand side, so that the key service side can grasp the key usage of the key demand side in real time. This real-time update mechanism ensures that the key service side can respond to the demand in a timely manner, avoids the security problems caused by insufficient keys on the key demand side, and improves the security and management efficiency of the offline distribution system of quantum security keys. On the other hand, by analyzing the time difference between the key reception time and the current time of each key generation batch, the key service side can determine which keys are still valid and decide whether to generate new supplementary keys based on the total number of valid keys remaining. This method enables the key demand side to maximize the use of existing key resources, reduce unnecessary key generation, avoid waste, and ensure the number of valid keys on the key service side.

[0028] Step S2: If yes, the key service end generates a supplementary key based on the preset key generation method and the remaining key information, encrypts the supplementary key based on the remaining key information to obtain an encrypted supplementary key, and sends the encrypted supplementary key to the key demand end.

[0029] Specifically, the key server generates a supplementary key based on a preset key generation method and the remaining key information, including: subtracting the remaining total number of valid keys from the preset number of valid keys to obtain the number of key generation; generating a supplementary key based on a preset key generation method and the number of key generation; the number of new keys in the supplementary key is consistent with the number of key generation.

[0030] Furthermore, the generation of the supplementary key based on the preset key generation method and the key generation quantity includes: generating target photons through a preset single photon source; wherein the number of the target photons is consistent with the key generation quantity; for each of the target photons, polarization encoding the target photons for a preset number of times based on a preset polarization encoding rule, and sequentially recording the encoding results obtained after polarization encoding the target photons each time, to obtain a new key corresponding to the target photons. Wherein, polarization encoding the target photons for a preset number of times based on the preset polarization encoding rule includes: obtaining the polarization angle of the target photons; each time the target photons are polarized, a standard polarization angle is randomly selected from a preset standard polarization angle data set, and the difference between the standard polarization angle and the polarization angle is used as the encoding result of this polarization encoding. Wherein, the polarization angle of the target photons is obtained by a combination of an adjustable angle polarization filter and a photodetector.

[0031] It can be understood that the above-mentioned method of generating supplementary keys generates a number of target photons that matches the requirements through a preset single-photon source, and uses polarization coding rules to perform multiple polarization encodings on each target photon, and when performing multiple polarization encodings on each target photon, the encoding results obtained after each polarization encoding are recorded in sequence to obtain a new key corresponding to the target photon, thereby ensuring the randomness of key generation.

[0032] Specifically, the encrypting the supplementary key based on the remaining key information to obtain an encrypted supplementary key includes: dividing the supplementary key in sequence based on the number of key generation batches to obtain multiple data groups corresponding to the supplementary key; wherein the number of the data groups is consistent with the number of the key generation batches; arranging the data groups in sequence based on the positions of the data groups in the supplementary key to obtain a data group sequence; arranging the key generation batches in sequence to obtain a key generation batch sequence; for each data group, determining a target key generation batch corresponding to the data group in the key generation batch sequence, and encrypting the data group based on the key reception time and the remaining number of keys corresponding to the target key generation batch to obtain an encrypted data group; wherein the order of the data groups in the data group sequence is consistent with the order of the target key generation batch in the key generation batch sequence; and randomly ordering the encrypted data groups to obtain the encrypted supplementary key.

[0033] Furthermore, the data group is encrypted based on the key receiving time and the remaining number of keys corresponding to the target key generation batch to obtain an encrypted data group, including: matrix encoding the key receiving time based on a preset matrix encoding rule to obtain a coding matrix; for each matrix element of the coding matrix, multiplying the row number and column number corresponding to the matrix element to obtain the first target number corresponding to the matrix element; determining the target matrix element based on the first target number corresponding to each matrix element; wherein the digital attribute of the first target number corresponding to the target matrix element is consistent with the digital attribute corresponding to the remaining number of keys, and the digital attribute is an odd number or an even number; respectively obtaining the hash value corresponding to each target matrix element based on a preset hash algorithm; wherein each hash value includes multiple letters and numbers; for each hash value, arranging the numbers in the hash value in sequence, Obtain a second target number corresponding to the hash value; for example, if the hash value is F3R67HNY23, then the second target number corresponding to the hash value is 36723; determine a target hash value based on the second target numbers corresponding to each of the hash values; wherein the digital attribute of the second target number corresponding to the target hash value is consistent with the digital attribute corresponding to the remaining number of keys, and the digital attribute is an odd number or an even number; for each of the target hash values, extract each letter in the target hash value in sequence to obtain a letter sequence corresponding to the target hash value; for example, if the target hash value is F3R67HNY23, then the letter sequence corresponding to the target hash value is FRHNY; arrange each of the letter sequences in sequence from top to bottom in a left-aligned manner based on a preset sorting rule to obtain a target letter distribution map, and encrypt the data group based on the target letter distribution map to obtain an encrypted data group.

[0034] It can be understood that the above method of encrypting the supplementary key based on the remaining key information to obtain an encrypted supplementary key, first, divides the supplementary key into multiple data groups, and encrypts it according to the information of the key generation batch, ensuring the association of each data group with a specific batch of keys, and enhancing the key management and tracking capabilities. Secondly, matrix coding and hash algorithms are used to encode and process the key reception time and the remaining number of keys, and the diversity and unpredictability of the encryption process are ensured through parity matching. This encoding strategy not only improves the security of the data group, but also further enhances the multi-level protection capabilities of encryption through a complex target letter distribution map. In addition, the random ordering of the encrypted data group increases the difficulty for attackers to crack the supplementary key, ensuring the secure distribution of the supplementary key in an offline environment.

[0035] Step S3: The key demander decrypts the encrypted supplementary key based on the remaining key information to obtain the supplementary key.

[0036] Specifically, the key demander arranges each of the key generation batches in sequence to obtain a key generation batch sequence; and decrypts each of the encrypted data groups based on the key generation batch sequence to obtain the supplementary key.

[0037] Furthermore, the decryption processing is performed on each of the encrypted data groups based on the key generation batch sequence to obtain the supplementary key, including: for each of the key generation batches, a decryption password is generated based on the key reception time and the remaining number of keys corresponding to the key generation batch; each of the decryption passwords is arranged in sequence based on the key generation batch corresponding to each of the decryption passwords to obtain a decryption password sequence; each of the encrypted data groups is decrypted using each of the decryption passwords of the decryption password sequence in sequence to obtain a plurality of data groups; each of the data groups is arranged in sequence based on the order in which each of the data groups is decrypted to obtain the supplementary key.

[0038] Furthermore, the decryption password is generated based on the key reception time and the remaining number of keys corresponding to the key generation batch, including: matrix encoding the key reception time based on a preset matrix encoding rule to obtain a coding matrix; for each matrix element of the coding matrix, multiplying the row number and column number corresponding to the matrix element to obtain the first target number corresponding to the matrix element; determining the target matrix element based on the first target number corresponding to each matrix element; wherein the digital attribute of the first target number corresponding to the target matrix element is consistent with the digital attribute corresponding to the remaining number of keys, and the digital attribute is an odd number or an even number; respectively obtaining the hash value corresponding to each target matrix element based on a preset hash algorithm; wherein each hash value includes multiple letters and numbers; for each hash value, arranging the numbers in the hash value in sequence, Obtain a second target number corresponding to the hash value; for example, if the hash value is F3R67HNY23, then the second target number corresponding to the hash value is 36723; determine a target hash value based on the second target numbers corresponding to each of the hash values; wherein the digital attribute of the second target number corresponding to the target hash value is consistent with the digital attribute corresponding to the remaining number of keys, and the digital attribute is an odd number or an even number; for each of the target hash values, extract each letter in the target hash value in sequence to obtain a letter sequence corresponding to the target hash value; for example, if the target hash value is F3R67HNY23, then the letter sequence corresponding to the target hash value is FRHNY; based on a preset sorting rule, arrange each of the letter sequences in a left-aligned manner from top to bottom to obtain a target letter distribution map, and the target letter distribution map is the decryption password.

[0039] The method provided in this embodiment realizes key distribution in an offline environment through a physical connection between a key service end and a key demand end. The key service end determines whether a supplementary key needs to be generated based on the remaining key information provided by the key demand end. When a supplementary key needs to be generated, a supplementary key is generated and encrypted to obtain an encrypted supplementary key. After receiving the encrypted supplementary key, the key demand end uses the remaining key information to decrypt and obtain a usable new key. This method effectively solves the limitations of key management in traditional QKD systems in offline environments, ensures timely supplementation and secure distribution of keys, and improves the adaptability and security of the system in remote areas or special environments.

[0040] See also Figure 2 , Figure 2 A schematic block diagram of the structure of an offline distribution system for quantum secure keys provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the offline distribution system of quantum security keys provided in the embodiment of the present application includes: A key service end and a key demand end, wherein the key service end is physically connected to the key demand end; The key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end; If yes, the key service end generates a supplementary key based on a preset key generation method and the remaining key information, encrypts the supplementary key based on the remaining key information to obtain an encrypted supplementary key, and sends the encrypted supplementary key to the key demand end; The key demander decrypts the encrypted supplementary key based on the remaining key information to obtain the supplementary key.

[0041] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and brevity of description, the specific working processes of the key service end and the key demand end described above can refer to the corresponding processes in the aforementioned offline distribution method embodiment of the quantum secure key, and will not be repeated here.

[0042] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for offline distribution of quantum secure keys, characterized in that: Used in a quantum secure key offline distribution system, the quantum secure key offline distribution system includes a key service end and a key demand end, the key service end is physically connected to the key demand end, and the method includes: The key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end; If yes, the key service end generates a supplementary key based on a preset key generation method and the remaining key information, encrypts the supplementary key based on the remaining key information to obtain an encrypted supplementary key, and sends the encrypted supplementary key to the key demand end; The key demander decrypts the encrypted supplementary key based on the remaining key information to obtain the supplementary key.

2. The offline distribution method of quantum secure key according to claim 1, characterized in that: The remaining key information includes the key receiving time and the remaining number of keys corresponding to each key generation batch, and the key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end, including: For each of the key generation batches, determine the time difference between the key reception time corresponding to the key generation batch and the current time, compare the time difference with a preset time difference, and when the time difference is less than the preset time difference, determine that the key generation batch is a valid key generation batch; Adding the remaining numbers of keys corresponding to each of the valid key generation batches to obtain the total remaining number of valid keys, and comparing the total remaining number of valid keys with the preset number of valid keys; If the total remaining number of valid keys is less than the preset number of valid keys, it is determined to generate a supplementary key.

3. The offline distribution method of quantum secure key according to claim 2, characterized in that: The key server generates a supplementary key based on a preset key generation method and the remaining key information, including: The number of keys to be generated is obtained by subtracting the remaining total number of valid keys from the preset number of valid keys; A supplementary key is generated based on a preset key generation method and the number of keys generated; the number of new keys in the supplementary key is consistent with the number of keys generated.

4. The offline distribution method of quantum secure key according to claim 3, characterized in that: The generating of the supplementary key based on the preset key generation method and the key generation quantity includes: Generate target photons through a preset single photon source; wherein the number of the target photons is consistent with the number of key generation; For each of the target photons, polarization encoding is performed on the target photons a preset number of times based on a preset polarization encoding rule, and encoding results obtained after polarization encoding of the target photons each time are recorded in sequence to obtain a new key corresponding to the target photons.

5. The offline distribution method of quantum secure key according to claim 4, characterized in that: The polarization encoding of the target photons for a preset number of times based on a preset polarization encoding rule includes: Obtaining the polarization angle of the target photon; Each time polarization encoding is performed on the target photon, a standard polarization angle is randomly selected from a preset standard polarization angle data set, and the difference between the standard polarization angle and the polarization angle is used as the encoding result of this polarization encoding.

6. The offline distribution method of quantum secure key according to claim 1, characterized in that: The remaining key information includes the key receiving time and the remaining number of keys corresponding to each key generation batch, and the encrypting the supplementary key based on the remaining key information to obtain the encrypted supplementary key includes: Sequentially dividing the supplementary key based on the number of the key generation batches to obtain a plurality of data groups corresponding to the supplementary key; wherein the number of the data groups is consistent with the number of the key generation batches; Arrange the data groups in sequence based on the positions of the data groups in the supplementary key to obtain a data group sequence; Arrange the key generation batches in sequence to obtain a key generation batch sequence; For each of the data groups, a target key generation batch corresponding to the data group is determined in the key generation batch sequence, and the data group is encrypted based on the key receiving time and the remaining number of keys corresponding to the target key generation batch to obtain an encrypted data group; wherein the order of the data group in the data group sequence is consistent with the order of the target key generation batch in the key generation batch sequence; The encrypted data groups are randomly sorted to obtain the encrypted supplementary key.

7. The offline distribution method of quantum secure key according to claim 6, characterized in that: The step of encrypting the data group based on the key receiving time and the remaining number of keys corresponding to the target key generation batch to obtain the encrypted data group includes: Performing matrix encoding on the key receiving moment based on a preset matrix encoding rule to obtain an encoding matrix; For each matrix element of the encoding matrix, multiply the row number and the column number corresponding to the matrix element to obtain a first target number corresponding to the matrix element; Determine a target matrix element based on the first target numbers corresponding to each of the matrix elements; wherein the digital attribute of the first target number corresponding to the target matrix element is consistent with the digital attribute corresponding to the remaining number of the key, and the digital attribute is an odd number or an even number; Obtaining hash values ​​corresponding to each of the target matrix elements based on a preset hash algorithm; wherein each of the hash values ​​includes a plurality of letters and numbers; For each of the hash values, arrange the numbers in the hash value in order to obtain a second target number corresponding to the hash value; Determine a target hash value based on the second target numbers corresponding to the hash values; wherein the digital attribute of the second target number corresponding to the target hash value is consistent with the digital attribute corresponding to the remaining number of the key, and the digital attribute is an odd number or an even number; For each of the target hash values, sequentially extract each letter in the target hash value to obtain a letter sequence corresponding to the target hash value; Based on a preset sorting rule, each of the letter sequences is arranged in order from top to bottom in a left-aligned manner to obtain a target letter distribution map, and the data group is encrypted based on the target letter distribution map to obtain an encrypted data group.

8. An offline distribution system for quantum secure keys, comprising a key service end and a key demand end, wherein the key service end is physically connected to the key demand end, and characterized in that: The key service end determines whether to generate a supplementary key based on the remaining key information of the key demand end; If yes, the key service end generates a supplementary key based on a preset key generation method and the remaining key information, encrypts the supplementary key based on the remaining key information to obtain an encrypted supplementary key, and sends the encrypted supplementary key to the key demand end; The key demander decrypts the encrypted supplementary key based on the remaining key information to obtain the supplementary key.

Citation Information

Cited By

  • Key management method and key distribution system

    CN121690568A