CN105337963A - Multimedia data encryption method and device - Google Patents

Multimedia data encryption method and device Download PDF

Info

Publication number
CN105337963A
CN105337963A CN201510641989.9A CN201510641989A CN105337963A CN 105337963 A CN105337963 A CN 105337963A CN 201510641989 A CN201510641989 A CN 201510641989A CN 105337963 A CN105337963 A CN 105337963A
Authority
CN
China
Prior art keywords
multimedia data
encryption
data
multimedia
preset
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.)
Pending
Application number
CN201510641989.9A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510641989.9A priority Critical patent/CN105337963A/en
Publication of CN105337963A publication Critical patent/CN105337963A/en
Priority to PCT/CN2016/083713 priority patent/WO2017054480A1/en
Pending legal-status Critical Current

Links

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 or manipulating encoded video stream scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明涉及信息技术领域,公开了一种多媒体数据加密方法及装置。所述方法包括:首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最后将加密后的所述多个多媒体数据单元发送给客户端。上述方法及装置能够保证多媒体数据的传输安全并减少加密多媒体数据在传输过程中占用的网络系统资源。

The invention relates to the field of information technology, and discloses a multimedia data encryption method and device. The method includes: first acquiring multimedia data to be transmitted; then dividing the multimedia data into multiple multimedia data units; then encrypting the multiple multimedia data units respectively by preset encryption rules; finally encrypting the encrypted The multiple multimedia data units are sent to the client. The above method and device can ensure the transmission security of multimedia data and reduce network system resources occupied by encrypted multimedia data during transmission.

Description

多媒体数据加密方法和装置Multimedia data encryption method and device

技术领域technical field

本发明涉及信息技术领域,尤其涉及一种多媒体数据加密方法和装置。The invention relates to the field of information technology, in particular to a multimedia data encryption method and device.

背景技术Background technique

随着信息技术的不断发展,网络摄像机随之出现,并且越来越受欢迎。其中,网络摄像机是一种结合传统摄像机与网络技术产生的新一代摄像机,它可以将记录的多媒体数据通过网络传输到服务器,然后再通过网络服务器传输到客户端上。网络摄像机可以用于监控儿童、独居老人、自己的住宅等。为了防止多媒体数据在传输过程中被黑客攻击泄露用户隐私,保证多媒体数据的安全性,通常需要对多媒体数据进行加密。With the continuous development of information technology, network cameras appear and become more and more popular. Among them, the network camera is a new generation of camera that combines traditional cameras and network technology. It can transmit the recorded multimedia data to the server through the network, and then transmit it to the client through the network server. IP cameras can be used to monitor children, elderly people living alone, their own houses, etc. In order to prevent the multimedia data from being attacked by hackers and leak user privacy during the transmission process, and to ensure the security of the multimedia data, it is usually necessary to encrypt the multimedia data.

目前,主要是通过传统的SSL(SecureSocketsLayer,安全套接层)协议对多媒体数据进行加密,即需要对多媒体数据进行整体加密,由于传统的SSL协议对多媒体数据进行整体加密后会产生额外的数据,而额外的数据在进行传输时会占用额外的网络资源,并且传统的SSL协议对多媒体数据进行加密的算法较为复杂,占用较多的网络系统资源。At present, the multimedia data is mainly encrypted through the traditional SSL (SecureSocketsLayer, Secure Sockets Layer) protocol, that is, the multimedia data needs to be encrypted as a whole, because the traditional SSL protocol will generate additional data after the multimedia data is encrypted as a whole, and Additional data will occupy additional network resources during transmission, and the algorithm for encrypting multimedia data in the traditional SSL protocol is relatively complex, occupying more network system resources.

发明内容Contents of the invention

解决有鉴于此,本发明提供一种多媒体数据加密方法和装置,主要目的在于解决加密后的多媒体数据在传输过程中,占用较多的网络系统资源的问题。Solution In view of this, the present invention provides a multimedia data encryption method and device, the main purpose of which is to solve the problem that the encrypted multimedia data occupies more network system resources during the transmission process.

依据本发明一个方面,提供了一种多媒体数据加密方法,包括:According to one aspect of the present invention, a kind of multimedia data encryption method is provided, comprising:

获取待传输的多媒体数据;Obtain multimedia data to be transmitted;

将所述多媒体数据划分为多个多媒体数据单元;dividing the multimedia data into a plurality of multimedia data units;

通过预置加密规则对所述多个多媒体数据单元分别进行加密;Encrypting the plurality of multimedia data units respectively by using preset encryption rules;

将加密后的所述多个多媒体数据单元发送给客户端。sending the encrypted multimedia data units to the client.

依据本发明另一个方面,提供了一种多媒体数据加密装置,包括:According to another aspect of the present invention, a multimedia data encryption device is provided, including:

获取单元,用于获取待传输的多媒体数据;an acquisition unit, configured to acquire multimedia data to be transmitted;

划分单元,用于将所述获取单元获取的多媒体数据划分为多个多媒体数据单元;a division unit, configured to divide the multimedia data acquired by the acquisition unit into a plurality of multimedia data units;

加密单元,用于通过预置加密规则对所述划分单元划分的多个多媒体数据单元分别进行加密;An encryption unit, configured to encrypt the multiple multimedia data units divided by the division unit through preset encryption rules;

发送单元,用于将加密后的所述多个多媒体数据单元发送给客户端。A sending unit, configured to send the encrypted multimedia data units to the client.

借由上述技术方案,本发明实施例提供的技术方案至少具有下列优点:With the above technical solutions, the technical solutions provided by the embodiments of the present invention have at least the following advantages:

本发明实施例提供了一种多媒体数据加密方法及装置,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最后将加密后的所述多个多媒体数据单元发送给客户端。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后的多媒体数据单元,从而减少了网络系统资源的浪费。The embodiment of the present invention provides a multimedia data encryption method and device, first obtain the multimedia data to be transmitted; then divide the multimedia data into multiple multimedia data units; and then encrypt the multiple multimedia data by preset encryption rules The units are respectively encrypted; finally, the encrypted multimedia data units are sent to the client. Compared with the overall encryption of multimedia data by traditional SSL at present, the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, then encrypts the multiple multimedia data units, and finally outputs the encrypted multimedia data units , thereby reducing the waste of network system resources.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1示出了本发明实施例提供的一种多媒体数据加密方法流程图;Fig. 1 shows a flow chart of a method for encrypting multimedia data provided by an embodiment of the present invention;

图2示出了本发明实施例提供的另一种多媒体数据加密方法流程图;FIG. 2 shows a flow chart of another multimedia data encryption method provided by an embodiment of the present invention;

图3示出了本发明实施例提供的一种多媒体数据加密装置结构框图;Fig. 3 shows a structural block diagram of a multimedia data encryption device provided by an embodiment of the present invention;

图4示出了本发明实施例提供的另一种多媒体数据加密装置结构框图。Fig. 4 shows a structural block diagram of another multimedia data encryption device provided by an embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

为使本发明技术方案的优点更加清楚,下面结合附图和实施例对本发明作详细说明。In order to make the advantages of the technical solution of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.

本发明实施例提供了一种多媒体数据加密方法,如图1所示,所述方法可以应用于中继服务器、网络摄像机等,所述方法包括:The embodiment of the present invention provides a kind of multimedia data encryption method, as shown in Figure 1, described method can be applied to relay server, network camera etc., described method comprises:

101、获取待传输的多媒体数据。101. Acquire multimedia data to be transmitted.

