CN114979717B - Differential video encryption method based on equipment decoding capability and security chip device - Google Patents

Differential video encryption method based on equipment decoding capability and security chip device Download PDF

Info

Publication number
CN114979717B
CN114979717B CN202210879169.3A CN202210879169A CN114979717B CN 114979717 B CN114979717 B CN 114979717B CN 202210879169 A CN202210879169 A CN 202210879169A CN 114979717 B CN114979717 B CN 114979717B
Authority
CN
China
Prior art keywords
encryption
decoding
video stream
frame image
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210879169.3A
Other languages
Chinese (zh)
Other versions
CN114979717A (en
Inventor
刘曼
张奇惠
王立峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Wise Security Technology Co Ltd
Original Assignee
Guangzhou Wise Security Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Wise Security Technology Co Ltd filed Critical Guangzhou Wise Security Technology Co Ltd
Priority to CN202210879169.3A priority Critical patent/CN114979717B/en
Publication of CN114979717A publication Critical patent/CN114979717A/en
Application granted granted Critical
Publication of CN114979717B publication Critical patent/CN114979717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4408Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the invention discloses a difference video encryption method based on equipment decoding capability and a security chip device, wherein the method comprises the following steps: acquiring decoding parameter information of opposite-end equipment, wherein the decoding parameter information comprises processor parameters and memory utilization rate; determining the encryption algorithm grade of the video stream and frame image similarity encryption parameters according to the decoding parameter information, wherein the number of independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion; and encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment. The scheme solves the problem that more computing power and hardware resources are required to be consumed in the existing video stream data encryption process, and has the advantages of maximally relieving computing power, improving transmission processing speed and having stronger flexibility and applicability on the basis of ensuring the safety of data information.

Description

Differential video encryption method based on equipment decoding capability and security chip device
Technical Field
The embodiment of the application relates to the technical field of video stream processing, in particular to a difference video encryption method based on equipment decoding capacity and a security chip device.
Background
In order to improve the security level of video stream transmission, a brute force algorithm with a long password is generally used, and the problem that the video stream data can be well protected against attack and crack in the security level can be solved.
In the related art, patent document CN113709493A discloses a video stream data encryption security chip device of a KVM system, which includes a PCIe controller, a video encoding module, and an encryption module, where the PCIe controller is configured to write original video stream data into a DDR; the video coding module is used for reading original video stream data from the DDR, performing compression coding processing on the original video stream data to obtain coded video stream data, inputting the coded video stream data into the encryption module to be encrypted to obtain encrypted video stream data, and finally writing the encrypted video stream data into the DDR. Therefore, the security chip device carries out close coupling design on the video coding module and the encryption module, so that the encryption process of video stream data is completed by hardware, the participation of a CPU (central processing unit) is avoided, the reading and writing frequency of a system bus and DDR (double data rate) is reduced, and the working efficiency of a video encryption process in a KVM (keyboard, video and mouse) system is improved. In addition, the application also provides a video stream data encryption method, equipment and a readable storage medium of the KVM system, and the technical effect of the method corresponds to that of the security chip device. However, the above-described video stream encryption method requires a large amount of computation power and hardware resources, and does not consider the processing situation at the decryption side, and needs to be improved.
Disclosure of Invention
The embodiment of the invention provides a difference video encryption method based on equipment decoding capacity and a security chip device, solves the problem that more computing power and hardware resources are needed to be consumed in the existing video stream data encryption process, furthest relieves the computing power on the basis of ensuring the security of data information, improves the transmission processing speed, and has stronger flexibility and applicability.
In a first aspect, an embodiment of the present invention provides a differential video encryption method based on device decoding capability, where the method includes:
acquiring decoding parameter information of opposite terminal equipment, wherein the decoding parameter information comprises processor parameters and memory utilization rate;
determining the encryption algorithm grade of the video stream and a frame image similarity encryption parameter according to the decoding parameter information, wherein different frame image similarity encryption parameters correspond to the number of independent encryption blocks of different images in proportion;
and encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment.
Optionally, the obtaining decoding parameter information of the peer device includes:
the current equipment sends a decoding parameter acquisition request to opposite-end equipment at intervals of preset time;
and the opposite-end equipment calculates the memory utilization rate and the processor occupancy rate in a preset time period according to the decoding parameter acquisition request, and feeds back the memory utilization rate and the processor occupancy rate to the current equipment.
Optionally, the determining, according to the decoding parameter information, an encryption algorithm level of a video stream and a frame image similarity encryption parameter includes:
determining the encryption algorithm grade of the video stream according to the processor occupancy rate;
and determining a frame image similarity encryption parameter according to the memory utilization rate.
Optionally, the determining the encryption algorithm level of the video stream according to the processor occupancy includes:
determining a falling preset occupancy rate interval according to the processor occupancy rate;
and determining a corresponding preset encryption algorithm grade according to the preset occupancy rate interval, wherein the higher the processor occupancy rate corresponding to the preset occupancy rate interval is, the lower the corresponding encryption algorithm grade is.
Optionally, the determining a frame image similarity encryption parameter according to the memory usage rate includes:
determining the number proportion of independent encryption blocks of the image according to the memory utilization rate;
and determining the similarity coefficient of the image block based on the number ratio of the independent encryption blocks so as to divide the image independent encryption blocks and the dependent encryption blocks.
Optionally, the encrypting video stream data based on the encryption algorithm level and the frame image similarity encryption parameter includes:
and encrypting the image in the video stream data according to the encryption algorithm grade determined by the decoding parameter information and the frame image similarity encryption parameter determined by the memory utilization rate.
Optionally, the encrypting the image in the video stream data according to the encryption algorithm grade determined according to the decoding parameter information and the frame image similarity encryption parameter determined according to the memory usage rate includes:
dividing an independent encryption block and a dependent encryption block of the image according to the frame image similarity encryption parameter to obtain an independent encryption block image and a combined encryption block image, wherein the size of the combined encryption block image is larger than that of the independent encryption block image;
and encrypting the independent encryption block image and the combined encryption block image respectively by using the determined encryption algorithm.
In a second aspect, an embodiment of the present invention further provides a differential video encryption security chip apparatus based on device decoding capability, including:
the information acquisition module is configured to acquire decoding parameter information of opposite-end equipment, wherein the decoding parameter information comprises processor parameters and memory utilization rate;
the parameter determining module is configured to determine an encryption algorithm grade of a video stream and a frame image similarity encryption parameter according to the decoding parameter information, wherein the number of independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion;
and the encryption module is configured to encrypt video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmit the encrypted data to the opposite terminal equipment.
In a third aspect, an embodiment of the present invention further provides a device for differential video encryption based on device decoding capability, where the device includes:
one or more processors;
a memory security chip device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method for differential video encryption based on device decoding capability according to an embodiment of the present invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for differential video encryption based on device decoding capability according to embodiments of the present invention.
In a fifth aspect, the present application further provides a computer program product, where the computer program product includes a computer program, where the computer program is stored in a computer-readable storage medium, and at least one processor of the device reads the computer-readable storage medium and executes the computer program, so that the device executes the differential video encryption method based on device decoding capability according to the present application.
In the embodiment of the invention, decoding parameter information of opposite-end equipment is obtained, wherein the decoding parameter information comprises processor parameters and memory utilization rate; determining the encryption algorithm grade of the video stream and frame image similarity encryption parameters according to the decoding parameter information, wherein the number of independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion; and encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment. The scheme solves the problem that more computing power and hardware resources are required to be consumed in the existing video stream data encryption process, and has the advantages of maximally relieving computing power, improving transmission processing speed and having stronger flexibility and applicability on the basis of ensuring the safety of data information.
Drawings
Fig. 1 is a flowchart of a differential video encryption method based on device decoding capability according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for determining encryption algorithm level and frame image similarity encryption parameters according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for encrypting video stream data based on an encryption algorithm level and a frame image similarity encryption parameter according to an embodiment of the present invention;
fig. 4 is a block diagram of a differential video encryption security chip device based on device decoding capability according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for differential video encryption method based on device decoding capability according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad invention. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Fig. 1 is a flowchart of a differential video encryption method based on device decoding capability according to an embodiment of the present invention, where an embodiment of the present invention specifically includes the following steps:
step S101, decoding parameter information of opposite terminal equipment is obtained, wherein the decoding parameter information comprises processor parameters and memory utilization rate.
In one embodiment, when the current device sends video to the peer device, for example, the current device may encrypt video stream data through an integrated security chip to send the encrypted data to the peer device. Firstly, decoding parameter information of opposite-end equipment is obtained, wherein the decoding parameter information comprises processor parameters and memory utilization rate. Optionally, the decoding parameter information may be obtained from the server or a communication connection may be established with the peer device and a request may be sent to the peer device to obtain the decoding parameter information.
Optionally, the obtaining decoding parameter information of the peer device includes: the current equipment sends a decoding parameter acquisition request to opposite-end equipment at intervals of preset time; and the opposite-end equipment calculates the memory utilization rate and the processor occupancy rate in a preset time period according to the decoding parameter acquisition request, and feeds back the memory utilization rate and the processor occupancy rate to the current equipment.
Step S102, determining the encryption algorithm grade of the video stream and the frame image similarity encryption parameter according to the decoding parameter information, wherein the different frame image similarity encryption parameters correspond to the number of independent encryption blocks of different images in proportion.
In one embodiment, when video stream encryption is performed, the encryption algorithm level of the corresponding video stream and the frame image similarity encryption parameter are determined based on different decoding parameter information, wherein different encryption algorithm levels correspond to encryption algorithms with different complexities, and different frame image similarity encryption parameters correspond to the number of independent encryption blocks of different images in proportion.
Optionally, the determining, according to the decoding parameter information, an encryption algorithm level of a video stream and a frame image similarity encryption parameter includes: determining the encryption algorithm grade of the video stream according to the processor occupancy rate; and determining a frame image similarity encryption parameter according to the memory utilization rate.
And S103, encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment.
In one embodiment, after the encryption algorithm level and the frame image similarity encryption parameter are determined, video stream data is encrypted based on the encryption algorithm level and the frame image similarity encryption parameter, and encrypted data is transmitted to the opposite terminal device. The different encryption algorithm grades correspond to encryption algorithms with different complexities, and the number of the independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion. Optionally, one or more corresponding encryption algorithms are set in advance for different encryption algorithm levels, and after the encryption algorithm level is determined, one of the one or more corresponding encryption algorithms is selected as the current video stream encryption algorithm, which may be selected randomly or sequentially as an example. In the process of encrypting the video stream, because other frame images are encoded based on the I frame, the P frame and the B frame, optionally, only some frame images may be encrypted, and the selection of the specific encrypted frame is not limited, and the scheme only defines the encryption condition of the frame images needing to be encrypted. Specifically, the frame image is encrypted based on the determined frame image similarity encryption parameter, so that encryption is dynamically performed by using different algorithms and different frame image encryption modes.
According to the above, by acquiring the decoding parameter information of the opposite terminal device, the decoding parameter information includes the processor parameter and the memory usage rate; determining the encryption algorithm grade of the video stream and frame image similarity encryption parameters according to the decoding parameter information, wherein the number of independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion; and encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment. The scheme solves the problem that more computing power and hardware resources are required to be consumed in the existing video stream data encryption process, and has the advantages of maximally relieving computing power, improving transmission processing speed and having stronger flexibility and applicability on the basis of ensuring the safety of data information.
Fig. 2 is a flowchart of a method for determining encryption algorithm levels and frame image similarity encryption parameters according to an embodiment of the present invention. On the basis of the above technical solution, a specific method for determining encryption algorithm level and frame image similarity encryption parameter is provided, as shown in fig. 2, which specifically includes:
step S201, the current device sends a decoding parameter acquisition request to the peer device at intervals of a preset time, and the peer device calculates a memory usage rate and a processor occupancy rate in a preset time period according to the decoding parameter acquisition request, and feeds back the memory usage rate and the processor occupancy rate to the current device.
Step S202, a preset occupancy rate interval is determined according to the processor occupancy rate, and a corresponding preset encryption algorithm grade is determined according to the preset occupancy rate interval, wherein the higher the processor occupancy rate corresponding to the preset occupancy rate interval is, the lower the corresponding encryption algorithm grade is.
In one embodiment, a plurality of preset occupancy rate intervals are set, each preset occupancy rate interval comprises an occupancy rate lower limit and an occupancy rate on-line, the occupancy rate of a processor of an opposite-end device is determined, and the preset occupancy rate interval in which the processor falls is determined. The preset occupancy rate interval corresponds to a preset encryption algorithm grade, and the higher the processor occupancy rate corresponding to the preset occupancy rate interval is, the lower the corresponding encryption algorithm grade is.
Step S203, determining the number ratio of independent encryption blocks of the image according to the memory usage rate, and determining a similarity coefficient of the image block based on the number ratio of the independent encryption blocks, so as to divide the image independent encryption block and the dependent encryption block.
In one embodiment, different memory usage rates are provided with corresponding different numbers of independent encryption blocks, wherein each frame of image is divided into an image independent encryption block and a non-independent encryption block, and the number of the independent encryption blocks is the number of the blocks which are independently encrypted in all the division units. Illustratively, a frame of image is divided into 128 coding block units, and if the number of independent encryption blocks is 25%, the number of independent encryption blocks of the image is 32, and the number of non-independent encryption blocks is 96. The mode that different memory usage rates are provided with corresponding different numbers of independent encryption blocks may be to set a record table, where the numbers of the independent encryption blocks set corresponding to the different memory usage rates are recorded in the table to determine the number of the independent encryption blocks corresponding to the currently determined memory usage rate by querying. When the independent encryption blocks and the dependent encryption blocks are divided, the blocks with the high consistent similarity are divided into the dependent encryption blocks, the blocks with the large similarity difference change are determined to be the independent encryption blocks, and at the moment, the number of the different independent encryption blocks and the number of the dependent encryption blocks are controlled by setting the similarity value, namely the number ratio of the independent encryption blocks is controlled. If the similarity requirement of classification is lower, the more the divided non-independent encryption blocks are, the encryption processing is carried out on the non-independent encryption blocks as a whole during encoding, and the encryption processing is carried out on the independent encryption blocks independently, otherwise, the higher the similarity requirement is, the fewer the non-independent encryption blocks are, the more the independent encoding blocks are, and the consumption of computing resources is relatively increased at the moment. When the memory utilization rate is higher, the number of the independent encryption blocks is smaller, and the similarity requirement of classification is lower during the corresponding division processing.
And S204, encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment.
According to the above, by acquiring the decoding parameter information of the opposite terminal device, the decoding parameter information includes the processor parameter and the memory usage rate; determining the encryption algorithm grade of the video stream and frame image similarity encryption parameters according to the decoding parameter information, wherein the number of independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion; and encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment. The scheme solves the problem that more computing power and hardware resources are required to be consumed in the existing video stream data encryption process, and has the advantages of maximally relieving computing power, improving transmission processing speed and having stronger flexibility and applicability on the basis of ensuring the safety of data information.
Fig. 3 is a flowchart of a method for encrypting video stream data based on an encryption algorithm level and a frame image similarity encryption parameter according to an embodiment of the present invention. On the basis of the above technical solution, a specific method for encrypting video stream data based on encryption algorithm level and frame image similarity encryption parameter is provided, as shown in fig. 3, which specifically includes:
step S301, the current device sends a decoding parameter acquisition request to the opposite device every preset time, and the opposite device calculates the memory utilization rate and the processor occupancy rate in a preset time period according to the decoding parameter acquisition request and feeds back the memory utilization rate and the processor occupancy rate to the current device.
Step S302, determining the encryption algorithm grade of the video stream according to the processor occupancy rate, and determining the frame image similarity encryption parameter according to the memory utilization rate.
Step S303, encrypting the image in the video stream data according to the encryption algorithm level determined by the decoding parameter information and the frame image similarity encryption parameter determined by the memory usage rate, and transmitting the encrypted data to the peer device.
In one embodiment, the encrypting the image in the video stream data according to the encryption algorithm level determined by the decoding parameter information and the frame image similarity encryption parameter determined by the memory usage rate includes: dividing an independent encryption block and a dependent encryption block of the image according to the frame image similarity encryption parameter to obtain an independent encryption block image and a combined encryption block image, wherein the size of the combined encryption block image is larger than that of the independent encryption block image; and encrypting the independent encryption block image and the combined encryption block image respectively by using the determined encryption algorithm. Therefore, the number of different encryption blocks is controlled through different memory utilization rates, so that the device can adapt to the resolving power of the opposite-end device for flexible and efficient processing when the opposite-end device decrypts.
According to the above, by acquiring the decoding parameter information of the opposite terminal device, the decoding parameter information includes the processor parameter and the memory usage rate; determining the encryption algorithm grade of the video stream and frame image similarity encryption parameters according to the decoding parameter information, wherein the number of independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion; and encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment. The scheme solves the problem that more computing power and hardware resources are required to be consumed in the existing video stream data encryption process, and has the advantages of maximally relieving computing power, improving transmission processing speed and having stronger flexibility and applicability on the basis of ensuring the safety of data information.
Fig. 4 is a block diagram of a structure of a device decoding capability-based differential video encryption security chip device according to an embodiment of the present invention, where the security chip device is configured to execute the device decoding capability-based differential video encryption method provided in the data receiving end embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 4, the security chip device specifically includes: an information acquisition module 101, a parameter determination module 102, and an encryption module 103, wherein,
an information obtaining module 101, configured to obtain decoding parameter information of an opposite-end device, where the decoding parameter information includes a processor parameter and a memory usage rate;
a parameter determining module 102, configured to determine, according to the decoding parameter information, an encryption algorithm level of a video stream and a frame image similarity encryption parameter, where different frame image similarity encryption parameters correspond to different numbers of independent encryption blocks of an image;
and the encryption module 103 is configured to encrypt video stream data based on the encryption algorithm level and the frame image similarity encryption parameter, and transmit the encrypted data to the peer device.
According to the scheme, decoding parameter information of opposite-end equipment is obtained, wherein the decoding parameter information comprises processor parameters and memory utilization rate; determining the encryption algorithm grade of the video stream and a frame image similarity encryption parameter according to the decoding parameter information, wherein different frame image similarity encryption parameters correspond to the number of independent encryption blocks of different images in proportion; and encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment. The scheme solves the problem that more computing power and hardware resources are required to be consumed in the existing video stream data encryption process, and has the advantages of maximally relieving computing power, improving transmission processing speed and having stronger flexibility and applicability on the basis of ensuring the safety of data information. Correspondingly, the functions executed by the modules are respectively as follows:
in a possible embodiment, the obtaining decoding parameter information of the peer device includes:
the current equipment sends a decoding parameter acquisition request to opposite-end equipment at intervals of preset time;
and the opposite-end equipment calculates the memory utilization rate and the processor occupancy rate in a preset time period according to the decoding parameter acquisition request, and feeds back the memory utilization rate and the processor occupancy rate to the current equipment.
In one possible embodiment, the determining the encryption algorithm level of the video stream and the frame image similarity encryption parameter according to the decoding parameter information includes:
determining the encryption algorithm grade of the video stream according to the processor occupancy rate;
and determining a frame image similarity encryption parameter according to the memory utilization rate.
In one possible embodiment, the determining the encryption algorithm level of the video stream according to the processor occupancy includes:
determining a falling preset occupancy rate interval according to the processor occupancy rate;
and determining a corresponding preset encryption algorithm grade according to the preset occupancy rate interval, wherein the higher the occupancy rate of the processor corresponding to the preset occupancy rate interval is, the lower the corresponding encryption algorithm grade is.
In a possible embodiment, the determining a frame image similarity encryption parameter according to the memory usage rate includes:
determining the number proportion of independent encryption blocks of the image according to the memory utilization rate;
and determining the similarity coefficient of the image block based on the number ratio of the independent encryption blocks so as to be used for dividing the image independent encryption blocks and the non-independent encryption blocks.
In one possible embodiment, the encrypting the video stream data based on the encryption algorithm level and the frame image similarity encryption parameter includes:
and encrypting the image in the video stream data according to the encryption algorithm grade determined by the decoding parameter information and the frame image similarity encryption parameter determined by the memory utilization rate.
In a possible embodiment, the encrypting an image in video stream data according to the encryption algorithm level determined by the decoding parameter information and the frame image similarity encryption parameter determined by the memory usage rate includes:
dividing an independent encryption block and a dependent encryption block of the image according to the frame image similarity encryption parameter to obtain an independent encryption block image and a combined encryption block image, wherein the size of the combined encryption block image is larger than that of the independent encryption block image;
and encrypting the independent encryption block image and the combined encryption block image respectively by using the determined encryption algorithm.
Fig. 5 is a schematic structural diagram of an apparatus for differential video encryption based on decoding capability according to an embodiment of the present invention, as shown in fig. 5, the apparatus includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of the processors 201 in the device may be one or more, and one processor 201 is taken as an example in fig. 5; the processor 201, the memory 202, the input device 203 and the output device 204 in the apparatus may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example. The memory 202 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the differential video encryption method based on the device decoding capability in the embodiment of the present invention. The processor 201 executes software programs, instructions and modules stored in the memory 202 to execute various functional applications and data processing of the device, that is, to implement the differential video encryption method based on the device decoding capability. The input device 203 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function controls of the apparatus. The output device 204 may include a display device such as a display screen.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for differential video encryption based on device decoding capability, the method comprising:
acquiring decoding parameter information of opposite-end equipment, wherein the decoding parameter information comprises processor parameters and memory utilization rate;
determining the encryption algorithm grade of the video stream and frame image similarity encryption parameters according to the decoding parameter information, wherein the number of independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion;
and encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment.
From the above description of the embodiments, it is obvious for those skilled in the art that the embodiments of the present invention can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better implementation in many cases. Based on such understanding, the technical solutions of the embodiments of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a service, or a network device) to execute the methods described in the embodiments of the present invention.
It should be noted that, in the embodiment of the differential video encryption security chip apparatus based on device decoding capability, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the present invention.
In some possible embodiments, the various aspects of the method provided by the present application may also be implemented in the form of a program product, which includes program code for causing a computer device to perform the steps of the method according to the various exemplary embodiments of the present application described above in this specification when the program product runs on the computer device, for example, the computer device may perform the differential video encryption method based on device decoding capability described in the embodiments of the present application. The program product may be implemented using any combination of one or more readable media.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will appreciate that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments can be included without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A differential video encryption method based on device decoding capability is characterized by comprising the following steps:
acquiring decoding parameter information of opposite-end equipment, wherein the decoding parameter information comprises processor parameters and memory utilization rate;
determining the encryption algorithm grade of the video stream and frame image similarity encryption parameters according to the decoding parameter information, wherein the number of independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion;
and encrypting video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmitting the encrypted data to the opposite terminal equipment.
2. The differential video encryption method based on device decoding capability according to claim 1, wherein the obtaining of the decoding parameter information of the peer device includes:
the current equipment sends a decoding parameter acquisition request to opposite-end equipment at intervals of preset time;
and the opposite-end equipment calculates the memory utilization rate and the processor occupancy rate in a preset time period according to the decoding parameter acquisition request, and feeds back the memory utilization rate and the processor occupancy rate to the current equipment.
3. The apparatus decoding capability-based differential video encryption method of claim 2, wherein the determining the encryption algorithm level of the video stream and the frame picture similarity encryption parameter according to the decoding parameter information comprises:
determining the encryption algorithm grade of the video stream according to the processor occupancy rate;
and determining a frame image similarity encryption parameter according to the memory utilization rate.
4. The differential video encryption method based on device decoding capability according to claim 3, wherein the determining the encryption algorithm level of the video stream according to the processor occupancy rate comprises:
determining a falling preset occupancy rate interval according to the processor occupancy rate;
and determining a corresponding preset encryption algorithm grade according to the preset occupancy rate interval, wherein the higher the occupancy rate of the processor corresponding to the preset occupancy rate interval is, the lower the corresponding encryption algorithm grade is.
5. The apparatus decoding capability-based difference video encryption method of claim 3, wherein determining the frame picture similarity encryption parameter based on the memory usage rate comprises:
determining the number proportion of independent encryption blocks of the image according to the memory utilization rate;
and determining the similarity coefficient of the image block based on the number ratio of the independent encryption blocks so as to divide the image independent encryption blocks and the dependent encryption blocks.
6. The differential video encryption method based on device decoding capability according to claim 3, wherein the encrypting the video stream data based on the encryption algorithm level and the frame image similarity encryption parameter comprises:
and encrypting the image in the video stream data according to the encryption algorithm grade determined by the decoding parameter information and the frame image similarity encryption parameter determined by the memory utilization rate.
7. A difference video encryption security chip device based on equipment decoding capability is characterized by comprising:
the information acquisition module is configured to acquire decoding parameter information of opposite-end equipment, wherein the decoding parameter information comprises processor parameters and memory utilization rate;
the parameter determining module is configured to determine an encryption algorithm grade of a video stream and a frame image similarity encryption parameter according to the decoding parameter information, wherein the number of independent encryption blocks of different images corresponding to different frame image similarity encryption parameters is in proportion;
and the encryption module is configured to encrypt video stream data based on the encryption algorithm grade and the frame image similarity encryption parameter, and transmit the encrypted data to the opposite terminal equipment.
8. A differential video encryption device based on device decoding capabilities, the device comprising: one or more processors; memory to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the device decoding capability based differential video encryption method of any of claims 1-6.
9. A storage medium containing computer executable instructions for performing the device decoding capability based differential video encryption method of any one of claims 1-6 when executed by a computer processor.
CN202210879169.3A 2022-07-25 2022-07-25 Differential video encryption method based on equipment decoding capability and security chip device Active CN114979717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210879169.3A CN114979717B (en) 2022-07-25 2022-07-25 Differential video encryption method based on equipment decoding capability and security chip device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210879169.3A CN114979717B (en) 2022-07-25 2022-07-25 Differential video encryption method based on equipment decoding capability and security chip device

