Encryption transmission method and system of video data
By block segmentation and quantum encryption of video data using the unique quantum key generated by negotiation in video encryption transmission, the problem of key leakage in the prior art is solved, and the security and stability of video data transmission is improved.
Patent Information
- Application Number
- CN202411679403.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-11-22
AI Technical Summary
The existing video encryption transmission method has the possibility of key leakage, resulting in low security of video data transmission.
By negotiating the generation of a unique quantum key between the sender and the receiver, block segmentation and quantum encryption of the video data, quantum decryption after transmission to the receiver, reducing the possibility of key leakage.
It effectively improves the security of video data transmission in classic channels, reduces the risk of key leakage, and improves the real-time and stability of video data transmission.
Smart Images

Figure CN119729054A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data communication technology, and in particular to a method and system for encrypting and transmitting video data. Background Art
[0002] With the rapid development of information technology, online video activities have become an important part of people's daily life and work, and the security of online video transmission has received increasing attention.
[0003] At present, the traditional video encryption transmission method is usually based on the key negotiated and determined by the sender and the receiver in the classic communication network. The sender uses a symmetric encryption algorithm or an asymmetric encryption algorithm to encrypt the video data to be encrypted, and then transmits the encrypted video data to the receiver. This method has the possibility of key leakage, and the security of video data transmission is not high.
[0004] Therefore, the problems existing in the prior art still need to be solved and optimized. Summary of the invention
[0005] In order to solve at least one of the above technical problems, the present application provides a method and system for encrypting and transmitting video data, wherein the method can reduce the possibility of key leakage and improve the security of video data transmission.
[0006] According to a first aspect of the present application, there is provided a method for encrypting and transmitting video data, comprising:
[0007] The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain a plurality of video blocks;
[0008] The sender obtains a unique quantum key, where the unique quantum key is a publicly known quantum key generated by negotiation between the sender and the receiver through a quantum channel, and each unique quantum key corresponds to a video block;
[0009] The sender performs quantum encryption on each of the video blocks according to the corresponding unique quantum key to obtain a plurality of video encryption blocks, and sends all of the video encryption blocks to the receiver through a classical channel;
[0010] The receiving party performs quantum decryption on all the video encryption blocks to obtain the video data.
[0011] In some embodiments, the block segmentation of the video data to obtain a plurality of video blocks includes:
[0012] Get the current block strategy and factors affecting the block strategy;
[0013] According to the influencing factors of the block strategy, the current block strategy is optimized to obtain a target block strategy;
[0014] According to the target block strategy, the video data is segmented into strategic blocks to obtain a plurality of the video blocks.
[0015] In some embodiments, obtaining a unique quantum key corresponding to each of the video blocks comprises:
[0016] Acquire block attribute information of the video block and encryption strategy information corresponding to the video block;
[0017] According to the block attribute information and the encryption strategy information, a plurality of synchronization key blocks in a synchronization key library are assembled to obtain an original quantum key, wherein the synchronization key library is a quantum key library that is synchronously updated between the sender and the receiver;
[0018] The original quantum key is indexed to obtain the unique quantum key.
[0019] In some embodiments, the method further comprises:
[0020] The sender randomly generates a quantum state, and sends the quantum state to the receiver through the quantum channel;
[0021] The receiving party performs quantum state measurement on the quantum state to obtain a quantum state measurement result, and returns measurement basis information corresponding to the quantum state measurement result to the sending party through the classical channel, wherein the quantum state measurement result includes a plurality of quantum state measurement data at different measurement positions, and the measurement basis information corresponding to each quantum state measurement data is different;
[0022] The sender performs basis comparison and screening on all the measurement basis information according to the quantum state and the preparation basis information corresponding to the quantum state to obtain a comparison and screening result, wherein the comparison and screening result is used to characterize the measurement position of the correctly measured quantum state measurement data;
[0023] The receiving party receives the comparison and screening result, and performs quantum bit selection on the quantum state measurement result according to the comparison and screening result to obtain a public key bit;
[0024] The sender receives the public key bit, and performs consistency verification on the quantum state according to the public key bit to obtain a consistency verification result;
[0025] The sender updates the current synchronization key library according to the consistency verification result to obtain an updated synchronization key library.
[0026] In some embodiments, quantum encryption is performed on the video block according to the corresponding unique quantum key to obtain a video encryption block, including:
[0027] Obtaining a block number, timestamp information, and encryption strategy information of the video block, and a quantum key index of the unique quantum key;
[0028] Performing policy encryption on the video block according to the encryption policy information and the unique quantum key to obtain a policy encrypted block;
[0029] The policy encryption block is data encapsulated according to the block number, the timestamp information and the quantum key index to obtain the video encryption block.
[0030] In some embodiments, performing quantum decryption on all the video encryption blocks to obtain the video data includes:
[0031] Performing encryption block parsing on all video encryption blocks to obtain a block number and a data check code of each of the video encryption blocks;
[0032] According to the block numbers, all the video encryption blocks are sorted to obtain an encryption block sequence;
[0033] Performing integrity check on the encrypted block sequence according to all the data check codes to obtain an integrity check result;
[0034] If the integrity check result shows that the encrypted block sequence is complete, the encrypted block sequence is decrypted step by step with a key to obtain the video data.
[0035] In some embodiments, the step of performing step-by-step key decryption on the encrypted block sequence to obtain the video data includes:
[0036] Taking the current video encryption block in the encryption block sequence as the target encryption block, and obtaining the timestamp information, quantum key index and decryption strategy information of the target encryption block, and obtaining the current decryption block sequence;
[0037] According to the quantum key index, a quantum key search is performed on the synchronization key library to obtain a target quantum key corresponding to the target encryption block;
[0038] According to the target quantum key and the decryption strategy information, the target encrypted block is subjected to policy decryption to obtain a target decrypted block;
[0039] If there is at least one video encryption block in the encryption block sequence that has not been decrypted by the policy, the current decryption block sequence is updated according to the target decryption block, and then the step of using the current video encryption block in the encryption block sequence as the target encryption block is returned to be executed; or, if there is no video encryption block in the encryption block sequence that has not been decrypted by the policy, the current decryption block sequence is updated according to the target decryption block to obtain a target decryption block sequence, and then data assembly is performed on all the target decryption blocks in the target decryption block sequence according to all the timestamp information to obtain the video data.
[0040] According to a second aspect of the present application, a method for encrypting and transmitting video data is provided, for use by a sender, the method comprising:
[0041] Obtaining video data to be encrypted and transmitted, and dividing the video data into blocks to obtain a plurality of video blocks;
[0042] Acquire a unique quantum key, where the unique quantum key is a publicly known quantum key generated by the sender through a quantum channel through negotiation with the receiver, and each unique quantum key corresponds to a video block;
[0043] According to the corresponding unique quantum key, each of the video blocks is quantum encrypted to obtain a plurality of video encryption blocks,
[0044] All the video encryption blocks are sent to the receiving party through a classical channel, so that the receiving party performs quantum decryption on all the video encryption blocks to obtain the video data.
[0045] According to a third aspect of the present application, there is provided a method for encrypting and transmitting video data, for use by a receiving party, the method comprising:
[0046] Receiving several video encryption blocks sent by the sender, and performing quantum decryption on all the video encryption blocks to obtain video data;
[0047] The video encryption block is obtained by the following steps:
[0048] The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain a plurality of video blocks;
[0049] The sender obtains a unique quantum key, where the unique quantum key is a known quantum key generated by negotiation between the sender and the receiver through a quantum channel, and each unique quantum key corresponds to a video block;
[0050] The sender performs quantum encryption on each of the video blocks according to the corresponding unique quantum key to obtain a plurality of the video encryption blocks.
[0051] According to a fourth aspect of the present application, there is provided a video data encryption transmission system, comprising a sender and a receiver;
[0052] The sender is used to obtain video data to be encrypted and transmitted, and divide the video data into blocks to obtain a plurality of video blocks; obtain a unique quantum key, where the unique quantum key is a publicly known quantum key generated by the sender through a quantum channel and the receiver, and each unique quantum key corresponds to a video block; perform quantum encryption on each video block according to the corresponding unique quantum key to obtain a plurality of video encryption blocks, and send all the video encryption blocks to the receiver through a classical channel;
[0053] The receiving party is used to perform quantum decryption on all the video encryption blocks to obtain the video data.
[0054] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0055] The present application provides a method and system for encrypting and transmitting video data, wherein the method obtains video data to be encrypted and transmitted by a sender, and divides the video data into blocks to obtain several video blocks; the sender obtains a unique quantum key, which is a known quantum key generated by the sender through a quantum channel and a receiver through negotiation, and each unique quantum key corresponds to a video block; the sender performs quantum encryption on each video block according to the corresponding unique quantum key to obtain several video encryption blocks, and sends all the video encryption blocks to the receiver through a classical channel; the receiver performs quantum decryption on all the video encryption blocks to obtain the video data. The method is based on the unique quantum key generated by the sender and the receiver through negotiation in the quantum channel, and the sender encrypts the video data to be encrypted and transmitted to the receiver, which can effectively reduce the possibility of key leakage and effectively improve the security of video data transmission in the classical channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A flowchart of a method for encrypting and transmitting video data is provided for an embodiment of the present application;
[0057] Figure 2 A timing flow chart of a method for encrypting and transmitting video data provided in an embodiment of the present application;
[0058] Figure 3 A detailed flow chart of step S110 provided in an embodiment of the present application;
[0059] Figure 4 A detailed flow chart of step S120 provided in an embodiment of the present application;
[0060] Figure 5 A schematic diagram of a process for quantum encryption provided in an embodiment of the present application;
[0061] Figure 6 A detailed flow chart of step S140 provided in an embodiment of the present application;
[0062] Figure 7 A detailed flow chart of step D4 provided in an embodiment of the present application;
[0063] Figure 8 A schematic diagram of an optional flow chart of a method for encrypting and transmitting video data provided in an embodiment of the present application;
[0064] Fig. 9 A schematic diagram of a framework of a video data encryption transmission system provided in an embodiment of the present application;
[0065] Fig.10 A structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] The present application is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the present application, and all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0067] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0068] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0069] At present, the traditional video encryption transmission method is usually based on the key determined by the sender and the receiver in the classic communication network. The sender uses a symmetric encryption algorithm or an asymmetric encryption algorithm to encrypt the video data to be encrypted, and then transmits the encrypted video data to the receiver. This method has the possibility of key leakage, and the security of video data transmission is not high. In addition, since the amount of video data is often large, video data transmission is often affected by factors such as complex and dynamically fluctuating network environments. This method is prone to channel congestion and data loss during video data transmission, and the real-time and stability of video data transmission are unsatisfactory.
[0070] In view of this, an embodiment of the present application provides an encrypted transmission method for video data. The method is based on a unique quantum key generated by negotiation between a sender and a receiver in a quantum channel. The sender encrypts the video data to be encrypted and transmits it to the receiver, which can reduce the possibility of key leakage and effectively improve the security of video data transmission in a classical channel. In addition, the method reduces the adverse effects of video data in factors such as complex and dynamically fluctuating network environments by quantum encrypting the video blocks separately and then sending them to the receiver, that is, by transmitting in blocks, thereby improving the real-time and stability of video data transmission, as well as the security of video data transmission. In addition, the method performs strategy block segmentation on the current video data based on the target block strategy obtained by real-time update, and determines the corresponding unique quantum key based on the block attribute information of the video block. The video block and the corresponding unique quantum key can be dynamically generated according to factors such as complex and dynamically fluctuating network environments, so as to better meet the real-time and stability requirements of video data transmission.
[0071] An encrypted transmission method and system for video data provided in an embodiment of the present application can be specifically described through the following embodiments. First, an encrypted transmission method for video data in an embodiment of the present application is described.
[0072] The encrypted transmission method of video data provided in the embodiment of the present application can be applied to data communication application scenarios. In data communication application scenarios, data communication service providers can encrypt and transmit the video data to be transmitted through the encrypted transmission method of video data provided in the embodiment of the present application, which can reduce the possibility of key leakage, effectively improve the security of video data transmission in classic channels, and improve the real-time and stability of video data transmission.
[0073] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0074] Reference Figure 1 and Figure 2 , Figure 1 It is an optional flowchart of the first method for encrypting and transmitting video data provided in an embodiment of the present application, which may include but is not limited to steps S110 to S140.
[0075] Step S110: The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain a plurality of video blocks;
[0076] In an embodiment of the present application, after the sender obtains the video data to be encrypted and transmitted, the video data can first be preprocessed, and specifically, the video data can be encoded using a video encoder to generate video data in a video file format or a video stream format.
[0077] It is understandable that the block segmentation in step S110 can be based on the block segmentation conditions such as time, number of frames, data size, etc. to divide the video data into blocks, so as to obtain a number of video blocks. Specifically, if the block segmentation condition is time, the video data can be divided into blocks based on time intervals such as 1 second, 5 seconds, 60 seconds, etc., so as to obtain a number of video blocks; or, if the block segmentation condition is the number of frames, the video data can be divided into blocks according to the number of frames in the video data, for example, the video data can be divided into blocks according to the condition that every 60 frames are one video block, so as to obtain a number of video blocks; or, if the block segmentation condition is the data size, the video data can be divided into blocks according to the byte size of the video data, for example, the video data can be divided into blocks according to the byte size of 1MB, 10MB, 1GB, etc., so as to obtain a number of video blocks.
[0078] It is worth mentioning that for the video blocks obtained under the above block segmentation conditions, if the last video block obtained does not meet the block segmentation conditions, the last video block can be filled to obtain a video block that meets the block segmentation conditions. For example, the last video block has only 30 frames of images, and the corresponding block segmentation condition is that every 60 frames is a video block. At this time, blank frame images can be filled after the 30 frames of images of the last video block, so that the last video block meets the block segmentation condition of every 60 frames being a video block. The example of this application is for illustration only and does not limit this application.
[0079] Reference Figure 3 In some embodiments, the step S110 of dividing the video data into blocks to obtain a plurality of video blocks includes:
[0080] A1. Obtain the current block strategy and factors affecting the block strategy;
[0081] A2. Optimizing the current block strategy according to the influencing factors of the block strategy to obtain a target block strategy;
[0082] A3. According to the target block segmentation strategy, the video data is segmented into strategic blocks to obtain a plurality of the video blocks.
[0083] In an embodiment of the present application, the current block strategy may be the block strategy currently used by the sender to block the video data. Specifically, if the sender sends the video data to the receiver for the first time, the current block strategy may be the aforementioned block segmentation condition; or, if the sender sends the video data to the receiver for the second or more times, the current block strategy may be the previous target block strategy.
[0084] It can be understood that the block strategy influencing factors in step A1 are used to dynamically adjust the sender's block strategy for video data in real time. The block strategy influencing factors include the current quantum key generation rate, the network bandwidth between the sender and the receiver, the transmission signal strength between the sender and the receiver, network fluctuation information, the video frame rate of the video data and other influencing factors.
[0085] It should be noted that step A2 can be based on the current block strategy influencing factors to optimize and adjust the current block strategy in real time. For example, if the current quantum key generation rate is relatively slow among the current block strategy influencing factors, the block time length of the video block in the current block strategy can be increased to reduce the consumption of the quantum key and obtain the target block strategy; or, if the current network fluctuation information is large and the network is unstable among the current block strategy influencing factors, the block data size of the video block in the current block strategy can be adjusted to obtain the target block strategy by reducing the block data flow of each video block. The examples in this application are for illustration only.
[0086] It is worth mentioning that step A3 can be based on the latest target block strategy to perform strategic block segmentation on the video data to obtain a number of video blocks, each of which has a block number and timestamp information, wherein the block number can specifically be a sequence number or a frame number, which is used to indicate the correct reorganization order when the receiver reassembles the data blocks, and the timestamp information is used to characterize the position of the corresponding video block in the video stream.
[0087] Step S120: the sender obtains a unique quantum key, where the unique quantum key is a publicly known quantum key generated by negotiation between the sender and the receiver through a quantum channel, and each unique quantum key corresponds to a video block;
[0088] In the embodiment of the present application, a unique quantum key can be obtained through negotiation and interaction between the sender and the receiver in the quantum channel, the unique quantum key corresponds to a video block, and the unique quantum key is stored in the sender and the receiver respectively; or, based on the negotiation and interaction between the sender and the receiver, the required unique quantum key is obtained from the synchronization key library. Specifically, the quantum channel can be a channel in a quantum communication network, which is used to transmit quantum states, wherein the quantum communication network is established by the sender and the receiver each configuring a quantum key distribution device, and is established through optical fiber or free space optical communication. The specific quantum key distribution device includes a quantum light source, a modulator, a detector, a synchronous clock, and a control module, etc. The present application does not limit the quantum channel here.
[0089] Reference Figure 4 In some embodiments, the step S120 of obtaining a unique quantum key corresponding to each of the video blocks includes:
[0090] B1. acquiring block attribute information of the video block and encryption strategy information corresponding to the video block;
[0091] B2. According to the block attribute information and the encryption strategy information, a plurality of synchronization key blocks in the synchronization key library are assembled to obtain an original quantum key, wherein the synchronization key library is a quantum key library that is synchronously updated between the sender and the receiver;
[0092] B3. Indexing the original quantum key to obtain the unique quantum key.
[0093] In an embodiment of the present application, the block attribute information of the video block may be attribute information such as the data block length of the video block, the number of frames of the video block, the time interval corresponding to the video block, etc. The encryption strategy information may be the encryption algorithm applied at the sender end. Specifically, the encryption strategy information may be an AES (Advanced Encryption Standard) algorithm, etc. The example of the present application is for illustration only.
[0094] It can be understood that the synchronization key library can specifically be a quantum key library that is synchronized and updated by the negotiation interaction between the sender and the receiver based on the quantum channel, and the quantum key library records the quantum key generated by each negotiation interaction between the sender and the receiver.
[0095] It should be noted that step B2 may firstly obtain all quantum keys that are not used or not fully used in the synchronization key library, and then select corresponding quantum keys (i.e., synchronization key blocks) based on block attribute information and / or encryption strategy information; then, splice or cut the selected synchronization key blocks to obtain the original quantum key. Step B3 may be to assign a unique index number to each original quantum key, and the index number mapping is associated with the corresponding key generation time, length and usage status, and the specific usage status includes key used, key not used, etc., so as to obtain a unique quantum key corresponding to the video block.
[0096] Exemplarily, if all quantum keys that are not used or not fully used in a certain synchronization key library include quantum key Q, quantum key W and quantum key R, where quantum key Q is a quantum key that is not fully used, and includes a used key block Q1 and an unused key block Q2; quantum key W includes unused key blocks W1 and W2. Specifically, if the block attribute information of a certain video block records a data block length, the data block length is equal to the sum of the key lengths of quantum key W and key block Q2, step B2 may be to determine key block Q2, key block W1 and key block W2 as the synchronization key block corresponding to the video block, and then concatenate key block Q2, key block W1 and key block W2 to obtain the original quantum key, the key length of which corresponds to the data block length of the block attribute information of the video block.
[0097] Alternatively, if the synchronization key block corresponding to a certain video block is a quantum key R, and the key length of the quantum key R is greater than the data block length corresponding to the block attribute information of the video block, the quantum key R can be cropped based on the block attribute information to obtain two cropped key blocks, and one part of the cropped key block corresponding to the block attribute information of the video block is determined as the original quantum key, and the other part of the cropped key block is determined as the unused key block in the quantum key R. The example of this application is for illustration only and does not limit this application.
[0098] It is worth mentioning that since the video block obtained in the embodiment of the present application is obtained by performing strategic block segmentation on the video data based on the target block strategy updated in real time, the video block is a dynamically generated data block, so that the block attribute information of the video block (such as data block length, number of frames, time interval, etc.) changes dynamically, and the unique quantum key will also send dynamic changes, so that the generated unique quantum key matches the video block, specifically, the key length of the unique quantum key matches the block attribute information of the video block. It can dynamically generate video blocks and corresponding unique quantum keys according to factors such as complex and dynamically fluctuating network environments, so as to better meet the real-time and stability requirements of video data transmission.
[0099] Step S130: the sender performs quantum encryption on each of the video blocks according to the corresponding unique quantum key to obtain a plurality of video encryption blocks, and sends all of the video encryption blocks to the receiver through a classical channel;
[0100] In the embodiment of the present application, for a certain video block, step 130 may be to use the corresponding unique quantum key among all unique quantum keys to quantum encrypt the video block, so as to obtain a video encryption block corresponding to the current video block, and the same is true for the remaining video blocks, and finally obtain a plurality of video encryption blocks, each video encryption block corresponding to a video block. In addition, after obtaining the video encryption block corresponding to each video block, the sender can send all video encryption blocks to the receiver through a classical channel based on any one of the TCP protocol, UDP protocol, RTP / RTSP protocol, etc.
[0101] It is understandable that the classic channel can be a communication channel in a traditional communication network. The sending of the video encryption block can be based on the TCP protocol, and the data packets corresponding to the video encryption block are transmitted to the receiver in sequence according to the block number contained in the video encryption block; or, the data packets corresponding to the video encryption block can be sent to the receiver based on the UDP protocol; the example of this application is for illustration only and does not limit this application. For example, the real-time transport (RTP) protocol can also be used to send the datagram corresponding to the video encryption block to the receiver according to the timing represented by the block number and timestamp contained in the video encryption block.
[0102] Reference Figure 5 In some embodiments, the video block is quantum encrypted according to the corresponding unique quantum key to obtain a video encryption block, including:
[0103] C1. Obtaining a block number, timestamp information, and encryption strategy information of the video block, and a quantum key index of the unique quantum key;
[0104] C2. performing policy encryption on the video block according to the encryption policy information and the unique quantum key to obtain a policy encrypted block;
[0105] C3. According to the block number, the timestamp information and the quantum key index, data encapsulate the policy encryption block to obtain the video encryption block.
[0106] In the embodiment of the present application, for a certain video block, first, the block number, timestamp information and encryption strategy information corresponding to the video block, as well as the quantum key index of the unique quantum key corresponding to the video block can be obtained; step C2 can be to use the unique quantum key to perform policy encryption on the corresponding video block through the encryption algorithm indicated by the encryption strategy information, so as to obtain the policy encryption block corresponding to the video block, which can specifically be to use the unique quantum key to encrypt the video block through the AES algorithm. It can be understood that step C3 can be the block number, timestamp information and quantum key index corresponding to the video block, which are added and encapsulated into the policy encryption block to obtain the video encryption block in the form of a data packet.
[0107] Step S140: The receiving party performs quantum decryption on all the video encryption blocks to obtain the video data.
[0108] In the embodiment of the present application, after receiving the video encryption block, the receiver can perform quantum decryption on the obtained video encryption block based on the unique quantum key known to the sender and the receiver in the quantum channel, and determine the video data according to each decrypted video encryption block. Specifically, the receiver can receive the video encryption blocks one by one, and perform quantum decryption on the received video encryption blocks one by one; or the receiver can perform quantum decryption on all video encryption blocks after receiving all video encryption blocks.
[0109] Reference Figure 6 In some embodiments, the step S140 of performing quantum decryption on all the video encryption blocks to obtain the video data includes:
[0110] D1, performing encryption block parsing on all video encryption blocks to obtain a block number and a data check code of each video encryption block;
[0111] D2. Sort all the video encryption blocks according to the block numbers to obtain an encryption block sequence;
[0112] D3. Performing integrity check on the encrypted block sequence according to all the data check codes to obtain an integrity check result;
[0113] In an embodiment of the present application, for a certain video encryption block, step D1 may be to decapsulate the video encryption block in the form of a data packet, so as to obtain a block code and a data check code corresponding to each video encryption block, wherein the data check code can be used to ensure the integrity of the video encryption block and that the video encryption block in the form of a data packet has not been tampered with, and the data check code may specifically include a checksum or a message authentication code (MAC), etc.
[0114] It can be understood that step D2 can be to sort all video encryption blocks according to the block number corresponding to each video encryption block, so as to obtain an encryption block sequence, wherein the encryption block sequence includes a number of sorted video encryption blocks, and two adjacent video encryption blocks in the encryption block sequence have two adjacent block numbers. Step D3 can be to perform integrity check on the encryption block sequence based on the data check code corresponding to each sorted video encryption block in the encryption block sequence, so as to obtain an integrity check result.
[0115] It should be noted that if the integrity check result is that the video encryption block in the encryption block sequence is incomplete, that is, the video encryption block is lost during the transmission process, there are missing video encryption blocks or discontinuous block numbers in the encryption block sequence, the receiver can request the sender to retransmit the missing video encryption block, or restore the missing video encryption block through forward error correction (FEC) technology; or, if the integrity check result is that the video encryption block in the encryption block sequence is incomplete, it means that at least one received video encryption block has an error or has been tampered with during the transmission process. At this time, the receiver can request the sender to retransmit the incomplete video encryption block.
[0116] D4. If the integrity check result shows that the encrypted block sequence is complete, the encrypted block sequence is decrypted step by step using a key to obtain the video data.
[0117] Reference Figure 7 Further, the step D4, performing step-by-step key decryption on the encrypted block sequence to obtain the video data, comprises:
[0118] D41, taking the current video encryption block in the encryption block sequence as the target encryption block, and obtaining the timestamp information, quantum key index and decryption strategy information of the target encryption block, and obtaining the current decryption block sequence;
[0119] D42. Performing a quantum key search on the synchronization key library according to the quantum key index to obtain a target quantum key corresponding to the target encryption block;
[0120] D43, performing policy decryption on the target encrypted block according to the target quantum key and the decryption policy information to obtain a target decrypted block;
[0121] D44, if there is at least one video encryption block in the encryption block sequence that has not been decrypted by the policy, then the current decryption block sequence is updated according to the target decryption block, and then the step of returning to the step of taking the current video encryption block in the encryption block sequence as the target encryption block is executed;
[0122] Alternatively, D45, if there is no video encryption block in the encryption block sequence that has not been policy-decrypted, the current decryption block sequence is updated according to the target decryption block to obtain the target decryption block sequence, and then data is assembled for all target decryption blocks in the target decryption block sequence according to all the timestamp information to obtain the video data.
[0123] In the embodiment of the present application, for a certain key decryption process, step D41 may be to determine the video encryption block corresponding to the current key decryption process in the encryption block sequence as the target encryption block, and obtain the timestamp information, quantum key index and decryption strategy information of the target encryption block. In addition, the current decryption block sequence in step D41 may be the target decryption block sequence obtained in the previous key decryption process. Specifically, if the current key decryption process is the first key decryption process of the recipient, the current decryption block sequence may be a blank decryption block sequence; or, if the current key decryption process is the second or higher key decryption process of the recipient, the current decryption block sequence may be the target decryption block sequence in the previous key decryption process.
[0124] It can be understood that step D42 can be that the receiver matches and searches for the corresponding unique quantum key in the synchronization key block based on the quantum key index, and determines the unique quantum key obtained by the search as the target quantum key; step D43 can be based on the target quantum key, using the decryption policy information corresponding to the encryption policy information to perform policy decryption on the target encryption block, so as to obtain the decrypted target encryption block, and determine the decrypted target encryption block as the target decryption block. Specifically, if the encryption policy information is the encryption process in the ABS algorithm, the corresponding decryption policy information is the decryption process in the ABS algorithm.
[0125] It should be noted that if there is at least one video encryption block in the encryption block sequence that has not been decrypted according to the strategy, then the current decryption block sequence is updated according to the target decryption block to obtain the target decryption block sequence corresponding to the current key decryption process, and the target decryption block sequence is determined as the current decryption block sequence in the next key decryption process, and the current video encryption block in the encryption block sequence is used as the target encryption block. Alternatively, if there is no video encryption block that has not been decrypted according to the strategy in the encryption block sequence, the current decryption block sequence can be updated according to the target decryption block to obtain the final target decryption block sequence, and each decryption block in the target decryption block sequence corresponds to an encryption block in the encryption block sequence; then, based on the timestamp information corresponding to each target decryption block and the sorting information in the decryption block sequence, all target decryption blocks are assembled into video data.
[0126] Reference Figure 8 In some embodiments, the method further comprises
[0127] E1. The sender randomly generates a quantum state, and sends the quantum state to the receiver through the quantum channel;
[0128] E2. The receiving party performs quantum state measurement on the quantum state to obtain a quantum state measurement result, and returns measurement basis information corresponding to the quantum state measurement result to the sending party through the classical channel, wherein the quantum state measurement result includes a plurality of quantum state measurement data at different measurement positions, and the measurement basis information corresponding to each quantum state measurement data is different;
[0129] E3. The sender performs basis comparison and screening on all the measurement basis information according to the quantum state and the preparation basis information corresponding to the quantum state to obtain a comparison and screening result, wherein the comparison and screening result is used to characterize the measurement position of the correctly measured quantum state measurement data;
[0130] E4. The receiving party receives the comparison and screening result, and performs quantum bit selection on the quantum state measurement result according to the comparison and screening result to obtain a public key bit;
[0131] E5. The sender receives the public key bit, and performs consistency verification on the quantum state according to the public key bit to obtain a consistency verification result;
[0132] E6. The sender updates the current synchronization key library according to the consistency verification result to obtain an updated synchronization key library.
[0133] In an embodiment of the present application, the sender and the receiver are each equipped with a quantum key distribution device, and the preparation basis and the measurement basis are a set of orthogonal basis vectors used in the process of preparing or measuring the quantum state. Step E1 can be that the sender generates a series of random quantum states using a quantum light source, and sends the modulated quantum state to the receiver through a quantum channel. For example, based on the BB84 protocol, the sender randomly selects and modulates any one of the four quantum polarization states (horizontal, vertical, 45-degree stacking, 135-degree diagonal), and sends the modulated quantum state to the receiver through a quantum channel. Step E2 can be that the receiver randomly selects a measurement basis and measures the received quantum state to obtain a quantum state measurement result, which includes a number of quantum state measurement data at different measurement positions, and each quantum state measurement data is measured by a randomly selected measurement basis; then, based on the obtained quantum state measurement result, the receiver sends the measurement basis information corresponding to each quantum state measurement data of the quantum state measurement result to the sender.
[0134] It can be understood that the sender can record the preparation basis information used when randomly generating quantum states. Step E3 can first be that the sender compares all the received measurement basis information based on the previously recorded preparation basis information, determines the measurement basis information corresponding to the preparation basis information as the target measurement basis information, and screens out the target quantum state from the original quantum state based on the target measurement basis information. The target quantum state is the quantum state correctly measured by the receiver in the quantum state series sent by the sender, that is, the quantum state measurement data correctly measured by the receiver using the corresponding measurement basis; then, the sender generates a comparison and screening result based on the quantum state measurement data corresponding to the target measurement basis information and the measurement position carried by the target measurement basis information, and sends the generated comparison and screening result to the receiver.
[0135] It should be noted that after receiving the comparison and screening results, the receiver can first screen all quantum state measurement data in the quantum state measurement results, retain the correctly measured quantum state measurement data, and the correctly measured quantum state measurement data can be used as the initial key string; then, randomly select a part of the quantum bits in the initial key string, and determine the selected quantum bits as public key bits, and transmit the public key bits to the sender. Step E5 can first calculate the bit error rate of the quantum channel between the sender and the receiver based on the public key bits and the corresponding quantum bits in the target quantum state; then compare the bit error rate with a preset threshold (such as any one of 0.05, 0.11, 0.16, etc.) to obtain a consistency verification result, specifically, if the bit error rate is less than the preset threshold, a consistency verification result indicating that the consistency verification is passed is obtained, or, if the bit error rate is greater than or equal to the preset threshold, a consistency verification result indicating that the consistency verification is not passed is obtained.
[0136] It is worth mentioning that if the consistency verification result is consistency verification failure, step E6 may be to not perform any operation on the current synchronization key library. In addition, if the consistency verification result is consistency verification passed, step E6 may be that the sender constructs the final quantum key based on the quantum bits in the target quantum state except the public key bits, and adds and updates the final quantum key to the current synchronization key library, so as to obtain an updated synchronization key library; or, if the consistency verification result is consistency verification passed, step E6 may also be that the sender sends the consistency verification result to the receiver, and the receiver constructs the final quantum key based on the quantum bits in the initial key string except the public key bits, and adds and updates the final quantum key to the current synchronization key library, so as to obtain an updated synchronization key library.
[0137] In some embodiments, the embodiments of the present application also provide a method for encrypting and transmitting video data for a sender, which may include but is not limited to steps S210 to S240.
[0138] Step S210: obtaining video data to be encrypted and transmitted, and dividing the video data into blocks to obtain a plurality of video blocks;
[0139] Step S220: obtaining a unique quantum key, where the unique quantum key is a publicly known quantum key generated by the sender through a quantum channel through negotiation with the receiver, and each unique quantum key corresponds to a video block;
[0140] Step S230: quantum encrypt each video block according to the corresponding unique quantum key to obtain a plurality of video encryption blocks.
[0141] Step S240: Send all the video encryption blocks to the receiver through a classical channel, so that the receiver performs quantum decryption on all the video encryption blocks to obtain the video data.
[0142] In the embodiment of the present application, the contents of step S210 to step S240 are similar to the contents of the aforementioned step S110 to step S140, and can be simply deduced by analogy, and the present application will not repeat them here.
[0143] In some embodiments, the embodiments of the present application also provide a method for encrypting and transmitting video data for a receiving party, which may include but is not limited to step S310.
[0144] Step S310: receiving a plurality of video encryption blocks sent by a sender, and performing quantum decryption on all the video encryption blocks to obtain video data;
[0145] The video encryption block is obtained by the following steps:
[0146] The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain a plurality of video blocks;
[0147] The sender obtains a unique quantum key, where the unique quantum key is a known quantum key generated by negotiation between the sender and the receiver through a quantum channel, and each unique quantum key corresponds to a video block;
[0148] The sender performs quantum encryption on each of the video blocks according to the corresponding unique quantum key to obtain a plurality of the video encryption blocks.
[0149] In the embodiment of the present application, the content of step S310 is similar to the content of the aforementioned steps S110 to S140, and can be simply deduced by analogy, and the present application will not repeat them here.
[0150] Fig. 9 A schematic diagram of a framework of an encrypted transmission system for video data provided in an embodiment of the present application, including a sender and a receiver;
[0151] The sender 810 is used to obtain video data to be encrypted and transmitted, and divide the video data into blocks to obtain a plurality of video blocks; obtain a unique quantum key, where the unique quantum key is a publicly known quantum key generated by the sender through a quantum channel and the receiver, and each unique quantum key corresponds to a video block; perform quantum encryption on each video block according to the corresponding unique quantum key to obtain a plurality of video encryption blocks, and send all the video encryption blocks to the receiver through a classical channel;
[0152] The receiver 820 is used to perform quantum decryption on all the video encryption blocks to obtain the video data.
[0153] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0154] Fig.10 A schematic diagram of the structure of a computer device provided in an embodiment of the present application includes:
[0155] at least one processor 980;
[0156] At least one memory 920, used to store at least one program;
[0157] When the at least one program is executed by the at least one processor 980, the at least one processor 980 implements the methods described in the foregoing embodiments.
[0158] An embodiment of the present application also provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor 980, it is used to implement the methods described in the above embodiments.
[0159] Specifically, the computer device may be a user terminal or a server.
[0160] The present application embodiment takes the computer device as a user terminal as an example, and the details are as follows:
[0161] like Fig.10As shown, the computer device 900 may include an RF (Radio Frequency) circuit 910, a memory 920 including one or more computer-readable storage media, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a WiFi module 970, a processor 980 including one or more processing cores, and a power supply 990. Those skilled in the art will appreciate that Fig.10 The device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0162] The RF circuit 910 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 980 for processing; in addition, the data related to the uplink is sent to the base station. Generally, the RF circuit 910 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a user identity module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, etc. In addition, the RF circuit 910 can also communicate with the network and other devices through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc.
[0163] The memory 920 can be used to store software programs and modules. The processor 980 executes various functional applications and data processing by running the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the device 900 (such as audio data, a phone book, etc.), etc. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 920 may also include a memory controller to provide the processor 980 and the input unit 930 with access to the memory 920. Although Fig.10 The RF circuit 910 is shown, but it is understandable that it is not an essential component of the device 900 and can be omitted as required without changing the essence of the invention.
[0164] The input unit 930 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 930 may include a touch-sensitive surface 932 and other input devices 931. The touch-sensitive surface 932, also known as a touch display screen or a touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 932), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 932 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch-sensitive surface 932 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 932, the input unit 930 may further include other input devices 931. Specifically, the other input devices 931 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0165] The display unit 940 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the control 900, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 940 may include a display panel 941. Optionally, the display panel 941 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 932 may be covered on the display panel 941. When the touch-sensitive surface 932 detects a touch operation on or near it, it is transmitted to the processor 980 to determine the type of touch event. Subsequently, the processor 980 provides a corresponding visual output on the display panel 941 according to the type of touch event. Although in Fig.10 In the embodiment, the touch-sensitive surface 932 and the display panel 941 are implemented as two independent components to implement input and output functions, but in some embodiments, the touch-sensitive surface 932 and the display panel 941 can be integrated to implement input and output functions.
[0166] The computer device 900 may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 941 and / or the backlight when the device 900 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the device 900, they will not be repeated here.
[0167] The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the device 900. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the speaker 961, which is converted into a sound signal for output; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is received by the audio circuit 960 and converted into audio data, and then the audio data is processed by the output processor 980 and sent to another control device through the RF circuit 910, or the audio data is output to the memory 920 for further processing. The audio circuit 960 may also include an earplug jack to provide communication between an external headset and the device 900.
[0168] The device 900 can transmit information with the wireless transmission module set on the fighting device through the WiFi module 970.
[0169] The processor 980 is the control center of the device 900. It uses various interfaces and lines to connect various parts of the entire control device. It executes various functions of the device 900 and processes data by running or executing software programs and / or modules stored in the memory 920, and calling data stored in the memory 920, so as to monitor the control device as a whole. Optionally, the processor 980 may include one or more processing cores; optionally, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 950.
[0170] The device 900 also includes a power supply 990 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 980 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 990 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0171] Although not shown, the device 900 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0172] An embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the method described in the above embodiments.
[0173] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0174] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0175] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0176] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0177] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0178] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0179] The step numbers in the above method embodiment are only provided for the convenience of explanation and description, and no limitation is imposed on the order of the steps. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0180] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the described embodiments. Technical personnel familiar with the field may make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A method for encrypting and transmitting video data, characterized in that: include: The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain a plurality of video blocks; The sender obtains a unique quantum key, where the unique quantum key is a publicly known quantum key generated by negotiation between the sender and the receiver through a quantum channel, and each unique quantum key corresponds to a video block; The sender performs quantum encryption on each of the video blocks according to the corresponding unique quantum key to obtain a plurality of video encryption blocks, and sends all of the video encryption blocks to the receiver through a classical channel; The receiving party performs quantum decryption on all the video encryption blocks to obtain the video data.
2. The method according to claim 1, characterized in that The video data is segmented into blocks to obtain a plurality of video blocks, including: Get the current block strategy and factors affecting the block strategy; According to the influencing factors of the block strategy, the current block strategy is optimized to obtain a target block strategy; according to the target block strategy, the video data is segmented into strategy blocks to obtain a plurality of the video blocks.
3. The method according to claim 1, characterized in that: The obtaining of a unique quantum key corresponding to each of the video blocks comprises: Acquire block attribute information of the video block and encryption strategy information corresponding to the video block; According to the block attribute information and the encryption strategy information, a plurality of synchronization key blocks in a synchronization key library are assembled to obtain an original quantum key, wherein the synchronization key library is a quantum key library that is synchronously updated between the sender and the receiver; The original quantum key is indexed to obtain the unique quantum key.
4. The method according to claim 3, characterized in that The method further comprises: The sender randomly generates a quantum state, and sends the quantum state to the receiver through the quantum channel; The receiving party performs quantum state measurement on the quantum state to obtain a quantum state measurement result, and returns measurement basis information corresponding to the quantum state measurement result to the sending party through the classical channel, wherein the quantum state measurement result includes a plurality of quantum state measurement data at different measurement positions, and the measurement basis information corresponding to each quantum state measurement data is different; The sender performs basis comparison and screening on all the measurement basis information according to the quantum state and the preparation basis information corresponding to the quantum state to obtain a comparison and screening result, wherein the comparison and screening result is used to characterize the measurement position of the correctly measured quantum state measurement data; The receiving party receives the comparison and screening result, and performs quantum bit selection on the quantum state measurement result according to the comparison and screening result to obtain a public key bit; The sender receives the public key bit, and performs consistency verification on the quantum state according to the public key bit to obtain a consistency verification result; The sender updates the current synchronization key library according to the consistency verification result to obtain an updated synchronization key library.
5. The method according to claim 1, characterized in that: The method further comprises: performing quantum encryption on the video block according to the corresponding unique quantum key to obtain a video encryption block, comprising: Obtaining a block number, timestamp information, and encryption strategy information of the video block, and a quantum key index of the unique quantum key; Performing policy encryption on the video block according to the encryption policy information and the unique quantum key to obtain a policy encrypted block; The policy encryption block is data encapsulated according to the block number, the timestamp information and the quantum key index to obtain the video encryption block.
6. The method according to claim 1, characterized in that The step of performing quantum decryption on all the video encryption blocks to obtain the video data comprises: Performing encryption block parsing on all video encryption blocks to obtain a block number and a data check code of each of the video encryption blocks; According to the block numbers, all the video encryption blocks are sorted to obtain an encryption block sequence; Performing integrity check on the encrypted block sequence according to all the data check codes to obtain an integrity check result; If the integrity check result shows that the encrypted block sequence is complete, the encrypted block sequence is decrypted step by step with a key to obtain the video data.
7. The method according to claim 6, characterized in that The step of decrypting the encrypted block sequence step by step with a key to obtain the video data comprises: Taking the current video encryption block in the encryption block sequence as the target encryption block, and obtaining the timestamp information, quantum key index and decryption strategy information of the target encryption block, and obtaining the current decryption block sequence; According to the quantum key index, a quantum key search is performed on the synchronization key library to obtain a target quantum key corresponding to the target encryption block; According to the target quantum key and the decryption strategy information, the target encrypted block is subjected to policy decryption to obtain a target decrypted block; If there is at least one video encryption block in the encryption block sequence that has not been decrypted by the policy, the current decryption block sequence is updated according to the target decryption block, and then the step of using the current video encryption block in the encryption block sequence as the target encryption block is returned to be executed; or, if there is no video encryption block in the encryption block sequence that has not been decrypted by the policy, the current decryption block sequence is updated according to the target decryption block to obtain a target decryption block sequence, and then data assembly is performed on all the target decryption blocks in the target decryption block sequence according to all the timestamp information to obtain the video data.
8. A method for encrypting and transmitting video data, characterized in that: For a sender, the method comprises: Obtaining video data to be encrypted and transmitted, and dividing the video data into blocks to obtain a plurality of video blocks; Acquire a unique quantum key, where the unique quantum key is a publicly known quantum key generated by the sender through a quantum channel through negotiation with the receiver, and each unique quantum key corresponds to a video block; According to the corresponding unique quantum key, each of the video blocks is quantum encrypted to obtain a plurality of video encryption blocks, All the video encryption blocks are sent to the receiving party through a classical channel, so that the receiving party performs quantum decryption on all the video encryption blocks to obtain the video data.
9. A method for encrypting and transmitting video data, characterized in that: For a receiving party, the method comprises: Receiving several video encryption blocks sent by the sender, and performing quantum decryption on all the video encryption blocks to obtain video data; The video encryption block is obtained by the following steps: The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain a plurality of video blocks; The sender obtains a unique quantum key, where the unique quantum key is a known quantum key generated by negotiation between the sender and the receiver through a quantum channel, and each unique quantum key corresponds to a video block; The sender performs quantum encryption on each of the video blocks according to the corresponding unique quantum key to obtain a plurality of the video encryption blocks.
10. A video data encryption transmission system, characterized in that: Includes sender and receiver; The sender is used to obtain video data to be encrypted and transmitted, and divide the video data into blocks to obtain a plurality of video blocks; obtain a unique quantum key, where the unique quantum key is a publicly known quantum key generated by the sender through a quantum channel and the receiver, and each unique quantum key corresponds to a video block; perform quantum encryption on each video block according to the corresponding unique quantum key to obtain a plurality of video encryption blocks, and send all the video encryption blocks to the receiver through a classical channel; The receiving party is used to perform quantum decryption on all the video encryption blocks to obtain the video data.
Citation Information
Patent Citations
Quantum secrecy video conference system and method combined with block chain
CN116389673A
Big data safe and efficient transmission method based on quantum encryption and server
CN117834251A
Encryption transmission method and device suitable for video data, equipment and medium
CN118740517A
Video monitor system is encrypted to quantum
CN206908738U
Progressive key encryption algorithm
US20200106600A1
Cited By
Encryption method and device suitable for large file, computer equipment and storage medium
CN120358101A
Encryption method, device, computer equipment and storage medium suitable for large files
CN120358101B