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
data
encryption
multimedia data
rule
multimedia
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, manipulating MPEG-4 scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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 technical field of information, and discloses a multimedia data encryption method and device. The method comprises the steps that multimedia data to be transmitted are acquired firstly; then the multimedia data are divided into multiple multimedia data units; then the multiple multimedia data units are respectively encrypted via preset encryption rules; and finally the encrypted multiple multimedia data units are transmitted to a client terminal. According to the method and device, transmission security of the multimedia data can be guaranteed and network system resources occupied by the encrypted multimedia data in the transmission process can be reduced.

Description

Multimedia data encryption method and device
Technical field
The present invention relates to areas of information technology, particularly relate to a kind of multimedia data encryption method and device.
Background technology
Along with the development of information technology, web camera occurs thereupon, and more and more welcome.Wherein, web camera is a kind of video camera of new generation produced in conjunction with traditional cameras and network technology, it can by the multi-medium data of record by Internet Transmission to server, and then to be transferred in client by the webserver.Web camera may be used for monitoring children, old solitary people, the house etc. of oneself.In order to prevent multi-medium data from being revealed privacy of user by assault in transmitting procedure, ensureing the fail safe of multi-medium data, usually needing to be encrypted multi-medium data.
At present, mainly by traditional SSL (SecureSocketsLayer, SSL) agreement is encrypted multi-medium data, namely need to carry out entirety encryption to multi-medium data, because traditional ssl protocol carries out producing extra data after entirety is encrypted to multi-medium data, and the Internet resources of extra data when transmitting outside meeting occupying volume, and the algorithm that traditional ssl protocol is encrypted multi-medium data is comparatively complicated, takies more network system resources.
Summary of the invention
Solve in view of this, the invention provides a kind of multimedia data encryption method and device, main purpose is that the multi-medium data after solving encryption is in transmitting procedure, takies the problem of more network system resources.
According to one aspect of the invention, provide a kind of multimedia data encryption method, 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.
According to another aspect of the present invention, provide a kind of multimedia data encryption device, 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.
By technique scheme, the technical scheme that the embodiment of the present invention provides at least has following advantages:
Embodiments provide a kind of multimedia data encryption method and device, first obtain multi-medium data waiting for transmission; Then described multi-medium data is divided into multiple multimedia data units; By preset encryption rule, described multiple multimedia data units is encrypted respectively again; Finally the described multiple multimedia data units after encryption is sent to client.Carry out entirety encrypt compared with by traditional SSL to multi-medium data with current, first multi-medium data is divided into multiple multimedia data units by the embodiment of the present invention, then multiple multimedia data units is encrypted respectively, finally export the multimedia data units after encryption, thus decrease the waste of network system resources.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of multimedia data encryption method flow chart that the embodiment of the present invention provides;
Fig. 2 shows the another kind of multimedia data encryption method flow chart that the embodiment of the present invention provides;
Fig. 3 shows a kind of multimedia data encryption apparatus structure block diagram that the embodiment of the present invention provides;
Fig. 4 shows the another kind of multimedia data encryption apparatus structure block diagram that the embodiment of the present invention provides.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
For making the advantage of technical solution of the present invention clearly, below in conjunction with drawings and Examples, the present invention is elaborated.
Embodiments provide a kind of multimedia data encryption method, as shown in Figure 1, described method can be applied to Relay Server, web camera etc., and described method comprises:
101, multi-medium data waiting for transmission is obtained.
Wherein, described multi-medium data can be video data, and can be also voice data, the embodiment of the present invention be not specifically limited.What described video data can be taken for web camera needs the video data being transferred to client, described video data can be AVI (AudioVideoInterleaved, Audio Video Interleaved), RM (remove, streaming media video file format), WMV (WindowsMediaVideo, stream media format), FLV (FlashVideo, stream media format), DV-AVI (DigitalVideoFormat, video format), MPEG (MovingPicturesExpertsGroup/MotionPicturesExpertsGroup, dynamic image expert group), MOV (QuickTime, film format), ASF (AdvancedStreamingformat, advanced streaming format) etc. the video data of form, the embodiment of the present invention is not specifically limited.What described voice data can be recorded for web camera needs the voice data being transferred to client, and described voice data can be the voice data of the forms such as MP3, AVI, CD, WMA, RealAudio, and the embodiment of the present invention is not specifically limited.In embodiments of the present invention, obtaining multi-medium data waiting for transmission, is in order to multi-medium data waiting for transmission is transmitted to client, to make the multi-medium data of web camera record by Internet Transmission to client.
102, described multi-medium data is divided into multiple multimedia data units.
Wherein, described multimedia data units obtains by dividing multi-medium data.In embodiments of the present invention, according to the multimedia frame in multi-medium data or the time point in multimedia process, multi-medium data can be on average divided into multiple multimedia data units, also can according to the multimedia frame in multi-medium data or the time point in multimedia process by non-for multi-medium data on average be divided into multiple multimedia data units, the embodiment of the present invention is not specifically limited.For the embodiment of the present invention, the length of the time point in the number of the multimedia frame in multi-medium data or multimedia process can be arranged according to the actual requirements, and also can be configured by system default, the embodiment of the present invention is not specifically limited.
Such as, video data to be transmitted includes 300 frame of video, be 30 to ask the number of the frame of video in each video data unit, described video data waiting for transmission is on average divided into 10 video data units by the mode that then can divide a data cell according to every 30 frames, includes 30 frame of video in each video data unit; If do not make requirement to the number of the frame of video in each video data unit, and require that the number of video data unit is 10, then can on average be divided into 10 video data units by average for video data to be transmitted or non-; If do not make requirement to the number of the frame of video in each video data unit, also requirement is not made to the number of video data unit, then can divide arbitrarily described video data to be transmitted, video data to be transmitted can be divided into 300 video data units at most, the corresponding frame of video of each video data unit.
103, by preset encryption rule, described multiple multimedia data units is encrypted respectively.
Wherein, described preset encryption rule can be arranged according to user's request, and also can be configured by system default, the embodiment of the present invention is not specifically limited.Be encrypted multiple multimedia data units by described preset encryption rule, the memory space that the multi-medium data after encryption takies is identical with the storage size that original multi-medium data takies.For the embodiment of the present invention, described preset encryption rule can be the comparatively simple asymmetric encryption rule of cryptographic algorithm, also can be the symmetric cryptography rule that cryptographic algorithm is comparatively complicated, symmetric cryptography rule is the algorithm that the both sides of encryption and decryption use the encryption and decryption of same key, and the enciphering rate of symmetric cryptography rule is fast, symmetric cryptography rule is applicable to message sender usually to be needed to use during encryption mass data.Described symmetric cryptography rule is specifically as follows DES (DataEncryptionAlgorithm, symmetric encipherment algorithm) algorithm, 3DES (TripleDES, triple DEA) algorithm, RC5 (block cipher) algorithm, IDEA (IntelliJIDEA, encryption of blocks of data algorithm) algorithms etc., the embodiment of the present invention is not specifically limited.
For the embodiment of the present invention, in order to meet the security requirement of multimedia data encryption, the comparatively simple asymmetric encryption rule of cryptographic algorithm can also be used to be encrypted described multi-medium data, by cryptographic algorithm simple asymmetric encryption rule, described multi-medium data is encrypted, the size of the multi-medium data memory space after encryption can be a bit larger tham original multi-medium data memory space, thus when the memory space that the multi-medium data after ensureing encryption takies is relatively little, improve the fail safe of multimedia data encryption further.
104, the described multiple multimedia data units after encryption is sent to client.
Wherein, described multiple multimedia data units is used for carrying out showing/exporting for described client, and the described multiple multimedia data units sent after encryption refers to the client device that the multiple multimedia data units after by encryption send to web camera corresponding by network.For the embodiment of the present invention, multi-medium data waiting for transmission is divided multiple multimedia data units, then according to preset encryption rule, multiple multimedia data units is encrypted respectively, finally the described multiple multimedia data units after encryption is sent to client.Thus solve the excessive data produced after traditional SSL carries out overall encryption to multi-medium data, and then decrease the waste of network system resources.Meanwhile, the multiple multimedia data units in multi-medium data are encrypted respectively and can't reduce fail safe.
For the embodiment of the present invention, adaptable scene is as described below, but be not limited only to this, comprise: the number of the multimedia frame of the multi-medium data to be transmitted that Relay Server obtains is 400, be 100 to ask the number of the multimedia frame in each multimedia data units, then described multi-medium data waiting for transmission on average can be divided into 4 multimedia data units, in each multimedia data units, include 100 multimedia frames.Then by preset encryption rule, described multiple multimedia data units is encrypted respectively, described preset encryption rule can be the comparatively simple asymmetric encryption rule of cryptographic algorithm, also can be the symmetric cryptography rule that cryptographic algorithm is comparatively complicated, concrete encryption rule can be the cryptographic algorithm such as DES, DES and RC5, by the encryption key of the correspondence in symmetric cryptography rule, multiple multimedia data units is encrypted respectively again, finally by the multiple multimedia data units client device that sends to web camera corresponding by network after encryption.In embodiments of the present invention, multi-medium data waiting for transmission is carried out dividing multiple multimedia data units, then according to preset encryption rule, multiple multimedia data units is encrypted respectively, finally the described multiple multimedia data units after encryption is sent to client.Thus solve the excessive data produced after traditional SSL carries out overall encryption to multi-medium data, and then decrease the waste of network system resources.
Embodiments provide a kind of multimedia data encryption method, first obtain multi-medium data waiting for transmission; Then described multi-medium data is divided into multiple multimedia data units; By preset encryption rule, described multiple multimedia data units is encrypted respectively again; Finally the described multiple multimedia data units after encryption is sent to client, described multiple multimedia data units is used for carrying out showing/exporting for described client.Carry out entirety encrypt compared with by traditional SSL to multi-medium data with current, first multi-medium data is divided into multiple multimedia data units by the embodiment of the present invention, then multiple multimedia data units is encrypted respectively, finally export the multimedia data units after encryption, thus decrease the waste of network system resources.
Embodiments provide another kind of multimedia data encryption method, as shown in Figure 2, described method comprises:
201, multi-medium data waiting for transmission is obtained.
For the embodiment of the present invention, described multi-medium data is video data or voice data.What described video data can be taken for web camera needs the video data being transferred to client, described video data can be AVI (AudioVideoInterleaved, Audio Video Interleaved), RM (remove, streaming media video file format), WMV (WindowsMediaVideo, stream media format), FLV (FlashVideo, stream media format), DV-AVI (DigitalVideoFormat, video format), MPEG (MovingPicturesExpertsGroup/MotionPicturesExpertsGroup, dynamic image expert group), MOV (QuickTime, film format), ASF (AdvancedStreamingformat, advanced streaming format) etc. the video data of form, the embodiment of the present invention is not specifically limited.What described voice data can be recorded for web camera needs the voice data being transferred to client, and described voice data can be the voice data of the forms such as MP3, AVI, CD, WMA, RealAudio, and the embodiment of the present invention is not specifically limited.In embodiments of the present invention, obtaining multi-medium data waiting for transmission, is in order to multi-medium data to be transmitted is transmitted to client, to make the multi-medium data of web camera record by Internet Transmission to client.
202, according to presetting rule, described multi-medium data is divided into multiple multimedia frame data.
Wherein, described presetting rule can be arranged according to the actual requirements, and also can be configured by system default, the embodiment of the present invention is not specifically limited.Multi-medium data specifically can be divided into multiple multimedia frame data according to the multimedia frame in multi-medium data by described presetting rule, such as, according to each multimedia frame one group, every two multimedia frames one group etc., multi-medium data can be divided into multiple multimedia frame data; Or multi-medium data is divided into multiple multimedia frame data by the time point in multimedia process.It should be noted that, the time point in presetting rule in multimedia process can be arranged according to user's actual need, and also can be configured by system default, the embodiment of the present invention is not specifically limited.For the embodiment of the present invention, the multiple multi-medium data division rule configured in presetting rule, can be divided into multiple multimedia frame data according to the actual requirements flexibly by multi-medium data, thus improves the efficiency dividing multi-medium data.
Such as, include 80 frame of video in the video data to be transmitted that Relay Server obtains, then described video data can be divided into 80 video requency frame datas according to frame of video.For another example, the playing duration of the video data to be transmitted that Relay Server obtains is 30 minutes, time point in the video display process configured in presetting rule is 3 minutes, then video data data are on average divided into the video data unit that 10 playing duration are 3 minutes in 3 minutes according to the time point in video display process, in each video data unit, include one or more frame of video.
For the embodiment of the present invention, described according to presetting rule described multi-medium data is divided into multiple multimedia frame data after, also comprise: according to the sequence of positions at the described multiple multimedia frame data place in described multi-medium data of preset ordering rule adjustment.For the embodiment of the present invention, according to the sequence of positions of the preset ordering rule described multiple multimedia frame data of adjustment in described multi-medium data, the fail safe of subsequent multimedia frame data encryption can be improved further.Wherein, described preset ordering rule can sort according to the original sequence number of multimedia frame data, also can sort according to the storage size of multimedia frame data, can also sort according to the playing duration of multimedia frame data, the embodiment of the present invention is not specifically limited.
Such as, after video data being divided into 5 video requency frame datas, if the original sequence number getting these 5 video requency frame datas corresponding in original video data is respectively 1,2,3,4,5, preset ordering rule is the sequence of positions of the original sequence number adjustment video requency frame data according to video requency frame data, and the original sequence number of the correspondence position of the multiple video requency frame datas thus after adjustment can be 5,4,3,2,1.For the embodiment of the present invention, according to the sequence of positions of the preset ordering rule described multiple multimedia frame data of adjustment in described multi-medium data, the fail safe of subsequent multimedia frame data encryption can be improved further.
203, by preset symmetric cryptography rule and described encryption key, described multiple multimedia frame data are encrypted respectively.
For the embodiment of the present invention, 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.Wherein, described symmetric cryptography rule is the cipher mode of single key system, and the encryption key in symmetric cryptography rule can simultaneously as the encryption and decryption of information.Described preset symmetric cryptography rule can be arranged according to the actual demand of user, and also can be configured by system default, the embodiment of the present invention is not specifically limited.
In embodiments of the present invention, encryption key corresponding to described preset symmetric cryptography rule can be generated by data receiver, namely can be generated by web camera or Relay Server corresponding to web camera; Also can encryption key corresponding for described preset symmetric cryptography rule be configured in external equipment, it is each before multi-medium data is transmitted, an encryption key is produced according to the preset symmetric cryptography rule in external equipment is dynamic, then by described encryption key with HTTPS (HyperTextTransferProtocoloverSecureSocketLayer, procotol) transmission means, be transferred to data sending terminal and client respectively, after data sending terminal and client receive encryption key, carry out transfer of data.It should be noted that, when external equipment is to data sending terminal and client transmissions encryption key, because encryption key is transmitted by HTTPS, therefore encryption key safety can be transferred to data sending terminal and client, and external equipment is by HTTPS encrypt for transmission only key, instead of the multi-medium data of Transmission Encryption itself, therefore this kind of cipher mode can't take more network system resources.
For the embodiment of the present invention, be encrypted multiple multimedia frame data by described preset symmetric cryptography rule, the memory space that the multi-medium data after encryption takies is identical with the storage size that original multi-medium data takies.In embodiments of the present invention, described preset symmetric cryptography rule is specifically as follows DES (DataEncryptionAlgorithm, symmetric encipherment algorithm) algorithm, 3DES (TripleDES, triple DEA) algorithm, RC5 (block cipher) algorithm, IDEA (IntelliJIDEA, encryption of blocks of data algorithm) algorithm etc., the embodiment of the present invention is not specifically limited.For the embodiment of the present invention, because symmetric cryptography rule has, amount of calculation is little, enciphering rate fast, encryption efficiency advantages of higher, therefore by preset symmetric cryptography rule, described multiple multimedia frame data are encrypted respectively, the efficiency of multimedia data encryption can be improved.Meanwhile, multiple multimedia frame data that multi-medium data divides are encrypted respectively and can't reduce fail safe.
For the embodiment of the present invention, described by preset symmetric cryptography rule and described encryption key, before described multiple multimedia frame data are encrypted respectively, also comprise: the original sequence number obtaining each multimedia frame data; According to the original sequence number of described encryption key and each multimedia frame data described, generate respectively and distinguish corresponding key with each multimedia frame data described.Wherein, the original sequence number of multimedia frame data is for representing the sequence of positions of multimedia frame data in multi-medium data, specifically can be represented the original sequence number of multimedia frame data by data number, the encryption key of described preset symmetric cryptography rule can obtain from Relay Server.Such as, the original sequence number of each multimedia frame data obtained is respectively 5,4,2,1 and 3, the encryption key of preset symmetric cryptography rule is 123, then according to private key 123 and the multimedia frame data original sequence number 5 of symmetric cryptography rule, generate the key that original sequence number is the multimedia frame data of 5; According to encryption key 123 and the multimedia frame data original sequence number 4 of symmetric cryptography rule, generate the key that original sequence number is the multimedia frame data of 4; According to encryption key 123 and the multimedia frame original sequence number 2 of symmetric cryptography rule, generate the key that original sequence number is the multimedia frame data of 2; According to encryption key 123 and the multimedia frame original sequence number 1 of symmetric cryptography rule, generate the key that original sequence number is the multimedia frame data of 1; According to encryption key 123 and the multimedia frame original sequence number 3 of symmetric cryptography rule, generate the key that original sequence number is the multimedia frame data of 3.In embodiments of the present invention, according to the key of each multimedia frame data difference correspondence that the encryption key of preset symmetric cryptography rule and the original sequence number of each multimedia frame data described generate, can the complexity of raising encryption key further, thus improve the fail safe of multimedia data encryption.
For the embodiment of the present invention, described being encrypted respectively described multiple multimedia frame data by preset symmetric cryptography rule is comprised: be encrypted respectively by multiple multimedia frame data described in the double secret key that each multimedia frame data described are corresponding respectively.Such as, original sequence number is the key corresponding to multimedia frame data of 1 is 145; Original sequence number be 2 key corresponding to multimedia frame data be 147; Original sequence number be 3 key corresponding to multimedia frame data be 124.The multimedia frame data being then 1 according to key 145 pairs of original sequence number are encrypted; Be encrypted according to the multimedia frame data that key 147 pairs of original sequence number are 2; Be encrypted according to the multimedia frame data that key 124 pairs of original sequence number are 3.In embodiments of the present invention, according to the original sequence number of described preset described encryption key and each multimedia frame data described, generate the key corresponding respectively with each multimedia frame data described respectively, and by the secret key encryption multimedia frame data generated, the fail safe of multimedia data encryption can be improved further.
204, described multiple multimedia frame data of the encryption after adjustment order are sent to client.
Wherein, the described multiple multimedia data units after sending encryption refers to the client device that the multiple multimedia data units after by encryption send to web camera corresponding by network.For the embodiment of the present invention, multi-medium data waiting for transmission is divided multiple multimedia data units, then according to preset encryption rule, multiple multimedia data units is encrypted respectively, finally described multiple multimedia frame data of the encryption after adjustment order is sent to client.Thus solve the excessive data produced after traditional SSL carries out overall encryption to multi-medium data, and then decrease the waste of network system resources.Meanwhile, the multiple multimedia data units in multi-medium data are encrypted respectively and can't reduce fail safe.
For the embodiment of the present invention, further described encryption key is sent to described client, described encryption key is used for being decrypted the described multiple multimedia data units after encryption for described client.Wherein, described encryption key can pass through HTTPS transmission means, sends to client by web camera or intermediate server corresponding to web camera.It should be noted that, when web camera or intermediate server corresponding to web camera are to client transmissions encryption key, because encryption key is transmitted by HTTPS, therefore encryption key safety can be transferred to client.
For the embodiment of the present invention, adaptable scene is as described below, but be not limited only to this, comprise: in the video data to be transmitted that Relay Server obtains, comprise 5 frame of video, according to frame of video, described video data waiting for transmission is divided into 5 video requency frame datas, and the original sequence number getting these 5 video requency frame datas shared in original video data is respectively 1,2,3,4,5.Then according to the sequence of positions at the described multiple video requency frame data place in described video data of preset ordering rule adjustment, wherein said preset ordering rule is the position adjusting each video requency frame data according to the original sequence number descending of each video requency frame data, the sequence of positions of video requency frame data in original video data then after adjustment is respectively 5, 4, 3, 2, 1, obtain the original sequence number of adjustment each video requency frame data rear again, according to the described encryption key of preset symmetric cryptography rule and the original sequence number of each video requency frame data described, generate the key corresponding respectively with each video requency frame data described respectively, be encrypted respectively finally by multiple video requency frame data described in the double secret key that each video requency frame data described is corresponding respectively, described multiple multimedia frame data of the encryption after adjustment order are sent to client.In embodiments of the present invention, the multi-medium data to be generated obtained is divided into multiple multimedia data units, then the position data of described multimedia data units in multi-medium data is adjusted, and by preset symmetric cryptography rule, described multiple multimedia data units is encrypted respectively again, finally described multiple multimedia frame data of the encryption after adjustment order is sent to client.Thus instead of the mode of the overall encrypting multimedia data of original SSL, solve the problem of the excessive data that SSL encrypting multimedia data produces, and then decrease the waste of network system resources.
Embodiments provide another kind of multimedia data encryption method, first obtain multi-medium data waiting for transmission; Then described multi-medium data is divided into multiple multimedia data units; By preset encryption rule, described multiple multimedia data units is encrypted respectively again; The described multiple multimedia data units after encryption is sent to client, described multiple multimedia data units is used for exporting for described client.Carry out entirety encrypt compared with by traditional SSL to multi-medium data with current, first multi-medium data is divided into multiple multimedia data units by the embodiment of the present invention, then multiple multimedia data units is encrypted respectively, finally export the multimedia data units after encryption, thus decrease the waste of network system resources.
The embodiment of the present invention provides a kind of multimedia data encryption device, and as shown in Figure 3, described multimedia data encryption device comprises: acquiring unit 31, division unit 32, ciphering unit 33, transmitting element 34.
Acquiring unit 31, for obtaining multi-medium data waiting for transmission.
Division unit 32, is divided into multiple multimedia data units for the multi-medium data obtained by described acquiring unit 31.
Ciphering unit 33, for being encrypted respectively multiple multimedia data units that described division unit 32 divides by preset encryption rule.
Transmitting element 34, for sending to client by the described multiple multimedia data units after encryption.
Wherein, described multiple multimedia data units is used for carrying out showing/exporting for described client.
It should be noted that, other corresponding descriptions of each functional unit involved by a kind of multimedia data encryption device that the embodiment of the present invention provides, the correspondence of method shown in reference diagram 1 can describe, do not repeat them here.
Embodiments provide a kind of multimedia data encryption device, first obtain multi-medium data waiting for transmission; Then described multi-medium data is divided into multiple multimedia data units; By preset encryption rule, described multiple multimedia data units is encrypted respectively again; Finally the described multiple multimedia data units after encryption is sent to client, described multiple multimedia data units is used for carrying out showing/exporting for described client.Carry out entirety encrypt compared with by traditional SSL to multi-medium data with current, first multi-medium data is divided into multiple multimedia data units by the embodiment of the present invention, then multiple multimedia data units is encrypted respectively, finally export the multimedia data units after encryption, thus decrease the waste of network system resources.
The embodiment of the present invention provides another kind of multimedia data encryption device, and as shown in Figure 4, described multimedia data encryption device comprises: acquiring unit 41, division unit 42, ciphering unit 43, transmitting element 44.
Acquiring unit 41, for obtaining multi-medium data waiting for transmission.
Division unit 42, is divided into multiple multimedia data units for the multi-medium data obtained by described acquiring unit 41.
Ciphering unit 43, for being encrypted respectively multiple multimedia data units that described division unit 42 divides by preset encryption rule.
Transmitting element 44, for sending to client by the described multiple multimedia data units after encryption unit encrypts.
Wherein, described multiple multimedia data units is used for carrying out showing/exporting for described client.
Further, described device also comprises: generation unit 45 and/or receiving element 46.
Generation unit 45, for generating encryption key corresponding to described preset encryption rule.
Receiving element 46, the encryption key that the described preset encryption rule for receiving external equipment transmission is corresponding.
Described division unit 42, specifically for being divided into multiple multimedia frame data according to presetting rule by described multi-medium data.
Described ciphering unit 43, specifically for by preset symmetric cryptography rule and described encryption key, is encrypted respectively to described multiple multimedia frame data.
Further, described device also comprises: adjustment unit 47.
Adjustment unit 47, for the sequence of positions according to the described multiple multimedia frame data place in described multi-medium data of preset ordering rule adjustment.
Described transmitting element 44, specifically for sending to client by described multiple multimedia frame data of the encryption after adjustment order.
Further,
Described acquiring unit 41, also for obtaining the original sequence number of each multimedia frame data;
Described generation unit 45, also for the original sequence number according to described encryption key and each multimedia frame data described, generates the key corresponding respectively with each multimedia frame data described respectively.
Described ciphering unit 43, for being encrypted respectively by multiple multimedia frame data described in the corresponding respectively double secret key of each multimedia frame data described.
Described transmitting element 44, also for described encryption key is sent to described client.
For the embodiment of the present invention, described multi-medium data is video data or voice data.
It should be noted that, other corresponding descriptions of each functional unit involved by the another kind of multimedia data encryption device that the embodiment of the present invention provides, the correspondence of method shown in reference diagram 2 can describe, do not repeat them here.
Embodiments provide another kind of multimedia data encryption device, first obtain multi-medium data waiting for transmission; Then described multi-medium data is divided into multiple multimedia data units; By preset encryption rule, described multiple multimedia data units is encrypted respectively again; Finally the described multiple multimedia data units after encryption is sent to client, described multiple multimedia data units is used for exporting for described client.Carry out entirety encrypt compared with by traditional SSL to multi-medium data with current, first multi-medium data is divided into multiple multimedia data units by the embodiment of the present invention, then multiple multimedia data units is encrypted respectively, finally export the multimedia data units after encryption, thus decrease the waste of network system resources.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
Be understandable that, the correlated characteristic in said method and device can reference mutually.In addition, " first ", " second " in above-described embodiment etc. are for distinguishing each embodiment, and do not represent the quality of each embodiment.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the multimedia data encryption method of the embodiment of the present invention and device.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
Embodiments of the invention disclose:
A1, a kind of multimedia data encryption method, 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.
A2, multimedia data encryption method as described in A1, 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.
A3, multimedia data encryption method as described in A2, 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.
A4, multimedia data encryption method as described in A3, describedly comprised the step that described multiple multimedia data units is encrypted respectively further by preset encryption rule:
By preset symmetric cryptography rule and described encryption key, described multiple multimedia frame data are encrypted respectively.
A5, multimedia data encryption method as described in A4, 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.
A6, multimedia data encryption method as described in A5, describedly send to the step of client to comprise further the described multiple multimedia data units after encryption:
Described multiple multimedia frame data of the encryption after adjustment order are sent to client.
A7, multimedia data encryption method as described in A4, described by preset symmetric cryptography rule and described encryption key, before being encrypted respectively described multiple multimedia frame data, described method also comprises:
Obtain the original sequence number of each multimedia frame data;
According to the original sequence number of described encryption key and each multimedia frame data described, generate respectively and distinguish corresponding key with each multimedia frame data described.
A8, multimedia data encryption method as described in A7, described by preset symmetric cryptography rule and described encryption key, the step that described multiple multimedia frame data are encrypted respectively is comprised further:
Be encrypted respectively by multiple multimedia frame data described in the double secret key that each multimedia frame data described are corresponding respectively.
A9, multimedia data encryption method as described in A2, described described multiple multimedia data units after encryption is sent to client after, described method also comprises:
Described encryption key is sent to described client, and described encryption key is used for being decrypted the described multiple multimedia data units after encryption for described client.
A10, as arbitrary in A1-A9 as described in multimedia data encryption method, described multi-medium data is video data or voice data.
B11, a kind of multimedia data encryption device, 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.
B12, multimedia data encryption device as described in B11, 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.
B13, multimedia data encryption device as described in B12,
Described division unit, specifically for being divided into multiple multimedia frame data according to presetting rule by described multi-medium data.
B14, multimedia data encryption device as described in B13,
Described ciphering unit, specifically for by preset symmetric cryptography rule and described encryption key, is encrypted respectively to described multiple multimedia frame data.
B15, multimedia data encryption device as described in B14, 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.
B16, multimedia data encryption device as described in B15,
Described transmitting element, specifically for sending to client by described multiple multimedia frame data of the encryption after adjustment order.
B17, multimedia data encryption device as described in B14,
Described acquiring unit, also for obtaining the original sequence number of each multimedia frame data;
Described generation unit, also for the original sequence number according to described encryption key and each multimedia frame data described, generates the key corresponding respectively with each multimedia frame data described respectively.
B18, multimedia data encryption device as described in B17,
Described ciphering unit, is had for being encrypted respectively by multiple multimedia frame data described in the corresponding respectively double secret key of each multimedia frame data described.
B19, as arbitrary in B12 as described in multimedia data encryption device,
Described transmitting element, also for described encryption key is sent to described client, described encryption key is used for being decrypted the described multiple multimedia data units after encryption for described client.
B20, as arbitrary in B11-B18 as described in multimedia data encryption device, described multi-medium data is video data or voice 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 stream encryption and decryption method, video stream encryption and decryption device, communication terminal and storage terminal
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 stream encryption and decryption method, video stream encryption and decryption device, communication terminal and storage terminal
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 (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

Also Published As

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

Similar Documents

Publication Publication Date Title
US11671247B2 (en) Secure layered encryption of data streams
US20190318356A1 (en) Offline storage system and method of use
EP3066609B1 (en) Server and method for secure and economical sharing of data
KR101312910B1 (en) Protecting digital media of various content types
CN102100031B (en) Apparatus and method for providing a security service in a user interface
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
US20060229992A1 (en) Securely relaying content using key chains
JP4701381B2 (en) Encryption key generation device, encryption key generation method, encrypted data distribution device, individual encryption key regeneration device, encrypted data reception device, encrypted data distribution system, encryption key generation program, and recording medium
EP3157225A1 (en) Encrypted ccnx
CN103237040A (en) Storage method, storage server and storage client
CN108028834B (en) Apparatus and method for secure file transfer
CN109639691A (en) Method, apparatus, computer equipment and the storage medium of monitoring data encryption
WO2018049601A1 (en) Outsourcing access control method for fog computing and system thereof
CN104009838A (en) Multimedia content piecewise encryption method
JP2002510164A (en) Method and apparatus for communicating a secret message to selected members
Reshma et al. Pairing-free CP-ABE based cryptography combined with steganography for multimedia applications
CN115828310B (en) Data query method and device based on privacy calculation and storage medium
Zhu et al. An edge re‐encryption‐based access control mechanism in NDN
US20220150224A1 (en) Encryption using recursive key
CN114244635A (en) Encryption type data coding method of communication equipment
KR102236897B1 (en) Video data protection system and method
AU2012311701A1 (en) System and method for the safe spontaneous transmission of confidential data over unsecure connections and switching computers
CN111177798A (en) Data ownership transfer processing method and device, electronic equipment and storage medium
CN116545990A (en) Method and system for storing recorded and broadcast audio and video

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160217