Image transmission encryption method, encoding terminal and decoding terminal
By selecting the target profile and image frame in image transmission, dividing the encrypted pixel range, and using distributed encryption and decryption units, the security and availability balance problem in image transmission encryption in the prior art is solved, achieving high efficiency, low pressure and Highly confidential image transmission.
Patent Information
- Application Number
- CN202411169104.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-19
AI Technical Summary
The prior art is difficult to balance security and availability in image transmission encryption, resulting in complex encryption process, high resource consumption, and high system pressure in high frame rate and high definition scenarios, and encrypted objects are easily intercepted and cracked.
By selecting the target configuration file and image frame at the encoding terminal, dividing the encrypted pixel range into the encryption unit, and encrypting each unit using different encryption algorithms, and transmitting it using distributed encryption and decryption units, reducing bandwidth usage and system pressure, and increasing confidentiality performance.
It realizes efficient image transmission in high frame rate and high definition scenarios, and has a flexible configuration of encryption range, reducing the possibility of intercepting and cracking, and meeting the encryption requirements of high confidentiality requirements.
Smart Images

Figure CN118984358A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of image transmission encryption, and in particular to an image transmission encryption method, an encoding terminal and a decoding terminal. Background Art
[0002] Image transmission encryption is a method of protecting the security of image data by encrypting the image to prevent unauthorized access or tampering. Encryption ensures that only authorized personnel can view and decrypt image data, providing higher data confidentiality. It prevents unauthorized tampering to ensure the integrity and reliability of image data. It ensures that image data will not be intercepted or stolen during transmission, providing a more secure transmission channel.
[0003] Image encryption usually requires the use of complex algorithms and key management mechanisms, which may require more computing resources and time. The encryption and decryption process may cause transmission delays, especially for large image files or strong encryption algorithms. In order to ensure the security of encryption, key generation, distribution and management are crucial. This may increase the complexity and management cost of the system. The encryption process of existing technologies is completed through three steps: encryption, transmission and decryption. This process is generally completed in the same system. If a certain stage is illegally intercepted and the receiving and sending parties fail to discover it in time, it will cause information to be leaked continuously, causing major security problems.
[0004] In summary, image transmission encryption provides an effective method to protect the security of image data, but in practical applications it is necessary to balance the security and availability of data transmission. Summary of the invention
[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide an image transmission encryption method, an encoding terminal and a decoding terminal. The image transmission encryption method can solve the problem in the prior art that the image data cannot strike a balance between security and availability during transmission.
[0006] According to a first aspect of an embodiment of the present disclosure, there is provided an image transmission encryption method, which is applied to an encoding terminal, and the method includes:
[0007] Selecting a target configuration file according to a preset algorithm, and selecting a target image frame from the target image information according to the target configuration file;
[0008] Selecting a target encrypted pixel range in the target image frame, and dividing the target encrypted pixel range into a plurality of encryption units;
[0009] An encryption mark and a serial number are set for each encryption unit, and the encryption unit is encrypted according to the encryption mark and a preset encryption algorithm; wherein the encryption mark corresponds to the encryption algorithm;
[0010] Each of the encrypted encryption units and the unencrypted portion of the target image information are compressed and encoded and then sent to a decoding terminal.
[0011] In one embodiment, selecting a target image frame from the target image information according to the target configuration file comprises:
[0012] An I frame or a P frame is selected as a target image frame in the target image information according to the target configuration file.
[0013] In one embodiment, the encryption algorithm includes at least one of chaotic encryption, permutation encryption, and dual image encryption.
[0014] According to a second aspect of an embodiment of the present disclosure, there is provided a coding terminal, a selection module, a division module, a processing module and a sending module; wherein:
[0015] A selection module, which selects a target configuration file according to a preset algorithm, and selects a target image frame from the target image information according to the target configuration file;
[0016] A division module, which selects a target encrypted pixel range in the target image frame and divides the target encrypted pixel range into a plurality of encryption units;
[0017] A processing module is configured to set an encryption mark and a serial number for each encryption unit, and encrypt the encryption unit according to the encryption mark and a preset encryption algorithm; wherein the encryption mark corresponds to the encryption algorithm;
[0018] The sending module compresses and encodes the encrypted encrypted unit and the unencrypted part and sends them to the decoding terminal.
[0019] In one embodiment, the selection module is specifically used to:
[0020] An I frame or a P frame is selected as a target image frame in the target image information according to the target configuration file.
[0021] In one embodiment, the encryption algorithm includes at least one of chaotic encryption, permutation encryption, and dual image encryption.
[0022] A third aspect of the embodiments of the present application provides an image transmission encryption method, which is applied to a decoding terminal, and the method includes:
[0023] Receive a target data compression package sent by the encoding terminal, wherein the target data compression package includes a plurality of encryption units and unencrypted data packets, and each of the encryption units carries an encryption flag and a sequence number;
[0024] Determine the encryption algorithm of each encryption unit according to the encryption flag carried by each encryption unit;
[0025] Decrypting each encryption unit according to the encryption algorithm of each encryption unit, and sorting each encryption unit after decryption according to the serial number;
[0026] Each encrypted unit after sorting and the unencrypted data packet are decoded and rendered, and displayed on a display terminal.
[0027] In one embodiment, the encryption unit is that the encoding terminal selects a target configuration file according to a preset algorithm, selects a target image frame in the target image information according to the target configuration file, selects a target encryption pixel range in the target image frame, and divides the target encryption pixel range to obtain a plurality of the encryption units.
[0028] According to a fourth aspect of an embodiment of the present disclosure, a decoding terminal is provided, the decoding terminal comprising a receiving module, a determining module, a decryption and sorting module, and a decoding and rendering module; wherein:
[0029] A receiving module receives a target data compression package sent by the encoding terminal, wherein the target data compression package includes a plurality of encryption units and unencrypted data packets, wherein the encryption unit carries an encryption flag and a sequence number;
[0030] A determination module, which determines the encryption algorithm of each encryption unit according to the encryption flag carried by each encryption unit;
[0031] a decryption and sorting module, decrypting each encryption unit according to the encryption algorithm of each encryption unit, and sorting each encryption unit after decryption according to the serial number;
[0032] The decoding and rendering module decodes and renders each encrypted unit and the unencrypted data packet after the sorting process, and displays them on the display terminal.
[0033] In one embodiment, the encryption unit is an encoding terminal that selects a target configuration file according to a preset algorithm, selects a target image frame in the target image information according to the target configuration file, selects a target encryption pixel range in the target image frame, and divides the target encryption pixel range to obtain a plurality of the encryption units.
[0034] The disclosed embodiment provides an image transmission encryption method, encoding terminal and decoding terminal. The image frame to be encrypted is selected by using a dedicated configuration file. After the image frame is selected, the pixel range to be encrypted is controlled so that the encrypted range can be freely configured and changed. After the encryption range is selected, the image frames are numbered, and a dedicated deployment tool is used to send different numbered image frames to different encryption units for encryption. Different encryption units use different algorithms and are transmitted through a transmission channel after encryption. It can be seen that since the encryption range in this embodiment is double-selected, the frame is selected first and then the pixel range is selected, which can not only reduce the pressure on the server executing the encryption algorithm, but also greatly reduce the bandwidth occupied during image transmission. In addition, since the encryption and decryption in this embodiment use distributed encryption and decryption units, the pressure on the entire system can be reduced when dealing with high frame rate and high definition scenes, and better image performance can be achieved. At the same time, distributed encryption is performed on the objects to be encrypted, which greatly increases the confidentiality performance, meets the encryption requirements in scenes with high confidentiality requirements, and reduces the possibility of being intercepted and cracked. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0036] Figure 1 A flowchart of an image transmission encryption method provided in an embodiment of the present disclosure.
[0037] Figure 2 An architectural diagram of an encoding terminal provided in an embodiment of the present disclosure.
[0038] Figure 3 A flowchart of an image transmission encryption method provided in an embodiment of the present disclosure.
[0039] Figure 4 An architectural diagram of a decoding terminal provided in an embodiment of the present disclosure.
[0040] Figure 5 A workflow diagram of an image transmission system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0042] Figure 1 The flowchart of an image transmission encryption method provided by the embodiment of the present disclosure is shown in FIG. The method is applied to an encoding terminal, such as Figure 1 As shown, the method includes:
[0043] Step 101: selecting a target configuration file according to a preset algorithm, and selecting a target image frame from target image information according to the target configuration file;
[0044] In one embodiment, selecting a target image frame from the target image information according to the target configuration file comprises:
[0045] An I frame or a P frame is selected as a target image frame in the target image information according to the target configuration file.
[0046] It should be noted that before performing this step, the acquisition module needs to first acquire image information and send the acquired information to the compression encoding module. The compression encoding module selects a configuration file according to a preset algorithm and selects some image frames, such as I frames or P frames.
[0047] Step 102: Select a target encryption pixel range in the target image frame, and divide the target encryption pixel range into a plurality of encryption units;
[0048] In this step, encryption policy configuration can be sent to encrypt images of a certain period of time or a certain resource. After the target image frame is determined, the pixel selection range is performed. The optional methods include RIO extraction, including the known position of ROI in the image and the unknown position of ROI in the image, and the selected image frame is forwarded to different encryption units for encryption using the deployment tool.
[0049] Step 103, setting an encryption mark and a serial number for each encryption unit, and encrypting the encryption unit according to the encryption mark and a preset encryption algorithm; wherein the encryption mark corresponds to the encryption algorithm;
[0050] In this step, the encryption algorithm can be selected according to actual needs, such as chaotic encryption, permutation encryption, and dual image encryption. During the encryption process, an encryption flag and a serial number are added to the information header, because encryption is performed in different encryption units, and the encryption algorithms of different encryption units are different, and the encryption unit flag needs to be added to the encryption flag so that the decoding terminal can recognize the encrypted information.
[0051] Step 104: compress and encode each of the encrypted encryption units and the unencrypted portion of the target image information and send them to a decoding terminal.
[0052] The disclosed embodiment provides an image transmission encryption method, which selects the image frame to be encrypted by using a dedicated configuration file. After the image frame is selected, the pixel range to be encrypted is controlled so that the encrypted range can be freely configured and changed. After the encryption range is selected, the image frames are numbered, and a dedicated deployment tool is used to send different numbered image frames to different encryption units for encryption. Different encryption units use different algorithms and are transmitted through a transmission channel after encryption. It can be seen that since the encryption range in this embodiment is double-selected, the frame is selected first and then the pixel range is selected, which can not only reduce the pressure on the server executing the encryption algorithm, but also greatly reduce the bandwidth occupied during image transmission. In addition, since the encryption and decryption in this embodiment use distributed encryption and decryption units, when dealing with high frame rate and high definition scenes, the pressure of the entire system can be reduced, and better image performance can be achieved. At the same time, distributed encryption is performed on the objects that need to be encrypted, which greatly increases the confidentiality performance, meets the encryption requirements in scenes with high confidentiality requirements, and reduces the possibility of being intercepted and cracked.
[0053] Figure 2 This is a diagram of the architecture of a coding terminal provided by an embodiment of the present disclosure. Figure 2 As shown, the encoding terminal includes a selection module 201, a division module 202, a processing module 203 and a sending module 204; wherein the selection module 201 is used to select a target configuration file according to a preset algorithm, and select a target image frame in the target image information according to the target configuration file; the division module 202 is used to select a target encrypted pixel range in the target image frame, and divide the target encrypted pixel range into a plurality of encryption units; the processing module 203 is used to set an encryption flag and a serial number for each of the encryption units, and encrypt the encryption units according to the encryption flag and a preset encryption algorithm; wherein the encryption flag corresponds to the encryption algorithm; the sending module 204 is used to compress and encode the encrypted encryption unit and the unencrypted part and send them to the decoding terminal.
[0054] In one embodiment, the selection module is specifically used to:
[0055] An I frame or a P frame is selected as a target image frame in the target image information according to the target configuration file.
[0056] In one embodiment, the encryption algorithm includes at least one of chaotic encryption, permutation encryption, and dual image encryption.
[0057] Figure 3 The following is a flow chart of an image transmission encryption method provided by an embodiment of the present disclosure. Figure 3 As shown, the method is applied to a decoding terminal, and the method includes:
[0058] Step 301: Receive a target data compression package sent by an encoding terminal, wherein the target data compression package includes a plurality of encryption units and unencrypted data packets, and each of the encryption units carries an encryption flag and a sequence number;
[0059] Step 302: Determine the encryption algorithm of each encryption unit according to the encryption flag carried by each encryption unit;
[0060] Step 303: decrypt each encryption unit according to the encryption algorithm of each encryption unit, and sort each encryption unit after decryption according to the serial number;
[0061] Step 304: Decode and render each encrypted unit and the unencrypted data packet after the sorting process, and display them on a display terminal.
[0062] In this embodiment, after receiving the image, the decoding terminal first queries which encryption algorithm is used according to the encryption flag, forwards it to the corresponding decryption unit according to the encryption flag, and decrypts it according to the decryption algorithm corresponding to the encryption flag. After decryption, the arrangement number of the image before layered transmission can be seen, and the image frame is restored by sorting according to the decrypted serial number, and then decoded and rendered, and displayed on the display terminal.
[0063] In one embodiment, the encryption unit is an encoding terminal that selects a target configuration file according to a preset algorithm, selects a target image frame in the target image information according to the target configuration file, selects a target encryption pixel range in the target image frame, and divides the target encryption pixel range to obtain a plurality of the encryption units.
[0064] Figure 4 FIG. 1 is an architecture diagram of a decoding terminal provided in an embodiment of the present disclosure. Figure 4 As shown, the decoding terminal includes a receiving module 401, a determining module 402, a decryption and sorting module 403 and a decoding and rendering module 404; wherein the receiving module 401 is used to receive a target data compression packet sent by the encoding terminal, the target data compression packet includes a plurality of encryption units and unencrypted data packets, and the encryption unit carries an encryption flag and a serial number; the determining module 402 is used to determine the encryption algorithm of each encryption unit according to the encryption flag carried by each encryption unit; the decryption and sorting module 403 is used to decrypt each encryption unit according to the encryption algorithm of each encryption unit, and sort each encryption unit after decryption according to the serial number; the decoding and rendering module 404 is used to decode and render each encryption unit and the unencrypted data packet after sorting, and display them on the display terminal.
[0065] In one implementation, the encryption unit is an encoding terminal that selects a target configuration file according to a preset algorithm, selects a target image frame in the target image information according to the target configuration file, selects a target encryption pixel range in the target image frame, and divides the target encryption pixel range to obtain a plurality of the encryption units.
[0066] Figure 5 The following is a workflow diagram of an image transmission encryption system provided by the embodiment of the present disclosure. Figure 5 As shown, the workflow of the image transmission encryption system is as follows:
[0067] Step 1: The acquisition module of the encoding terminal acquires image information and sends the acquired information to the compression encoding module of the encoding terminal;
[0068] Step 2. The compression encoding module of the encoding terminal selects a configuration file according to a preset algorithm and selects some image frames, such as I frames or P frames. By sending down the encryption policy configuration, it is also possible to encrypt the image screen of a certain period of time or a certain resource. After the selected frame is determined, the pixel selection range is executed. The optional method is, for example, RIO extraction, including the known position of the ROI in the image and the unknown position of the ROI in the image. The selected image frame is forwarded to different encryption units for encryption using a deployment tool. The encryption algorithm can be selected according to the needs, such as: chaotic encryption, permutation encryption, dual image encryption, etc. During the encryption process, an encryption flag and serial number are added to the information header. Because encryption is performed in different encryption units and the encryption algorithms of different encryption units are different, an encrypted unit flag needs to be added to the encryption flag so that the decoding terminal can recognize the encrypted information. After completion, the image is compressed and transmitted over the network.
[0069] Step 3: After receiving the image, the decoding terminal first checks the encryption algorithm used according to the encryption flag, and forwards it to the corresponding decryption unit according to the flag. Decryption is performed according to the decryption algorithm. After decryption, the arrangement sequence number of the image before layered transmission will be seen, and the image frame will be restored, decoded and rendered, and displayed on the display terminal.
[0070] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The above-mentioned program can be pre-stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the above-mentioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0071] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0072] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An image transmission encryption method, characterized in that: Applied to an encoding terminal, the method comprises: Selecting a target configuration file according to a preset algorithm, and selecting a target image frame from the target image information according to the target configuration file; Selecting a target encrypted pixel range in the target image frame, and dividing the target encrypted pixel range into a plurality of encryption units; An encryption mark and a serial number are set for each encryption unit, and the encryption unit is encrypted according to the encryption mark and a preset encryption algorithm; wherein the encryption mark corresponds to the encryption algorithm; Each of the encrypted encryption units and the unencrypted portion of the target image information are compressed and encoded and then sent to a decoding terminal.
2. The method according to claim 1, characterized in that The selecting a target image frame from the target image information according to the target configuration file comprises: An I frame or a P frame is selected as a target image frame in the target image information according to the target configuration file.
3. The method according to claim 1 or 2, characterized in that: The encryption algorithm includes at least one of chaotic encryption, permutation encryption and dual image encryption.
4. A coding terminal, characterized in that: The encoding terminal includes a selection module, a division module, a processing module and a sending module; wherein, A selection module, which selects a target configuration file according to a preset algorithm, and selects a target image frame from the target image information according to the target configuration file; A division module, which selects a target encrypted pixel range in the target image frame and divides the target encrypted pixel range into a plurality of encryption units; A processing module is configured to set an encryption mark and a serial number for each encryption unit, and encrypt the encryption unit according to the encryption mark and a preset encryption algorithm; wherein the encryption mark corresponds to the encryption algorithm; The sending module compresses and encodes the encrypted encrypted unit and the unencrypted part and sends them to the decoding terminal.
5. The encoding terminal according to claim 4, characterized in that: The selection module is specifically used for: An I frame or a P frame is selected as a target image frame in the target image information according to the target configuration file.
6. The encoding terminal according to claim 4 or 5, characterized in that: The encryption algorithm includes at least one of chaotic encryption, permutation encryption and dual image encryption.
7. An image transmission encryption method, characterized in that: Applied to a decoding terminal, the method comprises: Receive a target data compression package sent by the encoding terminal, wherein the target data compression package includes a plurality of encryption units and unencrypted data packets, and each of the encryption units carries an encryption flag and a sequence number; Determine the encryption algorithm of each encryption unit according to the encryption flag carried by each encryption unit; Decrypting each encryption unit according to the encryption algorithm of each encryption unit, and sorting each encryption unit after decryption according to the serial number; Each encrypted unit after sorting and the unencrypted data packet are decoded and rendered, and displayed on a display terminal.
8. The method according to claim 7, characterized in that The encryption unit is that the encoding terminal selects a target configuration file according to a preset algorithm, selects a target image frame in the target image information according to the target configuration file, selects a target encryption pixel range in the target image frame, and divides the target encryption pixel range to obtain a plurality of the encryption units.
9. A decoding terminal, characterized in that: The decoding terminal includes a receiving module, a determining module, a decryption and sorting module, and a decoding and rendering module; wherein, A receiving module receives a target data compression package sent by the encoding terminal, wherein the target data compression package includes a plurality of encryption units and unencrypted data packets, wherein the encryption unit carries an encryption flag and a sequence number; A determination module, which determines the encryption algorithm of each encryption unit according to the encryption flag carried by each encryption unit; a decryption and sorting module, decrypting each encryption unit according to the encryption algorithm of each encryption unit, and sorting each encryption unit after decryption according to the serial number; The decoding and rendering module decodes and renders each encrypted unit and the unencrypted data packet after the sorting process, and displays them on the display terminal.
10. The decoding terminal according to claim 9, characterized in that: The encryption unit is that the encoding terminal selects a target configuration file according to a preset algorithm, selects a target image frame in the target image information according to the target configuration file, selects a target encryption pixel range in the target image frame, and divides the target encryption pixel range to obtain a plurality of the encryption units.