Publications (2)

Publication Number Publication Date
CN114979717A CN114979717A (en) 2022-08-30
CN114979717B true CN114979717B (en) 2022-11-08

Family

ID=82968708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210879169.3A Active CN114979717B (en) 2022-07-25 2022-07-25 Differential video encryption method based on equipment decoding capability and security chip device

Country Status (1)

Country Link
CN (1) CN114979717B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132035B (en) * 2023-02-03 2024-04-12 广州万协通信息技术有限公司 High-performance password operation method and device based on multi-parameter dynamic adjustment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11161162A (en) * 1997-11-27 1999-06-18 Hitachi Ltd Ciphering method or deciphering method, and device using the method

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003152703A (en) * 2001-11-12 2003-05-23 Victor Co Of Japan Ltd Encryption device, encryption method, decryption device, decryption method, encryption decryption device and encryption decryption method
US20040193871A1 (en) * 2003-03-28 2004-09-30 Broadcom Corporation System and method for transmitting data using selective partial encryption
JP2006094241A (en) * 2004-09-24 2006-04-06 Fuji Xerox Co Ltd Encryption apparatus, encryption processing method, program, and information protecting system using encryption apparatus
CN100574445C (en) * 2006-09-29 2009-12-23 清华大学深圳研究生院 Based on the quality controllable encryption method of video stream of coding standard H.264
US9094733B2 (en) * 2012-03-31 2015-07-28 Intel Corporation Methods and systems for cryptographic access control of video
CN105376051A (en) * 2014-08-29 2016-03-02 宇龙计算机通信科技(深圳)有限公司 Encryption method and apparatus, and terminal
KR20170032776A (en) * 2015-09-15 2017-03-23 삼성전자주식회사 Image Processing Device and Image Processing Method Performing Selective Image Encryption
US9794061B1 (en) * 2016-06-14 2017-10-17 Storagecraft Technology Corporation Consolidating encrypted image backups without decryption
CN106534124A (en) * 2016-11-15 2017-03-22 浙江丞易软件开发有限公司 Integration encrypted storage tamper-proofing method and system
CN107302706B (en) * 2017-06-21 2020-08-14 北京奇艺世纪科技有限公司 Image anti-hotlinking method and device and electronic equipment
CN110430446B (en) * 2019-07-26 2021-09-14 东软集团股份有限公司 Video processing method, device, equipment and computer readable storage medium
AU2020100421A4 (en) * 2020-03-19 2020-04-30 Yuming Fang A multi-level encryption scheme for H.265/HEVC based on syntax elements scrambling
CN111414635A (en) * 2020-03-20 2020-07-14 广州市百果园信息技术有限公司 File encryption and decryption method, device, equipment and storage medium
CN111371813B (en) * 2020-05-28 2020-10-02 杭州灿八科技有限公司 Big data network data protection method and system based on edge calculation
CN113132418B (en) * 2021-06-17 2021-08-27 北京电信易通信息技术股份有限公司 Variable-grade encryption method, system and device
CN113422882B (en) * 2021-06-22 2022-09-02 中国科学技术大学 Hierarchical encryption method, system, equipment and storage medium for image compression coding
CN113193950B (en) * 2021-07-01 2021-12-10 广东省新一代通信与网络创新研究院 Data encryption method, data decryption method and storage medium
CN113992361A (en) * 2021-10-09 2022-01-28 南京理工大学 Computing power and resource consumption balancing method
CN113949783B (en) * 2021-10-18 2022-12-13 中南大学 Remote sensing image rapid encryption method based on texture complexity classification

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11161162A (en) * 1997-11-27 1999-06-18 Hitachi Ltd Ciphering method or deciphering method, and device using the method

