WO2017054480A1 - Multimedia data encryption method and apparatus - Google Patents

Multimedia data encryption method and apparatus Download PDF

Info

Publication number
WO2017054480A1
WO2017054480A1 PCT/CN2016/083713 CN2016083713W WO2017054480A1 WO 2017054480 A1 WO2017054480 A1 WO 2017054480A1 CN 2016083713 W CN2016083713 W CN 2016083713W WO 2017054480 A1 WO2017054480 A1 WO 2017054480A1
Authority
WO
WIPO (PCT)
Prior art keywords
multimedia
encryption
multimedia data
data
preset
Prior art date
Application number
PCT/CN2016/083713
Other languages
French (fr)
Chinese (zh)
Inventor
赵化强
章勋
田晓川
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2017054480A1 publication Critical patent/WO2017054480A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams 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

Definitions

  • the present invention relates to the field of information technology, and in particular, to a multimedia data encryption method and apparatus.
  • the network camera is a new generation camera combined with the traditional camera and network technology, which can transmit the recorded multimedia data to the server through the network, and then transmit it to the client through the network server.
  • Network cameras can be used to monitor children, elderly people living alone, their homes, and more.
  • multimedia data is usually encrypted.
  • the multimedia data is encrypted by the traditional SSL (Secure Sockets Layer) protocol, that is, the multimedia data needs to be encrypted as a whole, and the multimedia data is encrypted by the traditional SSL protocol to generate additional data.
  • SSL Secure Sockets Layer
  • the extra data will occupy additional network resources when transmitting, and the traditional SSL protocol encrypts the multimedia data is more complicated and occupies more network system resources.
  • the present invention has been made in order to provide a multimedia data encryption method and apparatus that overcomes the above problems or at least partially solves the above problems, and the main purpose is to solve the problem that the encrypted multimedia data is occupied during the transmission process.
  • a multimedia data encryption method including:
  • the encrypted plurality of multimedia data units are sent to the client.
  • a multimedia data encryption apparatus including:
  • An acquiring unit configured to acquire multimedia data to be transmitted
  • a dividing unit configured to divide the multimedia data acquired by the acquiring unit into a plurality of multimedia data units
  • An encryption unit configured to encrypt, by using a preset encryption rule, a plurality of multimedia data units divided by the dividing unit;
  • a sending unit configured to send the encrypted plurality of multimedia data units to the client.
  • a computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform according to the above Multimedia data encryption method.
  • a computer readable medium storing the above computer program is provided.
  • the technical solution provided by the embodiment of the present invention has at least the following advantages:
  • An embodiment of the present invention provides a multimedia data encryption method and device, which first acquires multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; and then pairs the multimedia data by using preset encryption rules. The unit performs encryption separately; finally, the encrypted plurality of multimedia data units are sent to the client.
  • the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted multimedia data unit. , thereby reducing the waste of network system resources.
  • FIG. 1 is a flowchart of a multimedia data encryption method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another multimedia data encryption method according to an embodiment of the present invention.
  • FIG. 3 is a structural block diagram of a multimedia data encryption apparatus according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of another multimedia data encryption apparatus according to an embodiment of the present invention.
  • Figure 5 is a schematic block diagram showing a computing device for performing a multimedia data encryption method in accordance with the present invention
  • Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the multimedia data encryption method according to the present invention.
  • An embodiment of the present invention provides a multimedia data encryption method. As shown in FIG. 1 , the method may be applied to a relay server, a network camera, etc., and the method includes:
  • the multimedia data may be video data or audio data, which is not in the embodiment of the present invention. Make specific limits.
  • the video data may be video data that is captured by the network camera and needs to be transmitted to the client, and the video data may be AVI (Audio Video Interleaved), RM (remove, streaming video file format), WMV (Windows Media).
  • the video data in the format of the video format, the ASF (Advanced Streaming format), and the like are not specifically limited in the embodiment of the present invention.
  • the audio data may be audio data that is recorded by the network camera and needs to be transmitted to the client.
  • the audio data may be audio data in the format of MP3, AVI, CD, WMA, RealAudio, etc., which is not specifically limited in the embodiment of the present invention.
  • the multimedia data to be transmitted is obtained by forwarding 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.
  • the multimedia data unit is obtained by dividing multimedia data.
  • the multimedia data may be equally divided into a plurality of multimedia data units according to a multimedia frame in a multimedia data or a time point in a multimedia playing process, or may be according to a multimedia frame or a multimedia playing process in the multimedia data.
  • the time point is to divide the multimedia data into a plurality of multimedia data units in a non-uniform manner, which is not specifically limited in the embodiment of the present invention.
  • the number of the multimedia frames in the multimedia data or the length of the time in the multimedia playing process may be set according to actual requirements, or may be configured by default by the system, which is not specifically limited in the embodiment of the present invention.
  • 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 may be divided into one data unit every 30 frames. The average is divided into 10 video data units, and each video data unit includes 30 video frames; if the number of video frames in each video data unit is not required, the number of video data units is required to be 10, the video data to be transmitted may be divided into 10 video data units on average or non-average; if the number of video frames in each video data unit is not required, the number of video data units is not If the request is made, the video data to be transmitted may be arbitrarily divided, and the video data to be transmitted may be divided into 300 video data units, and each video data unit corresponds to one video frame.
  • the preset encryption rule may be set according to the requirements of the user, or may be configured by default by the system, which is not specifically limited in the embodiment of the present invention.
  • the plurality of multimedia data units are encrypted by the preset 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.
  • the preset encryption rule may be an asymmetric encryption rule with a simple encryption algorithm, or a symmetric encryption rule with a complicated encryption algorithm.
  • the symmetric encryption rule is that both the encryption and the 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 generally applicable when the message sender needs to encrypt a large amount of data.
  • the symmetric encryption rule may specifically DES (Data Encryption Algorithm) algorithm, 3DES (Triple DES, triple data encryption algorithm) algorithm, RC5 (block cipher algorithm) algorithm, IDEA (IntelliJ IDEA, data block encryption algorithm) algorithm, etc. No specific restrictions.
  • DES Data Encryption Algorithm
  • 3DES Triple DES, triple data encryption algorithm
  • RC5 block cipher algorithm
  • IDEA IntelliJ IDEA, data block encryption algorithm
  • the multimedia data in order to meet the security requirement of the multimedia data encryption, may be encrypted by using an asymmetric encryption rule with a simple encryption algorithm, and the multimedia data is encrypted by a simple asymmetric encryption rule.
  • 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 the multimedia data encryption while ensuring that the storage space occupied by the encrypted multimedia data is relatively small. Sex.
  • the plurality of multimedia data units are used for displaying/outputting by the client, and sending the encrypted plurality of multimedia data units refers to transmitting the encrypted plurality of multimedia data units to the network camera through the network.
  • Client device For the embodiment of the present invention, the multimedia data to be transmitted is divided into a plurality of multimedia data units, and then the plurality of multimedia data units are separately encrypted according to the preset encryption rule, and finally the encrypted plurality of multimedia data units are sent to the client. end. Thereby, the additional data generated by the traditional SSL encryption of the multimedia data is solved, thereby reducing the waste of the network system resources. At the same time, separately encrypting multiple multimedia data units in the multimedia data does not reduce security.
  • the scenario that can be applied is as follows, but is not limited thereto, including: the number of multimedia frames to be transmitted by the relay server to be transmitted is 400, if the multimedia frame in each multimedia data unit is required The number of the multimedia data to be transmitted is divided into four multimedia data units, and each multimedia data unit includes 100 multimedia frames. Then, the plurality of multimedia data units are respectively encrypted by using a preset encryption rule, and the preset encryption rule may be an asymmetric encryption rule with a simple encryption algorithm, or a symmetric encryption rule with a relatively complicated encryption algorithm, and specific encryption.
  • the rules may be encryption algorithms such as DES, DES, and RC5, and then multiple multimedia data units are separately encrypted by corresponding encryption keys in the symmetric encryption rules, and finally the encrypted multiple multimedia data units are sent to the network camera through the network.
  • the multimedia data to be transmitted is divided into a plurality of multimedia data units, and then the plurality of multimedia data units are separately encrypted according to the preset encryption rule, and finally the encrypted plurality of multimedia data units are sent.
  • the client Thereby, the additional data generated by the traditional SSL encryption of the multimedia data is solved, thereby reducing the waste of the network system resources.
  • An embodiment of the present invention provides a multimedia data encryption method, which first acquires multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; and then separately sets the multiple multimedia data units by using preset encryption rules. Encrypting is performed; finally, the encrypted plurality of multimedia data units are sent to the client, and the plurality of multimedia data units are used for display/output by the client.
  • the embodiment of the present invention first divides the multimedia data into a plurality of multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted data. Multimedia data units, thereby reducing the waste of network system resources.
  • An embodiment of the present invention provides another multimedia data encryption method. As shown in FIG. 2, the method includes:
  • the multimedia data is video data or audio data.
  • the video data may be video data that is captured by the network camera and needs to be transmitted to the client, and the video data may be AVI (Audio Video Interleaved), RM (remove, streaming video file format), WMV (Windows Media).
  • the video data in the format of the video format, the ASF (Advanced Streaming format), and the like are not specifically limited in the embodiment of the present invention.
  • the audio data may be audio data that is recorded by the network camera and needs to be transmitted to the client.
  • the audio data may be audio data in the format of MP3, AVI, CD, WMA, RealAudio, etc., which is not specifically limited in the embodiment of the present invention.
  • the multimedia data to be transmitted is obtained by forwarding 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.
  • the preset rule may be set according to actual requirements, or may be configured by default by the system, which is not specifically limited in the embodiment of the present invention.
  • the preset rule may specifically divide the multimedia data into multiple multimedia frame data according to the multimedia frame in the multimedia data.
  • the multimedia data may be divided into multiple groups according to a set of each multimedia frame, each set of two multimedia frames, and the like.
  • Multimedia frame data or a point in time during multimedia playback to divide multimedia data into multiple multimedia frame data.
  • the time point in the multimedia playing process of the preset rule may be set according to the actual needs of the user, or may be configured by default by the system, which is not specifically limited in the embodiment of the present invention.
  • the multiple multimedia data division rules configured in the preset rule can flexibly divide the multimedia data into multiple multimedia frame data according to actual requirements, thereby improving the efficiency of dividing the multimedia data.
  • 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 frame.
  • the playback time of the video data to be transmitted acquired by the relay server is 30 minutes
  • the time point of the video playback process configured in the preset rule is 3 minutes
  • the video data is 3 minutes according to the time point during the video playback process.
  • the data is divided into 10 video data units with a duration of 3 minutes, and each video data unit contains one or more video frames.
  • the method further includes: adjusting, according to a preset sorting rule, where the plurality of multimedia frame data is located in the multimedia data. Position order.
  • the position order of the plurality of multimedia frame data in the multimedia data is adjusted according to a preset sorting rule, and the security of subsequent multimedia frame data encryption may be further improved.
  • the preset sorting rule may be sorted according to the original serial number of the multimedia frame data, and It can be sorted according to the storage space size of the multimedia frame data, and can also be sorted according to the play duration of the multimedia frame data, which is not specifically limited in the embodiment of the present invention.
  • the preset collation is The position sequence of the video frame data is adjusted according to the original sequence number of the video frame data, and the original sequence number of the corresponding position of the adjusted plurality of video frame data may be 5, 4, 3, 2, 1.
  • the position order of the plurality of multimedia frame data in the multimedia data is adjusted according to a preset sorting rule, and the security of subsequent multimedia frame data encryption may be further improved.
  • 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 the external device.
  • the symmetric encryption rule is an encryption method of a single key system, and the encryption key in the symmetric encryption rule can simultaneously serve as encryption and decryption of information.
  • the preset symmetric encryption rule may be set according to the actual needs of the user, or may be configured by default by the system, which is not specifically limited in the embodiment of the present invention.
  • the encryption key corresponding to the preset symmetric encryption rule may be generated by the data sender, that is, may be generated by a network camera or a relay server corresponding to the network camera; or the preset symmetric encryption may be performed.
  • 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 a preset symmetric encryption rule in the external device, and then the encryption key is HTTPS ( The Hyper Text Transfer Protocol over Secure Socket Layer (network protocol) transmission mode is respectively transmitted to the data sending end and the client end, and the data transmitting end and the client receive the encryption key and perform data transmission.
  • HTTPS The Hyper Text Transfer Protocol over Secure Socket Layer (network protocol) transmission mode is respectively transmitted to the data sending end and the client end, and the data transmitting end and the client receive the encryption key and perform data transmission.
  • the external device transmits the encryption key to the data transmitting end and the client
  • the encryption key since the encryption key is transmitted through HTTPS, the encryption key can be securely transmitted to the data transmitting end and the client, and externally.
  • the device only transmits the encryption key through HTTPS, instead of transmitting the encrypted multimedia data itself, so this encryption method does not occupy more network system resources.
  • the plurality of multimedia frame data is 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.
  • the preset symmetric encryption rule may be a DES (Data Encryption Algorithm) algorithm, a 3DES (Triple DES) algorithm, an RC5 (block cipher algorithm) algorithm, and an IDEA.
  • the (IntelliJ IDEA, Data Block Encryption Algorithm) algorithm and the like are not specifically limited in the embodiment of the present invention.
  • the symmetric encryption rule since the symmetric encryption rule has the advantages of small calculation amount, fast encryption speed, high encryption efficiency, etc., the plurality of multimedia frame data are separately encrypted by using a preset symmetric encryption rule, thereby improving the efficiency of multimedia data encryption. . At the same time, encrypting multiple multimedia frame data divided by multimedia data separately does not reduce security.
  • the method further includes: acquiring an original serial number of each multimedia frame data; respectively generating, according to the encryption key and the original serial number of each multimedia frame data, respectively corresponding to each of the multimedia frame data Key.
  • the original sequence number of the multimedia frame data is used to indicate the position sequence of the multimedia frame data in the multimedia data.
  • the original sequence number of the multimedia frame data may be represented by the data number, and the encryption key of the preset symmetric encryption rule may be obtained from Obtained in the server.
  • 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, and the private key 123 and the multimedia frame data are original according to the symmetric encryption rule.
  • Sequence number 5 generating a key of the original frame number 5 of the multimedia frame data; generating the key of the original frame number 4 of the multimedia frame data according to the encryption key 123 of the symmetric encryption rule and the original frame number 4 of the multimedia frame data; Generating the key of the multimedia frame data with the original sequence number 2 according to the encryption key 123 of the symmetric encryption rule and the original sequence number 2 of the multimedia frame; generating the original according to the encryption key 123 of the symmetric encryption rule and the original sequence number 1 of the multimedia frame
  • the key of the multimedia frame data of sequence number 1; the key of the multimedia frame data of the original sequence number 3 is generated according to the encryption key 123 of the symmetric encryption rule and the original sequence number 3 of the multimedia frame.
  • the encryption key corresponding to each of the multimedia frame data generated by the encryption key of the preset symmetric encryption rule and the original serial number of each multimedia frame data may further improve the complexity of the encryption key. Sex, which improves the security of multimedia data encryption.
  • the encrypting the plurality of multimedia frame data by using the preset symmetric encryption rule separately includes: encrypting the plurality of multimedia frame data respectively by using a key corresponding to each of the multimedia frame data .
  • 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; and the key corresponding to the multimedia frame data with the original sequence number 3 is 124.
  • the multimedia frame data with the original sequence number 1 is encrypted according to the key 145; the multimedia frame data with the original sequence number 2 is encrypted according to the key 147; and the multimedia frame data with the original serial number 3 is performed according to the key 124.
  • the preset encryption key and the original serial number of each multimedia frame data respectively generate a key corresponding to each of the multimedia frame data, and generate a generated key Encrypting multimedia frame data can further improve the security of multimedia data encryption.
  • the transmitting the encrypted plurality of multimedia data units means that the encrypted plurality of multimedia data units are sent to the client device corresponding to the network camera through the network.
  • the multimedia data to be transmitted is divided into a plurality of multimedia data units, and then the plurality of multimedia data units are separately encrypted according to the preset encryption rule, and finally the encrypted multiple multimedia frame data after the order is adjusted. Sent to the client. Thereby, the additional data generated by the traditional SSL encryption of the multimedia data is solved, thereby reducing the waste of the network system resources. At the same time, separately encrypting multiple multimedia data units in the multimedia data does not reduce security.
  • the encryption key is further sent to the client, and the encryption key is used by the client to decrypt the encrypted plurality of multimedia data units.
  • the encryption The key can be sent to the client through the HTTPS transmission mode and by the intermediate server corresponding to the network camera or network camera. It should be noted that when the intermediate server corresponding to the network camera or the network camera transmits the encryption key to the client, since the encryption key is transmitted through HTTPS, the encryption key can be securely transmitted to the client.
  • the scenario that can be applied is as follows, but is not limited thereto, and includes: the video data to be transmitted acquired by the relay server includes five video frames, and the video data to be transmitted is divided into 5 video frame data, and the original serial numbers occupied by the 5 video frame data in the original video data are 1, 2, 3, 4, and 5, respectively. Then, the position order of the plurality of video frame data in the video data is adjusted according to a preset sorting rule, wherein the preset sorting rule is to adjust the position of each video frame data according to the original sequence number of each video frame data in descending order.
  • the position sequence of the adjusted video frame data in the original video data is 5, 4, 3, 2, 1, respectively, and then obtain the original sequence number of each video frame data after adjustment, according to the preset symmetric encryption rule
  • the encryption key and the original sequence number of the respective video frame data respectively generate a key corresponding to each of the video frame data, and finally pair the plurality of videos by using a key corresponding to each of the video frame data
  • the frame data is separately encrypted, and the encrypted plurality of multimedia frame data after the adjustment order is transmitted to the client.
  • the acquired multimedia data to be generated is divided into a plurality of multimedia data units, and then the location data of the multimedia data unit in the multimedia data is adjusted, and the plurality of preset symmetric encryption rules are used to
  • the multimedia data units are separately encrypted, and finally the encrypted multiple multimedia frame data after the order adjustment is sent to the client.
  • An embodiment of the present invention provides another multimedia data encryption method, which first acquires multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; and then pairs the multiple multimedia data units by using preset encryption rules. Encryption is performed separately; the encrypted plurality of multimedia data units are sent to the client, and the plurality of multimedia data units are used for output by the client.
  • the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted multimedia data unit. , thereby reducing the waste of network system resources.
  • the embodiment of the present invention provides a multimedia data encryption apparatus.
  • the multimedia data encryption apparatus includes: an acquisition unit 31, a division unit 32, an encryption unit 33, and a transmission unit 34.
  • the obtaining unit 31 is configured to acquire multimedia data to be transmitted.
  • the dividing unit 32 is configured to divide the multimedia data acquired by the acquiring unit 31 into a plurality of multimedia data units.
  • the encryption unit 33 is configured to separately encrypt the plurality of multimedia data units divided by the dividing unit 32 by using a preset encryption rule.
  • the sending unit 34 is configured to send the encrypted plurality of multimedia data units to the client.
  • the plurality of multimedia data units are used for display/output by the client.
  • An embodiment of the present invention provides a multimedia data encryption apparatus, which first acquires multimedia data to be transmitted; then divides the multimedia data into a plurality of multimedia data units; and separately sets the multiple multimedia data units by using preset encryption rules. Encrypting is performed; finally, the encrypted plurality of multimedia data units are sent to the client, and the plurality of multimedia data units are used for display/output by the client.
  • the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted multimedia data unit. , thereby reducing the waste of network system resources.
  • the multimedia data encryption apparatus includes an acquisition unit 41, a division unit 42, an encryption unit 43, and a transmission unit 44.
  • the obtaining unit 41 is configured to acquire multimedia data to be transmitted.
  • the dividing unit 42 is configured to divide the multimedia data acquired by the acquiring unit 41 into a plurality of multimedia data units.
  • the encryption unit 43 is configured to separately encrypt the plurality of multimedia data units divided by the dividing unit 42 by using a preset encryption rule.
  • the sending unit 44 is configured to send the multiple multimedia data units encrypted by the encryption unit to the client.
  • the plurality of multimedia data units are used for display/output by the client.
  • the apparatus further includes: a generating unit 45 and/or a receiving unit 46.
  • the generating unit 45 is configured to generate an encryption key corresponding to the preset encryption rule.
  • the receiving unit 46 is configured to receive an encryption key corresponding to the preset encryption rule sent by the external device.
  • the dividing unit 42 is specifically configured to divide the multimedia data into multiple multimedia frame data according to a preset rule.
  • the encryption unit 43 is specifically configured to separately encrypt the plurality of multimedia frame data by using a preset symmetric encryption rule and the encryption key.
  • the device further includes: an adjustment unit 47.
  • the adjusting unit 47 is configured to adjust a position sequence of the plurality of multimedia frame data in the multimedia data according to a preset sorting rule.
  • the sending unit 44 is specifically configured to send the encrypted multiple multimedia frame data after the adjustment sequence to the client.
  • the acquiring unit 41 is further configured to acquire an original serial number of each multimedia frame data.
  • the generating unit 45 is further configured to: according to the encryption key and an original sequence of the multimedia frame data The column numbers respectively generate keys respectively corresponding to the respective multimedia frame data.
  • the encryption unit 43 is configured to separately encrypt the plurality of multimedia frame data by using a key corresponding to each of the multimedia frame data.
  • the sending unit 44 is further configured to send the encryption key to the client.
  • the multimedia data is video data or audio data.
  • An embodiment of the present invention provides another multimedia data encryption apparatus, which first acquires multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; and then pairs the multiple multimedia data units by using preset encryption rules. Encryption is performed separately; finally, the encrypted plurality of multimedia data units are sent to the client, and the plurality of multimedia data units are used for output by the client.
  • the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted multimedia data unit. , thereby reducing the waste of network system resources.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • Those skilled in the art will appreciate that some or all of the functionality of some or all of the components of the multimedia data encryption device in accordance with embodiments of the present invention may be implemented in practice using a microprocessor or digital signal processor (DSP).
  • DSP digital signal processor
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 5 illustrates a block diagram of a computing device that can implement a method of encrypting multimedia data.
  • the computing device conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a memory 520.
  • the memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 520 has a storage space 530 that stores program code 531 for performing any of the method steps described above.
  • storage space 530 storing program code may include various program code 531 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises computer readable code 531 ' for performing the steps of the method according to the invention, ie code that can be read by a processor such as 510, which when executed by the computing device causes the computing device Perform the various steps in the method described above.

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 present invention relates to the technical field of information, and disclosed are a multimedia data encryption method and apparatus. The method comprises: firstly acquiring multimedia data to be transmitted; then dividing the multimedia data into a plurality of multimedia data units; then respectively encrypting the plurality of multimedia data units through pre-set encryption rules; and finally sending the encrypted plurality of multimedia data units to a client. According to the above-mentioned method and apparatus, the 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 the field of information technology, and in particular, to a multimedia data encryption method and apparatus.
背景技术Background technique
随着信息技术的不断发展,网络摄像机随之出现,并且越来越受欢迎。其中,网络摄像机是一种结合传统摄像机与网络技术产生的新一代摄像机,它可以将记录的多媒体数据通过网络传输到服务器,然后再通过网络服务器传输到客户端上。网络摄像机可以用于监控儿童、独居老人、自己的住宅等。为了防止多媒体数据在传输过程中被黑客攻击泄露用户隐私,保证多媒体数据的安全性,通常需要对多媒体数据进行加密。With the continuous development of information technology, network cameras have emerged and are becoming more and more popular. Among them, the network camera is a new generation camera combined with the traditional camera and network technology, which can transmit the recorded multimedia data to the server through the network, and then transmit it to the client through the network server. Network cameras can be used to monitor children, elderly people living alone, their homes, and more. In order to prevent multimedia data from being hacked during transmission to reveal user privacy and ensure the security of multimedia data, multimedia data is usually encrypted.
目前,主要是通过传统的SSL(Secure Sockets Layer,安全套接层)协议对多媒体数据进行加密,即需要对多媒体数据进行整体加密,由于传统的SSL协议对多媒体数据进行整体加密后会产生额外的数据,而额外的数据在进行传输时会占用额外的网络资源,并且传统的SSL协议对多媒体数据进行加密的算法较为复杂,占用较多的网络系统资源。At present, the multimedia data is encrypted by the traditional SSL (Secure Sockets Layer) protocol, that is, the multimedia data needs to be encrypted as a whole, and the multimedia data is encrypted by the traditional SSL protocol to generate additional data. The extra data will occupy additional network resources when transmitting, and the traditional SSL protocol encrypts the multimedia data is more complicated and occupies more network system resources.
发明内容Summary of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的多媒体数据加密方法和装置,主要目的在于解决加密后的多媒体数据在传输过程中,占用较多的网络系统资源的问题。In view of the above problems, the present invention has been made in order to provide a multimedia data encryption method and apparatus that overcomes the above problems or at least partially solves the above problems, and the main purpose is to solve the problem that the encrypted multimedia data is occupied during the transmission process. The problem of resources.
依据本发明的一个方面,提供了一种多媒体数据加密方法,包括:According to an aspect of the present invention, a multimedia data encryption method is provided, including:
获取待传输的多媒体数据;Obtaining multimedia data to be transmitted;
将所述多媒体数据划分为多个多媒体数据单元;Dividing the multimedia data into a plurality of multimedia data units;
通过预置加密规则对所述多个多媒体数据单元分别进行加密;Encrypting the plurality of multimedia data units separately by using a preset encryption rule;
将加密后的所述多个多媒体数据单元发送给客户端。The encrypted plurality of multimedia data units are sent to the client.
依据本发明另一个方面,提供了一种多媒体数据加密装置,包括:According to another aspect of the present invention, a multimedia data encryption apparatus is provided, including:
获取单元,用于获取待传输的多媒体数据;An acquiring unit, configured to acquire multimedia data to be transmitted;
划分单元,用于将所述获取单元获取的多媒体数据划分为多个多媒体数据单元;a dividing unit, configured to divide the multimedia data acquired by the acquiring unit into a plurality of multimedia data units;
加密单元,用于通过预置加密规则对所述划分单元划分的多个多媒体数据单元分别进行加密;An encryption unit, configured to encrypt, by using a preset encryption rule, a plurality of multimedia data units divided by the dividing unit;
发送单元,用于将加密后的所述多个多媒体数据单元发送给客户端。And a sending unit, configured to send the encrypted plurality of multimedia data units to the client.
依据本发明的又一方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据上文所述的 多媒体数据加密方法。According to still another aspect of the present invention, a computer program is provided, comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform according to the above Multimedia data encryption method.
依据本发明的再一方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。According to still another aspect of the present invention, a computer readable medium storing the above computer program is provided.
借由上述技术方案,本发明实施例提供的技术方案至少具有下列优点:With the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:
本发明实施例提供了一种多媒体数据加密方法及装置,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最后将加密后的所述多个多媒体数据单元发送给客户端。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后的多媒体数据单元,从而减少了网络系统资源的浪费。An embodiment of the present invention provides a multimedia data encryption method and device, which first acquires multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; and then pairs the multimedia data by using preset encryption rules. The unit performs encryption separately; finally, the encrypted plurality of multimedia data units are sent to the client. Compared with the current encryption of multimedia data by conventional SSL, the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted multimedia data unit. , thereby reducing the waste of network system resources.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1示出了本发明实施例提供的一种多媒体数据加密方法流程图;FIG. 1 is a flowchart of a multimedia data encryption method according to an embodiment of the present invention;
图2示出了本发明实施例提供的另一种多媒体数据加密方法流程图;FIG. 2 is a flowchart of another multimedia data encryption method according to an embodiment of the present invention;
图3示出了本发明实施例提供的一种多媒体数据加密装置结构框图;FIG. 3 is a structural block diagram of a multimedia data encryption apparatus according to an embodiment of the present invention;
图4示出了本发明实施例提供的另一种多媒体数据加密装置结构框图;FIG. 4 is a structural block diagram of another multimedia data encryption apparatus according to an embodiment of the present invention;
图5示意性地示出了用于执行根据本发明的多媒体数据加密方法的计算设备的框图;以及Figure 5 is a schematic block diagram showing a computing device for performing a multimedia data encryption method in accordance with the present invention;
图6示意性地示出了用于保持或者携带实现根据本发明的多媒体数据加密方法的程序代码的存储单元。Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the multimedia data encryption method according to the present invention.
具体实施方式detailed description
下面结合附图和具体的实施方式对本发明作进一步的描述。The invention is further described below in conjunction with the drawings and specific embodiments.
本发明实施例提供了一种多媒体数据加密方法,如图1所示,所述方法可以应用于中继服务器、网络摄像机等,所述方法包括:An embodiment of the present invention provides a multimedia data encryption method. As shown in FIG. 1 , the method may be applied to a relay server, a network camera, etc., and the method includes:
101、获取待传输的多媒体数据。101. Acquire multimedia data to be transmitted.
其中,所述多媒体数据可以为视频数据,也可以为音频数据,本发明实施例不 做具体限定。所述视频数据可以为网络摄像机拍摄的需要传输给客户端的视频数据,所述视频数据可以为AVI(Audio Video Interleaved,音频视频交错)、RM(remove,流媒体视频文件格式)、WMV(Windows Media Video,流媒体格式)、FLV(FlashVideo,流媒体格式)、DV-AVI(Digital Video Format,数字视频格式)、MPEG(Moving Pictures Experts Group/Motion Pictures Experts Group,动态图像专家组)、MOV(QuickTime,影片格式)、ASF(Advanced Streaming format,高级流格式)等格式的视频数据,本发明实施例不做具体限定。所述音频数据可以为网络摄像机录制的需要传输给客户端的音频数据,所述音频数据可以为MP3、AVI、CD、WMA、RealAudio等格式的音频数据,本发明实施例不做具体限定。在本发明实施例中,获取待传输的多媒体数据,是为了将待传输的多媒体数据转发给客户端,以使得网络摄像机记录的多媒体数据通过网络传输给客户端。The multimedia data may be video data or audio data, which is not in the embodiment of the present invention. Make specific limits. The video data may be video data that is captured by the network camera and needs to be transmitted to the client, and the video data may be AVI (Audio Video Interleaved), RM (remove, streaming video file format), WMV (Windows Media). Video, streaming media format), FLV (FlashVideo, streaming media format), DV-AVI (Digital Video Format), MPEG (Moving Pictures Experts Group/Motion Pictures Experts Group), MOV (QuickTime) The video data in the format of the video format, the ASF (Advanced Streaming format), and the like are not specifically limited in the embodiment of the present invention. The audio data may be audio data that is recorded by the network camera and needs to be transmitted to the client. The audio data may be audio data in the format of MP3, AVI, CD, WMA, RealAudio, etc., which is not specifically limited in the embodiment of the present invention. In the embodiment of the present invention, the multimedia data to be transmitted is obtained by forwarding 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.
其中,所述多媒体数据单元是通过对多媒体数据进行划分而得到的。在本发明实施例中,可以根据多媒体数据中的多媒体帧或多媒体播放过程中的时间点将多媒体数据平均划分为多个多媒体数据单元,也可以根据多媒体数据中的多媒体帧或多媒体播放过程中的时间点将多媒体数据非平均的划分为多个多媒体数据单元,本发明实施例不做具体限定。对于本发明实施例,多媒体数据中的多媒体帧的个数或多媒体播放过程中的时间点的长短可以根据实际需求进行设置,也可以由系统默认配置,本发明实施例不做具体限定。The multimedia data unit is obtained by dividing multimedia data. In the embodiment of the present invention, the multimedia data may be equally divided into a plurality of multimedia data units according to a multimedia frame in a multimedia data or a time point in a multimedia playing process, or may be according to a multimedia frame or a multimedia playing process in the multimedia data. The time point is to divide the multimedia data into a plurality of multimedia data units in a non-uniform manner, which is not specifically limited in the embodiment of the present invention. For the embodiment of the present invention, the number of the multimedia frames in the multimedia data or the length of the time in the multimedia playing process may be set according to actual requirements, or may 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 may be divided into one data unit every 30 frames. The average is divided into 10 video data units, and each video data unit includes 30 video frames; if the number of video frames in each video data unit is not required, the number of video data units is required to be 10, the video data to be transmitted may be divided into 10 video data units on average or non-average; if the number of video frames in each video data unit is not required, the number of video data units is not If the request is made, the video data to be transmitted may be arbitrarily divided, and the video data to be transmitted may be divided into 300 video data units, and each video data unit corresponds to one video frame.
103、通过预置加密规则对所述多个多媒体数据单元分别进行加密。103. Encrypt the plurality of multimedia data units separately by using a preset encryption rule.
其中,所述预置加密规则可以根据用户需求进行设置,也可以由系统默认配置,本发明实施例不做具体限定。通过所述预置加密规则对多个多媒体数据单元进行加密,加密后的多媒体数据占用的存储空间和原有的多媒体数据占用的存储空间大小相同。对于本发明实施例,所述预置加密规则可以为加密算法较为简单的非对称加密规则,也可以为加密算法较为复杂的对称加密规则,对称加密规则是加密和解密的双方使用相同密钥的加解密的算法,并且对称加密规则的加密速度快,对称加密规则通常适用于消息发送方需要加密大量数据时使用。所述对称加密规则具体可以 为DES(Data Encryption Algorithm,对称加密算法)算法,3DES(Triple DES,三重数据加密算法)算法,RC5(分组密码算法)算法,IDEA(IntelliJ IDEA,数据块加密算法)算法等,本发明实施例不做具体限定。The preset encryption rule may be set according to the requirements of the user, or may be configured by default by the system, which is not specifically limited in the embodiment of the present invention. The plurality of multimedia data units are encrypted by the preset 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. For the embodiment of the present invention, the preset encryption rule may be an asymmetric encryption rule with a simple encryption algorithm, or a symmetric encryption rule with a complicated encryption algorithm. The symmetric encryption rule is that both the encryption and the 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 generally applicable when the message sender needs to encrypt a large amount of data. The symmetric encryption rule may specifically DES (Data Encryption Algorithm) algorithm, 3DES (Triple DES, triple data encryption algorithm) algorithm, RC5 (block cipher algorithm) algorithm, IDEA (IntelliJ IDEA, data block encryption algorithm) algorithm, etc. No specific restrictions.
对于本发明实施例,为了满足多媒体数据加密的安全性需求,还可以使用加密算法较为简单的非对称加密规则对所述多媒体数据进行加密,通过加密算法简单的非对称加密规则对所述多媒体数据进行加密,加密后的多媒体数据存储空间的大小可以稍大于原有的多媒体数据存储空间,从而在保证加密后的多媒体数据占用的存储空间相对较小的情况下,进一步地提高多媒体数据加密的安全性。In the embodiment of the present invention, in order to meet the security requirement of the multimedia data encryption, the multimedia data may be encrypted by using an asymmetric encryption rule with a simple encryption algorithm, and the multimedia data is encrypted by a simple asymmetric encryption rule. 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 the multimedia data encryption while ensuring that the storage space occupied by the encrypted multimedia data is relatively small. Sex.
104、将加密后的所述多个多媒体数据单元发送给客户端。104. Send the encrypted plurality of multimedia data units to the client.
其中,所述多个多媒体数据单元用于供所述客户端进行展示/输出,发送加密后的所述多个多媒体数据单元是指将加密后的多个多媒体数据单元通过网络发送给网络摄像机对应的客户端设备。对于本发明实施例,将待传输的多媒体数据划分多个多媒体数据单元,然后根据预置加密规则对多个多媒体数据单元分别进行加密,最后将加密后的所述多个多媒体数据单元发送给客户端。从而解决了传统SSL对多媒体数据进行整体加密后所产生的额外数据,进而减少了网络系统资源的浪费。同时,对多媒体数据中的多个多媒体数据单元分别进行加密并不会降低安全性。The plurality of multimedia data units are used for displaying/outputting by the client, and sending the encrypted plurality of multimedia data units refers to transmitting the encrypted plurality of multimedia data units to the network camera through the network. Client device. For the embodiment of the present invention, the multimedia data to be transmitted is divided into a plurality of multimedia data units, and then the plurality of multimedia data units are separately encrypted according to the preset encryption rule, and finally the encrypted plurality of multimedia data units are sent to the client. end. Thereby, the additional data generated by the traditional SSL encryption of the multimedia data is solved, thereby reducing the waste of the network system resources. At the same time, separately encrypting multiple multimedia data units in the multimedia data does not reduce security.
对于本发明实施例,可以应用的场景如下所述,但不仅限于此,包括:中继服务器获取的待传输多媒体数据的多媒体帧的个数为400,若要求每个多媒体数据单元中的多媒体帧的个数为100,则可将所述待传输的多媒体数据平均划分成4个多媒体数据单元,每个多媒体数据单元中包含有100个多媒体帧。然后通过预置加密规则对所述多个多媒体数据单元分别进行加密,所述预置加密规则可以为加密算法较为简单的非对称加密规则,也可以为加密算法较为复杂的对称加密规则,具体加密规则可以为DES、DES和RC5等加密算法,再通过对称加密规则中的对应的加密密钥对多个多媒体数据单元分别进行加密,最后将加密后的多个多媒体数据单元通过网络发送给网络摄像机对应的客户端设备。在本发明实施例中,将待传输的多媒体数据进行划分多个多媒体数据单元,然后根据预置加密规则对多个多媒体数据单元分别进行加密,最后将加密后的所述多个多媒体数据单元发送给客户端。从而解决了传统SSL对多媒体数据进行整体加密后所产生的额外数据,进而减少了网络系统资源的浪费。For the embodiment of the present invention, the scenario that can be applied is as follows, but is not limited thereto, including: the number of multimedia frames to be transmitted by the relay server to be transmitted is 400, if the multimedia frame in each multimedia data unit is required The number of the multimedia data to be transmitted is divided into four multimedia data units, and each multimedia data unit includes 100 multimedia frames. Then, the plurality of multimedia data units are respectively encrypted by using a preset encryption rule, and the preset encryption rule may be an asymmetric encryption rule with a simple encryption algorithm, or a symmetric encryption rule with a relatively complicated encryption algorithm, and specific encryption. The rules may be encryption algorithms such as DES, DES, and RC5, and then multiple multimedia data units are separately encrypted by corresponding encryption keys in the symmetric encryption rules, and finally the encrypted multiple multimedia data units are sent 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 a plurality of multimedia data units, and then the plurality of multimedia data units are separately encrypted according to the preset encryption rule, and finally the encrypted plurality of multimedia data units are sent. To the client. Thereby, the additional data generated by the traditional SSL encryption of the multimedia data is solved, thereby reducing the waste of the network system resources.
本发明实施例提供了一种多媒体数据加密方法,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最后将加密后的所述多个多媒体数据单元发送给客户端,所述多个多媒体数据单元用于供所述客户端进行展示/输出。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后 的多媒体数据单元,从而减少了网络系统资源的浪费。An embodiment of the present invention provides a multimedia data encryption method, which first acquires multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; and then separately sets the multiple multimedia data units by using preset encryption rules. Encrypting is performed; finally, the encrypted plurality of multimedia data units are sent to the client, and the plurality of multimedia data units are used for display/output by the client. Compared with the current encryption of multimedia data by conventional SSL, the embodiment of the present invention first divides the multimedia data into a plurality of multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted data. Multimedia data units, thereby reducing the waste of network system resources.
本发明实施例提供了另一种多媒体数据加密方法,如图2所示,所述方法包括:An embodiment of the present invention provides another multimedia data encryption method. As shown in FIG. 2, the method includes:
201、获取待传输的多媒体数据。201. Acquire multimedia data to be transmitted.
对于本发明实施例,所述多媒体数据为视频数据或音频数据。所述视频数据可以为网络摄像机拍摄的需要传输给客户端的视频数据,所述视频数据可以为AVI(Audio Video Interleaved,音频视频交错)、RM(remove,流媒体视频文件格式)、WMV(Windows Media Video,流媒体格式)、FLV(FlashVideo,流媒体格式)、DV-AVI(Digital Video Format,数字视频格式)、MPEG(Moving Pictures Experts Group/Motion Pictures Experts Group,动态图像专家组)、MOV(QuickTime,影片格式)、ASF(Advanced Streaming format,高级流格式)等格式的视频数据,本发明实施例不做具体限定。所述音频数据可以为网络摄像机录制的需要传输给客户端的音频数据,所述音频数据可以为MP3、AVI、CD、WMA、RealAudio等格式的音频数据,本发明实施例不做具体限定。在本发明实施例中,获取待传输的多媒体数据,是为了将待传输多媒体数据转发给客户端,以使得网络摄像机记录的多媒体数据通过网络传输给客户端。For the embodiment of the present invention, the multimedia data is video data or audio data. The video data may be video data that is captured by the network camera and needs to be transmitted to the client, and the video data may be AVI (Audio Video Interleaved), RM (remove, streaming video file format), WMV (Windows Media). Video, streaming media format), FLV (FlashVideo, streaming media format), DV-AVI (Digital Video Format), MPEG (Moving Pictures Experts Group/Motion Pictures Experts Group), MOV (QuickTime) The video data in the format of the video format, the ASF (Advanced Streaming format), and the like are not specifically limited in the embodiment of the present invention. The audio data may be audio data that is recorded by the network camera and needs to be transmitted to the client. The audio data may be audio data in the format of MP3, AVI, CD, WMA, RealAudio, etc., which is not specifically limited in the embodiment of the present invention. In the embodiment of the present invention, the multimedia data to be transmitted is obtained by forwarding 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 multimedia frame data according to a preset rule.
其中,所述预置规则可以根据实际需求进行设置,也可以由系统默认配置,本发明实施例不做具体限定。所述预置规则具体可以根据多媒体数据中的多媒体帧将多媒体数据划分为多个多媒体帧数据,例如,可以按照每一个多媒体帧一组、每两个多媒体帧一组等将多媒体数据划分为多个多媒体帧数据;或者多媒体播放过程中的时间点将多媒体数据划分为多个多媒体帧数据。需要说明的是,预置规则中多媒体播放过程中的时间点可以根据用户实际需求进行设置,也可以由系统默认配置,本发明实施例不做具体限定。对于本发明实施例,预置规则中配置的多种多媒体数据划分规则,可以根据实际需求将多媒体数据灵活的划分为多个多媒体帧数据,从而提高了划分多媒体数据的效率。The preset rule may be set according to actual requirements, or may be configured by default by the system, which is not specifically limited in the embodiment of the present invention. The preset rule may specifically divide the multimedia data into multiple multimedia frame data according to the multimedia frame in the multimedia data. For example, the multimedia data may be divided into multiple groups according to a set of each multimedia frame, each set of two multimedia frames, and the like. Multimedia frame data; or a point in time during multimedia playback to divide multimedia data into multiple multimedia frame data. It should be noted that the time point in the multimedia playing process of the preset rule may be set according to the actual needs of the user, or may 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, the multiple multimedia data division rules configured in the preset rule can flexibly divide the multimedia data into multiple multimedia frame data according to actual requirements, thereby improving the efficiency of dividing the 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 frame. For example, the playback time of the video data to be transmitted acquired by the relay server is 30 minutes, and the time point of the video playback process configured in the preset rule is 3 minutes, and the video data is 3 minutes according to the time point during the video playback process. The data is divided into 10 video data units with a duration of 3 minutes, and each video data unit contains one or more video frames.
对于本发明实施例,所述按照预置规则将所述多媒体数据划分为多个多媒体帧数据之后,还包括:按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中所在的位置顺序。对于本发明实施例,按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中的位置顺序,可以进一步地提高后续多媒体帧数据加密的安全性。其中,所述预置排序规则可以按照多媒体帧数据的原始序列号排序,也 可以按照多媒体帧数据的存储空间大小排序,还可以按照多媒体帧数据的播放时长排序,本发明实施例不做具体限定。For the embodiment of the present invention, after the multimedia data is divided into multiple multimedia frame data according to a preset rule, the method further includes: adjusting, according to a preset sorting rule, where the plurality of multimedia frame data is located in the multimedia data. Position order. 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, and the security of subsequent multimedia frame data encryption may be further improved. The preset sorting rule may be sorted according to the original serial number of the multimedia frame data, and It can be sorted according to the storage space size of the multimedia frame data, and can also be sorted according to the play 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 dividing the video data into five video frame data, if the original video numbers corresponding to the five video frame data in the original video data are 1, 2, 3, 4, and 5 respectively, the preset collation is The position sequence of the video frame data is adjusted according to the original sequence number of the video frame data, and the original sequence number of the corresponding position of the adjusted plurality of 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, and the security of subsequent multimedia frame data encryption may be further improved.
203、通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密。203. Encrypt the plurality of multimedia frame data separately by using a preset 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 the external device. The symmetric encryption rule is an encryption method of a single key system, and the encryption key in the symmetric encryption rule can simultaneously serve as encryption and decryption of information. The preset symmetric encryption rule may be set according to the actual needs of the user, or may be configured by default by the system, which is not specifically limited in the embodiment of the present invention.
在本发明实施例中,所述预置对称加密规则对应的加密密钥可以由数据发送方生成,即可以由网络摄像机或者网络摄像机对应的中继服务器生成;也可以将所述预置对称加密规则对应的加密密钥配置在外部设备中,每次在对多媒体数据进行传输之前,根据外部设备中的预置对称加密规则动态的产生一个加密密钥,然后将所述加密密钥以HTTPS(Hyper Text Transfer Protocol over Secure Socket Layer,网络协议)传输方式,分别传输给数据发送端和客户端,数据发送端和客户端收到加密密钥后,进行数据传输。需要说明的是,外部设备向数据发送端和客户端传输加密密钥时,由于加密密钥是通过HTTPS进行传输的,因此可将加密密钥安全的传输至数据发送端和客户端,并且外部设备通过HTTPS仅传输加密密钥,而不是传输加密的多媒体数据本身,因此该种加密方式并不会占用较多的网络系统资源。In the embodiment of the present invention, the encryption key corresponding to the preset symmetric encryption rule may be generated by the data sender, that is, may be generated by a network camera or a relay server corresponding to the network camera; or the preset symmetric encryption may be performed. 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 a preset symmetric encryption rule in the external device, and then the encryption key is HTTPS ( The Hyper Text Transfer Protocol over Secure Socket Layer (network protocol) transmission mode is respectively transmitted to the data sending end and the client end, and the data transmitting end and the client receive the encryption key and perform data transmission. It should be noted that when the external device transmits the encryption key to the data transmitting end and the client, since the encryption key is transmitted through HTTPS, the encryption key can be securely transmitted to the data transmitting end and the client, and externally. The device only transmits the encryption key through HTTPS, instead of transmitting the encrypted multimedia data itself, so this encryption method does not occupy more network system resources.
对于本发明实施例,通过所述预置对称加密规则对多个多媒体帧数据进行加密,加密后的多媒体数据占用的存储空间和原有的多媒体数据占用的存储空间大小相同。在本发明实施例中,所述预置对称加密规则具体可以为DES(Data Encryption Algorithm,对称加密算法)算法,3DES(Triple DES,三重数据加密算法)算法,RC5(分组密码算法)算法,IDEA(IntelliJ IDEA,数据块加密算法)算法等,本发明实施例不做具体限定。对于本发明实施例,由于对称加密规则具有计算量小、加密速度快、加密效率高等优点,因此通过预置对称加密规则对所述多个多媒体帧数据分别进行加密,可以提高多媒体数据加密的效率。同时,对多媒体数据划分的多个多媒体帧数据分别进行加密并不会降低安全性。For the embodiment of the present invention, the plurality of multimedia frame data is 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 be a DES (Data Encryption Algorithm) algorithm, a 3DES (Triple DES) algorithm, an RC5 (block cipher algorithm) algorithm, and an IDEA. The (IntelliJ IDEA, Data Block Encryption Algorithm) algorithm and the like are not specifically limited in the embodiment of the present invention. For the embodiment of the present invention, since the symmetric encryption rule has the advantages of small calculation amount, fast encryption speed, high encryption efficiency, etc., the plurality of multimedia frame data are separately encrypted by using a preset symmetric encryption rule, thereby improving the efficiency of multimedia data encryption. . At the same time, encrypting multiple multimedia frame data divided by multimedia data separately does 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, the plurality of the symmetric encryption rules and the encryption key are used to Before the multimedia frame data is separately encrypted, the method further includes: acquiring an original serial number of each multimedia frame data; respectively generating, according to the encryption key and the original serial number of each multimedia frame data, respectively corresponding to each of the multimedia frame data Key. The original sequence number of the multimedia frame data is used to indicate the position sequence of the multimedia frame data in the multimedia data. Specifically, the original sequence number of the multimedia frame data may be represented by the data number, and the encryption key of the preset symmetric encryption rule may be obtained from Obtained in 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, and the private key 123 and the multimedia frame data are original according to the symmetric encryption rule. Sequence number 5, generating a key of the original frame number 5 of the multimedia frame data; generating the key of the original frame number 4 of the multimedia frame data according to the encryption key 123 of the symmetric encryption rule and the original frame number 4 of the multimedia frame data; Generating the key of the multimedia frame data with the original sequence number 2 according to the encryption key 123 of the symmetric encryption rule and the original sequence number 2 of the multimedia frame; generating the original according to the encryption key 123 of the symmetric encryption rule and the original sequence number 1 of the multimedia frame The key of the multimedia frame data of sequence number 1; the key of the multimedia frame data of the original sequence number 3 is generated according to the encryption key 123 of the symmetric encryption rule and the original sequence number 3 of the multimedia frame. In the embodiment of the present invention, the encryption key corresponding to each of the multimedia frame data generated by the encryption key of the preset symmetric encryption rule and the original serial number of each multimedia frame data may further improve the complexity of the encryption key. Sex, which improves 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, the encrypting the plurality of multimedia frame data by using the preset symmetric encryption rule separately includes: encrypting the plurality of multimedia frame data respectively by using a key corresponding to each of the 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; and the key corresponding to the multimedia frame data with the original sequence number 3 is 124. Then, the multimedia frame data with the original sequence number 1 is encrypted according to the key 145; the multimedia frame data with the original sequence number 2 is encrypted according to the key 147; and the multimedia frame data with the original serial number 3 is performed according to the key 124. encryption. In the embodiment of the present invention, according to the preset encryption key and the original serial number of each multimedia frame data, respectively generate a key corresponding to each of the multimedia frame data, and generate a generated key Encrypting multimedia frame data can further improve the security of multimedia data encryption.
204、将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。204. Send the encrypted multiple multimedia frame data after the adjustment sequence to the client.
其中,发送加密后的所述多个多媒体数据单元是指将加密后的多个多媒体数据单元通过网络发送给网络摄像机对应的客户端设备。对于本发明实施例,将待传输的多媒体数据划分多个多媒体数据单元,然后根据预置加密规则对多个多媒体数据单元分别进行加密,最后将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。从而解决了传统SSL对多媒体数据进行整体加密后所产生的额外数据,进而减少了网络系统资源的浪费。同时,对多媒体数据中的多个多媒体数据单元分别进行加密并不会降低安全性。The transmitting the encrypted plurality of multimedia data units means that the encrypted plurality of multimedia data units are sent 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 a plurality of multimedia data units, and then the plurality of multimedia data units are separately encrypted according to the preset encryption rule, and finally the encrypted multiple multimedia frame data after the order is adjusted. Sent to the client. Thereby, the additional data generated by the traditional SSL encryption of the multimedia data is solved, thereby reducing the waste of the network system resources. At the same time, separately encrypting multiple multimedia data units in the multimedia data does 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 by the client to decrypt the encrypted plurality of multimedia data units. Wherein the encryption The key can be sent to the client through the HTTPS transmission mode and by the intermediate server corresponding to the network camera or network camera. It should be noted that when the intermediate server corresponding to the network camera or the network camera transmits the encryption key to the client, since the encryption key is transmitted through HTTPS, the encryption key can be securely 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, the scenario that can be applied is as follows, but is not limited thereto, and includes: the video data to be transmitted acquired by the relay server includes five video frames, and the video data to be transmitted is divided into 5 video frame data, and the original serial numbers occupied by the 5 video frame data in the original video data are 1, 2, 3, 4, and 5, respectively. Then, the position order of the plurality of video frame data in the video data is adjusted according to a preset sorting rule, wherein the preset sorting rule is to adjust the position of each video frame data according to the original sequence number of each video frame data in descending order. Position, the position sequence of the adjusted video frame data in the original video data is 5, 4, 3, 2, 1, respectively, and then obtain the original sequence number of each video frame data after adjustment, according to the preset symmetric encryption rule The encryption key and the original sequence number of the respective video frame data respectively generate a key corresponding to each of the video frame data, and finally pair the plurality of videos by using a key corresponding to each of the video frame data The frame data is separately encrypted, and the encrypted plurality of multimedia frame data after the adjustment order is transmitted 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, and then the location data of the multimedia data unit in the multimedia data is adjusted, and the plurality of preset symmetric encryption rules are used to The multimedia data units are separately encrypted, and finally the encrypted multiple multimedia frame data after the order adjustment is sent to the client. This replaces the original SSL encryption of multimedia data, solves the problem of extra data generated by SSL encryption of multimedia data, thereby reducing the waste of network system resources.
本发明实施例提供了另一种多媒体数据加密方法,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最将加密后的所述多个多媒体数据单元发送给客户端,所述多个多媒体数据单元用于供所述客户端进行输出。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后的多媒体数据单元,从而减少了网络系统资源的浪费。An embodiment of the present invention provides another multimedia data encryption method, which first acquires multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; and then pairs the multiple multimedia data units by using preset encryption rules. Encryption is performed separately; the encrypted plurality of multimedia data units are sent to the client, and the plurality of multimedia data units are used for output by the client. Compared with the current encryption of multimedia data by conventional SSL, the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted multimedia data unit. , thereby reducing the waste of network system resources.
本发明实施例提供一种多媒体数据加密装置,如图3所示,所述多媒体数据加密装置包括:获取单元31、划分单元32、加密单元33、发送单元34。The embodiment of the present invention provides a multimedia data encryption apparatus. As shown in FIG. 3, the multimedia data encryption apparatus includes: an acquisition unit 31, a division unit 32, an encryption unit 33, and a transmission unit 34.
获取单元31,用于获取待传输的多媒体数据。The obtaining unit 31 is configured to acquire 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 a plurality of multimedia data units.
加密单元33,用于通过预置加密规则对所述划分单元32划分的多个多媒体数据单元分别进行加密。The encryption unit 33 is configured to separately encrypt the plurality of multimedia data units divided by the dividing unit 32 by using a preset encryption rule.
发送单元34,用于将加密后的所述多个多媒体数据单元发送给客户端。 The sending unit 34 is configured to send the encrypted plurality of multimedia data units to the client.
其中,所述多个多媒体数据单元用于供所述客户端进行展示/输出。The plurality of multimedia data units are used for display/output by the client.
需要说明的是,本发明实施例提供的一种多媒体数据加密装置所涉及各功能单元的其他相应描述,可以参考图1所示方法的对应描述,在此不再赘述。It should be noted that other corresponding descriptions of the functional units involved in the multimedia data encryption apparatus provided by the embodiment of the present invention may be referred to the corresponding description of the method shown in FIG. 1 , and details are not described herein again.
本发明实施例提供了一种多媒体数据加密装置,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最后将加密后的所述多个多媒体数据单元发送给客户端,所述多个多媒体数据单元用于供所述客户端进行展示/输出。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后的多媒体数据单元,从而减少了网络系统资源的浪费。An embodiment of the present invention provides a multimedia data encryption apparatus, which first acquires multimedia data to be transmitted; then divides the multimedia data into a plurality of multimedia data units; and separately sets the multiple multimedia data units by using preset encryption rules. Encrypting is performed; finally, the encrypted plurality of multimedia data units are sent to the client, and the plurality of multimedia data units are used for display/output by the client. Compared with the current encryption of multimedia data by conventional SSL, the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted multimedia data unit. , thereby reducing the waste of network system resources.
本发明实施例提供另一种多媒体数据加密装置,如图4所示,所述多媒体数据加密装置包括:获取单元41、划分单元42、加密单元43、发送单元44。An embodiment of the present invention provides another multimedia data encryption apparatus. As shown in FIG. 4, the multimedia data encryption apparatus includes an acquisition unit 41, a division unit 42, an encryption unit 43, and a transmission unit 44.
获取单元41,用于获取待传输的多媒体数据。The obtaining unit 41 is configured to acquire 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 separately encrypt the plurality of multimedia data units divided by the dividing unit 42 by using a preset encryption rule.
发送单元44,用于将加密单元加密后的所述多个多媒体数据单元发送给客户端。The sending unit 44 is configured to send the multiple multimedia data units encrypted by the encryption unit to the client.
其中,所述多个多媒体数据单元用于供所述客户端进行展示/输出。The plurality of multimedia data units are used for display/output by the client.
进一步地,所述装置还包括:生成单元45和/或接收单元46。Further, the apparatus 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 an encryption key corresponding to the preset encryption rule sent by the external device.
所述划分单元42,具体用于按照预置规则将所述多媒体数据划分为多个多媒体帧数据。The dividing unit 42 is specifically configured to divide the multimedia data into multiple multimedia frame data according to a preset rule.
所述加密单元43,具体用于通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密。The encryption unit 43 is specifically configured to separately encrypt the plurality of multimedia frame data by using a preset symmetric encryption rule and the encryption key.
进一步地,所述装置还包括:调整单元47。Further, the device further includes: an adjustment unit 47.
调整单元47,用于按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中所在的位置顺序。The adjusting unit 47 is configured to adjust a position sequence 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 encrypted multiple multimedia frame data after the adjustment sequence to the client.
进一步地,further,
所述获取单元41,还用于获取各个多媒体帧数据的原始序列号;The acquiring unit 41 is further configured to acquire an original serial number of each multimedia frame data.
所述生成单元45,还用于根据所述加密密钥和所述各个多媒体帧数据的原始序 列号,分别生成与所述各个多媒体帧数据分别对应的密钥。The generating unit 45 is further configured to: according to the encryption key and an original sequence of the multimedia frame data The column numbers respectively generate keys respectively corresponding to the respective multimedia frame data.
所述加密单元43,用于通过所述各个多媒体帧数据分别对应的密钥对所述多个多媒体帧数据分别进行加密。The encryption unit 43 is configured to separately encrypt the plurality of multimedia frame data by using a key corresponding to each of the 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 other corresponding descriptions of the functional units involved in another multimedia data encryption apparatus provided by the embodiment of the present invention may be referred to the corresponding description of the method shown in FIG. 2, and details are not described herein again.
本发明实施例提供了另一种多媒体数据加密装置,首先获取待传输的多媒体数据;然后将所述多媒体数据划分为多个多媒体数据单元;再通过预置加密规则对所述多个多媒体数据单元分别进行加密;最后将加密后的所述多个多媒体数据单元发送给客户端,所述多个多媒体数据单元用于供所述客户端进行输出。与目前通过传统的SSL对多媒体数据进行整体加密相比,本发明实施例首先将多媒体数据划分为多个多媒体数据单元,然后对多个多媒体数据单元分别进行加密,最后输出加密后的多媒体数据单元,从而减少了网络系统资源的浪费。An embodiment of the present invention provides another multimedia data encryption apparatus, which first acquires multimedia data to be transmitted; then divides the multimedia data into multiple multimedia data units; and then pairs the multiple multimedia data units by using preset encryption rules. Encryption is performed separately; finally, the encrypted plurality of multimedia data units are sent to the client, and the plurality of multimedia data units are used for output by the client. Compared with the current encryption of multimedia data by conventional SSL, the embodiment of the present invention first divides the multimedia data into multiple multimedia data units, and then separately encrypts the plurality of multimedia data units, and finally outputs the encrypted multimedia data unit. , thereby reducing the waste of network system resources.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求 保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, as required in the following claims Any of the protected embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的多媒体数据加密装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components of the multimedia data encryption device in accordance with embodiments of the present invention may be implemented in practice using a microprocessor or digital signal processor (DSP). The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图5示出了可以实现多媒体数据加密方法的计算设备的框图。该计算设备传统上包括处理器510和以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有存储用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,存储程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图6所示的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的计算机可读代码531’,即可以由诸如510之类的处理器读取的代码,当这些代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 5 illustrates a block diagram of a computing device that can implement a method of encrypting multimedia data. The computing device conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a memory 520. The memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Memory 520 has a storage space 530 that stores program code 531 for performing any of the method steps described above. For example, storage space 530 storing program code may include various program code 531 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG. The storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit comprises computer readable code 531 ' for performing the steps of the method according to the invention, ie code that can be read by a processor such as 510, which when executed by the computing device causes the computing device Perform the various steps in the method described above.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。"an embodiment," or "an embodiment," or "an embodiment," In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而 选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 In addition, it should be noted that the language used in this specification is primarily for the purpose of readability and teaching. It is chosen, rather than chosen to explain or define the subject matter of the invention. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.

Claims (22)

  1. 一种多媒体数据加密方法,包括:A multimedia data encryption method includes:
    获取待传输的多媒体数据;Obtaining multimedia data to be transmitted;
    将所述多媒体数据划分为多个多媒体数据单元;Dividing the multimedia data into a plurality of multimedia data units;
    通过预置加密规则对所述多个多媒体数据单元分别进行加密;Encrypting the plurality of multimedia data units separately by using a preset encryption rule;
    将加密后的所述多个多媒体数据单元发送给客户端。The encrypted plurality of multimedia data units are sent to the client.
  2. 根据权利要求1所述的多媒体数据加密方法,其中,所述方法还包括:The multimedia data encryption method according to claim 1, wherein the method further comprises:
    生成所述预置加密规则对应的加密密钥;或者Generating an encryption key corresponding to the preset encryption rule; or
    接收外部设备发送的所述预置加密规则对应的加密密钥。Receiving an encryption key corresponding to the preset encryption rule sent by the external device.
  3. 根据权利要求2所述的多媒体数据加密方法,其中,所述将所述多媒体数据划分为多个多媒体数据单元的步骤进一步包括:The multimedia data encryption method according to claim 2, wherein the step of dividing the multimedia data into a plurality of multimedia data units further comprises:
    按照预置规则将所述多媒体数据划分为多个多媒体帧数据。The multimedia data is divided into a plurality of multimedia frame data according to a preset rule.
  4. 根据权利要求3所述的多媒体数据加密方法,其中,所述通过预置加密规则对所述多个多媒体数据单元分别进行加密的步骤进一步包括:The multimedia data encryption method according to claim 3, wherein the step of separately encrypting the plurality of multimedia data units by a preset encryption rule further comprises:
    通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密。The plurality of multimedia frame data are separately encrypted by preset symmetric encryption rules and the encryption key.
  5. 根据权利要求4所述的多媒体数据加密方法,其中,所述按照预置规则将所述多媒体数据划分为多个多媒体帧数据之后,所述方法还包括:The multimedia data encryption method according to claim 4, wherein after the dividing the multimedia data into a plurality of multimedia frame data according to a preset rule, the method further comprises:
    按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中所在的位置顺序。And adjusting a position order of the plurality of multimedia frame data in the multimedia data according to a preset sorting rule.
  6. 根据权利要求5所述的多媒体数据加密方法,其中,所述将加密后的所述多个多媒体数据单元发送给客户端的步骤进一步包括:The multimedia data encryption method according to claim 5, wherein the step of transmitting the encrypted plurality of multimedia data units to the client further comprises:
    将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。The encrypted plurality of multimedia frame data after the adjustment order is sent to the client.
  7. 根据权利要求4所述的多媒体数据加密方法,其中,所述通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密之前,所述方法还包括:The multimedia data encryption method according to claim 4, wherein the method further comprises: before the encrypting the plurality of multimedia frame data by using a preset symmetric encryption rule and the encryption key, the method further comprising:
    获取各个多媒体帧数据的原始序列号;Obtaining the original serial number of each multimedia frame data;
    根据所述加密密钥和所述各个多媒体帧数据的原始序列号,分别生成与所述各个多媒体帧数据分别对应的密钥。And generating, according to the encryption key and the original sequence number of each of the multimedia frame data, a key corresponding to each of the multimedia frame data.
  8. 根据权利要求7所述的多媒体数据加密方法,其中,所述通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密的步骤进一步包括:The multimedia data encryption method according to claim 7, wherein the step of separately encrypting the plurality of multimedia frame data by using a preset symmetric encryption rule and the encryption key further comprises:
    通过所述各个多媒体帧数据分别对应的密钥对所述多个多媒体帧数据分别进行加密。The plurality of multimedia frame data are separately encrypted by a key corresponding to each of the multimedia frame data.
  9. 根据权利要求2所述的多媒体数据加密方法,其中,所述将加密后的所述多个多媒体数据单元发送给客户端之后,所述方法还包括: The multimedia data encryption method according to claim 2, wherein after the transmitting the encrypted plurality of multimedia data units to the client, the method further comprises:
    将所述加密密钥发送给所述客户端,所述加密密钥用于供所述客户端对加密后的所述多个多媒体数据单元进行解密。Sending the encryption key to the client, the encryption key is used by the client to decrypt the encrypted plurality of multimedia data units.
  10. 根据权利要求1-9任一所述的多媒体数据加密方法,其中,所述多媒体数据为视频数据或音频数据。The multimedia data encryption method according to any one of claims 1 to 9, wherein the multimedia data is video data or audio data.
  11. 一种多媒体数据加密装置,包括:A multimedia data encryption device includes:
    获取单元,用于获取待传输的多媒体数据;An acquiring unit, configured to acquire multimedia data to be transmitted;
    划分单元,用于将所述获取单元获取的多媒体数据划分为多个多媒体数据单元;a dividing unit, configured to divide the multimedia data acquired by the acquiring unit into a plurality of multimedia data units;
    加密单元,用于通过预置加密规则对所述划分单元划分的多个多媒体数据单元分别进行加密;An encryption unit, configured to encrypt, by using a preset encryption rule, a plurality of multimedia data units divided by the dividing unit;
    发送单元,用于将加密单元加密后的所述多个多媒体数据单元发送给客户端。And a sending unit, configured to send the multiple multimedia data units encrypted by the encryption unit to the client.
  12. 根据权利要求11所述的多媒体数据加密装置,其中,所述装置还包括:The multimedia data encryption device of claim 11, wherein the device further comprises:
    生成单元,用于生成所述预置加密规则对应的加密密钥;a generating unit, configured to generate an encryption key corresponding to the preset encryption rule;
    接收单元,用于接收外部设备发送的所述预置加密规则对应的加密密钥。The receiving unit is configured to receive an encryption key corresponding to the preset encryption rule sent by the external device.
  13. 根据权利要求12所述的多媒体数据加密装置,其中,The multimedia data encryption device according to claim 12, wherein
    所述划分单元,具体用于按照预置规则将所述多媒体数据划分为多个多媒体帧数据。The dividing unit is specifically configured to divide the multimedia data into multiple multimedia frame data according to a preset rule.
  14. 根据权利要求13所述的多媒体数据加密装置,其中,The multimedia data encryption device according to claim 13, wherein
    所述加密单元,具体用于通过预置对称加密规则和所述加密密钥,对所述多个多媒体帧数据分别进行加密。The encryption unit is specifically configured to separately encrypt the plurality of multimedia frame data by using a preset symmetric encryption rule and the encryption key.
  15. 根据权利要求14所述的多媒体数据加密装置,其中,所述装置还包括:The multimedia data encryption device of claim 14, wherein the device further comprises:
    调整单元,用于按照预置排序规则调整所述多个多媒体帧数据在所述多媒体数据中所在的位置顺序。And an adjusting unit, configured to adjust a position sequence of the plurality of multimedia frame data in the multimedia data according to a preset sorting rule.
  16. 根据权利要求15所述的多媒体数据加密装置,其中,The multimedia data encryption device according to claim 15, wherein
    所述发送单元,具体用于将调整顺序后的加密的所述多个多媒体帧数据发送给客户端。The sending unit is specifically configured to send the encrypted multiple multimedia frame data after the adjustment sequence to the client.
  17. 根据权利要求14所述的多媒体数据加密装置,其中,The multimedia data encryption device according to claim 14, wherein
    所述获取单元,还用于获取各个多媒体帧数据的原始序列号;The acquiring unit is further configured to acquire an original serial number of each multimedia frame data;
    所述生成单元,还用于根据所述加密密钥和所述各个多媒体帧数据的原始序列号,分别生成与所述各个多媒体帧数据分别对应的密钥。The generating unit is further configured to respectively generate a key corresponding to each of the multimedia frame data according to the encryption key and an original sequence number of each multimedia frame data.
  18. 根据权利要求17所述的多媒体数据加密装置,其中,The multimedia data encryption device according to claim 17, wherein
    所述加密单元,具有用于通过所述各个多媒体帧数据分别对应的密钥对所述多个多媒体帧数据分别进行加密。The encryption unit has a function for separately encrypting the plurality of multimedia frame data by using a key corresponding to each of the multimedia frame data.
  19. 根据权利要求12所述的多媒体数据加密装置,其中,The multimedia data encryption device according to claim 12, wherein
    所述发送单元,还用于将所述加密密钥发送给所述客户端,所述加密密钥用于供所述客户端对加密后的所述多个多媒体数据单元进行解密。 The sending unit is further configured to send the encryption key to the client, where the encryption key is used by the client to decrypt the encrypted plurality of multimedia data units.
  20. 根据权利要求11-18任一所述的多媒体数据加密装置,其中,所述多媒体数据为视频数据或音频数据。The multimedia data encryption device according to any one of claims 11-18, wherein the multimedia data is video data or audio data.
  21. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1至10中任一项所述的多媒体数据加密方法。A computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform the multimedia data encryption method of any one of claims 1 to 10.
  22. 一种计算机可读介质,其中存储了如权利要求21所述的计算机程序。 A computer readable medium storing the computer program of claim 21.
PCT/CN2016/083713 2015-09-30 2016-05-27 Multimedia data encryption method and apparatus WO2017054480A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2017054480A1 true WO2017054480A1 (en) 2017-04-06

Family

ID=55288246

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337963A (en) * 2015-09-30 2016-02-17 北京奇虎科技有限公司 Multimedia data encryption method and device
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
CN116318889A (en) * 2020-05-27 2023-06-23 国家广播电视总局广播电视规划院 Network security protection method integrating media platform
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
CN103248474A (en) * 2012-02-01 2013-08-14 华为技术有限公司 Encryption and decryption method and device for streaming media
CN103297809A (en) * 2012-02-28 2013-09-11 华为技术有限公司 Method and device and system for encrypting and decrypting media content
WO2014022062A1 (en) * 2012-07-30 2014-02-06 Intel Corporation Media encryption based on biometric data
CN104410828A (en) * 2014-11-26 2015-03-11 北京视博数字电视科技有限公司 Home monitoring method and apparatus
CN105337963A (en) * 2015-09-30 2016-02-17 北京奇虎科技有限公司 Multimedia data encryption method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051906B (en) * 2007-05-14 2011-11-23 北京大学 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
CN102469344B (en) * 2010-11-16 2013-10-09 腾讯科技(深圳)有限公司 Video stream encryption and decryption method, video stream encryption and decryption device, communication terminal and storage terminal
CN103457727B (en) * 2012-05-29 2018-01-23 华为技术有限公司 A kind of methods, devices and systems for realizing media data processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248474A (en) * 2012-02-01 2013-08-14 华为技术有限公司 Encryption and decryption method and device for streaming media
CN103297809A (en) * 2012-02-28 2013-09-11 华为技术有限公司 Method and device and system for encrypting and decrypting media content
WO2014022062A1 (en) * 2012-07-30 2014-02-06 Intel Corporation Media encryption based on biometric data
CN104410828A (en) * 2014-11-26 2015-03-11 北京视博数字电视科技有限公司 Home monitoring method and apparatus
CN105337963A (en) * 2015-09-30 2016-02-17 北京奇虎科技有限公司 Multimedia data encryption method and device

Also Published As

Publication number Publication date
CN105337963A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
US20200236408A1 (en) Reducing time to first encrypted frame in a content stream
US20200382274A1 (en) Secure Analytics Using an Encrypted Analytics Matrix
WO2017054480A1 (en) Multimedia data encryption method and apparatus
US10110613B2 (en) Decrypting content samples including distinct encryption chains
US11102162B2 (en) Systems and methods of facilitating live streaming of content on multiple social media platforms
US11323407B2 (en) Methods, systems, apparatuses, and devices for facilitating managing digital content captured using multiple content capturing devices
US10154014B2 (en) Method and system for efficient encryption, transmission, and decryption of video data
US8527750B2 (en) System and method for generating multiple protected content formats without redundant encryption of content
US10516903B2 (en) Method and apparatus for transmitting video data
JP2019527444A (en) System and method for identifying matching content
JP2019092152A (en) Device, system and method for digital content distribution
US9794230B2 (en) Method and system for encrypting multimedia streams
GB2570214A (en) Content encryption and decryption using a custom key
JP2008009303A (en) Content distribution server and content distribution method
US20160182466A1 (en) TransDRM for Streaming Media
WO2017050124A1 (en) Program recording and sharing method and system
JP2016528631A (en) Extendable media format system and method of use
WO2021072878A1 (en) Audio/video data encryption and decryption method and apparatus employing rtmp, and readable storage medium
JP6598044B2 (en) Information processing apparatus and information processing method
US10264052B2 (en) Enveloping for device independence
US20200145186A1 (en) Reducing variable-length pre-key to fix-length key
US20130346541A1 (en) Network Recording Service
KR102236897B1 (en) Video data protection system and method
US20160048701A1 (en) Enveloping for remote Digital Camera
WO2017041564A1 (en) Method and system for realizing set top box on-demand function

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16850105

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16850105

Country of ref document: EP

Kind code of ref document: A1