Data processing method, apparatus and device
By using entangled quantum keys to encrypt data, the problems of high resource consumption and vulnerability to cracking in existing data transmission processes are solved, achieving higher security for data transmission and processing.
Patent Information
- Application Number
- CN202211505535.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2042-11-29
Smart Images

Figure CN115801250B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a data processing method, apparatus, and device. Background Technology
[0002] With the development of modernization, a large number of smart devices are used in all aspects of people's lives. During the application process, a large amount of data is collected and transmitted. Therefore, ensuring the security of data transmission and processing is crucial.
[0003] In existing technologies, algorithms are used to encrypt the data transmission and processing of various types of data.
[0004] However, in existing technologies, algorithm encryption methods require a large amount of server resources and are easily cracked, failing to guarantee data security. Summary of the Invention
[0005] This application provides a data processing method, apparatus, and device to address the problem of not being able to guarantee the security of data transmission during the data processing process.
[0006] In a first aspect, this application provides a data processing method, the method being applied to a server device, the method comprising:
[0007] Obtain the first quantum key, and encrypt the data to be processed according to the first quantum key to determine the ciphertext data corresponding to the data to be processed;
[0008] The encrypted data is sent to the terminal device, and the encrypted receipt is received from the terminal device. The terminal device is used to parse the encrypted data according to the second quantum key and send back the encrypted receipt. The first quantum key and the second quantum key are entangled quantum pairs.
[0009] Parse the encrypted receipt to determine the receipt information, verify the receipt information, and determine the verification result;
[0010] If the verification result indicates that the receipt information has passed verification, an execution encrypted instruction is sent to the terminal device to instruct the terminal device to execute the instruction corresponding to the data to be processed.
[0011] In one feasible implementation, the encrypted receipt sent by the terminal device is parsed to determine the receipt information, and the receipt information is verified to determine the verification result, including:
[0012] Parse the ciphertext receipt to determine the data receipt information corresponding to the data to be processed and the key receipt information corresponding to the second quantum key;
[0013] The data receipt information and the key receipt information are verified to determine the verification result.
[0014] In one feasible implementation, the data receipt information and the key receipt information are verified to determine the verification result, including:
[0015] The data receipt information is verified based on the data information of the data to be processed, and the key receipt information is verified based on the quantum entanglement verification module. The data information includes the data size, data type, and data content of the data to be processed.
[0016] If both the data receipt information and the key receipt information are verified, then the verification result is "verification passed".
[0017] If it is determined that the data receipt information passes verification but the key receipt information fails verification, or if the data receipt information fails verification but the key receipt information passes verification, then the verification result is verification failed.
[0018] In one feasible implementation, the method further includes:
[0019] If the data receipt information is verified successfully but the key receipt information fails to be verified, a new first quantum key is obtained, and the data to be processed is processed based on the new first quantum key.
[0020] If it is determined that the data receipt information fails verification but the key receipt information passes verification, then the data to be processed is reacquired, and data processing is performed based on the reacquired data.
[0021] In one feasible implementation, the data to be processed is encrypted using the quantum key to determine the ciphertext data corresponding to the data to be processed, including:
[0022] Analyze the first quantum key to determine the random value of the first quantum key in the definite state;
[0023] Based on the random value, quantum encryption is performed on the data to be processed to determine the ciphertext data corresponding to the data to be processed.
[0024] Secondly, this application provides a data processing method, which is applied to a terminal device, and the method includes:
[0025] The server device acquires a second quantum key and receives ciphertext data sent by a server device. The server device is used to generate and send ciphertext data corresponding to the data to be processed by encrypting the data to be processed according to the first quantum key. The first quantum key and the second quantum key are entangled quantum pairs.
[0026] Based on the second quantum key, the ciphertext data is parsed to determine the data to be processed;
[0027] Based on the second quantum key and the data to be processed, a ciphertext receipt is generated and sent to the server device. The server device is also used to generate and send back an execution ciphertext instruction after the ciphertext receipt is verified.
[0028] Receive the execution ciphertext instruction, and execute the instruction corresponding to the data to be processed according to the execution ciphertext instruction.
[0029] In one feasible implementation, the ciphertext data is parsed based on the second quantum key to determine the data to be processed, including:
[0030] Analyze the second quantum key to determine its random value in the definite state;
[0031] Based on the random value corresponding to the second quantum key, the ciphertext data is parsed to determine the data to be processed.
[0032] In one feasible implementation, generating a ciphertext receipt based on the second quantum key and the data to be processed includes:
[0033] Based on the random value of the second quantum key in the clear state, the data to be processed is encrypted to generate the ciphertext receipt, wherein the ciphertext receipt includes data receipt information corresponding to the data to be processed and key receipt information corresponding to the second quantum key.
[0034] In one feasible implementation, the method further includes:
[0035] If it is determined that the key receipt information corresponding to the second quantum key fails the verification of the server device, a new second quantum key is obtained, and the data to be processed is transmitted according to the new second quantum key.
[0036] In one feasible implementation, receiving the execution ciphertext instruction and executing the instruction corresponding to the data to be processed according to the execution ciphertext instruction includes:
[0037] The system receives and parses the ciphertext execution instruction, and controls the corresponding execution module to execute the instruction corresponding to the data to be processed based on the parsed ciphertext execution instruction.
[0038] Thirdly, this application provides a data processing apparatus, which is applied to a server device, and the apparatus includes:
[0039] The first processing unit is used to acquire a first quantum key and encrypt the data to be processed according to the first quantum key to determine the ciphertext data corresponding to the data to be processed.
[0040] The second processing unit is used to send the encrypted data to the terminal device and receive the encrypted receipt from the terminal device. The terminal device is used to parse the encrypted data according to the second quantum key and send back the encrypted receipt. The first quantum key and the second quantum key are entangled quantum pairs.
[0041] The third processing unit is used to parse the encrypted receipt, determine the receipt information, verify the receipt information, and determine the verification result.
[0042] The sending unit is configured to send an execution encrypted instruction to the terminal device if the verification result indicates that the receipt information has passed verification, so as to instruct the terminal device to execute the instruction corresponding to the data to be processed.
[0043] Fourthly, this application provides a data processing apparatus, which is applied to a terminal device, and the apparatus includes:
[0044] The first processing unit is used to acquire the second quantum key and receive ciphertext data sent by the server device, wherein the server device is used to encrypt the data to be processed according to the first quantum key to generate and send the ciphertext data corresponding to the data to be processed, and the first quantum key and the second quantum key are entangled quantum pairs;
[0045] The determining unit is configured to perform parsing processing on the ciphertext data based on the second quantum key to determine the data to be processed;
[0046] The second processing unit is configured to generate a ciphertext receipt based on the second quantum key and the data to be processed, and send the ciphertext receipt to the server device. The server device is further configured to generate and send back an execution ciphertext instruction after the ciphertext receipt has been verified.
[0047] An execution unit is configured to receive the execution ciphertext instruction and execute the instruction corresponding to the data to be processed according to the execution ciphertext instruction.
[0048] Fifthly, this application provides a server device, including: a processor and a memory;
[0049] The memory is used to store computer-executed instructions;
[0050] The processor is configured to execute computer execution instructions stored in the memory to implement the method as described in the first aspect.
[0051] Sixthly, this application provides a terminal device, including: a processor and a memory;
[0052] The memory is used to store computer-executed instructions;
[0053] The processor is configured to execute computer execution instructions stored in the memory to implement the method as described in the second aspect.
[0054] In a seventh aspect, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method as described in the first aspect, or, when executed by a processor, are used to implement the method as described in the second aspect.
[0055] Eighthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect, or the computer program that, when executed by a processor, implements the method described in the second aspect.
[0056] The data processing method, apparatus, and device provided in this application encrypt the data to be processed using the first quantum key to determine the ciphertext data corresponding to the data to be processed; send the ciphertext data to a terminal device and receive a ciphertext receipt from the terminal device; parse the ciphertext receipt, determine the receipt information, and verify the receipt information to determine the verification result; if the verification result indicates that the receipt information has passed verification, send an execution ciphertext instruction to the terminal device to instruct the terminal device to execute the instruction corresponding to the data to be processed. This process is based on quantum entanglement pairs that are not limited by spatial domain, which encrypts the data processing process and improves the security of data transmission and processing. Attached Figure Description
[0057] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0058] Figure 1 A flowchart illustrating a data processing method provided in an embodiment of this application;
[0059] Figure 2A flowchart illustrating another data processing method provided in an embodiment of this application;
[0060] Figure 3 A flowchart illustrating another data processing method provided in an embodiment of this application;
[0061] Figure 4 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;
[0062] Figure 5 This is a schematic diagram of another data processing apparatus provided in an embodiment of this application;
[0063] Figure 6 This is a schematic diagram of the structure of a server device provided in an embodiment of this application;
[0064] Figure 7 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application;
[0065] Figure 8 This is a block diagram of an electronic device provided in an embodiment of this application.
[0066] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0067] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0068] With the development of intelligence and modernization, a large number of intelligent sensing devices are permeating all aspects of people's lives, such as various wearable devices and smart home devices. The data collected by these devices involves both national security and personal privacy. However, at present, for the transmission and processing of data, both the devices and servers lack efficient encryption methods capable of handling billions of data points.
[0069] In one example, regarding the data transmission and processing, traditional encryption methods currently employ complex algorithms to encrypt various types of data. However, as cracking techniques become increasingly sophisticated, the complexity of these algorithms also rises. Such encryption methods consume significant server resources and are still susceptible to being cracked. For instance, malicious software might exploit vulnerabilities in webcams or routers to infect other networked devices and continue launching attacks, posing a substantial security risk.
[0070] Therefore, this application proposes a data processing method to solve the above-mentioned technical problems.
[0071] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0072] Figure 1 This is a flowchart illustrating a data processing method provided in an embodiment of this application, applied to a server device, such as... Figure 1 As shown, the method includes:
[0073] 101. Obtain the first quantum key and encrypt the data to be processed according to the first quantum key to determine the ciphertext data corresponding to the data to be processed.
[0074] For example, one quantum key in the quantum pair, namely the first quantum key, is obtained, and the data to be processed that needs to be transmitted is encrypted according to the quantum key to determine the ciphertext data corresponding to the data to be processed.
[0075] In one example, the server device includes a quantum ciphertext receiving server, a quantum decoding server, a quantum entanglement verification server, a quantum key storage server, a quantum ciphertext sending server, a quantum ciphertext encryption server, and a device control module. First, the acquired second quantum key is stored in the quantum key storage server. Then, based on the first quantum key, the quantum ciphertext encryption server encrypts the data to be processed using quantum ciphertext. After encryption, the data is sent through the quantum ciphertext sending server. The quantum entanglement verification server is used to verify whether the first quantum key and the second quantum key are in the same entangled state.
[0076] In one example, quantum key distribution equipment distributes quantum pairs. The quantum key distribution center mainly includes a quantum key pair generator, a quantum state detector, an entanglement verifier, and a key pair pool. Quantum key pairs are generated by the key pair generator and verified multiple times using the quantum state detector and entanglement verifier. Once verified, the pairs are stored in the key pair pool and then distributed to server and terminal devices that require them.
[0077] 102. Send ciphertext data to the terminal device and receive ciphertext receipt from the terminal device. The terminal device is used to parse the ciphertext data according to the second quantum key and send back the ciphertext receipt. The first quantum key and the second quantum key are entangled quantum key pairs.
[0078] For example, the server device sends the encrypted ciphertext data to the terminal device. After the terminal device parses the ciphertext data according to the second quantum key and sends back the ciphertext receipt, the server device receives the ciphertext receipt sent back by the terminal device. The first quantum key and the second quantum key are entangled quantum pairs, and the quantum key pair consists of 1024 quantum entanglements.
[0079] In one example, the server device uses quantum ciphertext to receive ciphertext receipts from the server.
[0080] 103. Parse the encrypted receipt, determine the receipt information, verify the receipt information, and determine the verification result.
[0081] For example, based on the second quantum key, the received ciphertext receipt is parsed to determine the parsed ciphertext receipt, i.e., the receipt information. The receipt information is then verified to determine the corresponding verification result, i.e., whether the verification is successful.
[0082] In one example, the quantum decoding server in the server device parses the ciphertext receipt based on the second quantum key, and verifies the parsed ciphertext receipt based on the quantum entanglement verification server and the device control module in the server device to determine the verification result.
[0083] 104. If the verification result indicates that the receipt information has passed verification, send the encrypted execution instruction to the terminal device to instruct the terminal device to execute the instruction corresponding to the data to be processed.
[0084] For example, if the verification result indicates that the receipt information has passed verification, an execution encrypted instruction is generated and sent to the terminal device to instruct the terminal device to execute the instruction corresponding to the data to be processed.
[0085] In one example, after successful verification, the quantum ciphertext encryption server uses the first quantum key to encrypt and execute the ciphertext instruction, which is then sent to the terminal device via the quantum ciphertext sending server to instruct the terminal device to execute the instruction corresponding to the data to be processed.
[0086] In summary, the data processing method provided in this embodiment involves the following steps: obtaining a first quantum key and encrypting the data to be processed based on the first quantum key to determine the ciphertext data corresponding to the data to be processed; sending the ciphertext data to the terminal device and receiving the ciphertext receipt from the terminal device; parsing the ciphertext receipt to determine the receipt information and verifying the receipt information to determine the verification result; if the verification result indicates that the receipt information has passed verification, sending an execution ciphertext instruction to the terminal device to instruct the terminal device to execute the instruction corresponding to the data to be processed. This process is based on quantum entanglement pairs that are not limited by the spatial domain to encrypt the data processing process, thereby improving the security of data transmission and processing.
[0087] Figure 2 This is a flowchart illustrating another data processing method provided in an embodiment of this application, applied to a terminal device, such as... Figure 2 As shown, the method includes:
[0088] 201. Obtain the second quantum key and receive the ciphertext data sent by the server device, wherein the server device is used to generate and send the ciphertext data corresponding to the data to be processed by encrypting the data to be processed according to the first quantum key, and the first quantum key and the second quantum key are entangled quantum pairs.
[0089] For example, the second quantum key in the quantum pair is acquired and stored. After the server device generates and sends the ciphertext data corresponding to the data to be processed by encrypting the data to be processed according to the first quantum key, the ciphertext data sent by the server device is received. The first quantum key and the second quantum key are entangled quantum pairs.
[0090] In one example, the terminal device mainly includes a quantum entanglement verifier, a quantum decoder, a quantum ciphertext receiver, a quantum ciphertext encryptor, a quantum state detector, a quantum key storage device, and a quantum ciphertext transmitter. The terminal device receives ciphertext data sent by the quantum server through the quantum ciphertext receiver and stores a second quantum key using the quantum key storage device.
[0091] In one example, quantum key distribution equipment distributes quantum pairs. The quantum key distribution center mainly includes a quantum key pair generator, a quantum state detector, an entanglement verifier, and a key pair pool. Quantum key pairs are generated by the key pair generator and verified multiple times using the quantum state detector and entanglement verifier. Once verified, the pairs are stored in the key pair pool and then distributed to server and terminal devices that require them.
[0092] 202. Based on the second quantum key, the ciphertext data is parsed and processed to determine the data to be processed.
[0093] For example, the terminal device parses the received ciphertext data according to the stored second quantum key to determine the plaintext data, i.e., the data to be processed.
[0094] In one example, the terminal device uses a quantum state detector to detect the clear state of the quantum key in the quantum key storage, and the quantum decoder uses the random value of the clear state of the key to decode the plaintext data in the ciphertext data.
[0095] 203. Based on the second quantum key and the data to be processed, generate a ciphertext receipt and send the ciphertext receipt to the server device. The server device is also used to generate and send back ciphertext instructions after the ciphertext receipt is verified.
[0096] For example, based on the second quantum key and the data to be processed, a ciphertext receipt is generated and sent back to the server device, wherein the server device is also used to generate and send back an execution ciphertext instruction after the ciphertext receipt has been verified.
[0097] In one example, the terminal device uses a quantum entanglement verifier and a quantum cipher to calculate and generate a key receipt based on plaintext data and a second key, and finally uses a quantum cipher transmitter to send the ciphertext receipt to the server.
[0098] 204. Receive the ciphertext execution instruction and execute the instruction corresponding to the data to be processed according to the ciphertext execution instruction.
[0099] For example, after the encrypted receipt is verified by the server device, the system receives the execution encrypted instruction sent by the server device, and executes the instruction corresponding to the data to be processed according to the execution encrypted instruction, such as turning on or off some functions or switches in the terminal device.
[0100] In summary, the data processing method provided in this embodiment involves the following steps: obtaining a second quantum key and receiving ciphertext data sent by a server device; parsing the ciphertext data according to the second quantum key to determine the data to be processed; generating a ciphertext receipt according to the second quantum key and the data to be processed, and sending the ciphertext receipt to the server device; receiving an execution ciphertext instruction and executing the instruction corresponding to the data to be processed according to the execution ciphertext instruction. This process is based on quantum entanglement pairs that are not limited by spatial domain, which encrypts the data processing process and improves the security of data transmission and processing.
[0101] Figure 3 A flowchart illustrating another data processing method provided in this application embodiment is shown below. Figure 3 As shown, the method includes:
[0102] 301. The server device acquires the first quantum key, parses the first quantum key, and determines the random value of the first quantum key in the clear state; the terminal device acquires the second quantum key, parses the second quantum key, and determines the random value of the second quantum key in the clear state, wherein the first quantum key and the second quantum key are entangled quantum pairs.
[0103] For example, the server device acquires a first quantum key and parses the first quantum key to determine the random value of the first quantum key in a clear state; the terminal device acquires a second quantum key, parses the second quantum key, and determines the random value of the second quantum key in a clear state, wherein the first quantum key and the second quantum key are entangled quantum pairs.
[0104] In one example, the server device stores the acquired second quantum key in a quantum key storage server and uses a quantum state detection server to resolve the random value of the first quantum key in the clear state; the terminal device acquires and stores the second quantum key and uses a quantum state detector to detect the random value of the quantum key in the clear state in the quantum key storage.
[0105] 302. The server device performs quantum encryption on the data to be processed based on a random value to determine the ciphertext data corresponding to the data to be processed.
[0106] For example, the server device performs quantum encryption on the data to be processed based on a random value to determine the ciphertext data corresponding to the data to be processed.
[0107] In one example, the server device uses a quantum cipher to perform quantum encryption on the data to be processed based on the random value of the first quantum key obtained by parsing and detection in the clear state, thereby determining the ciphertext data corresponding to the data to be processed.
[0108] 303. The server device sends encrypted data to the terminal device.
[0109] For example, the server device sends the encrypted data obtained through encryption processing to the terminal device.
[0110] 304. The terminal device receives the encrypted data sent by the server device, and parses the encrypted data according to the random value corresponding to the second quantum key to determine the data to be processed.
[0111] For example, the terminal device receives ciphertext data sent by the server device, and uses the random value corresponding to the second quantum key to parse the plaintext data in the ciphertext data, i.e. the data to be processed, based on the quantum decoder. The first key and the second key are quantum cipher pairs in the same quantum entangled state, so they can decrypt each other.
[0112] 305. The terminal device encrypts the data to be processed based on the random value of the second quantum key in the clear state and generates a ciphertext receipt.
[0113] For example, the terminal device encrypts the data to be processed based on the random value of the second quantum key in the clear state and generates a ciphertext receipt.
[0114] In one example, the terminal device uses a quantum entanglement verifier and a quantum cipher to generate a ciphertext receipt based on the content of the data to be processed and the random value of the second quantum key in the clear state.
[0115] 306. Send a ciphertext receipt to the server device, wherein the server device is also used to generate and send back an execution ciphertext instruction after the ciphertext receipt has been verified.
[0116] For example, a ciphertext receipt can be sent to a server device, which can then execute ciphertext instructions based on the ciphertext receipt.
[0117] In one example, the terminal device uses a quantum cipher to send a ciphertext receipt to the server.
[0118] 307. The server device receives encrypted receipts from the terminal device.
[0119] For example, the server device receives a ciphertext receipt from the terminal device, wherein the ciphertext receipt is generated by the terminal device based on the received ciphertext data.
[0120] 308. The server device parses the ciphertext receipt to determine the data receipt information corresponding to the data to be processed and the key receipt information corresponding to the second quantum key.
[0121] For example, the ciphertext receipt includes two parts of encrypted receipt information. The server device parses the ciphertext receipt to determine the data receipt information corresponding to the data to be processed and the key receipt information corresponding to the second quantum key.
[0122] In one example, the server device uses a quantum decoding server to parse the plaintext receipt verification code and the quantum key receipt verification code from the ciphertext receipt based on the random value in the plaintext state under the first key, which are the data receipt information and the key receipt information.
[0123] 309. The server device verifies the data receipt information and key receipt information to determine the verification result.
[0124] In one example, step 309 includes the following steps:
[0125] The data receipt information is verified based on the data information of the data to be processed, and the key receipt information is verified based on the quantum entanglement verification module. The data information includes the data size, data type, and data content of the data to be processed.
[0126] If both the data receipt and key receipt are verified, the verification result is "verification passed".
[0127] If the data receipt information passes verification but the key receipt information fails verification, or if the data receipt information fails verification but the key receipt information passes verification, then the verification result is "verification failed".
[0128] For example, the data receipt information is verified based on the data information of the data to be processed, and the key receipt information is verified based on the quantum entanglement verification module. The data information includes the data size, data type, and data content of the data to be processed. If both the data receipt information and the key receipt information pass the verification, the verification result is "verification passed". If the data receipt information passes the verification but the key receipt information fails the verification, or vice versa, the verification result is "verification failed". If the data receipt information fails the verification, it indicates that the data size, data type, and data content of the data to be processed are inconsistent with the original. If the key receipt information fails the verification, it indicates that there is a problem with the entanglement state between the first quantum key and the second quantum key.
[0129] In one example, the server device uses a quantum entanglement verification server to verify the quantum key verification code obtained by parsing the ciphertext verification code, and uses the device control center to verify the plaintext verification code obtained by parsing the ciphertext verification code to determine the verification result.
[0130] 310. If the server device verifies that the verification result indicates that the receipt information has passed verification, it sends an execution encrypted instruction to the terminal device to instruct the terminal device to execute the instruction corresponding to the data to be processed.
[0131] For example, this step is the same as step 104, and will not be repeated here.
[0132] 311. The terminal device receives and parses the ciphertext instruction, and controls the corresponding execution module to execute the instruction corresponding to the data to be processed based on the parsed ciphertext instruction.
[0133] For example, after the encrypted receipt is verified by the server device, the execution encrypted instruction sent by the server device is received, and the execution encrypted instruction is parsed by the quantum decryptor to determine the validity of the execution encrypted instruction. Then, the corresponding execution module is controlled to execute the instruction corresponding to the data to be processed, such as turning on or off some functions or switches in the terminal device.
[0134] In summary, the data processing method provided in this embodiment involves the following steps: distributing quantum key pairs to a server device and a terminal device; the server device encrypts the data to be processed using the first quantum key in the quantum key pair to determine the ciphertext data corresponding to the data to be processed; sending the ciphertext data to the terminal device; the terminal device parses the ciphertext data using the second quantum key in the quantum key pair and generates a corresponding ciphertext receipt; the server device receives and parses the ciphertext receipt from the terminal device, determines the receipt information, and verifies the receipt information to determine the verification result; if the verification result indicates that the receipt information has passed verification, an execution ciphertext instruction is sent to the terminal device to instruct the terminal device to execute the instruction corresponding to the data to be processed. This process utilizes quantum entanglement, which is unaffected by distance, to encrypt the data, forming quantum ciphertext for transmission, thereby improving the security and resistance to attacks in data communication.
[0135] One or more embodiments of this application may further include:
[0136] If the server device determines that the data receipt information has passed verification but the key receipt information has failed verification, the server device obtains a new first quantum key and the terminal device obtains a new second quantum key, and then processes the data to be processed based on the new first quantum key and the new second quantum key.
[0137] If the server device determines that the data receipt information has failed verification but the key receipt information has passed verification, the server device will reacquire the data to be processed and perform data processing based on the reacquired data.
[0138] For example, if the server device determines that the data receipt information has passed verification but the key receipt information has failed verification, it indicates that there is a problem with the entangled state between the first quantum key and the second quantum key. Therefore, a new quantum key pair is reissued to the server device and the terminal device. That is, the server device obtains a new first quantum key and the terminal device obtains a new second quantum key, and performs data processing on the data to be processed based on the new first quantum key and the new second quantum key. If the server device determines that the data receipt information has failed verification, it indicates that the data size, data type, and data content of the data to be processed are inconsistent with the original, that is, the data is incomplete or incorrect. In this case, the server device re-obtains the data to be processed and performs data processing on the re-obtained data.
[0139] Figure 4 This is a schematic diagram of a data processing apparatus provided in an embodiment of this application. The apparatus is applied to a server device, such as... Figure 4 As shown, the device includes:
[0140] The first processing unit 41 is used to obtain the first quantum key and encrypt the data to be processed according to the first quantum key to determine the ciphertext data corresponding to the data to be processed.
[0141] The second processing unit 42 is used to send encrypted data to the terminal device and receive the encrypted receipt from the terminal device. The terminal device is used to parse the encrypted data according to the second quantum key and send back the encrypted receipt. The first quantum key and the second quantum key are entangled quantum pairs.
[0142] The third processing unit 43 is used to parse the encrypted receipt, determine the receipt information, verify the receipt information, and determine the verification result.
[0143] The sending unit 44 is used to send an execution encrypted instruction to the terminal device if the verification result indicates that the verification is successful, so as to instruct the terminal device to execute the instruction corresponding to the data to be processed.
[0144] In one example, the third processing unit 43 includes:
[0145] The first parsing subunit is used to parse the ciphertext receipt and determine the data receipt information corresponding to the data to be processed and the key receipt information corresponding to the second quantum key.
[0146] The verification subunit is used to verify the data receipt information and key receipt information and determine the verification result.
[0147] In one example, the verification subunit is specifically used for:
[0148] The data receipt information is verified based on the data information of the data to be processed, and the key receipt information is verified based on the quantum entanglement verification module. The data information includes the data size, data type, and data content of the data to be processed.
[0149] If both the data receipt and key receipt are verified, the verification result is "verification passed".
[0150] If the data receipt information passes verification but the key receipt information fails verification, or if the data receipt information fails verification but the key receipt information passes verification, then the verification result is "verification failed".
[0151] As an example, the device also includes:
[0152] The first acquisition unit is used to acquire a new first quantum key if the data receipt information is verified but the key receipt information is not verified, and to process the data to be processed based on the new first quantum key.
[0153] The second acquisition unit is used to reacquire the data to be processed if the data receipt information fails to be verified but the key receipt information passes verification, and to perform data processing based on the reacquired data to be processed.
[0154] In one example, the first processing unit 41 includes:
[0155] The second parsing subunit is used to parse the first quantum key and determine the random value of the first quantum key in the clear state.
[0156] The encryption subunit is used to perform quantum encryption on the data to be processed based on a random value, and to determine the ciphertext data corresponding to the data to be processed.
[0157] Figure 5 This is a schematic diagram of another data processing apparatus provided in an embodiment of this application. This apparatus is applied to a terminal device, such as... Figure 5 As shown, the device includes:
[0158] The first processing unit 51 is used to acquire the second quantum key and receive ciphertext data sent by the server device. The server device is used to encrypt the data to be processed according to the first quantum key to generate and send the ciphertext data corresponding to the data to be processed. The first quantum key and the second quantum key are entangled quantum pairs.
[0159] The determining unit 52 is used to analyze the ciphertext data according to the second quantum key and determine the data to be processed.
[0160] The second processing unit 53 is used to generate a ciphertext receipt based on the second quantum key and the data to be processed, and send the ciphertext receipt to the server device. The server device is also used to generate and send back ciphertext execution instructions after the ciphertext receipt is verified.
[0161] The execution unit 54 is used to receive the ciphertext execution instruction and execute the instruction corresponding to the data to be processed according to the ciphertext execution instruction.
[0162] In one example, determining unit 52 includes:
[0163] The first parsing subunit is used to parse the second quantum key and determine the random value of the second quantum key in the clear state.
[0164] The second parsing subunit is used to parse the ciphertext data according to the random value corresponding to the second quantum key and determine the data to be processed.
[0165] In one example, the second processing unit 53 is specifically used for:
[0166] Based on the random value of the second quantum key in the clear state, the data to be processed is encrypted to generate a ciphertext receipt. The ciphertext receipt includes data receipt information corresponding to the data to be processed and key receipt information corresponding to the second quantum key.
[0167] In one example, the device also includes:
[0168] The acquisition unit is used to acquire a new second quantum key if it is determined that the key receipt information corresponding to the second quantum key has not passed the verification of the server device, and to perform data transmission processing on the data to be processed according to the new second quantum key.
[0169] In one example, execution unit 54 is specifically used for:
[0170] It receives and parses the ciphertext instructions, and controls the corresponding execution module to execute the instructions corresponding to the data to be processed based on the parsed ciphertext instructions.
[0171] Figure 6 This is a schematic diagram of the structure of a server device provided in an embodiment of this application, such as... Figure 5 As shown, the server device includes: a memory 61 and a processor 62;
[0172] Memory 61; a memory used to store executable instructions of processor 62.
[0173] The processor 62 is configured to perform the method provided in any of the above embodiments.
[0174] Figure 7 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application, such as... Figure 7 As shown, the terminal device includes: a memory 71 and a processor 72;
[0175] Memory 71; a memory used to store executable instructions of processor 72.
[0176] The processor 72 is configured to perform the method provided in any of the above embodiments.
[0177] Figure 8 This is a block diagram of an electronic device provided in an embodiment of this application. The device may be a server device, a terminal device, a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0178] The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0179] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0180] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0181] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.
[0182] Multimedia component 808 includes a screen that provides an output interface between device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0183] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0184] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0185] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0186] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0187] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0188] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0189] A non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by the processor of a terminal device, the terminal device is able to execute the aforementioned screen splitting method.
[0190] This application also provides a computer program product, comprising: a computer program stored in a readable storage medium, wherein at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the scheme provided in any of the above embodiments.
[0191] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0192] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A data processing method, characterized in that, The method is applied to a server device, and the method includes: Obtain the first quantum key, and encrypt the data to be processed according to the first quantum key to determine the ciphertext data corresponding to the data to be processed; The encrypted data is sent to the terminal device, and the encrypted receipt is received from the terminal device. The terminal device is used to parse the encrypted data according to the second quantum key and send back the encrypted receipt. The first quantum key and the second quantum key are entangled quantum pairs. Parse the encrypted receipt to determine the receipt information, verify the receipt information, and determine the verification result; If the verification result indicates that the receipt information has passed verification, an execution encrypted instruction is sent to the terminal device to instruct the terminal device to execute the instruction corresponding to the data to be processed; Parse the encrypted receipt sent by the terminal device, determine the receipt information, and verify the receipt information to determine the verification result, including: The encrypted receipt is parsed to determine the data receipt information corresponding to the data to be processed and the key receipt information corresponding to the second quantum key; the data receipt information and the key receipt information are verified to determine the verification result; if the data receipt information fails verification, it indicates that the data size, data type, and data content of the data to be processed are inconsistent with the original; if the key receipt information fails verification, it indicates that there is a problem with the entanglement state between the first quantum key and the second quantum key.
2. The method according to claim 1, characterized in that, The data receipt information and the key receipt information are verified to determine the verification result, including: The data receipt information is verified based on the data information of the data to be processed, and the key receipt information is verified based on the quantum entanglement verification module. The data information includes the data size, data type, and data content of the data to be processed. If both the data receipt information and the key receipt information are verified, then the verification result is "verification passed". If it is determined that the data receipt information passes verification but the key receipt information fails verification, or if the data receipt information fails verification but the key receipt information passes verification, then the verification result is verification failed.
3. The method according to claim 2, characterized in that, The method further includes: If the data receipt information is verified successfully but the key receipt information fails to be verified, a new first quantum key is obtained, and the data to be processed is processed based on the new first quantum key. If it is determined that the data receipt information fails verification but the key receipt information passes verification, then the data to be processed is reacquired, and data processing is performed based on the reacquired data.
4. The method according to any one of claims 1-3, characterized in that, The quantum key is used to encrypt the data to be processed, and the ciphertext data corresponding to the data to be processed is determined, including: Analyze the first quantum key to determine the random value of the first quantum key in the definite state; Based on the random value, quantum encryption is performed on the data to be processed to determine the ciphertext data corresponding to the data to be processed.
5. A data processing method, characterized in that, The method is applied to a terminal device, and the method includes: The server device acquires a second quantum key and receives ciphertext data sent by a server device. The server device is used to generate and send ciphertext data corresponding to the data to be processed by encrypting the data to be processed according to the first quantum key. The first quantum key and the second quantum key are entangled quantum pairs. Based on the second quantum key, the ciphertext data is parsed to determine the data to be processed; Based on the second quantum key and the data to be processed, a ciphertext receipt is generated and sent to the server device. The server device is further configured to parse the ciphertext receipt, determine the receipt information, verify the receipt information, determine the verification result, and generate and feed back the ciphertext instruction to execute after the verification result indicates that the receipt information has passed the verification. Receive the execution ciphertext instruction, and execute the instruction corresponding to the data to be processed according to the execution ciphertext instruction; Based on the second quantum key and the data to be processed, a ciphertext receipt is generated, including: Based on the random value of the second quantum key in the clear state, the data to be processed is encrypted to generate the ciphertext receipt, wherein the ciphertext receipt includes data receipt information corresponding to the data to be processed and key receipt information corresponding to the second quantum key; the server is used to verify the data receipt information and the key receipt information to determine the verification result; if the data receipt information fails verification, it indicates that the data size, data type, and data content of the data to be processed are inconsistent with the original; if the key receipt information fails verification, it indicates that there is a problem with the entanglement state between the first quantum key and the second quantum key.
6. The method according to claim 5, characterized in that, Based on the second quantum key, the ciphertext data is parsed to determine the data to be processed, including: Analyze the second quantum key to determine its random value in the definite state; Based on the random value corresponding to the second quantum key, the ciphertext data is parsed to determine the data to be processed.
7. The method according to claim 5, characterized in that, The method further includes: If it is determined that the key receipt information corresponding to the second quantum key fails the verification of the server device, a new second quantum key is obtained, and the data to be processed is transmitted according to the new second quantum key.
8. The method according to any one of claims 5-7, characterized in that, Receiving the ciphertext execution instruction and executing the instruction corresponding to the data to be processed according to the ciphertext execution instruction, including: The system receives and parses the ciphertext execution instruction, and controls the corresponding execution module to execute the instruction corresponding to the data to be processed based on the parsed ciphertext execution instruction.
9. A data processing apparatus, characterized in that, The device is used in a server device, and the device includes: The first processing unit is used to acquire a first quantum key and encrypt the data to be processed according to the first quantum key to determine the ciphertext data corresponding to the data to be processed. The second processing unit is used to send the encrypted data to the terminal device and receive the encrypted receipt from the terminal device. The terminal device is used to parse the encrypted data according to the second quantum key and send back the encrypted receipt. The first quantum key and the second quantum key are entangled quantum pairs. The third processing unit is used to parse the encrypted receipt, determine the receipt information, verify the receipt information, and determine the verification result. The sending unit is configured to send an execution encrypted instruction to the terminal device if the verification result indicates that the receipt information has passed the verification, so as to instruct the terminal device to execute the instruction corresponding to the data to be processed; The third processing unit is specifically used to parse the ciphertext receipt and determine the data receipt information corresponding to the data to be processed and the key receipt information corresponding to the second quantum key. The data receipt information and the key receipt information are verified to determine the verification result. If the data receipt information fails verification, it indicates that the data size, data type, and data content of the data to be processed are inconsistent with the original. If the key receipt information fails verification, it indicates that there is a problem with the entangled state between the first quantum key and the second quantum key.
10. A data processing apparatus, characterized in that, The device is used in a terminal device, and the device includes: The first processing unit is used to acquire the second quantum key and receive ciphertext data sent by the server device, wherein the server device is used to encrypt the data to be processed according to the first quantum key to generate and send the ciphertext data corresponding to the data to be processed, and the first quantum key and the second quantum key are entangled quantum pairs; The determining unit is configured to perform parsing processing on the ciphertext data based on the second quantum key to determine the data to be processed; The second processing unit is configured to generate a ciphertext receipt based on the second quantum key and the data to be processed, and send the ciphertext receipt to the server device. The server device is further configured to parse the ciphertext receipt, determine the receipt information, verify the receipt information, determine the verification result, and generate and feed back an execution ciphertext instruction after the verification result indicates that the receipt information has passed the verification. An execution unit is configured to receive the execution ciphertext instruction and execute the instruction corresponding to the data to be processed according to the execution ciphertext instruction; The second processing unit is specifically used to encrypt the data to be processed based on the random value of the second quantum key in the clear state, and generate the ciphertext receipt, wherein the ciphertext receipt includes data receipt information corresponding to the data to be processed and key receipt information corresponding to the second quantum key; the server is used to verify the data receipt information and the key receipt information to determine the verification result; if the data receipt information fails verification, it indicates that the data size, data type, and data content of the data to be processed are inconsistent with the original; if the key receipt information fails verification, it indicates that there is a problem with the entanglement state between the first quantum key and the second quantum key.
11. A server device, characterized in that, Includes: processor, memory; The memory is used to store computer-executed instructions; The processor is configured to execute computer execution instructions stored in the memory to implement the method as described in any one of claims 1-4.
12. A terminal device, characterized in that, Includes: processor, memory; The memory is used to store computer-executed instructions; The processor is configured to execute computer execution instructions stored in the memory to implement the method as described in any one of claims 5-8.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-4, or, when executed by a processor, are used to implement the method as described in any one of claims 5-8.
14. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1-4, or the computer program that, when executed by a processor, implements the method as described in any one of claims 5-8.
Citation Information
Patent Citations
Identity verification method and device, storage medium and electronic equipment
CN114448629A