Also Published As

Publication number Publication date
CN114979717A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN109474423B (en) Data encryption and decryption method, server and storage medium
US8918450B2 (en) Server apparatuses, server control programs, and client apparatuses for a computer system in which created drawing data is transmitted to the client apparatuses
US20140086412A1 (en) Encryption device, encryption method, and encryption program
CN114979717B (en) Differential video encryption method based on equipment decoding capability and security chip device
CN112511318B (en) Parallel secret communication method and system of multi-channel security chip
CN115208701B (en) Data packet selective encryption method and device
CN115473722A (en) Data encryption method and device, electronic equipment and storage medium
CN112491934B (en) Secure communication system and secure communication method based on security chip authentication
CN116132035B (en) High-performance password operation method and device based on multi-parameter dynamic adjustment
CN115102701B (en) Multi-chip data encryption and decryption processing method and device
CN116070240B (en) Data encryption processing method and device of multi-chip calling mechanism
CN115208570A (en) Encryption method and device based on dynamic replacement of secret key
CN114390318B (en) User data encryption and decryption method and device and electronic equipment
CN113704206B (en) Metadata processing method and device, electronic equipment and storage medium
CN113259621B (en) Cloud conference step-by-step recording method and system
CN115022076A (en) Data encryption/decryption method, device, system and medium
CN115085925A (en) Method and device for processing security chip through combination encryption of key information
CN112242978B (en) Method and device for processing data
CN114679312B (en) Encryption method, electronic device, and computer-readable storage medium
CN112261065A (en) Method and device for compression transmission and calculation decompression of satellite communication
CN115118523B (en) Security chip encryption processing method and device for adjusting encryption strategy by terminal equipment
CN110581764A (en) hard disk partition encryption and decryption system, method and device
CN114363658B (en) Method and device for encrypted transmission of audio and video stream
CN115208569B (en) Encryption and decryption method and device for dynamic key distribution
CN113297587B (en) Data storage method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant