A data encryption method and system based on quantum communication
Through a data encryption system based on quantum communication, the problem of high computational complexity of existing encryption algorithms is solved, and efficient data encryption and decryption processes are realized, ensuring the security and stability of communication.
Patent Information
- Application Number
- CN202510451201.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-04-11
AI Technical Summary
The existing encryption algorithm has high computational complexity, resulting in slower encryption and decryption processes, affecting the real-time and efficiency of communication, and has design defects, increasing the security risks of data transmission.
The data encryption system based on quantum communication is adopted, including a task data acquisition module, a quantum key distribution module, a data encryption module and a data decryption module. By conducting detailed analysis of the task data, the data is reasonably divided and the random data transformation model is used for encryption, ensuring the security and stability of communication.
It improves the accuracy and reliability of quantum encrypted communication, reduces the probability of data being stolen, and enhances the stability and security of communication.
Smart Images

Figure CN119996080B_ABST
Abstract
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 spied on by unauthorized third parties during the transmission process, thus effectively protecting personal privacy and business secrets. Through encryption technology, it is possible to verify whether the data has been tampered with or damaged during the transmission process, ensuring the integrity and accuracy of the data. Encrypted communication provides a secure communication channel for both communication parties, preventing information from being intercepted or misused during the transmission process, enhancing the security of communication. However, the existing technologies still have the following deficiencies;
[0003] Some encryption algorithms have a high computational complexity, resulting in slow encryption and decryption processes. With the increase in data volume, this performance bottleneck becomes particularly obvious, which may affect the real-time performance and efficiency of communication. Some encryption systems may have design or implementation flaws, enabling attackers to exploit these vulnerabilities for attacks, unable to guarantee the security of data transmission, increasing the risk of data transmission. Summary of the Invention
[0004] 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 art.
[0005] To achieve the above purpose, the present invention provides the following technical solution: A data encryption system based on quantum communication, comprising:
[0006] A task data acquisition module: used to acquire and preliminarily analyze the task data to be quantum encrypted and communicated, and obtain a quantum communication encryption control set corresponding to the task data;
[0007] A 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 an initial secret key corresponding to the task data;
[0008] A data encryption module: used to process the task data to be encrypted and communicated, and perform encryption processing on the task data to obtain a final ciphertext corresponding to the task data;
[0009] A data decryption module: used to perform decryption operations on the final ciphertext corresponding to the received task data to obtain a data decryption result.
[0010] In a preferred embodiment of this solution, the specific implementation manner of the task data acquisition module is as follows:
[0011] Obtain the task data for quantum encrypted communication, extract information from the task data to obtain the task basic information and task requirement information in the task data. 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. The task requirement information includes the latency duration and response duration of the task data;
[0012] Establish a data extraction relationship between the task data acquisition module and the database, extract the data encryption coefficients corresponding to each security label stored in the database, the data security coefficients and the first communication requirement coefficients corresponding to each data type, and the second communication requirement coefficients corresponding to each data volume. Through the data volume, data type, and security label of each sub-data to be encrypted in the task data, screen and obtain the data encryption coefficients, data security coefficients, first communication requirement coefficients, and second communication requirement coefficients corresponding to each sub-data to be encrypted;
[0013] Through the calculation formula , calculate to obtain the comprehensive encryption requirement coefficient corresponding to the task data ;
[0014] Through the calculation formula , calculate to obtain the comprehensive communication requirement coefficient corresponding to the task data , where represents the number of each sub-data to be encrypted, represents the number of sub-data to be encrypted, , respectively represent the data encryption coefficient and data security coefficient corresponding to each sub-data to be encrypted, , respectively represent the latency duration and response duration of the task data, , respectively represent the first communication requirement coefficient and the second communication requirement coefficient corresponding to each sub-data to be encrypted;
[0015] Extract the quantum communication encryption control set corresponding to each combination of the comprehensive encryption requirement coefficient and the comprehensive communication requirement coefficient stored in the database, and screen through the comprehensive encryption requirement coefficient and the comprehensive communication requirement coefficient corresponding to the task data to obtain the encryption control set for quantum communication corresponding to the task data. The encryption control set includes resource allocation control, quantum key distribution protocol, and encryption algorithm.
[0016] In a preferred embodiment of this solution, the specific execution method of the quantum key distribution module is as follows:
[0017] 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;
[0018] Number each basis set type corresponding to the quantum key distribution protocol for the task data;
[0019] Generate a set of random numbers by the strong random selector for the numbers of each basis set type, match the numbers corresponding to each basis set type, obtain a set of randomly generated bases, and the sender prepares qubits with the randomly generated set of bases and sends the prepared qubits to the receiver through the quantum channel;
[0020] The receiver generates each set of random numbers through the strong random selector and obtains each set of random bases by matching through each set of random numbers;
[0021] Publicly compare a set of bases randomly generated by the sender and each set of random bases obtained by the receiver through the classical channel, extract the secret key for the set of random bases that are the same between the receiver and the sender, and obtain the initial secret key corresponding to the receiver;
[0022] Compare the bits at the same positions randomly selected from the initial secret key corresponding to the receiver and the qubits corresponding to the sender. If the bits at the same positions are the same, it means the bits are correct. If the bits at the same positions are different, it means the bits are incorrect. Statistically obtain the bit error rate between the initial secret key corresponding to the receiver and the qubits corresponding to the sender;
[0023] Compare the bit error rate between the initial secret key corresponding to the receiver and the qubits corresponding to the sender with the preset bit error rate threshold. If the bit error rate between the initial secret key corresponding to the receiver and the qubits corresponding to the sender is less than the preset bit error rate threshold, it means the communication is secure. If the bit error rate between the initial secret key corresponding to the receiver and the qubits corresponding to the sender is greater than or equal to the preset bit error rate threshold, it means there may be an eavesdropper, abort the communication and start over.
[0024] In a preferred embodiment of this solution, the specific execution manner of the data encryption module is as follows:
[0025] Establish a data extraction relationship between the data encryption module and the database, and extract the data conversion model library stored in the database, where the data conversion model library includes each data conversion model, and the data conversion model includes byte substitution, row shift of the state matrix, and column confusion of the state matrix;
[0026] Generate each round of secret keys through the initial secret key;
[0027] Obtain the encryption algorithm corresponding to the task data, obtain the data partitioning requirements corresponding to the encryption algorithm, partition the task data according to the data partitioning requirements, and obtain each data block corresponding to the task data;
[0028] Number each data conversion model in the data conversion model library;
[0029] Number each data block corresponding to the task data;
[0030] Conduct each random selection through a strong random number selector. Each random selection respectively includes successively selecting two numbers. Match the number selected first with the numbers of each data conversion model in the data conversion model library, and match the number selected later with the numbers of each data block corresponding to the task data, to obtain the data conversion model and data block corresponding to each random selection, and obtain the data conversion model corresponding to each data block;
[0031] Perform an exclusive OR operation on each data block corresponding to the task data and the first-round secret key, obtain the operation result of the exclusive OR operation of each data block and the first-round secret key, and perform byte substitution, row shift of the state matrix, and column confusion of the state matrix on the operation result of the exclusive OR operation of each data block and the first-round secret key according to the data conversion model corresponding to each data block, to obtain the first-round data transformation result corresponding to each data block;
[0032] Successively perform an exclusive OR operation on the data transformation result of each data block corresponding to the previous round and the sub-secret key of the next round, and complete the byte substitution, row shift of the state matrix, and column confusion corresponding to this round, until the final round is completed to obtain the final ciphertext corresponding to the task data;
[0033] Establish a new data block for the data conversion model corresponding to each data block, and record it as the decoded data block, and perform a new round of quantum communication encryption transmission on the decoded data block, to obtain the initial secret key and the final ciphertext corresponding to the decoded data block.
[0034] In a preferred embodiment of this solution, the specific execution manner of the data decryption module is as follows:
[0035] The receiving party receives the final ciphertext corresponding to the task data and the final ciphertext corresponding to the decoded data block sent by the sending party through the classical channel;
[0036] The receiving party uses the initial secret key corresponding to the decoded data block generated through the quantum key distribution protocol as the decryption secret key for 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 of each data block corresponding to the task data;
[0037] The receiving party uses the initial secret key corresponding to the task data generated through the quantum key distribution protocol and the data conversion model of each data block corresponding to the task data as the decryption secret key for the final ciphertext corresponding to the task data, and decrypts the final ciphertext corresponding to the task data. The task data obtained by splicing each data block obtained by the receiving party after decryption in the order of the numbers is recorded as the data decryption result.
[0038] To achieve the above object, the present invention also provides the following technical solution: A data encryption method based on quantum communication, including the following steps:
[0039] Obtain the task data for quantum encrypted communication and perform preliminary analysis to obtain the quantum communication encryption control set corresponding to the task data;
[0040] 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;
[0041] Process the task data to be encrypted and perform encryption processing on the task data to obtain the final ciphertext corresponding to the task data;
[0042] Perform decryption operation on the received final ciphertext corresponding to the task data to obtain the data decryption result.
[0043] Compared with the prior art, the beneficial effects of the present invention are:
[0044] The present invention obtains the data to be transmitted, and conducts a detailed analysis on 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 encrypted communication for the task data;
[0045] The present invention reasonably divides the data to be transmitted, randomly adopts different data transformation models to perform data transformation on the data blocks, and simultaneously performs quantum encrypted communication on the data transformation models corresponding to each data, further reducing the probability of the task data being stolen, and thus increasing the stability and reliability of quantum encrypted communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The present invention will be further described with reference to the accompanying drawings, but the embodiments in the drawings do not constitute any limitation to the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the following drawings without creative efforts.
[0047] Figure 1 It is a schematic diagram of module connection in an embodiment of the present invention.
[0048] Figure 2 It is a schematic diagram of steps in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0050] Please refer to Figure 1 , the present invention provides a data encryption system based on quantum communication, which includes a task data acquisition module, a quantum key distribution module, a data encryption module, and a data decryption module;
[0051] 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;
[0052] Task data acquisition module: used to acquire the task data to be subjected to quantum encrypted communication and perform preliminary analysis to obtain the quantum communication encryption control set corresponding to the task data;
[0053] Furthermore, the specific execution method of the task data acquisition module is as follows:
[0054] Acquire the task data to be subjected to quantum encrypted communication, extract information from the task data to obtain the task basic information and task requirement information in the task data, where the task basic information includes each encrypted sub-data in the task data, the data volume, data type, and security label of each encrypted sub-data, and the task requirement information includes the delay duration and response duration of the task data;
[0055] It should be noted that: the delay duration refers to the time length required to complete the data quantum encrypted communication task, and the response duration is an indicator of the speed at which the system, service, or device responds to the data quantum encrypted communication task request.
[0056] Establish a data extraction relationship between the task data acquisition module and the database, extract the data encryption coefficients corresponding to each security label, the data security coefficients and the first communication requirement coefficients corresponding to each data type, and the second communication requirement coefficients corresponding to each data volume stored in the database, and filter through the data volume, data type, and security label of each encrypted sub-data in the task data to obtain the data encryption coefficients, data security coefficients, first communication requirement coefficients, and second communication requirement coefficients corresponding to each encrypted sub-data;
[0057] Through the calculation formula , calculate to obtain the comprehensive encryption requirement coefficient corresponding to the task data ;
[0058] Through the calculation formula , calculate to obtain the comprehensive communication requirement coefficient corresponding to the task data , where represents the number of each encrypted sub-data, represents the number of encrypted sub-data to be encrypted, , They are respectively represented as the data encryption coefficient and the data security coefficient corresponding to each sub-data to be encrypted. and They are respectively represented as the latency duration and the response duration of the task data. and They are respectively represented as the first communication requirement coefficient and the second communication requirement coefficient corresponding to each sub-data to be encrypted.
[0059] Extract the quantum communication encryption control set corresponding to each combination of the comprehensive encryption requirement coefficient and the comprehensive communication requirement coefficient stored in the database, and screen it through the comprehensive encryption requirement coefficient and the comprehensive communication requirement coefficient corresponding to the task data to obtain the encryption control set corresponding to the quantum communication of the task data, where the encryption control set includes resource allocation control, quantum key distribution protocol, and encryption algorithm.
[0060] Quantum key distribution module: used to 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.
[0061] Furthermore, the specific execution method of the quantum key distribution module is as follows:
[0062] Obtain the quantum key distribution protocol corresponding to the task data, and obtain the basis set type corresponding to the quantum key distribution protocol through the quantum key distribution protocol corresponding to the task data.
[0063] It should be noted that: the basis set types include linear basis, diagonal set, and Bell basis, etc.
[0064] Number each basis set type corresponding to the quantum key distribution protocol of the task data.
[0065] Generate a set of random numbers by the strong random selector for the numbers of each basis set type, match the numbers corresponding to each basis set type, obtain a set of randomly generated bases, and the sender prepares quantum bits for the randomly generated set of bases and sends the prepared quantum bits to the receiver through the quantum channel.
[0066] The receiver generates each set of random numbers by the strong random selector, and obtains each set of random bases through the matching of each set of random numbers.
[0067] Compare the set of bases randomly generated by the sender and each set of random bases obtained by the receiver publicly through the classical channel, and extract the secret key for the set of random bases that are the same between the receiver and the sender to obtain the initial secret key corresponding to the receiver.
[0068] Compare the bits at the same positions randomly selected from the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender. If the bits at the same positions are the same, it means the bits are correct; if the bits at the same positions are different, it means the bits are incorrect. Statistically obtain the bit error rate between the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender.
[0069] Compare the bit error rate between the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender with the preset bit error rate threshold. If the bit error rate between the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender is less than the preset bit error rate threshold, it means the communication is secure. If the bit error rate between the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender is greater than or equal to the preset bit error rate threshold, it means there may be an eavesdropper, abort the communication and start over.
[0070] Data encryption module: used to process the task data to be encrypted and communicate, and encrypt the task data to obtain the final ciphertext corresponding to the task data.
[0071] Furthermore, the specific execution method of the data encryption module is as follows:
[0072] Establish a data extraction relationship between the data encryption module and the database, and extract the data conversion model library stored in the database, where the data conversion model library includes various data conversion models, and the data conversion models include byte substitution, row shift of the state matrix, and column confusion of the state matrix.
[0073] Generate each round of secret keys through the initial secret key.
[0074] Obtain the encryption algorithm corresponding to the task data, obtain the data partitioning requirements corresponding to the encryption algorithm, and partition the task data according to the data partitioning requirements to obtain each data block corresponding to the task data.
[0075] Number each data conversion model in the data conversion model library.
[0076] Number each data block corresponding to the task data.
[0077] It should be noted that; numbering each data conversion model in the data conversion model library and numbering each data block corresponding to the task data are both numerical numberings.
[0078] Conduct each random selection through a strong random number selector. Each random selection includes successively selecting two numbers. Match the first selected number with the numbers of each data conversion model in the data conversion model library, and match the second selected number with the numbers of each data block corresponding to the task data, to obtain the data conversion model and data block corresponding to each random selection, and obtain the data conversion model corresponding to each data block.
[0079] XOR each data block corresponding to the task data with the first-round secret key to obtain the operation results of XORing each data block with the first-round secret key. According to the data conversion models corresponding to each data block, perform byte substitution, row shift of the state matrix, and column confusion of the state matrix on the operation results of XORing each data block with the first-round secret key to obtain the first-round data transformation results corresponding to each data block;
[0080] Successively XOR the data transformation results of each data block corresponding to the previous round with the sub-secret key of the next round, and complete the byte substitution, 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;
[0081] Establish new data blocks based on the data conversion models corresponding to each data block, and denote them as decoded data blocks. Perform a new round of quantum communication encryption transmission on the decoded data blocks to obtain the initial secret key and the final ciphertext corresponding to the decoded data blocks.
[0082] Data decryption module: used to decrypt the final ciphertext corresponding to the received task data to obtain the data decryption result.
[0083] Furthermore, the specific execution method of the data decryption module is as follows:
[0084] The receiving party receives the final ciphertext corresponding to the task data sent by the sending party and the final ciphertext corresponding to the decoded data block through the classical channel;
[0085] The receiving party uses the initial secret key corresponding to the decoded data block generated through the quantum key distribution protocol as the decryption secret key for 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 models of each data block corresponding to the task data;
[0086] The receiving party records the initial secret key corresponding to the task data generated through the quantum key distribution protocol and the data conversion models of each data block corresponding to the task data as the decryption secret key for the final ciphertext corresponding to the task data, and decrypts the final ciphertext corresponding to the task data. The task data obtained by splicing the decrypted data blocks in the order of their numbers by the receiving party is denoted as the data decryption result.
[0087] Please refer to Figure 2 For achieving the above object, the present invention also provides the following technical solution: A data encryption method based on quantum communication, including the following steps:
[0088] Obtain the task data to be subjected to quantum encrypted communication and perform preliminary analysis to obtain the quantum communication encryption control set corresponding to the task data;
[0089] 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;
[0090] Process the task data to be encrypted and communicate, and perform encryption processing on the task data to obtain the final ciphertext corresponding to the task data;
[0091] Perform a decryption operation on the final ciphertext corresponding to the received task data to obtain the data decryption result.
[0092] The above are all preferred embodiments of this application. The protection scope of this application is not limited thereby. Therefore, all equivalent changes made according to the structure, shape, and principle of this application shall be covered within the protection scope of this application.
Claims
1. A data encryption system based on quantum communication, characterized in that: Including: Task data acquisition module: used to acquire the task data to be subjected to quantum encrypted communication and perform preliminary analysis to obtain the quantum communication encryption control set corresponding to the task data; The specific execution method of the task data acquisition module is as follows: Acquire the task data to be subjected to quantum encrypted communication, extract information from the task data to obtain the task basic information and task requirement information in the task data, where the task basic information includes each encrypted sub-data in the task data, the data volume, data type and security label of each encrypted sub-data, 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 coefficients corresponding to each security label stored in the database, extract the data security coefficients and the first communication requirement coefficients corresponding to each data type stored in the database, extract the second communication requirement coefficients corresponding to each data volume stored in the database, and filter to obtain the data encryption coefficients, data security coefficients, first communication requirement coefficients and second communication requirement coefficients corresponding to each encrypted sub-data through the data volume, data type and security label of each encrypted sub-data in the task data; Through the calculation formula , the comprehensive encryption requirement coefficient corresponding to the task data is calculated ; By using the calculation formula , the comprehensive communication demand coefficient corresponding to the task data is calculated as , where represents the numbers of the sub-data to be encrypted respectively, represents the quantity of the sub-data to be encrypted, , represent the data encryption coefficient and the data security coefficient corresponding to each sub-data to be encrypted respectively, , represent the delay duration and the response duration of the task data respectively, , represent the first communication demand coefficient and the second communication demand coefficient corresponding to each sub-data to be encrypted respectively; Extract the quantum communication encryption control set corresponding to each combination of comprehensive encryption requirement coefficients and comprehensive communication requirement coefficients stored in the database, and filter through the comprehensive encryption requirement coefficients and comprehensive communication requirement coefficients corresponding to the task data to obtain the encryption control set corresponding to the quantum communication of the task data, where the encryption control set includes resource allocation control, quantum key distribution protocol and encryption algorithm; Quantum key distribution module: used to 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; Data encryption module: used to process the task data to be encrypted and communicate, and perform encryption processing on the task data to obtain the final ciphertext corresponding to the task data; Data decryption module: used to perform decryption operations on the final ciphertext corresponding to the received task data to obtain the data decryption result.
2. The data encryption system based on quantum communication according to claim 1, wherein: The specific execution 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 set type corresponding to the quantum key distribution protocol through the quantum key distribution protocol corresponding to the task data; Number each basis set type corresponding to the quantum key distribution protocol of the task data; Generate a set of random numbers from the numbers of each basis set type through a strong random selector, match the numbers corresponding to each basis set type to obtain a set of randomly generated bases, and 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 of bases through matching of each random number group; Publicly compare the set of bases randomly generated by the sender and each random group of bases randomly generated by the receiver through a classical channel, and retain the quantum bits with consistent bases to obtain the initial secret key corresponding to the receiver; Randomly select bits at the same positions from the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender for comparison. If the bits at the same positions are the same, it means the bits are correct; if the bits at the same positions are different, it means the bits are incorrect. Statistically obtain the bit error rate between the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender. Compare the bit error rate between the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender with the preset bit error rate threshold. If the bit error rate between the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender is less than the preset bit error rate threshold, it means the communication is secure. If the bit error rate between the initial secret key corresponding to the recipient and the quantum bits corresponding to the sender is greater than or equal to the preset bit error rate threshold, it means there may be an eavesdropper, abort the communication and start over.
3. A data encryption system based on quantum communication according to claim 2, characterized in that: The specific execution method of the data encryption module is as follows: Establish a data extraction relationship between the data encryption module and the database, and extract the data conversion model library stored in the database. The data conversion model library includes various data conversion models, and the data conversion models include byte substitution, row shift of the state matrix, and column confusion of the state matrix. Generate each round of sub-secret keys through the initial secret key. Obtain the encryption algorithm corresponding to the task data, obtain the data partitioning requirements corresponding to the encryption algorithm, and partition the task data according to the data partitioning requirements to obtain each data block corresponding to the task data. Number each data conversion model in the data conversion model library. Number each data block corresponding to the task data. Conduct each random selection through a strong random number selector. Each random selection includes successively selecting two numbers. Match the first selected number with the numbers of each data conversion model in the data conversion model library, and match the second selected number with the numbers of each data block corresponding to the task data to obtain the data conversion model and data block corresponding to each random selection, and obtain the data conversion model corresponding to each data block. Perform an exclusive OR operation on each data block corresponding to the task data and the first-round secret key to obtain the operation result of the exclusive OR operation between each data block and the first-round secret key. According to the data conversion model corresponding to each data block, perform byte substitution, row shift of the state matrix, and column confusion on the operation result of the exclusive OR operation between each data block and the first-round secret key to obtain the first-round data transformation result corresponding to each data block. Successively perform an exclusive OR operation on the data transformation result of the previous round corresponding to each data block and the sub-secret key of the next round, and complete the byte substitution, row shift of the state matrix, and column confusion corresponding to this round until the final round is completed to obtain the final ciphertext corresponding to the task data. Establish a new data block for the data conversion model corresponding to each data block, and record it as the decoded data block. Perform a new round of quantum communication encryption transmission on the decoded data block to obtain the initial secret key and the final ciphertext corresponding to the decoded data block.
4. A data encryption system based on quantum communication according to claim 3, characterized in that: The specific execution method of the data decryption module is as follows: The recipient receives the final ciphertext corresponding to the task data corresponding to the sender and the final ciphertext corresponding to the decoded data block through the classical channel. The receiving party uses the initial secret key corresponding to the decoded data block generated by the quantum key distribution protocol as the decryption secret key for 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 for each data block corresponding to the task data; The receiving party records the initial secret key corresponding to the task data generated by the quantum key distribution protocol and the data conversion model for each data block corresponding to the task data as the decryption secret key for the final ciphertext corresponding to the task data, and decrypts the final ciphertext corresponding to the task data. The receiving party splices the obtained data blocks in the order of the numbers to obtain the task data, and records the task data obtained by splicing the obtained data blocks in the order of the numbers by the receiving party as the data decryption result.
5. A data encryption method based on quantum communication, applied to the data encryption system based on quantum communication according to any one of claims 1-4, characterized in that: Including: Obtain the task data to be subjected to quantum encrypted communication and perform a preliminary analysis 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 to be encrypted and perform encryption processing on the task data to obtain the final ciphertext corresponding to the task data; Perform a decryption operation on the received final ciphertext corresponding to the task data 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