Video streaming media encryption and decryption transmission method and system

文档序号:664137 发布日期:2021-04-27 浏览:8次 中文

阅读说明:本技术 一种视频流媒体加解密传输方法及系统 (Video streaming media encryption and decryption transmission method and system ) 是由 袁成 陈潇 张福轩 文涛 崔新友 于 2020-12-29 设计创作,主要内容包括:本发明涉及数据加密领域,特别涉及一种视频流媒体加解密传输方法及系统,其不同之处在于,包括以下步骤:步骤1:由前端IP数字摄像头获取实时视频流数据;步骤2:由视频流加密装置通过随机函数生成随机数密钥;步骤3:通过网络获取所述实时视频流数据,进行视频流加密处理,得到加密视频流数据;步骤4:由视频流解密装置获取所述视频流加密装置的加密密钥;步骤5:通过网络获取所述加密视频流数据,进行视频流解密处理,得到解密视频流数据。本发明在保证视频流传输的实时性前提下,有效提高视频流在网络中的传输安全性。(The invention relates to the field of data encryption, in particular to a video streaming media encryption and decryption transmission method and a system, which are different in that the method comprises the following steps: step 1: acquiring real-time video stream data by a front-end IP digital camera; step 2: generating a random number key by a video stream encryption device through a random function; and step 3: acquiring the real-time video stream data through a network, and carrying out video stream encryption processing to obtain encrypted video stream data; and 4, step 4: acquiring an encryption key of the video stream encryption device by a video stream decryption device; and 5: and acquiring the encrypted video stream data through a network, and performing video stream decryption processing to obtain decrypted video stream data. The invention effectively improves the transmission safety of the video stream in the network on the premise of ensuring the real-time property of the video stream transmission.)

1. A video stream media encryption and decryption transmission method is characterized by comprising the following steps:

step 1: acquiring real-time video stream data by a front-end IP digital camera;

step 2: generating a random number key by a video stream encryption device through a random function;

and step 3: acquiring the real-time video stream data through a network, and carrying out video stream encryption processing to obtain encrypted video stream data;

and 4, step 4: acquiring an encryption key of the video stream encryption device by a video stream decryption device;

and 5: and acquiring the encrypted video stream data through a network, and performing video stream decryption processing to obtain decrypted video stream data.

2. The video streaming media encryption and decryption transmission method according to claim 1, wherein: in the step 2, the video stream encryption device randomly generates a 256-bit key.

3. The video streaming media encryption and decryption transmission method according to claim 1, wherein: and in the step 3, acquiring real-time video stream data of the IP digital camera through an rtsp protocol.

4. The video streaming media encryption and decryption transmission method according to claim 3, wherein: the video stream encryption device performs XOR operation on the real-time video stream data and the secret key to perform video stream encryption processing.

5. The video streaming media encryption and decryption transmission method according to claim 1, wherein: in the step 4, the video stream decryption device communicates with the video stream encryption device through a TCP/IP protocol.

6. The video streaming media encryption and decryption transmission method according to claim 5, wherein: the video stream decryption device sends a key obtaining request to the video stream encryption device through a private communication protocol, so that an encryption key of the video stream encryption device is obtained.

7. The video streaming media encryption and decryption transmission method according to claim 1, wherein: in the step 5, the video stream decryption device sends a request for obtaining the video stream to the video stream encryption device through the private communication protocol, so as to obtain the encrypted video stream data of the video stream encryption device.

8. The video streaming media encryption and decryption transmission method of claim 7, wherein: the video stream decryption device performs video stream decryption processing by performing exclusive or operation on the acquired encrypted video stream data and the acquired encryption key.

9. System for video streaming media encryption/decryption transmission according to the method of any of claims 1 to 8, characterized in that: the device comprises an IP digital camera, a video stream encryption device and a video stream decryption device, wherein the devices are in data connection by adopting an Ethernet, the IP digital camera is used for acquiring real-time video stream data, the video stream encryption device is used for video stream encryption processing, and the video stream decryption device is used for video stream decryption processing.

10. The system for encrypting and decrypting the transmission of the video streaming media according to claim 9, wherein: the IP digital camera is front-end equipment, the video stream encryption device is local equipment arranged at the end part of the IP digital camera, and the video stream decryption device is equipment arranged at a user end.

Technical Field

The present invention relates to the field of data encryption, and in particular, to a method and a system for encrypting and decrypting transmission of video streaming media.

Background

With the development of the internet, the information transmitted by the internet is more and more, and the information not only comprises text, but also comprises pictures, audio, video and other multimedia information. Especially in the security field, the transmission of video stream by adopting a real-time transmission protocol is the current mainstream scheme and is widely used. However, the real-time transport protocol only provides functions of transmission, monitoring, recovery, synchronization and the like of video streams, and does not guarantee the security of transmitted data. The security field has higher and higher requirements on data security, and the requirement of a user on encrypting video stream data is more and more common.

In view of the above, it is an urgent need in the art to provide a method and system for encrypting and decrypting transmission of video streaming media.

Disclosure of Invention

The invention aims to overcome the defects of the prior art and provide a video streaming media encryption and decryption transmission method and system, which effectively improve the transmission security of video streaming in a network on the premise of ensuring the real-time property of video streaming transmission.

In order to solve the technical problems, the technical scheme of the invention is as follows: a video stream media encryption and decryption transmission method and system are different in that the method comprises the following steps:

step 1: acquiring real-time video stream data by a front-end IP digital camera;

step 2: generating a random number key by a video stream encryption device through a random function;

and step 3: acquiring the real-time video stream data through a network, and carrying out video stream encryption processing to obtain encrypted video stream data;

and 4, step 4: acquiring an encryption key of the video stream encryption device by a video stream decryption device;

and 5: and acquiring the encrypted video stream data through a network, and performing video stream decryption processing to obtain decrypted video stream data.

According to the scheme, in the step 2, the video stream encryption device randomly generates a 256-bit secret key.

According to the scheme, in the step 3, the real-time video stream data of the IP digital camera is obtained through an rtsp protocol.

According to the scheme, the video stream encryption device performs XOR operation on the real-time video stream data and the secret key to perform video stream encryption processing.

According to the scheme, in the step 4, the video stream decryption device communicates with the video stream encryption device through a TCP/IP protocol.

According to the scheme, the video stream decryption device sends a key obtaining request to the video stream encryption device through a private communication protocol, so that the encryption key of the video stream encryption device is obtained.

According to the above scheme, in step 5, the video stream decryption device sends a request for obtaining the video stream to the video stream encryption device through the private communication protocol, so as to obtain the encrypted video stream data of the video stream encryption device.

According to the scheme, the video stream decryption device performs the video stream decryption processing by performing exclusive or operation on the acquired encrypted video stream data and the acquired encryption key.

A system for carrying out video stream media encryption and decryption transmission according to the scheme is characterized in that: the device comprises an IP digital camera, a video stream encryption device and a video stream decryption device, wherein the devices are in data connection by adopting an Ethernet, the IP digital camera is used for acquiring real-time video stream data, the video stream encryption device is used for video stream encryption processing, and the video stream decryption device is used for video stream decryption processing.

According to the scheme, the IP digital camera is front-end equipment, the video stream encryption device is local equipment arranged at the end part of the IP digital camera, and the video stream decryption device is equipment arranged at a user end.

Compared with the prior art, the invention has the beneficial characteristics that: according to the invention, the local video stream encryption device is deployed at the IP digital camera head end, the real-time data stream of the camera is obtained through the video stream encryption device, and the encryption processing is carried out to form the encrypted video stream. The remote video stream decryption device is deployed at the user side, the key and the encrypted video stream sent by the video stream encryption device are obtained through the video stream decryption device, the encrypted video stream is decrypted at the user side to form a decrypted video stream, and then services such as video real-time preview and storage of the user side are performed.

Drawings

FIG. 1 is a block diagram of an embodiment of the present invention;

FIG. 2 is a flow chart of an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

Many aspects of the invention are better understood with reference to the following drawings. The components in the drawings are not necessarily to scale. Instead, emphasis is placed upon clearly illustrating the components of the present invention. Moreover, in the several views of the drawings, like reference numerals designate corresponding parts.

The word "exemplary" or "illustrative" as used herein means serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" or "illustrative" is not necessarily to be construed as preferred or advantageous over other embodiments. All of the embodiments described below are exemplary embodiments provided to enable persons skilled in the art to make and use the examples of the disclosure and are not intended to limit the scope of the disclosure, which is defined by the claims. In other instances, well-known features and methods are described in detail so as not to obscure the invention. For purposes of the description herein, the terms "upper," "lower," "left," "right," "front," "rear," "vertical," "horizontal," and derivatives thereof shall relate to the invention as oriented in fig. 1. Furthermore, there is no intention to be bound by any expressed or implied theory presented in the preceding technical field, background, brief summary or the following detailed description. It is also to be understood that the specific devices and processes illustrated in the attached drawings, and described in the following specification are simply exemplary embodiments of the inventive concepts defined in the appended claims. Hence, specific dimensions and other physical characteristics relating to the embodiments disclosed herein are not to be considered as limiting, unless the claims expressly state otherwise.

Referring to fig. 1 and fig. 2, the technical solution of the encryption and decryption transmission method and system for video streaming media of the present invention is as follows:

s1: the video stream encryption and decryption system consists of a front-end IP digital camera, a video stream encryption device and a video stream decryption device, and all the devices are in data connection by adopting Ethernet;

s2: the video stream encryption device generates a 256-bit random number key through a random function, acquires real-time video stream data of the IP digital camera through a network, performs exclusive OR operation on the real-time video stream data and the key, and performs video stream encryption processing to obtain encrypted video stream data.

In further detail, the step S2 includes the steps of:

s21: the video stream encryption device randomly generates a secret key secretekey of 256 bits;

s22: acquiring real-time video stream data SrcStream of a front-end IP digital camera through an rtsp protocol;

s23: the encrypted video stream data DescStream is obtained by carrying out XOR operation on the real-time video stream data SrcStream and a secret key SecretKey.

S3: the video stream decryption device communicates with the video stream encryption device through a TCP/IP protocol to obtain an encryption key of the video stream encryption device, obtains encrypted video stream data DescStream of the video stream encryption device through a network, and performs video stream decryption processing by performing exclusive OR operation on the encrypted video stream data DescStream and the key SecretKey to obtain decrypted video stream data.

In further detail, the step S3 includes the steps of:

s31: establishing TCP connection with a video encryption device through a TCP/IP protocol;

s32: sending a key obtaining request to a video stream encryption device through a private communication protocol so as to obtain a video stream encryption key SecretKey of the video stream encryption device;

s33: sending a request for acquiring the video stream to a video stream encryption device through a private communication protocol so as to acquire encrypted video stream data DescStream of the video stream encryption device;

s34: and carrying out XOR operation on the acquired encrypted video stream data DescStream and the acquired encryption key SecretKey to carry out video stream decryption processing, thereby obtaining decrypted video stream data.

The foregoing is a more detailed description of the present invention that is presented in conjunction with specific embodiments, and the practice of the invention is not to be considered limited to those descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频推荐方法、装置、计算机设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类