Data encryption method and system based on quantum communication

Through the data encryption method based on quantum communication, the existing encryption communication technology has solved the problems of high computing complexity and insufficient security, and the efficient and secure data encryption and decryption process is realized.

CN119996080AActive Publication Date: 2025-05-13CAS QUANTUM NETWORK CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510451201.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-11
Publication Date
2025-05-13
Estimated Expiration
2045-04-11

AI Technical Summary

Technical Problem

The existing encryption communication technology has high computational complexity, resulting in slow encryption and decryption speed, and has design or implementation defects, which cannot guarantee the security of data transmission.

Method used

Using a data encryption method based on quantum communication, quantum key distribution, data encryption and decryption are realized through the combination of task data acquisition module, quantum key distribution module, data encryption module and data decryption module.

Benefits of technology

It improves the accuracy and stability of data encryption communication, reduces the chance of data being stolen, and enhances the security and reliability of quantum encryption communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996080A_ABST
    Figure CN119996080A_ABST
Patent Text Reader

Abstract

The invention discloses a data encryption method and system based on quantum communication, and relates to data encryption communication.The system comprises a task data obtaining module, a quantum key distribution module, a data encryption module and a data decryption module, data needing to be transmitted is obtained, and the data encryption module and the data decryption module are encrypted according to the data size, the data type and the security label corresponding to the task data; detailed analysis is carried out on the task data, the delay duration and the response duration, the requirements of the task data for resource allocation control, a quantum key distribution protocol and an encryption algorithm are accurately analyzed, the accuracy of quantum encryption communication of the task data is effectively improved, the data needing to be transmitted are reasonably divided, and the transmission efficiency is improved. Different data transformation models are randomly adopted to carry out data transformation on the data blocks, and meanwhile, the data transformation models corresponding to the data are synchronously subjected to quantum encryption communication, so that the probability that the task data are stolen is further reduced, and the stability and the reliability of the quantum encryption communication are further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data encryption communication, and in particular to a data encryption method and system based on quantum communication. Background Art

[0002] Encrypted communication can ensure that information is not stolen or snooped by unauthorized third parties during transmission, thereby effectively protecting personal privacy and business secrets. Through encryption technology, it is possible to verify whether data has been tampered with or damaged during transmission, ensuring the integrity and accuracy of the data. Encrypted communication provides a secure communication channel for both parties to prevent information from being intercepted or abused during transmission, and enhances the security of communication. However, existing technologies still have the following shortcomings: Some encryption algorithms have high computational complexity, which results in slower encryption and decryption processes. As the amount of data increases, this performance bottleneck becomes more pronounced, which may affect the real-time and efficiency of communications. Some encryption systems may have design or implementation flaws that allow attackers to exploit these vulnerabilities, making it impossible to guarantee the security of data transmission, increasing the risk of data transmission. Summary of the invention

[0003] The purpose of the present invention is to provide a data encryption method and system based on quantum communication to solve the problems raised in the above background technology.

[0004] To achieve the above object, the present invention provides the following technical solution: a data encryption system based on quantum communication, comprising: Task data acquisition module: used to acquire and perform preliminary analysis on the task data that needs quantum encryption communication, and obtain the quantum communication encryption control set corresponding to the task data; Quantum key distribution module: used to perform quantum key distribution control according to the quantum communication encryption control set corresponding to the task data, and obtain the initial secret key corresponding to the task data; Data encryption module: used to process the task data that needs to be encrypted, and encrypt the task data to obtain the final ciphertext corresponding to the task data; Data decryption module: used to decrypt the final ciphertext corresponding to the received task data to obtain the data decryption result.

[0005] In the preferred embodiment of this scheme, the specific implementation method of the task data acquisition module is as follows: Obtaining task data that requires quantum encryption communication, extracting information from the task data, and obtaining task basic information and task requirement information in the task data, wherein the task basic information includes each sub-data to be encrypted in the task data, the data volume, data type, and security label of each sub-data to be encrypted, and the task requirement information includes the delay duration and response duration of the task data; Establish a data extraction relationship between the task data acquisition module and the database, extract the data encryption coefficient corresponding to each security label, the data security coefficient and the first communication demand coefficient corresponding to each data type, and the second communication demand coefficient corresponding to each data volume stored in the database, and screen and obtain the data encryption coefficient, data security coefficient, first communication demand coefficient and second communication demand coefficient corresponding to each sub-data to be encrypted through the data volume, data type and security label of each sub-data to be encrypted in the task data; By calculating the formula , calculate the comprehensive encryption requirement coefficient corresponding to the task data ; By calculating the formula , calculate the comprehensive communication demand coefficient corresponding to the task data ,in Indicates the number of each sub-data to be encrypted. It is expressed as the number of sub-data to be encrypted. , They are respectively represented as the data encryption coefficient and data security coefficient corresponding to each sub-data to be encrypted, , They are respectively represented as the delay time and response time of the task data, , They are respectively represented as the first communication demand coefficient and the second communication demand coefficient corresponding to each sub-data to be encrypted; The quantum communication encryption control sets corresponding to the combinations of comprehensive encryption requirement coefficients and comprehensive communication requirement coefficients stored in the database are extracted, and the encryption control sets of quantum communication corresponding to the task data are obtained by screening through the comprehensive encryption requirement coefficients and comprehensive communication requirement coefficients corresponding to the task data, wherein the encryption control set includes resource allocation control, quantum key distribution protocol and encryption algorithm.

[0006] In the preferred embodiment of this scheme, the specific implementation method of the quantum key distribution module is as follows: Obtain the quantum key distribution protocol corresponding to the task data, and obtain the basis group type corresponding to the quantum key distribution protocol through the quantum key distribution protocol corresponding to the task data; Number each basis group type corresponding to the quantum key distribution protocol corresponding to the task data; The numbers of each basis set type are used by a strong random selector to generate a set of random numbers, and the numbers corresponding to each basis set type are matched to obtain a set of randomly generated bases. The sender prepares quantum bits with the randomly generated set of bases and sends the prepared quantum bits to the receiver through a quantum channel; The receiver generates each random number group through a strong random selector, and obtains each random group basis through matching each random number group; A group of bases randomly generated by the sender and each random group of bases obtained by the receiver are publicly compared through a classical channel, and the random group of bases of the receiver that are the same as the group of bases randomly generated by the sender are used for key extraction to obtain the initial secret key corresponding to the receiver; Randomly select the bits at the same position in the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender for comparison. If the bits at the same position are the same, it means the bit is correct, and if the bits at the same position are different, it means the bit is wrong. Statistically obtain the bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender; The bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender is compared with the preset bit error rate threshold. If the bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender is less than the preset bit error rate threshold, it means that the communication is secure. If the bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender is greater than or equal to the preset bit error rate threshold, it means that there may be an eavesdropper, and the communication is terminated and restarted.

[0007] In the preferred embodiment of this scheme, the specific implementation method of the data encryption module is as follows: Establishing a data extraction relationship between the data encryption module and the database, extracting a data conversion model library stored in the database, wherein the data conversion model library includes various data conversion models, and the data conversion models include byte replacement, row shift of the state matrix, and column confusion of the state matrix; Generate the secret key of each wheel through the initial secret key; Obtain the encryption algorithm corresponding to the task data, obtain the data partitioning requirements corresponding to the encryption algorithm, divide the task data according to the data partitioning requirements, and obtain the data blocks corresponding to the task data; Numbering each data conversion model in the data conversion model library; Number each data block corresponding to the task data; A strong random number selector is used to perform random selections, each of which includes selecting two numbers in sequence, matching the first selected number with the number of each data conversion model in the data conversion model library, and matching the latter selected number with the number of each data block corresponding to the task data, to obtain the data conversion model and data block corresponding to each random selection, and to obtain the data conversion model corresponding to each data block; Perform an XOR operation on each data block corresponding to the task data and the first round of secret key to obtain the operation result of the XOR operation on each data block and the first round of secret key, and perform byte replacement, row shift of the state matrix and column confusion of the state matrix on the operation result of the XOR operation on each data block and the first round of secret key according to the data conversion model corresponding to each data block to obtain the first round of data transformation result corresponding to each data block; Sequentially perform XOR operations on the data transformation results of the previous round of each data block with the sub-secret key of the next round, and complete the byte replacement, row shift of the state matrix, and column confusion of the state matrix corresponding to this round, until the final round is completed to obtain the final ciphertext corresponding to the task data; A new data block is established based on the data conversion model corresponding to each data block and recorded as a decoded data block. A new round of quantum communication encryption transmission is performed on the decoded data block to obtain the initial secret key and final ciphertext corresponding to the decoded data block.

[0008] In the preferred embodiment of this scheme, the specific implementation method of the data decryption module is as follows: The receiver receives the final ciphertext corresponding to the task data and the final ciphertext corresponding to the decoded data block sent by the sender through the classical channel; The receiver uses the initial secret key corresponding to the decoded data block generated by the quantum key distribution protocol as the decryption key of the final ciphertext corresponding to the decoded data block, and decrypts the final ciphertext corresponding to the decoded data block to obtain the data conversion model corresponding to each data block of the task data; The receiver records the initial secret key corresponding to the task data generated by the quantum key distribution protocol and the data conversion model of each data block corresponding to the task data as the decryption key of the final ciphertext corresponding to the task data, decrypts the final ciphertext corresponding to the task data, and records the task data obtained by splicing the data blocks obtained after decryption by the receiver in the order of numbers as the data decryption result.

[0009] To achieve the above object, the present invention also provides the following technical solution: a data encryption method based on quantum communication, comprising the following steps: Acquire and preliminarily analyze the task data that needs quantum encryption communication to obtain the quantum communication encryption control set corresponding to the task data; Perform quantum key distribution control according to the quantum communication encryption control set corresponding to the task data to obtain the initial secret key corresponding to the task data; Process the task data that needs to be encrypted for communication, and encrypt the task data to obtain the final ciphertext corresponding to the task data; The final ciphertext corresponding to the received task data is decrypted to obtain the data decryption result.

[0010] Compared with the prior art, the present invention has the following beneficial effects: The present invention acquires the data to be transmitted, and performs a detailed analysis of the data volume, data type, security label, delay duration and response duration corresponding to the task data, accurately analyzes the requirements of the task data for resource allocation control, quantum key distribution protocol and encryption algorithm, and effectively improves the accuracy of quantum encryption communication of the task data; The present invention reasonably divides the data to be transmitted, randomly adopts different data transformation models to transform the data blocks, and simultaneously performs quantum encryption communication on the data transformation models corresponding to each data, thereby further reducing the probability of task data being stolen, thereby increasing the stability and reliability of quantum encryption communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.

[0012] Figure 1 This is a schematic diagram of module connection according to an embodiment of the present invention.

[0013] Figure 2 Schematic diagram of the steps of an embodiment of the present invention. DETAILED DESCRIPTION

[0014] 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 only 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.

[0015] See also Figure 1 , the present invention provides a data encryption system based on quantum communication, the system includes a task data acquisition module, a quantum key distribution module, a data encryption module and a data decryption module; The task data acquisition module is connected to the quantum key distribution module, the quantum key distribution module is connected to the data encryption module and the data decryption module, and the data encryption module and the data decryption module are linked; Task data acquisition module: used to acquire and perform preliminary analysis on the task data that needs quantum encryption communication, and obtain the quantum communication encryption control set corresponding to the task data; Furthermore, the specific execution method of the task data acquisition module is as follows: Obtaining task data that requires quantum encryption communication, extracting information from the task data, and obtaining task basic information and task requirement information in the task data, wherein the task basic information includes each sub-data to be encrypted in the task data, the data volume, data type, and security label of each sub-data to be encrypted, and the task requirement information includes the delay duration and response duration of the task data; It should be noted that the delay time refers to the length of time required to complete a data quantum encryption communication task, and the response time refers to an indicator of the speed at which a system, service or device responds to a data quantum encryption communication task request.

[0016] Establish a data extraction relationship between the task data acquisition module and the database, extract the data encryption coefficient corresponding to each security label, the data security coefficient and the first communication demand coefficient corresponding to each data type, and the second communication demand coefficient corresponding to each data volume stored in the database, and screen and obtain the data encryption coefficient, data security coefficient, first communication demand coefficient and second communication demand coefficient corresponding to each sub-data to be encrypted through the data volume, data type and security label of each sub-data to be encrypted in the task data; By calculating the formula , calculate the comprehensive encryption requirement coefficient corresponding to the task data ; By calculating the formula , calculate the comprehensive communication demand coefficient corresponding to the task data ,in Indicates the number of each sub-data to be encrypted. It is expressed as the number of sub-data to be encrypted. , They are respectively represented as the data encryption coefficient and data security coefficient corresponding to each sub-data to be encrypted, , They are respectively represented as the delay time and response time of the task data, , They are respectively represented as the first communication demand coefficient and the second communication demand coefficient corresponding to each sub-data to be encrypted; The quantum communication encryption control sets corresponding to the combinations of comprehensive encryption requirement coefficients and comprehensive communication requirement coefficients stored in the database are extracted, and the encryption control sets of quantum communication corresponding to the task data are obtained by screening through the comprehensive encryption requirement coefficients and comprehensive communication requirement coefficients corresponding to the task data, wherein the encryption control set includes resource allocation control, quantum key distribution protocol and encryption algorithm.

[0017] Quantum key distribution module: used to perform quantum key distribution control according to the quantum communication encryption control set corresponding to the task data, and obtain the initial secret key corresponding to the task data; Furthermore, the specific implementation of the quantum key distribution module is as follows: Obtain the quantum key distribution protocol corresponding to the task data, and obtain the basis group type corresponding to the quantum key distribution protocol through the quantum key distribution protocol corresponding to the task data; It should be noted that the basis set types include linear basis, diagonal set and Bell basis, etc.

[0018] Number each basis group type corresponding to the quantum key distribution protocol corresponding to the task data; The numbers of each basis set type are used by a strong random selector to generate a set of random numbers, and the numbers corresponding to each basis set type are matched to obtain a set of randomly generated bases. The sender prepares quantum bits with the randomly generated set of bases and sends the prepared quantum bits to the receiver through a quantum channel; The receiver generates each random number group through a strong random selector, and obtains each random group basis through matching each random number group; A group of bases randomly generated by the sender and each random group of bases obtained by the receiver are publicly compared through a classical channel, and the random group of bases of the receiver that are the same as the group of bases randomly generated by the sender are used for key extraction to obtain the initial secret key corresponding to the receiver; Randomly select the bits at the same position in the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender for comparison. If the bits at the same position are the same, it means the bit is correct, and if the bits at the same position are different, it means the bit is wrong. Statistically obtain the bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender; The bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender is compared with the preset bit error rate threshold. If the bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender is less than the preset bit error rate threshold, it means that the communication is secure. If the bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender is greater than or equal to the preset bit error rate threshold, it means that there may be an eavesdropper, and the communication is terminated and restarted.

[0019] Data encryption module: used to process the task data that needs to be encrypted, and encrypt the task data to obtain the final ciphertext corresponding to the task data; Furthermore, the specific implementation of the data encryption module is as follows: Establishing a data extraction relationship between the data encryption module and the database, extracting a data conversion model library stored in the database, wherein the data conversion model library includes various data conversion models, and the data conversion models include byte replacement, row shift of the state matrix, and column confusion of the state matrix; Generate the secret key of each wheel through the initial secret key; Obtain the encryption algorithm corresponding to the task data, obtain the data partitioning requirements corresponding to the encryption algorithm, divide the task data according to the data partitioning requirements, and obtain the data blocks corresponding to the task data; Numbering each data conversion model in the data conversion model library; Number each data block corresponding to the task data; It should be noted that the numbering of each data conversion model in the data conversion model library and the numbering of each data block corresponding to the task data are both digital numbers; A strong random number selector is used to perform random selections, each of which includes selecting two numbers in sequence, matching the first selected number with the number of each data conversion model in the data conversion model library, and matching the latter selected number with the number of each data block corresponding to the task data, to obtain the data conversion model and data block corresponding to each random selection, and to obtain the data conversion model corresponding to each data block; Perform an XOR operation on each data block corresponding to the task data and the first round of secret key to obtain the operation result of the XOR operation on each data block and the first round of secret key, and perform byte replacement, row shift of the state matrix and column confusion of the state matrix on the operation result of the XOR operation on each data block and the first round of secret key according to the data conversion model corresponding to each data block to obtain the first round of data transformation result corresponding to each data block; Sequentially perform XOR operations on the data transformation results of the previous round of each data block with the sub-secret key of the next round, and complete the byte replacement, row shift of the state matrix, and column confusion of the state matrix corresponding to this round, until the final round is completed to obtain the final ciphertext corresponding to the task data; A new data block is established based on the data conversion model corresponding to each data block and recorded as a decoded data block. A new round of quantum communication encryption transmission is performed on the decoded data block to obtain the initial secret key and final ciphertext corresponding to the decoded data block.

[0020] Data decryption module: used to decrypt the final ciphertext corresponding to the received task data to obtain the data decryption result.

[0021] Furthermore, the specific execution method of the data decryption module is as follows: The receiver receives the final ciphertext corresponding to the task data and the final ciphertext corresponding to the decoded data block sent by the sender through the classical channel; The receiver uses the initial secret key corresponding to the decoded data block generated by the quantum key distribution protocol as the decryption key of the final ciphertext corresponding to the decoded data block, and decrypts the final ciphertext corresponding to the decoded data block to obtain the data conversion model corresponding to each data block of the task data; The receiver records the initial secret key corresponding to the task data generated by the quantum key distribution protocol and the data conversion model of each data block corresponding to the task data as the decryption key of the final ciphertext corresponding to the task data, decrypts the final ciphertext corresponding to the task data, and records the task data obtained by splicing the data blocks obtained after decryption by the receiver in the order of numbers as the data decryption result.

[0022] See also Figure 2 To achieve the above purpose, the present invention also provides the following technical solution: a data encryption method based on quantum communication, comprising the following steps: Acquire and preliminarily analyze the task data that needs quantum encryption communication to obtain the quantum communication encryption control set corresponding to the task data; Perform quantum key distribution control according to the quantum communication encryption control set corresponding to the task data to obtain the initial secret key corresponding to the task data; Process the task data that needs to be encrypted for communication, and encrypt the task data to obtain the final ciphertext corresponding to the task data; The final ciphertext corresponding to the received task data is decrypted to obtain the data decryption result.

[0023] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A data encryption system based on quantum communication, characterized in that: include: Task data acquisition module: used to acquire and perform preliminary analysis on the task data that needs quantum encryption communication, and obtain the quantum communication encryption control set corresponding to the task data; Quantum key distribution module: used to perform quantum key distribution control according to the quantum communication encryption control set corresponding to the task data, and obtain the initial secret key corresponding to the task data; Data encryption module: used to process the task data that needs to be encrypted, and encrypt the task data to obtain the final ciphertext corresponding to the task data; Data decryption module: used to decrypt the final ciphertext corresponding to the received task data to obtain the data decryption result.

2. A data encryption system based on quantum communication according to claim 1, characterized in that: The specific execution method of the task data acquisition module is as follows: Obtaining task data that requires quantum encryption communication, extracting information from the task data, and obtaining task basic information and task requirement information in the task data, wherein the task basic information includes each sub-data to be encrypted in the task data, the data volume, data type, and security label of each sub-data to be encrypted, and the task requirement information includes the delay duration and response duration of the task data; Establish a data extraction relationship between the task data acquisition module and the database, extract the data encryption coefficient corresponding to each security label, the data security coefficient and the first communication demand coefficient corresponding to each data type, and the second communication demand coefficient corresponding to each data volume stored in the database, and screen and obtain the data encryption coefficient, data security coefficient, first communication demand coefficient and second communication demand coefficient corresponding to each sub-data to be encrypted through the data volume, data type and security label of each sub-data to be encrypted in the task data; By calculating the formula , calculate the comprehensive encryption requirement coefficient corresponding to the task data ; By calculating the formula , calculate the comprehensive communication demand coefficient corresponding to the task data ,in Indicates the number of each sub-data to be encrypted. It is expressed as the number of sub-data to be encrypted. , They are respectively represented as the data encryption coefficient and data security coefficient corresponding to each sub-data to be encrypted, , They are respectively represented as the delay time and response time of the task data, , They are respectively represented as the first communication demand coefficient and the second communication demand coefficient corresponding to each sub-data to be encrypted; The quantum communication encryption control sets corresponding to the combinations of comprehensive encryption requirement coefficients and comprehensive communication requirement coefficients stored in the database are extracted, and the encryption control sets of quantum communication corresponding to the task data are obtained by screening through the comprehensive encryption requirement coefficients and comprehensive communication requirement coefficients corresponding to the task data, wherein the encryption control set includes resource allocation control, quantum key distribution protocol and encryption algorithm.

3. A data encryption system based on quantum communication according to claim 2, characterized in that: The specific implementation of the quantum key distribution module is as follows: Obtain the quantum key distribution protocol corresponding to the task data, and obtain the basis group type corresponding to the quantum key distribution protocol through the quantum key distribution protocol corresponding to the task data; Number each basis group type corresponding to the quantum key distribution protocol corresponding to the task data; The numbers of each basis set type are used by a strong random selector to generate a set of random numbers, and the numbers corresponding to each basis set type are matched to obtain a set of randomly generated bases. The sender prepares quantum bits with the randomly generated set of bases and sends the prepared quantum bits to the receiver through a quantum channel; The receiver generates each random number group through a strong random selector, and obtains each random group basis through matching each random number group; A group of bases randomly generated by the sender and each random group of bases obtained by the receiver are publicly compared through a classical channel, and the random group of bases of the receiver that are the same as the group of bases randomly generated by the sender are used for key extraction to obtain the initial secret key corresponding to the receiver; Randomly select the bits at the same position in the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender for comparison. If the bits at the same position are the same, it means the bit is correct, and if the bits at the same position are different, it means the bit is wrong. Statistically obtain the bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender; The bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender is compared with the preset bit error rate threshold. If the bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender is less than the preset bit error rate threshold, it means that the communication is secure. If the bit error rate of the initial secret key corresponding to the receiver and the quantum bit corresponding to the sender is greater than or equal to the preset bit error rate threshold, it means that there may be an eavesdropper, and the communication is terminated and restarted.

4. A data encryption system based on quantum communication according to claim 3, characterized in that: The specific implementation method of the data encryption module is as follows: Establishing a data extraction relationship between the data encryption module and the database, extracting a data conversion model library stored in the database, wherein the data conversion model library includes various data conversion models, and the data conversion models include byte replacement, row shift of the state matrix, and column confusion of the state matrix; Generate the secret key of each wheel through the initial secret key; Obtain the encryption algorithm corresponding to the task data, obtain the data partitioning requirements corresponding to the encryption algorithm, divide the task data according to the data partitioning requirements, and obtain the data blocks corresponding to the task data; Numbering each data conversion model in the data conversion model library; Number each data block corresponding to the task data; A strong random number selector is used to perform random selections, each of which includes selecting two numbers in sequence, matching the first selected number with the number of each data conversion model in the data conversion model library, and matching the latter selected number with the number of each data block corresponding to the task data, to obtain the data conversion model and data block corresponding to each random selection, and to obtain the data conversion model corresponding to each data block; Perform an XOR operation on each data block corresponding to the task data and the first round of secret key to obtain the operation result of the XOR operation on each data block and the first round of secret key, and perform byte replacement, row shift of the state matrix and column confusion of the state matrix on the operation result of the XOR operation on each data block and the first round of secret key according to the data conversion model corresponding to each data block to obtain the first round of data transformation result corresponding to each data block; Sequentially perform XOR operations on the data transformation results of the previous round of each data block with the sub-secret key of the next round, and complete the byte replacement, row shift of the state matrix, and column confusion of the state matrix corresponding to this round, until the final round is completed to obtain the final ciphertext corresponding to the task data; A new data block is established based on the data conversion model corresponding to each data block and recorded as a decoded data block. A new round of quantum communication encryption transmission is performed on the decoded data block to obtain the initial secret key and final ciphertext corresponding to the decoded data block.

5. A data encryption system based on quantum communication according to claim 4, characterized in that: The specific implementation method of the data decryption module is as follows: The receiver receives the final ciphertext corresponding to the task data and the final ciphertext corresponding to the decoded data block sent by the sender through the classical channel; The receiver uses the initial secret key corresponding to the decoded data block generated by the quantum key distribution protocol as the decryption key of the final ciphertext corresponding to the decoded data block, and decrypts the final ciphertext corresponding to the decoded data block to obtain the data conversion model corresponding to each data block of the task data; The receiver records the initial secret key corresponding to the task data generated by the quantum key distribution protocol and the data conversion model of each data block corresponding to the task data as the decryption key of the final ciphertext corresponding to the task data, decrypts the final ciphertext corresponding to the task data, and records the task data obtained by splicing the data blocks obtained after decryption by the receiver in the order of numbers as the data decryption result.

6. A data encryption method based on quantum communication, applied to a data encryption system based on quantum communication as claimed in any one of claims 1 to 5, characterized in that: include: Acquire and preliminarily analyze the task data that needs quantum encryption communication to obtain the quantum communication encryption control set corresponding to the task data; Perform quantum key distribution control according to the quantum communication encryption control set corresponding to the task data to obtain the initial secret key corresponding to the task data; Process the task data that needs to be encrypted for communication, and encrypt the task data to obtain the final ciphertext corresponding to the task data; The final ciphertext corresponding to the received task data is decrypted to obtain the data decryption result.

Citation Information

Patent Citations

  • Block chain encryption method based on quantum communication

    CN111988281A

  • Network data processing method and storage medium

    CN119402262A

  • Quantum encryption communication data-processing method and quantum encryption communication device

    JP2010251976A

  • Quantum key distribution method, communication system, and communication device

    WO2006078033A1