其中,所述多媒体数据可以为视频数据,也可以为音频数据,本发明实施例不做具体限定。所述视频数据可以为网络摄像机拍摄的需要传输给客户端的视频数据,所述视频数据可以为AVI(AudioVideoInterleaved,音频视频交错)、RM(remove,流媒体视频文件格式)、WMV(WindowsMediaVideo,流媒体格式)、FLV(FlashVideo,流媒体格式)、DV-AVI(DigitalVideoFormat,数字视频格式)、MPEG(MovingPicturesExpertsGroup/MotionPicturesExpertsGroup,动态图像专家组)、MOV(QuickTime,影片格式)、ASF(AdvancedStreamingformat,高级流格式)等格式的视频数据,本发明实施例不做具体限定。所述音频数据可以为网络摄像机录制的需要传输给客户端的音频数据,所述音频数据可以为MP3、AVI、CD、WMA、RealAudio等格式的音频数据,本发明实施例不做具体限定。在本发明实施例中,获取待传输的多媒体数据,是为了将待传输的多媒体数据转发给客户端,以使得网络摄像机记录的多媒体数据通过网络传输给客户端。Wherein, the multimedia data may be video data or audio data, which is not specifically limited in this embodiment of the present invention. Described video data can be the video data that needs to be transmitted to client end that the network camera shoots, and described video data can be AVI (AudioVideoInterleaved, audio frequency video is interleaved), RM (remove, stream media video file format), WMV (WindowsMediaVideo, stream media format), FLV (FlashVideo, streaming media format), DV-AVI (DigitalVideoFormat, digital video format), MPEG (MovingPicturesExpertsGroup/MotionPicturesExpertsGroup, Motion Picture Experts Group), MOV (QuickTime, movie format), ASF (AdvancedStreamingformat, advanced streaming format ) and other formats, which are not specifically limited in this embodiment of the present invention. The audio data can be the audio data recorded by the network camera and needs to be transmitted to the client. The audio data can be audio data in formats such as MP3, AVI, CD, WMA, RealAudio, etc., which are not specifically limited in the embodiments of the present invention. In the embodiment of the present invention, the purpose of acquiring the multimedia data to be transmitted is to forward the multimedia data to be transmitted to the client, so that the multimedia data recorded by the network camera is transmitted to the client through the network.

102、将所述多媒体数据划分为多个多媒体数据单元。102. Divide the multimedia data into multiple multimedia data units.

其中,所述多媒体数据单元是通过对多媒体数据进行划分而得到的。在本发明实施例中,可以根据多媒体数据中的多媒体帧或多媒体播放过程中的时间点将多媒体数据平均划分为多个多媒体数据单元,也可以根据多媒体数据中的多媒体帧或多媒体播放过程中的时间点将多媒体数据非平均的划分为多个多媒体数据单元,本发明实施例不做具体限定。对于本发明实施例,多媒体数据中的多媒体帧的个数或多媒体播放过程中的时间点的长短可以根据实际需求进行设置,也可以由系统默认配置,本发明实施例不做具体限定。Wherein, the multimedia data unit is obtained by dividing multimedia data. In the embodiment of the present invention, the multimedia data can be evenly divided into multiple multimedia data units according to the multimedia frames in the multimedia data or the time points in the multimedia playing process, or can be divided into multiple multimedia data units according to the multimedia frames in the multimedia data or the time points in the multimedia playing process. The time point divides the multimedia data into multiple multimedia data units unequally, which is not specifically limited in this embodiment of the present invention. For the embodiment of the present invention, the number of multimedia frames in the multimedia data or the length of the time point in the multimedia playing process can be set according to actual needs, and can also be configured by default by the system, which is not specifically limited in the embodiment of the present invention.

例如,待传输视频数据包含有300个视频帧,若要求每个视频数据单元中的视频帧的个数为30,则可以按照每30帧划分一个数据单元的方式将所述待传输的视频数据平均划分成10个视频数据单元,每个视频数据单元中包含有30个视频帧;若未对每个视频数据单元中的视频帧的个数做出要求,而要求视频数据单元的个数为10,则可将待传输视频数据平均或非平均划分成10个视频数据单元;若未对每个视频数据单元中的视频帧的个数做出要求,也未对视频数据单元的个数做出要求,则可对所述待传输视频数据进行任意划分,最多可将待传输视频数据划分为300个视频数据单元,每个视频数据单元对应一个视频帧。For example, the video data to be transmitted includes 300 video frames, if the number of video frames in each video data unit is required to be 30, the video data to be transmitted can be divided into one data unit every 30 frames Divide it into 10 video data units on average, and each video data unit contains 30 video frames; if there is no requirement for the number of video frames in each video data unit, the number of video data units required is 10, the video data to be transmitted can be evenly or unevenly divided into 10 video data units; if the number of video frames in each video data unit is not required, and the number of video data units is not specified If there is a requirement, the video data to be transmitted can be divided arbitrarily, and the video data to be transmitted can be divided into 300 video data units at most, and each video data unit corresponds to a video frame.

103、通过预置加密规则对所述多个多媒体数据单元分别进行加密。103. Encrypt the multiple multimedia data units respectively by using a preset encryption rule.

其中,所述预置加密规则可以根据用户需求进行设置,也可以由系统默认配置,本发明实施例不做具体限定。通过所述预置加密规则对多个多媒体数据单元进行加密,加密后的多媒体数据占用的存储空间和原有的多媒体数据占用的存储空间大小相同。对于本发明实施例,所述预置加密规则可以为加密算法较为简单的非对称加密规则,也可以为加密算法较为复杂的对称加密规则,对称加密规则是加密和解密的双方使用相同密钥的加解密的算法,并且对称加密规则的加密速度快,对称加密规则通常适用于消息发送方需要加密大量数据时使用。所述对称加密规则具体可以为DES(DataEncryptionAlgorithm,对称加密算法)算法,3DES(TripleDES,三重数据加密算法)算法,RC5(分组密码算法)算法,IDEA(IntelliJIDEA,数据块加密算法)算法等,本发明实施例不做具体限定。Wherein, the preset encryption rules can be set according to user requirements, or can be configured by default by the system, which is not specifically limited in this embodiment of the present invention. The multiple multimedia data units are encrypted by the preset encryption rules, and the storage space occupied by the encrypted multimedia data is the same as the storage space occupied by the original multimedia data. For the embodiment of the present invention, the preset encryption rule can be an asymmetric encryption rule with a relatively simple encryption algorithm, or a symmetric encryption rule with a relatively complex encryption algorithm. The symmetric encryption rule is that both parties of encryption and decryption use the same key The encryption and decryption algorithm, and the encryption speed of the symmetric encryption rule is fast, and the symmetric encryption rule is usually used when the message sender needs to encrypt a large amount of data. The symmetric encryption rule can specifically be DES (DataEncryptionAlgorithm, symmetric encryption algorithm) algorithm, 3DES (TripleDES, triple data encryption algorithm) algorithm, RC5 (block cipher algorithm) algorithm, IDEA (IntelliJIDEA, data block encryption algorithm) algorithm, etc., this The embodiments of the invention are not specifically limited.

对于本发明实施例,为了满足多媒体数据加密的安全性需求,还可以使用加密算法较为简单的非对称加密规则对所述多媒体数据进行加密,通过加密算法简单的非对称加密规则对所述多媒体数据进行加密,加密后的多媒体数据存储空间的大小可以稍大于原有的多媒体数据存储空间,从而在保证加密后的多媒体数据占用的存储空间相对较小的情况下,进一步地提高多媒体数据加密的安全性。For the embodiment of the present invention, in order to meet the security requirements of multimedia data encryption, the multimedia data can also be encrypted using a relatively simple asymmetric encryption rule of the encryption algorithm, and the multimedia data can be encrypted by the simple asymmetric encryption rule of the encryption algorithm. Encryption, the size of the encrypted multimedia data storage space can be slightly larger than the original multimedia data storage space, thereby further improving the security of multimedia data encryption while ensuring that the storage space occupied by the encrypted multimedia data is relatively small sex.

104、将加密后的所述多个多媒体数据单元发送给客户端。104. Send the multiple encrypted multimedia data units to the client.

其中,所述多个多媒体数据单元用于供所述客户端进行展示/输出,发送加密后的所述多个多媒体数据单元是指将加密后的多个多媒体数据单元通过网络发送给网络摄像机对应的客户端设备。对于本发明实施例,将待传输的多媒体数据划分多个多媒体数据单元,然后根据预置加密规则对多个多媒体数据单元分别进行加密,最后将加密后的所述多个多媒体数据单元发送给客户端。从而解决了传统SSL对多媒体数据进行整体加密后所产生的额外数据,进而减少了网络系统资源的浪费。同时,对多媒体数据中的多个多媒体数据单元分别进行加密并不会降低安全性。Wherein, the multiple multimedia data units are used for the client to display/output, and sending the encrypted multiple multimedia data units refers to sending the encrypted multiple multimedia data units to the corresponding network camera through the network. of client devices. For the embodiment of the present invention, divide the multimedia data to be transmitted into multiple multimedia data units, then encrypt the multiple multimedia data units respectively according to preset encryption rules, and finally send the encrypted multiple multimedia data units to the client end. Therefore, the extra data generated after the traditional SSL encrypts the multimedia data is solved, thereby reducing the waste of network system resources. At the same time, separately encrypting multiple multimedia data units in the multimedia data will not reduce security.

对于本发明实施例,可以应用的场景如下所述,但不仅限于此,包括:中继服务器获取的待传输多媒体数据的多媒体帧的个数为400,若要求每个多媒体数据单元中的多媒体帧的个数为100,则可将所述待传输的多媒体数据平均划分成4个多媒体数据单元,每个多媒体数据单元中包含有100个多媒体帧。然后通过预置加密规则对所述多个多媒体数据单元分别进行加密,所述预置加密规则可以为加密算法较为简单的非对称加密规则,也可以为加密算法较为复杂的对称加密规则,具体加密规则可以为DES、DES和RC5等加密算法,再通过对称加密规则中的对应的加密密钥对多个多媒体数据单元分别进行加密,最后将加密后的多个多媒体数据单元通过网络发送给网络摄像机对应的客户端设备。在本发明实施例中,将待传输的多媒体数据进行划分多个多媒体数据单元,然后根据预置加密规则对多个多媒体数据单元分别进行加密,最后将加密后的所述多个多媒体数据单元发送给客户端。从而解决了传统SSL对多媒体数据进行整体加密后所产生的额外数据,进而减少了网络系统资源的浪费。For the embodiment of the present invention, applicable scenarios are as follows, but not limited thereto, including: the number of multimedia frames of multimedia data to be transmitted acquired by the relay server is 400, if the multimedia frames in each multimedia data unit are required is 100, the multimedia data to be transmitted can be evenly divided into 4 multimedia data units, and each multimedia data unit includes 100 multimedia frames. Then the plurality of multimedia data units are encrypted respectively by preset encryption rules, and the preset encryption rules can be relatively simple asymmetric encryption rules for encryption algorithms, or can be comparatively complicated symmetric encryption rules for encryption algorithms. The rules can be encryption algorithms such as DES, DES, and RC5, and then encrypt multiple multimedia data units separately through the corresponding encryption keys in the symmetric encryption rules, and finally send the encrypted multiple multimedia data units to the network camera through the network corresponding client device. In the embodiment of the present invention, the multimedia data to be transmitted is divided into multiple multimedia data units, and then the multiple multimedia data units are respectively encrypted according to preset encryption rules, and finally the encrypted multiple multimedia data units are sent to the client. Therefore, the extra data generated after the traditional SSL encrypts the multimedia data is solved, thereby reducing the waste of network system resources.

本发明实施例提供了一种多媒体数据加密方法,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最后将加密后的所述多个多媒体数据单元发送给客户端,所述多个多媒体数据单元用于供所述客户端进行展示/输出。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后的多媒体数据单元,从而减少了网络系统资源的浪费。The embodiment of the present invention provides a multimedia data encryption method. Firstly, the multimedia data to be transmitted is obtained; then the multimedia data is divided into a plurality of multimedia data units; performing encryption; finally, sending the encrypted multimedia data units to the client, and the multiple multimedia data units are used for display/output by the client. Compared with the overall encryption of multimedia data by traditional SSL at present, the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, then encrypts the multiple multimedia data units, and finally outputs the encrypted multimedia data units , thereby reducing the waste of network system resources.

本发明实施例提供了另一种多媒体数据加密方法,如图2所示,所述方法包括:The embodiment of the present invention provides another kind of multimedia data encryption method, as shown in Figure 2, described method comprises:

201、获取待传输的多媒体数据。201. Acquire multimedia data to be transmitted.

对于本发明实施例,所述多媒体数据为视频数据或音频数据。所述视频数据可以为网络摄像机拍摄的需要传输给客户端的视频数据,所述视频数据可以为AVI(AudioVideoInterleaved,音频视频交错)、RM(remove,流媒体视频文件格式)、WMV(WindowsMediaVideo,流媒体格式)、FLV(FlashVideo,流媒体格式)、DV-AVI(DigitalVideoFormat,数字视频格式)、MPEG(MovingPicturesExpertsGroup/MotionPicturesExpertsGroup,动态图像专家组)、MOV(QuickTime,影片格式)、ASF(AdvancedStreamingformat,高级流格式)等格式的视频数据,本发明实施例不做具体限定。所述音频数据可以为网络摄像机录制的需要传输给客户端的音频数据,所述音频数据可以为MP3、AVI、CD、WMA、RealAudio等格式的音频数据,本发明实施例不做具体限定。在本发明实施例中,获取待传输的多媒体数据,是为了将待传输多媒体数据转发给客户端,以使得网络摄像机记录的多媒体数据通过网络传输给客户端。For the embodiment of the present invention, the multimedia data is video data or audio data. Described video data can be the video data that needs to be transmitted to client end that the network camera shoots, and described video data can be AVI (AudioVideoInterleaved, audio frequency video is interleaved), RM (remove, stream media video file format), WMV (WindowsMediaVideo, stream media format), FLV (FlashVideo, streaming media format), DV-AVI (DigitalVideoFormat, digital video format), MPEG (MovingPicturesExpertsGroup/MotionPicturesExpertsGroup, Motion Picture Experts Group), MOV (QuickTime, movie format), ASF (AdvancedStreamingformat, advanced streaming format ) and other formats, which are not specifically limited in this embodiment of the present invention. The audio data can be the audio data recorded by the network camera and needs to be transmitted to the client. The audio data can be audio data in formats such as MP3, AVI, CD, WMA, RealAudio, etc., which are not specifically limited in the embodiments of the present invention. In the embodiment of the present invention, the purpose of acquiring the multimedia data to be transmitted is to forward the multimedia data to be transmitted to the client, so that the multimedia data recorded by the network camera is transmitted to the client through the network.

202、按照预置规则将所述多媒体数据划分为多个多媒体帧数据。202. Divide the multimedia data into multiple pieces of multimedia frame data according to a preset rule.

其中,所述预置规则可以根据实际需求进行设置,也可以由系统默认配置,本发明实施例不做具体限定。所述预置规则具体可以根据多媒体数据中的多媒体帧将多媒体数据划分为多个多媒体帧数据,例如,可以按照每一个多媒体帧一组、每两个多媒体帧一组等将多媒体数据划分为多个多媒体帧数据;或者多媒体播放过程中的时间点将多媒体数据划分为多个多媒体帧数据。需要说明的是,预置规则中多媒体播放过程中的时间点可以根据用户实际需求进行设置,也可以由系统默认配置,本发明实施例不做具体限定。对于本发明实施例,预置规则中配置的多种多媒体数据划分规则,可以根据实际需求将多媒体数据灵活的划分为多个多媒体帧数据,从而提高了划分多媒体数据的效率。Wherein, the preset rules may be set according to actual requirements, or may be configured by default by the system, which is not specifically limited in this embodiment of the present invention. Specifically, the preset rule may divide the multimedia data into multiple multimedia frame data according to the multimedia frames in the multimedia data. Multimedia frame data; or multimedia data is divided into multiple multimedia frame data at a time point during multimedia playback. It should be noted that the time point in the multimedia playback process in the preset rules can be set according to the actual needs of the user, or can be configured by default by the system, which is not specifically limited in the embodiment of the present invention. For the embodiment of the present invention, multiple multimedia data division rules configured in the preset rules can flexibly divide multimedia data into multiple multimedia frame data according to actual needs, thereby improving the efficiency of dividing multimedia data.

例如,中继服务器获取的待传输视频数据中包含有80个视频帧,则根据视频帧可将所述视频数据划分为80个视频帧数据。再比如,中继服务器获取的待传输视频数据的播放时长为30分钟,预置规则中配置的视频播放过程中的时间点为3分钟,则根据视频播放过程中的时间点3分钟将视频数据数据平均划分为10个播放时长为3分钟的视频数据单元,每一个视频数据单元中包含有一个或多个视频帧。For example, if the video data to be transmitted acquired by the relay server includes 80 video frames, the video data may be divided into 80 video frame data according to the video frames. For another example, if the playback duration of the video data to be transmitted obtained by the relay server is 30 minutes, and the time point during the video playback configured in the preset rules is 3 minutes, then the video data will be transferred according to the time point during the video playback process of 3 minutes. The data is evenly divided into 10 video data units with a playback duration of 3 minutes, and each video data unit contains one or more video frames.

对于本发明实施例,所述按照预置规则将所述多媒体数据划分为多个多媒体帧数据之后,还包括:按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中所在的位置顺序。对于本发明实施例,按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中的位置顺序,可以进一步地提高后续多媒体帧数据加密的安全性。其中,所述预置排序规则可以按照多媒体帧数据的原始序列号排序,也可以按照多媒体帧数据的存储空间大小排序,还可以按照多媒体帧数据的播放时长排序,本发明实施例不做具体限定。For the embodiment of the present invention, after dividing the multimedia data into a plurality of multimedia frame data according to the preset rules, it further includes: adjusting the position of the plurality of multimedia frame data in the multimedia data according to the preset sorting rules order of position. For the embodiment of the present invention, the position order of the plurality of multimedia frame data in the multimedia data is adjusted according to a preset sorting rule, which can further improve the security of subsequent multimedia frame data encryption. Wherein, the preset sorting rules can be sorted according to the original serial number of the multimedia frame data, or can be sorted according to the storage space size of the multimedia frame data, or can be sorted according to the playback duration of the multimedia frame data, which is not specifically limited in the embodiment of the present invention .

例如,将视频数据划分为5个视频帧数据后,若获取到这5个视频帧数据在原始视频数据中对应的原始序列号分别为1、2、3、4、5,预置排序规则为根据视频帧数据的原始序列号调整视频帧数据的位置顺序,由此调整后的多个视频帧数据的对应位置的原始序列号可以为5、4、3、2、1。对于本发明实施例,按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中的位置顺序,可以进一步地提高后续多媒体帧数据加密的安全性。For example, after the video data is divided into 5 video frame data, if the original serial numbers corresponding to the 5 video frame data in the original video data are respectively 1, 2, 3, 4, and 5, the preset sorting rules are The sequence of positions of the video frame data is adjusted according to the original sequence numbers of the video frame data, whereby the adjusted original sequence numbers of the corresponding positions of the multiple video frame data may be 5, 4, 3, 2, 1. For the embodiment of the present invention, the position order of the plurality of multimedia frame data in the multimedia data is adjusted according to a preset sorting rule, which can further improve the security of subsequent multimedia frame data encryption.

203、通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密。203. Encrypt the multiple multimedia frame data respectively by presetting a symmetric encryption rule and the encryption key.

对于本发明实施例,所述方法还包括:生成所述预置加密规则对应的加密密钥;或者接收外部设备发送的所述预置加密规则对应的加密密钥。其中,所述对称加密规则为单钥系统的加密方式,对称加密规则中的加密密钥可以同时作为信息的加密和解密。所述预置对称加密规则可以根据用户的实际需求进行设置,也可以由系统默认配置,本发明实施例不做具体限定。For the embodiment of the present invention, the method further includes: generating an encryption key corresponding to the preset encryption rule; or receiving an encryption key corresponding to the preset encryption rule sent by an external device. Wherein, the symmetric encryption rule is an encryption method of a single-key system, and the encryption key in the symmetric encryption rule can be used for encryption and decryption of information at the same time. The preset symmetric encryption rules can be set according to the actual needs of the user, or can be configured by default by the system, which is not specifically limited in the embodiment of the present invention.

在本发明实施例中,所述预置对称加密规则对应的加密密钥可以由数据发送方生成,即可以由网络摄像机或者网络摄像机对应的中继服务器生成;也可以将所述预置对称加密规则对应的加密密钥配置在外部设备中,每次在对多媒体数据进行传输之前,根据外部设备中的预置对称加密规则动态的产生一个加密密钥,然后将所述加密密钥以HTTPS(HyperTextTransferProtocoloverSecureSocketLayer,网络协议)传输方式,分别传输给数据发送端和客户端,数据发送端和客户端收到加密密钥后,进行数据传输。需要说明的是,外部设备向数据发送端和客户端传输加密密钥时,由于加密密钥是通过HTTPS进行传输的,因此可将加密密钥安全的传输至数据发送端和客户端,并且外部设备通过HTTPS仅传输加密密钥,而不是传输加密的多媒体数据本身,因此该种加密方式并不会占用较多的网络系统资源。In the embodiment of the present invention, the encryption key corresponding to the preset symmetric encryption rule can be generated by the data sender, that is, it can be generated by the network camera or the relay server corresponding to the network camera; The encryption key corresponding to the rule is configured in the external device, and each time before the multimedia data is transmitted, an encryption key is dynamically generated according to the preset symmetric encryption rules in the external device, and then the encryption key is sent in HTTPS ( HyperTextTransferProtocoloverSecureSocketLayer, network protocol) transmission method, which is transmitted to the data sender and the client respectively, and the data sender and the client perform data transmission after receiving the encryption key. It should be noted that when the external device transmits the encryption key to the data sender and the client, since the encryption key is transmitted through HTTPS, the encryption key can be safely transmitted to the data sender and the client, and the external The device only transmits the encryption key through HTTPS, not the encrypted multimedia data itself, so this encryption method does not occupy much network system resources.

对于本发明实施例,通过所述预置对称加密规则对多个多媒体帧数据进行加密,加密后的多媒体数据占用的存储空间和原有的多媒体数据占用的存储空间大小相同。在本发明实施例中,所述预置对称加密规则具体可以为DES(DataEncryptionAlgorithm,对称加密算法)算法,3DES(TripleDES,三重数据加密算法)算法,RC5(分组密码算法)算法,IDEA(IntelliJIDEA,数据块加密算法)算法等,本发明实施例不做具体限定。对于本发明实施例,由于对称加密规则具有计算量小、加密速度快、加密效率高等优点,因此通过预置对称加密规则对所述多个多媒体帧数据分别进行加密,可以提高多媒体数据加密的效率。同时,对多媒体数据划分的多个多媒体帧数据分别进行加密并不会降低安全性。For the embodiment of the present invention, multiple multimedia frame data are encrypted by the preset symmetric encryption rule, and the storage space occupied by the encrypted multimedia data is the same as the storage space occupied by the original multimedia data. In the embodiment of the present invention, the preset symmetric encryption rule may specifically be DES (DataEncryptionAlgorithm, symmetric encryption algorithm) algorithm, 3DES (TripleDES, triple data encryption algorithm) algorithm, RC5 (block cipher algorithm) algorithm, IDEA (IntelliJIDEA, Data block encryption algorithm) algorithms, etc., are not specifically limited in this embodiment of the present invention. For the embodiment of the present invention, since the symmetric encryption rule has the advantages of small amount of calculation, fast encryption speed, and high encryption efficiency, the multiple multimedia frame data are respectively encrypted by preset symmetric encryption rules, which can improve the efficiency of multimedia data encryption . At the same time, separately encrypting the multiple multimedia frame data divided by the multimedia data will not reduce security.

对于本发明实施例,所述通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密之前,还包括:获取各个多媒体帧数据的原始序列号;根据所述加密密钥和所述各个多媒体帧数据的原始序列号,分别生成与所述各个多媒体帧数据分别对应的密钥。其中,多媒体帧数据的原始序列号用于表示多媒体帧数据在多媒体数据中的位置顺序,具体可以通过数据编号表示多媒体帧数据的原始序列号,所述预置对称加密规则的加密密钥可以从中继服务器中获取。例如,获取的各个多媒体帧数据的原始序列号分别为5、4、2、1和3,预置对称加密规则的加密密钥为123,则根据对称加密规则的私钥123和多媒体帧数据原始序列号5,生成原始序列号为5的多媒体帧数据的密钥;根据对称加密规则的加密密钥123和多媒体帧数据原始序列号4,生成原始序列号为4的多媒体帧数据的密钥;根据对称加密规则的加密密钥123和多媒体帧原始序列号2,生成原始序列号为2的多媒体帧数据的密钥;根据对称加密规则的加密密钥123和多媒体帧原始序列号1,生成原始序列号为1的多媒体帧数据的密钥;根据对称加密规则的加密密钥123和多媒体帧原始序列号3,生成原始序列号为3的多媒体帧数据的密钥。在本发明实施例中,根据预置对称加密规则的加密密钥和所述各个多媒体帧数据的原始序列号生成的各个多媒体帧数据分别对应的密钥,可以进一步地的提高加密密钥的复杂性,从而提高了多媒体数据加密的安全性。For the embodiment of the present invention, before encrypting the plurality of multimedia frame data respectively by preset symmetric encryption rules and the encryption key, it also includes: obtaining the original sequence number of each multimedia frame data; according to the The encryption key and the original serial numbers of the respective multimedia frame data generate keys corresponding to the respective multimedia frame data respectively. Wherein, the original sequence number of the multimedia frame data is used to represent the position order of the multimedia frame data in the multimedia data, specifically the original sequence number of the multimedia frame data can be represented by the data number, and the encryption key of the preset symmetric encryption rule can be obtained from Obtained from the server. For example, the original serial numbers of the acquired multimedia frame data are 5, 4, 2, 1 and 3 respectively, and the encryption key of the preset symmetric encryption rule is 123, then according to the private key 123 of the symmetric encryption rule and the original serial number of the multimedia frame data Serial number 5 generates the key of the multimedia frame data whose original serial number is 5; according to the encryption key 123 of the symmetric encryption rule and the original serial number 4 of the multimedia frame data, generates the key of the multimedia frame data whose original serial number is 4; According to the encryption key 123 of the symmetric encryption rule and the original sequence number 2 of the multimedia frame, the key of the multimedia frame data whose original sequence number is 2 is generated; according to the encryption key 123 of the symmetric encryption rule and the original sequence number 1 of the multimedia frame, the original sequence number is generated The key of the multimedia frame data whose serial number is 1; according to the encryption key 123 of the symmetric encryption rule and the original serial number 3 of the multimedia frame, the key of the multimedia frame data whose original serial number is 3 is generated. In the embodiment of the present invention, the keys corresponding to each multimedia frame data generated according to the encryption key of the preset symmetric encryption rule and the original serial number of each multimedia frame data can further improve the complexity of the encryption key. performance, thereby improving the security of multimedia data encryption.

对于本发明实施例,所述通过预置对称加密规则对所述多个多媒体帧数据分别进行加密包括:通过所述各个多媒体帧数据分别对应的密钥对所述多个多媒体帧数据分别进行加密。例如,原始序列号为1的多媒体帧数据对应的密钥为145;原始序列号为2的多媒体帧数据对应的密钥为147;原始序列号为3的多媒体帧数据对应的密钥为124。则根据密钥145对原始序列号为1的多媒体帧数据进行加密;根据密钥147对原始序列号为2的多媒体帧数据进行加密;根据密钥124对原始序列号为3的多媒体帧数据进行加密。在本发明实施例中,根据所述预置所述加密密钥和所述各个多媒体帧数据的原始序列号,分别生成与所述各个多媒体帧数据分别对应的密钥,并且通过生成的密钥加密多媒体帧数据,可以进一步提高多媒体数据加密的安全性。For the embodiment of the present invention, said respectively encrypting said plurality of multimedia frame data through preset symmetric encryption rules includes: respectively encrypting said plurality of multimedia frame data through respective keys corresponding to said respective multimedia frame data . For example, the key corresponding to the multimedia frame data with the original sequence number 1 is 145; the key corresponding to the multimedia frame data with the original sequence number 2 is 147; the key corresponding to the multimedia frame data with the original sequence number 3 is 124. Then according to the key 145, the multimedia frame data whose original serial number is 1 is encrypted; according to the key 147, the multimedia frame data whose original serial number is 2 is encrypted; according to the key 124, the multimedia frame data whose original serial number is 3 are encrypted encryption. In the embodiment of the present invention, according to the preset encryption key and the original serial number of each multimedia frame data, keys corresponding to each multimedia frame data are respectively generated, and the generated keys are used to Encrypting multimedia frame data can further improve the security of multimedia data encryption.

204、将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。204. Send the sequence-adjusted encrypted multimedia frame data to the client.

其中,发送加密后的所述多个多媒体数据单元是指将加密后的多个多媒体数据单元通过网络发送给网络摄像机对应的客户端设备。对于本发明实施例,将待传输的多媒体数据划分多个多媒体数据单元,然后根据预置加密规则对多个多媒体数据单元分别进行加密,最后将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。从而解决了传统SSL对多媒体数据进行整体加密后所产生的额外数据,进而减少了网络系统资源的浪费。同时,对多媒体数据中的多个多媒体数据单元分别进行加密并不会降低安全性。Wherein, sending the multiple encrypted multimedia data units refers to sending the multiple encrypted multimedia data units to the client device corresponding to the network camera through the network. For the embodiment of the present invention, the multimedia data to be transmitted is divided into multiple multimedia data units, and then the multiple multimedia data units are respectively encrypted according to the preset encryption rules, and finally the encrypted multiple multimedia frame data after adjusting the order are encrypted sent to the client. Therefore, the extra data generated after the traditional SSL encrypts the multimedia data is solved, thereby reducing the waste of network system resources. At the same time, separately encrypting multiple multimedia data units in the multimedia data will not reduce security.

对于本发明实施例,进一步将所述加密密钥发送给所述客户端,所述加密密钥用于供所述客户端对加密后的所述多个多媒体数据单元进行解密。其中,所述加密密钥可以通过HTTPS传输方式,由网络摄像机或者网络摄像机对应的中级服务器发送给客户端。需要说明的是,网络摄像机或者网络摄像机对应的中级服务器向客户端传输加密密钥时,由于加密密钥是通过HTTPS进行传输的,因此可将加密密钥安全的传输至客户端。For the embodiment of the present invention, the encryption key is further sent to the client, and the encryption key is used for the client to decrypt the plurality of encrypted multimedia data units. Wherein, the encryption key may be sent to the client by the network camera or the intermediate server corresponding to the network camera through HTTPS transmission. It should be noted that when the network camera or the intermediate server corresponding to the network camera transmits the encryption key to the client, since the encryption key is transmitted through HTTPS, the encryption key can be safely transmitted to the client.

对于本发明实施例,可以应用的场景如下所述,但不仅限于此,包括:中继服务器获取的待传输视频数据中包含5个视频帧,根据视频帧将所述待传输的视频数据划分为5个视频帧数据,并且获取到这5个视频帧数据在原始视频数据中所占的原始序列号分别为1、2、3、4、5。然后按照预置排序规则调整所述多个视频帧数据在所述视频数据中所在的位置顺序,其中所述预置排序规则为按照各个视频帧数据的原始序列号降序调整各个视频帧数据的所在位置,则调整后的视频帧数据在原始视频数据中的位置顺序分别为5、4、3、2、1,再获取调整后各个视频帧数据的原始序列号,根据所述预置对称加密规则的加密密钥和所述各个视频帧数据的原始序列号,分别生成与所述各个视频帧数据分别对应的密钥,最后通过所述各个视频帧数据分别对应的密钥对所述多个视频帧数据分别进行加密,将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。在本发明实施例中,将获取的待产生的多媒体数据划分为多个多媒体数据单元,然后调整所述多媒体数据单元在多媒体数据中的位置数据,并且再通过预置对称加密规则对所述多个多媒体数据单元分别进行加密,最后将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。从而替代了原有SSL整体加密多媒体数据的方式,解决了SSL加密多媒体数据所产生的额外数据的问题,进而减少了网络系统资源的浪费。For the embodiment of the present invention, applicable scenarios are as follows, but not limited thereto, including: the video data to be transmitted acquired by the relay server contains 5 video frames, and the video data to be transmitted is divided into 5 video frame data, and the acquired original sequence numbers occupied by these 5 video frame data in the original video data are 1, 2, 3, 4, 5 respectively. Then adjust the position order of the plurality of video frame data in the video data according to the preset sorting rule, wherein the preset sorting rule is to adjust the position of each video frame data in descending order according to the original sequence number of each video frame data position, then the position order of the adjusted video frame data in the original video data is 5, 4, 3, 2, 1 respectively, and then obtain the original serial number of each video frame data after adjustment, according to the preset symmetric encryption rule Encryption key and the original sequence number of each video frame data, respectively generate keys corresponding to each video frame data, and finally pair the plurality of video The frame data is encrypted respectively, and the encrypted multimedia frame data after adjusting the order are sent to the client. In the embodiment of the present invention, the acquired multimedia data to be generated is divided into a plurality of multimedia data units, then the position data of the multimedia data units in the multimedia data is adjusted, and the multi-media data is encrypted by preset symmetric encryption rules. Each multimedia data unit is respectively encrypted, and finally the encrypted multimedia frame data after adjusting the sequence is sent to the client. Thus, it replaces the original way of SSL encrypting multimedia data as a whole, solves the problem of extra data generated by SSL encrypting multimedia data, and further reduces the waste of network system resources.

本发明实施例提供了另一种多媒体数据加密方法,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最将加密后的所述多个多媒体数据单元发送给客户端,所述多个多媒体数据单元用于供所述客户端进行输出。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后的多媒体数据单元,从而减少了网络系统资源的浪费。The embodiment of the present invention provides another multimedia data encryption method, first obtain the multimedia data to be transmitted; then divide the multimedia data into multiple multimedia data units; then encrypt the multiple multimedia data units by preset encryption rules performing encryption respectively; finally sending the encrypted multiple multimedia data units to the client, and the multiple multimedia data units are used for output by the client. Compared with the overall encryption of multimedia data by traditional SSL at present, the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, then encrypts the multiple multimedia data units, and finally outputs the encrypted multimedia data units , thereby reducing the waste of network system resources.

本发明实施例提供一种多媒体数据加密装置,如图3所示,所述多媒体数据加密装置包括:获取单元31、划分单元32、加密单元33、发送单元34。An embodiment of the present invention provides a multimedia data encryption device. As shown in FIG. 3 , the multimedia data encryption device includes: an acquisition unit 31 , a division unit 32 , an encryption unit 33 and a sending unit 34 .

获取单元31,用于获取待传输的多媒体数据。The obtaining unit 31 is configured to obtain multimedia data to be transmitted.

划分单元32,用于将所述获取单元31获取的多媒体数据划分为多个多媒体数据单元。The dividing unit 32 is configured to divide the multimedia data acquired by the acquiring unit 31 into multiple multimedia data units.

加密单元33,用于通过预置加密规则对所述划分单元32划分的多个多媒体数据单元分别进行加密。The encryption unit 33 is configured to respectively encrypt the multiple multimedia data units divided by the division unit 32 according to preset encryption rules.

发送单元34,用于将加密后的所述多个多媒体数据单元发送给客户端。The sending unit 34 is configured to send the encrypted multimedia data units to the client.

其中,所述多个多媒体数据单元用于供所述客户端进行展示/输出。Wherein, the multiple multimedia data units are used for display/output by the client.

需要说明的是,本发明实施例提供的一种多媒体数据加密装置所涉及各功能单元的其他相应描述,可以参考图1所示方法的对应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of the functional units involved in the multimedia data encryption device provided by the embodiment of the present invention, reference may be made to the corresponding description of the method shown in FIG. 1 , which will not be repeated here.

本发明实施例提供了一种多媒体数据加密装置,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最后将加密后的所述多个多媒体数据单元发送给客户端,所述多个多媒体数据单元用于供所述客户端进行展示/输出。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后的多媒体数据单元,从而减少了网络系统资源的浪费。The embodiment of the present invention provides a multimedia data encryption device, which firstly acquires the multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; performing encryption; finally, sending the encrypted multimedia data units to the client, and the multiple multimedia data units are used for display/output by the client. Compared with the overall encryption of multimedia data by traditional SSL at present, the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, then encrypts the multiple multimedia data units, and finally outputs the encrypted multimedia data units , thereby reducing the waste of network system resources.

本发明实施例提供另一种多媒体数据加密装置,如图4所示,所述多媒体数据加密装置包括:获取单元41、划分单元42、加密单元43、发送单元44。An embodiment of the present invention provides another multimedia data encryption device. As shown in FIG.

获取单元41,用于获取待传输的多媒体数据。The obtaining unit 41 is configured to obtain multimedia data to be transmitted.

划分单元42,用于将所述获取单元41获取的多媒体数据划分为多个多媒体数据单元。The dividing unit 42 is configured to divide the multimedia data acquired by the acquiring unit 41 into a plurality of multimedia data units.

加密单元43,用于通过预置加密规则对所述划分单元42划分的多个多媒体数据单元分别进行加密。The encryption unit 43 is configured to respectively encrypt the multiple multimedia data units divided by the division unit 42 according to preset encryption rules.

发送单元44,用于将加密单元加密后的所述多个多媒体数据单元发送给客户端。The sending unit 44 is configured to send the multiple multimedia data units encrypted by the encryption unit to the client.

其中,所述多个多媒体数据单元用于供所述客户端进行展示/输出。Wherein, the multiple multimedia data units are used for display/output by the client.

进一步地,所述装置还包括:生成单元45和/或接收单元46。Further, the device further includes: a generating unit 45 and/or a receiving unit 46 .

生成单元45,用于生成所述预置加密规则对应的加密密钥。The generating unit 45 is configured to generate an encryption key corresponding to the preset encryption rule.

接收单元46,用于接收外部设备发送的所述预置加密规则对应的加密密钥。The receiving unit 46 is configured to receive the encryption key corresponding to the preset encryption rule sent by the external device.

所述划分单元42,具体用于按照预置规则将所述多媒体数据划分为多个多媒体帧数据。The division unit 42 is specifically configured to divide the multimedia data into a plurality of multimedia frame data according to preset rules.

所述加密单元43,具体用于通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密。The encryption unit 43 is specifically configured to respectively encrypt the plurality of multimedia frame data by preset symmetric encryption rules and the encryption key.

进一步地,所述装置还包括:调整单元47。Further, the device further includes: an adjustment unit 47 .

调整单元47,用于按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中所在的位置顺序。The adjusting unit 47 is configured to adjust the sequence of positions of the plurality of multimedia frame data in the multimedia data according to a preset sorting rule.

所述发送单元44,具体用于将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。The sending unit 44 is specifically configured to send the sequence-adjusted encrypted multimedia frame data to the client.

进一步地,further,

所述获取单元41,还用于获取各个多媒体帧数据的原始序列号;The obtaining unit 41 is also used to obtain the original sequence number of each multimedia frame data;

所述生成单元45,还用于根据所述加密密钥和所述各个多媒体帧数据的原始序列号,分别生成与所述各个多媒体帧数据分别对应的密钥。The generating unit 45 is further configured to generate keys respectively corresponding to the respective multimedia frame data according to the encryption key and the original serial numbers of the respective multimedia frame data.

所述加密单元43,用于通过所述各个多媒体帧数据分别对应的密钥对所述多个多媒体帧数据分别进行加密。The encryption unit 43 is configured to respectively encrypt the plurality of multimedia frame data by using keys corresponding to the respective multimedia frame data.

所述发送单元44,还用于将所述加密密钥发送给所述客户端。The sending unit 44 is further configured to send the encryption key to the client.

对于本发明实施例,所述多媒体数据为视频数据或音频数据。For the embodiment of the present invention, the multimedia data is video data or audio data.

需要说明的是,本发明实施例提供的另一种多媒体数据加密装置所涉及各功能单元的其他相应描述,可以参考图2所示方法的对应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of the functional units involved in another multimedia data encryption device provided by the embodiment of the present invention, reference may be made to the corresponding description of the method shown in FIG. 2 , which will not be repeated here.

本发明实施例提供了另一种多媒体数据加密装置,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最后将加密后的所述多个多媒体数据单元发送给客户端,所述多个多媒体数据单元用于供所述客户端进行输出。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后的多媒体数据单元,从而减少了网络系统资源的浪费。The embodiment of the present invention provides another multimedia data encryption device, which first obtains the multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; and then encrypts the multiple multimedia data units through preset encryption rules performing encryption respectively; finally, sending the encrypted multimedia data units to the client, and the multiple multimedia data units are used for the client to output. Compared with the overall encryption of multimedia data by traditional SSL at present, the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, then encrypts the multiple multimedia data units, and finally outputs the encrypted multimedia data units , thereby reducing the waste of network system resources.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

可以理解的是,上述方法及装置中的相关特征可以相互参考。另外,上述实施例中的“第一”、“第二”等是用于区分各实施例,而并不代表各实施例的优劣。It can be understood that related features in the above methods and devices can refer to each other. In addition, "first", "second" and so on in the above embodiments are used to distinguish each embodiment, and do not represent the advantages and disadvantages of each embodiment.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的多媒体数据加密方法及装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the multimedia data encryption method and device according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明的实施例公开了:Embodiments of the invention disclose:

A1、一种多媒体数据加密方法,包括:A1, a kind of multimedia data encryption method, comprising:

获取待传输的多媒体数据;Obtain multimedia data to be transmitted;

将所述多媒体数据划分为多个多媒体数据单元;dividing the multimedia data into a plurality of multimedia data units;

通过预置加密规则对所述多个多媒体数据单元分别进行加密;Encrypting the plurality of multimedia data units respectively by using preset encryption rules;

将加密后的所述多个多媒体数据单元发送给客户端。sending the encrypted multimedia data units to the client.

A2、如A1所述的多媒体数据加密方法,所述方法还包括:A2, the multimedia data encryption method as described in A1, described method also comprises:

生成所述预置加密规则对应的加密密钥;或者generating an encryption key corresponding to the preset encryption rule; or

接收外部设备发送的所述预置加密规则对应的加密密钥。An encryption key corresponding to the preset encryption rule sent by the external device is received.

A3、如A2所述的多媒体数据加密方法,所述将所述多媒体数据划分为多个多媒体数据单元的步骤进一步包括:A3, the multimedia data encryption method as described in A2, the described step that described multimedia data is divided into a plurality of multimedia data units further comprises:

按照预置规则将所述多媒体数据划分为多个多媒体帧数据。The multimedia data is divided into multiple multimedia frame data according to preset rules.

A4、如A3所述的多媒体数据加密方法,所述通过预置加密规则对所述多个多媒体数据单元分别进行加密的步骤进一步包括:A4, the multimedia data encryption method as described in A3, the described step of encrypting respectively described multiple multimedia data units by preset encryption rules further comprises:

通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密。The multiple multimedia frame data are respectively encrypted by preset symmetric encryption rules and the encryption key.

A5、如A4所述的多媒体数据加密方法,所述按照预置规则将所述多媒体数据划分为多个多媒体帧数据之后,所述方法还包括:A5, the multimedia data encryption method as described in A4, after the described multimedia data is divided into a plurality of multimedia frame data according to preset rules, the method also includes:

按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中所在的位置顺序。Adjusting the position order of the plurality of multimedia frame data in the multimedia data according to a preset sorting rule.

A6、如A5所述的多媒体数据加密方法,所述将加密后的所述多个多媒体数据单元发送给客户端的步骤进一步包括:A6, the method for encrypting multimedia data as described in A5, the described step of sending the encrypted multimedia data units to the client further includes:

将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。Sending the sequence-adjusted encrypted multimedia frame data to the client.

A7、如A4所述的多媒体数据加密方法,所述通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密之前,所述方法还包括:A7, the multimedia data encryption method as described in A4, described by preset symmetric encryption rule and described encryption key, before described multiple multimedia frame data is respectively encrypted, described method also comprises:

获取各个多媒体帧数据的原始序列号;Obtain the original serial number of each multimedia frame data;

根据所述加密密钥和所述各个多媒体帧数据的原始序列号,分别生成与所述各个多媒体帧数据分别对应的密钥。According to the encryption key and the original serial numbers of the respective multimedia frame data, keys corresponding to the respective multimedia frame data are respectively generated.

A8、如A7所述的多媒体数据加密方法,所述通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密的步骤进一步包括:A8, the multimedia data encryption method as described in A7, described by preset symmetric encryption rule and described encryption key, the step that described multiple multimedia frame data is respectively encrypted further comprises:

通过所述各个多媒体帧数据分别对应的密钥对所述多个多媒体帧数据分别进行加密。The plurality of multimedia frame data are respectively encrypted with keys corresponding to the respective multimedia frame data.

A9、如A2所述的多媒体数据加密方法,所述将加密后的所述多个多媒体数据单元发送给客户端之后,所述方法还包括:A9, the multimedia data encryption method as described in A2, after the described plurality of encrypted multimedia data units are sent to the client, the method also includes:

将所述加密密钥发送给所述客户端,所述加密密钥用于供所述客户端对加密后的所述多个多媒体数据单元进行解密。sending the encryption key to the client, where the encryption key is used by the client to decrypt the encrypted multimedia data units.

A10、如A1-A9任一所述的多媒体数据加密方法,所述多媒体数据为视频数据或音频数据。A10. The multimedia data encryption method described in any one of A1-A9, wherein the multimedia data is video data or audio data.

B11、一种多媒体数据加密装置,包括:B11, a multimedia data encryption device, comprising:

获取单元,用于获取待传输的多媒体数据;an acquisition unit, configured to acquire multimedia data to be transmitted;

划分单元,用于将所述获取单元获取的多媒体数据划分为多个多媒体数据单元;a division unit, configured to divide the multimedia data acquired by the acquisition unit into a plurality of multimedia data units;

加密单元,用于通过预置加密规则对所述划分单元划分的多个多媒体数据单元分别进行加密;An encryption unit, configured to encrypt the multiple multimedia data units divided by the division unit through preset encryption rules;

发送单元,用于将加密单元加密后的所述多个多媒体数据单元发送给客户端。A sending unit, configured to send the plurality of multimedia data units encrypted by the encryption unit to the client.

B12、如B11所述的多媒体数据加密装置,所述装置还包括:B12, the multimedia data encryption device as described in B11, said device also includes:

生成单元,用于生成所述预置加密规则对应的加密密钥;a generating unit, configured to generate an encryption key corresponding to the preset encryption rule;

接收单元,用于接收外部设备发送的所述预置加密规则对应的加密密钥。The receiving unit is configured to receive the encryption key corresponding to the preset encryption rule sent by the external device.

B13、如B12所述的多媒体数据加密装置,B13, the multimedia data encryption device as described in B12,

所述划分单元,具体用于按照预置规则将所述多媒体数据划分为多个多媒体帧数据。The division unit is specifically configured to divide the multimedia data into a plurality of multimedia frame data according to preset rules.

B14、如B13所述的多媒体数据加密装置,B14, the multimedia data encryption device as described in B13,

所述加密单元,具体用于通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密。The encryption unit is specifically configured to respectively encrypt the plurality of multimedia frame data by preset symmetric encryption rules and the encryption key.

B15、如B14所述的多媒体数据加密装置,所述装置还包括:B15, multimedia data encryption device as described in B14, described device also comprises:

调整单元,用于按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中所在的位置顺序。An adjusting unit, configured to adjust the sequence of positions of the plurality of multimedia frame data in the multimedia data according to a preset sorting rule.

B16、如B15所述的多媒体数据加密装置,B16, the multimedia data encryption device as described in B15,

所述发送单元,具体用于将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。The sending unit is specifically configured to send the sequence-adjusted encrypted multimedia frame data to the client.

B17、如B14所述的多媒体数据加密装置,B17, the multimedia data encryption device as described in B14,

所述获取单元,还用于获取各个多媒体帧数据的原始序列号;The obtaining unit is also used to obtain the original sequence number of each multimedia frame data;

所述生成单元,还用于根据所述加密密钥和所述各个多媒体帧数据的原始序列号,分别生成与所述各个多媒体帧数据分别对应的密钥。The generating unit is further configured to respectively generate keys corresponding to the respective multimedia frame data according to the encryption key and the original serial numbers of the respective multimedia frame data.

B18、如B17所述的多媒体数据加密装置,B18, the multimedia data encryption device as described in B17,

所述加密单元,具有用于通过所述各个多媒体帧数据分别对应的密钥对所述多个多媒体帧数据分别进行加密。The encryption unit is configured to respectively encrypt the plurality of multimedia frame data through keys corresponding to the respective multimedia frame data.

B19、如B12任一所述的多媒体数据加密装置,B19. The multimedia data encryption device as described in any one of B12,

所述发送单元,还用于将所述加密密钥发送给所述客户端,所述加密密钥用于供所述客户端对加密后的所述多个多媒体数据单元进行解密。The sending unit is further configured to send the encryption key to the client, and the encryption key is used for the client to decrypt the encrypted multimedia data units.

B20、如B11-B18任一所述的多媒体数据加密装置,所述多媒体数据为视频数据或音频数据。B20. The multimedia data encryption device as described in any one of B11-B18, wherein the multimedia data is video data or audio data.

Claims (10)

1. a multimedia data encryption method, is characterized in that, comprising:
Obtain multi-medium data waiting for transmission;
Described multi-medium data is divided into multiple multimedia data units;
By preset encryption rule, described multiple multimedia data units is encrypted respectively;
Described multiple multimedia data units after encryption is sent to client.
2. multimedia data encryption method according to claim 1, is characterized in that, described method also comprises:
Generate the encryption key that described preset encryption rule is corresponding; Or
Receive the encryption key that the described preset encryption rule of external equipment transmission is corresponding.
3. multimedia data encryption method according to claim 2, is characterized in that, the described step described multi-medium data being divided into multiple multimedia data units comprises further:
According to presetting rule, described multi-medium data is divided into multiple multimedia frame data.
4. multimedia data encryption method according to claim 3, is characterized in that, is describedly comprised further the step that described multiple multimedia data units is encrypted respectively by preset encryption rule:
By preset symmetric cryptography rule and described encryption key, described multiple multimedia frame data are encrypted respectively.
5. multimedia data encryption method according to claim 4, is characterized in that, described according to presetting rule described multi-medium data is divided into multiple multimedia frame data after, described method also comprises:
According to the sequence of positions at the described multiple multimedia frame data place in described multi-medium data of preset ordering rule adjustment.
6. a multimedia data encryption device, is characterized in that, comprising:
Acquiring unit, for obtaining multi-medium data waiting for transmission;
Division unit, the multi-medium data for being obtained by described acquiring unit is divided into multiple multimedia data units;
Ciphering unit, for being encrypted respectively multiple multimedia data units that described division unit divides by preset encryption rule;
Transmitting element, for sending to client by the described multiple multimedia data units after encryption unit encrypts.
7. multimedia data encryption device according to claim 6, is characterized in that, described device also comprises:
Generation unit, for generating encryption key corresponding to described preset encryption rule;
Receiving element, the encryption key that the described preset encryption rule for receiving external equipment transmission is corresponding.
8. multimedia data encryption device according to claim 7, is characterized in that,
Described division unit, specifically for being divided into multiple multimedia frame data according to presetting rule by described multi-medium data.
9. multimedia data encryption device according to claim 8, is characterized in that,
Described ciphering unit, specifically for by preset symmetric cryptography rule and described encryption key, is encrypted respectively to described multiple multimedia frame data.
10. multimedia data encryption device according to claim 9, is characterized in that, described device also comprises:
Adjustment unit, for the sequence of positions according to the described multiple multimedia frame data place in described multi-medium data of preset ordering rule adjustment.
CN201510641989.9A 2015-09-30 2015-09-30 Multimedia data encryption method and device Pending CN105337963A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510641989.9A CN105337963A (en) 2015-09-30 2015-09-30 Multimedia data encryption method and device
PCT/CN2016/083713 WO2017054480A1 (en) 2015-09-30 2016-05-27 Multimedia data encryption method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510641989.9A CN105337963A (en) 2015-09-30 2015-09-30 Multimedia data encryption method and device

Publications (1)

Publication Number Publication Date
CN105337963A true CN105337963A (en) 2016-02-17

Family

ID=55288246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510641989.9A Pending CN105337963A (en) 2015-09-30 2015-09-30 Multimedia data encryption method and device

Country Status (2)

Country Link
CN (1) CN105337963A (en)
WO (1) WO2017054480A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054480A1 (en) * 2015-09-30 2017-04-06 北京奇虎科技有限公司 Multimedia data encryption method and apparatus
CN106658062A (en) * 2016-12-20 2017-05-10 广东东田数码科技有限公司 Video segment encryption and playing method based on random encryption
CN106934296A (en) * 2017-02-06 2017-07-07 北京音未文化传媒有限责任公司 A kind of encrypting and decrypting method of audio file
CN111669378A (en) * 2020-05-27 2020-09-15 国家广播电视总局广播电视规划院 Fusion media platform network security protection method based on secure brain
CN113079149A (en) * 2021-03-25 2021-07-06 深圳前海茂佳软件科技有限公司 Stream media data encryption transmission method, decryption method, sending end and receiving end

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051906A (en) * 2007-05-14 2007-10-10 北京大学 Method for transmitting and receiving stream type media and certifying system for stream type media
CN102036102A (en) * 2009-09-25 2011-04-27 腾讯科技(深圳)有限公司 System and method for transcoding multimedia and system and method for playing multimedia
CN102469344A (en) * 2010-11-16 2012-05-23 腾讯科技(深圳)有限公司 Video code stream encryption and decryption methods and devices, and communication and storage terminals
CN103248474A (en) * 2012-02-01 2013-08-14 华为技术有限公司 Encryption and decryption method and device for streaming media
CN103457727A (en) * 2012-05-29 2013-12-18 华为技术有限公司 Method, device and system for processing media data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297809B (en) * 2012-02-28 2017-06-20 华为技术有限公司 Media content encrypting and decrypting method, apparatus and system
US20140032924A1 (en) * 2012-07-30 2014-01-30 David M. Durham Media encryption based on biometric data
CN104410828B (en) * 2014-11-26 2019-04-12 北京视博数字电视科技有限公司 Family's monitoring method and equipment
CN105337963A (en) * 2015-09-30 2016-02-17 北京奇虎科技有限公司 Multimedia data encryption method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051906A (en) * 2007-05-14 2007-10-10 北京大学 Method for transmitting and receiving stream type media and certifying system for stream type media
CN102036102A (en) * 2009-09-25 2011-04-27 腾讯科技(深圳)有限公司 System and method for transcoding multimedia and system and method for playing multimedia
CN102469344A (en) * 2010-11-16 2012-05-23 腾讯科技(深圳)有限公司 Video code stream encryption and decryption methods and devices, and communication and storage terminals
CN103248474A (en) * 2012-02-01 2013-08-14 华为技术有限公司 Encryption and decryption method and device for streaming media
CN103457727A (en) * 2012-05-29 2013-12-18 华为技术有限公司 Method, device and system for processing media data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054480A1 (en) * 2015-09-30 2017-04-06 北京奇虎科技有限公司 Multimedia data encryption method and apparatus
CN106658062A (en) * 2016-12-20 2017-05-10 广东东田数码科技有限公司 Video segment encryption and playing method based on random encryption
CN106934296A (en) * 2017-02-06 2017-07-07 北京音未文化传媒有限责任公司 A kind of encrypting and decrypting method of audio file
CN111669378A (en) * 2020-05-27 2020-09-15 国家广播电视总局广播电视规划院 Fusion media platform network security protection method based on secure brain
CN113079149A (en) * 2021-03-25 2021-07-06 深圳前海茂佳软件科技有限公司 Stream media data encryption transmission method, decryption method, sending end and receiving end
CN113079149B (en) * 2021-03-25 2024-11-05 深圳前海茂佳软件科技有限公司 Streaming media data encryption transmission method, decryption method, transmitter, receiver

Also Published As

Publication number Publication date
WO2017054480A1 (en) 2017-04-06

Similar Documents

Publication Publication Date Title
US12153873B2 (en) Reducing time to first encrypted frame in a content stream
US11368731B2 (en) Method and apparatus for segmenting data
US9438415B2 (en) Method and system for securing communication on a home gateway in an IP content streaming system
CN105337963A (en) Multimedia data encryption method and device
US8838954B2 (en) Media processing devices for adaptive delivery of on-demand media, and methods thereof
TW201644252A (en) System and method for reception and transmission optimization of secured video, image, audio, and other media traffic via proxy
JP7061121B2 (en) Resource segmentation to improve delivery performance
US20110194692A1 (en) Voice-over internet protocol (voip) scrambling mechanism
US9794230B2 (en) Method and system for encrypting multimedia streams
CN106657110B (en) A kind of encrypted transmission method and device of stream data
CN105790925A (en) Data encryption method, data decryption method, data encryption device and data decryption device
CN105142008B (en) A method of playing second terminal data using first terminal
CN106791935A (en) A kind of Internet video first broadcast method and system
WO2021072878A1 (en) Audio/video data encryption and decryption method and apparatus employing rtmp, and readable storage medium
CN105187796A (en) Data transmission method, device and system
WO2024021478A1 (en) Data transmission method and apparatus, device, and medium
US8918902B1 (en) Advertisements as keys for streaming protected content
US20220150224A1 (en) Encryption using recursive key
CN108462566A (en) A kind of multimedia file encryption method and system
CN102694819B (en) Streaming media transmission method based on broadcast encryption
US10944544B2 (en) Reducing variable-length pre-key to fix-length key
US11909780B2 (en) Enabling vertical application layer server for peer-to-peer media parameter negotiation
WO2017020607A1 (en) Rdp data playback method, server and system
EP4345660A1 (en) Distributed digital rights management (drm) protection
Parashar et al. Playback protection in HTTP live streaming

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160217

RJ01 Rejection of invention patent application after publication