WO2017206401A1 - Video decryption method and device - Google Patents

Video decryption method and device Download PDF

Info

Publication number
WO2017206401A1
WO2017206401A1 PCT/CN2016/100472 CN2016100472W WO2017206401A1 WO 2017206401 A1 WO2017206401 A1 WO 2017206401A1 CN 2016100472 W CN2016100472 W CN 2016100472W WO 2017206401 A1 WO2017206401 A1 WO 2017206401A1
Authority
WO
WIPO (PCT)
Prior art keywords
video data
protocol
encryption
encrypted video
decryption
Prior art date
Application number
PCT/CN2016/100472
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 WO2017206401A1 publication Critical patent/WO2017206401A1/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream decryption
    • 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/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a video decryption method and apparatus.
  • HDTV high definition video data of the video that the user needs to watch from the server.
  • the server needs to encrypt the original video data by using the HDCP (High-bandwidth Digital Content Protection) encryption protocol to obtain the encrypted video data, and then pass the HDMI (in the case of transmitting the original video data to the HDTV).
  • High Definition Multimedia Interface which sends encrypted video data to HDTV.
  • the HDTV receives the encrypted video data sent by the server through HDMI, and then decrypts the encrypted video data to obtain the original video data by using the HDCP decryption protocol, thereby playing the original video data on the HDTV, so that the user can watch the video on the HDTV.
  • the technician when the HDTV is shipped from the factory, the technician will build a decryption protocol in the HDTV.
  • the HDTV receives the encrypted video data sent by the server through the HDMI interface, it will decrypt the encrypted video data by using the built-in decryption protocol.
  • the server can select one encryption protocol from a plurality of different encryption protocols, and encrypt the original video data by using the selected encryption protocol; Among them, each encryption protocol matches a decryption protocol.
  • the encrypted video data After encrypting the original video data to obtain the encrypted video data by using an encryption protocol, if the encrypted video data needs to be decrypted, the encrypted video data must be decrypted by using a decryption protocol matching the encryption protocol, so that the encrypted video data can be decrypted successfully. Further, the original video data is obtained; if the encrypted video data is decrypted by using a decryption protocol that does not match the encryption protocol, the decryption of the encrypted video data fails, and the original video data cannot be obtained.
  • the HDTV cannot decrypt the encrypted video data successfully, and the original video data cannot be obtained. In turn, the original video data cannot be played, making it impossible for users to watch the video on the HDTV.
  • the present invention provides a video decryption method and apparatus.
  • a video decryption method which is applied to a terminal, and the method includes:
  • the obtaining the target decryption protocol that matches the encryption protocol includes:
  • a target decryption protocol matching the encryption protocol is obtained from the server.
  • the determining, by the encryption, the encryption protocol used to encrypt the original video data to obtain the encrypted video data includes:
  • the determining, by the encryption, the encryption protocol used to encrypt the original video data to obtain the encrypted video data includes:
  • the attribute information at least carrying a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
  • the obtaining the target decryption protocol that matches the encryption protocol includes:
  • a decryption protocol corresponding to the protocol identifier is looked up in the correspondence.
  • a video decryption apparatus which is applied to a terminal, and the apparatus includes:
  • a receiving module configured to receive encrypted video data transmitted to the terminal by using a high-definition multimedia interface HDMI, where the encrypted video data is obtained by encrypting original video data;
  • a determining module configured to determine an encryption protocol used by the original video data to obtain the encrypted video data
  • An obtaining module configured to acquire a target decryption protocol that matches the encryption protocol
  • a decryption module configured to decrypt the encrypted video data by using the target decryption protocol to obtain the original video data.
  • the obtaining module includes:
  • a first searching unit configured to search, in a plurality of different decryption protocols stored locally, a target decryption protocol that matches the encryption protocol;
  • a first acquiring unit configured to acquire, from the server, a target decryption protocol that matches the encryption protocol.
  • the determining module includes:
  • a second acquiring unit configured to acquire a preset encryption field in the encrypted video data
  • a third acquiring unit configured to acquire content stored in the preset encryption field and use the protocol identifier as an encryption protocol
  • a first determining unit configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  • the determining module includes:
  • a determining unit configured to determine whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used by the original video data to obtain the encrypted video data;
  • an extracting unit configured to: when receiving the attribute information, extract, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
  • a second determining unit configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  • the obtaining module includes:
  • a fourth acquiring unit configured to acquire a correspondence between a locally stored protocol identifier and a decryption protocol
  • a second searching unit configured to search, in the correspondence, a decryption protocol corresponding to the protocol identifier.
  • a terminal where the terminal includes:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the embodiment of the present application provides a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium can store a computer program, and when executed, the program can implement a part of the video decryption method described above or All steps.
  • An embodiment of the present application provides a computer program product, where the computer program product is stored in a non-transitory state.
  • a computer program on a computer readable storage medium the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the video decryption method of the embodiments of the present application.
  • the encrypted video data transmitted to the terminal through the HDMI is received, and the encrypted video data is obtained by encrypting the original video data; determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data; acquiring and encrypting The protocol matching target decryption protocol; decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
  • the target decryption protocol matching the encryption protocol is obtained.
  • the target decryption protocol matching the encryption protocol may be directly obtained from the local, and if the target decryption protocol matching the encryption protocol is not stored locally, the server may be slaved from the server. The target decryption protocol is obtained; finally, when the encrypted video data is decrypted by using the target decryption protocol, the decryption is successful, and the original video data can be obtained, thereby ensuring that the user can watch the video on the terminal.
  • FIG. 1 is a flowchart of a video decryption method according to an exemplary embodiment
  • FIG. 2 is a block diagram of a video decryption apparatus according to an exemplary embodiment
  • FIG. 3 is a block diagram of a terminal according to an exemplary embodiment
  • FIG. 4 is a schematic diagram of a hardware structure of a device for decrypting a video provided by an embodiment of the present application.
  • FIG. 1 is a flowchart of a video decryption method according to an exemplary embodiment. As shown in FIG. 1 , the method is used in a terminal, and the method includes the following steps.
  • step S101 the encrypted video data transmitted to the terminal through the HDMI is received, and the encrypted video data is obtained by encrypting the original video data;
  • the terminal may be a terminal for playing high-definition video such as a high-definition television.
  • the terminal When the user needs to use the terminal to watch the video, if the terminal does not locally store the original video data of the video, the terminal needs to obtain the original video data of the video from the server.
  • the terminal needs to send an acquisition request for the video data of the video to the server; the acquisition request carries the video identifier of the video;
  • the server After the server receives the acquisition request, the server extracts the video identifier from the acquisition request, and obtains the original video data of the video according to the video identifier of the video; in order to prevent the original video data from being passed to the terminal in the process of being transmitted to the terminal Stealing, the server needs to encrypt the original video data by using an encryption protocol to obtain encrypted video data, and then send the encrypted video data to the terminal through HDMI; the terminal receives the encrypted video data sent by the server through the HDMI.
  • step S102 determining an encryption protocol used to encrypt the original video data to obtain encrypted video data
  • the encryption protocol used to encrypt the original video data to obtain the encrypted video data may be determined in the following two manners, including:
  • the first method obtaining a preset encryption field in the encrypted video data; wherein, after the server encrypts the original video data by using the encryption protocol to obtain the encrypted video data, the server stores the used encrypted field in the encrypted video data.
  • the protocol identifier of the encryption protocol can be the version number of the encryption protocol or the generation time of the encryption protocol.
  • the generation time of the encryption protocol is the date when the technician creates the encryption protocol. Therefore, when the preset encryption field is obtained in the encrypted video data, the terminal may obtain the content stored in the preset encryption field and use the protocol identifier as the encryption protocol; and determine the encryption protocol corresponding to the protocol identifier to encrypt the original video data. Obtain the encryption protocol utilized by the encrypted video data.
  • the server before sending the encrypted video data to the terminal, the server first sends the attribute information of the encrypted video data to the terminal; the attribute information carries at least the encrypted video data obtained by encrypting the original video data.
  • the protocol identifier of the encryption protocol used to encrypt the original video data to obtain the encrypted video data is extracted from the attribute information.
  • step S103 acquiring a target decryption protocol that matches the encryption protocol
  • different encryption protocols match different decryption protocols.
  • the protocol identifier of the encryption protocol is the same as the protocol identifier of the decryption protocol.
  • the technician creates an encryption protocol
  • the technician creates a decryption protocol that matches the encryption protocol.
  • the encrypted video data is obtained.
  • the encrypted video data needs to be decrypted by using the created decryption protocol matching the encryption protocol to obtain the original video data.
  • the technician may have created a number of different encryption protocols. For example, after creating the v1.0 version of the encryption protocol, the v1.0 version of the encryption protocol is upgraded to obtain the v2.0 version of the encryption protocol, for v2. The 0 version of the encryption protocol is upgraded to obtain the v3.0 version of the encryption protocol and so on. At the same time, the technician will create a different decryption protocol.
  • the terminal Whenever the technician creates a decryption protocol, the terminal composes the created protocol identifier of the decryption protocol and the created decryption protocol into a record and stores it in the correspondence between the local storage protocol identifier and the decryption protocol.
  • the terminal may obtain a correspondence between the locally stored protocol identifier and the decryption protocol; since the protocol identifier of the encryption protocol and the protocol identifier of the decryption protocol matching the encryption protocol are the same, A decryption protocol corresponding to the protocol identifier of the encryption protocol is searched for in the correspondence relationship and used as a target decryption protocol.
  • the terminal locally stores a decryption protocol that is created by the technician in the history process and matches each encryption protocol. Therefore, in this step, the terminal may store multiple different decryptions locally. Finding a target decryption protocol that matches the encryption protocol in the protocol;
  • the terminal may obtain the encryption protocol from the server. Match the target decryption protocol.
  • step S104 the encrypted video data is decrypted using the target decryption protocol to obtain original video data.
  • the encrypted video data transmitted to the terminal through the HDMI is received, and the encrypted video data is obtained by encrypting the original video data; determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data; acquiring and encrypting The protocol matching target decryption protocol; decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
  • the encrypted video data is encrypted, and the encryption used to encrypt the original video data to obtain the encrypted video data is determined.
  • the target decryption protocol matching the encryption protocol is obtained, wherein if the target decryption protocol matching the encryption protocol is stored locally, the target decryption protocol may be directly obtained locally, if the local is not stored and The target decryption protocol matched by the encryption protocol can obtain the target decryption protocol from the server; finally, the decryption succeeds when decrypting the encrypted video data by using the target decryption protocol, and the original video data can be obtained, thereby ensuring that the user can watch on the terminal. video.
  • FIG. 2 is a block diagram of a video decryption apparatus, according to an exemplary embodiment.
  • the apparatus includes:
  • the receiving module 11 is configured to receive encrypted video data that is transmitted to the terminal by using a high-definition multimedia interface HDMI, where the encrypted video data is obtained by encrypting original video data;
  • a determining module 12 configured to determine an encryption protocol used by the original video data to obtain the encrypted video data
  • the obtaining module 13 is configured to obtain a target decryption protocol that matches the encryption protocol
  • the decryption module 14 is configured to decrypt the encrypted video data by using the target decryption protocol to obtain the original video data.
  • the obtaining module 13 includes:
  • a first searching unit configured to search, in a plurality of different decryption protocols stored locally, a target decryption protocol that matches the encryption protocol;
  • a first acquiring unit configured to acquire, from the server, a target decryption protocol that matches the encryption protocol.
  • the determining module 12 includes:
  • a second acquiring unit configured to acquire a preset encryption field in the encrypted video data
  • a third acquiring unit configured to acquire content stored in the preset encryption field and use the protocol identifier as an encryption protocol
  • a first determining unit configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  • the determining module 12 includes:
  • a determining unit configured to determine whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used by the original video data to obtain the encrypted video data;
  • an extracting unit configured to: when receiving the attribute information, extract, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
  • a second determining unit configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  • the obtaining module 13 includes:
  • a fourth acquiring unit configured to acquire a correspondence between a locally stored protocol identifier and a decryption protocol
  • a second searching unit configured to search, in the correspondence, a decryption protocol corresponding to the protocol identifier.
  • the encrypted video data transmitted to the terminal through the HDMI is received, and the encrypted video data is obtained by encrypting the original video data; determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data; acquiring and encrypting The protocol matching target decryption protocol; decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
  • the target decryption protocol matching the encryption protocol is obtained.
  • the target decryption protocol matching the encryption protocol may be directly obtained from the local, and if the target decryption protocol matching the encryption protocol is not stored locally, the server may be slaved from the server. The target decryption protocol is obtained; finally, when the encrypted video data is decrypted by using the target decryption protocol, the decryption is successful, and the original video data can be obtained, thereby ensuring that the user can watch the video on the terminal.
  • FIG. 3 is a block diagram of an application installation apparatus, according to an exemplary embodiment.
  • the apparatus includes:
  • a memory 22 for storing instructions executable by the processor 21;
  • the processor 21 is configured to:
  • the processor 21 is configured to:
  • a target decryption protocol matching the encryption protocol is obtained from the server.
  • the processor 21 is configured to:
  • the processor 21 is configured to:
  • the attribute information at least carrying a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
  • the processor 21 is configured to:
  • a decryption protocol corresponding to the protocol identifier is looked up in the correspondence.
  • the embodiment of the present application further provides a non-transitory computer readable storage medium, the non-transitory computer readable and stored
  • the storage medium may store a program that, when executed, may implement some or all of the various implementations of the method of performing a video decryption provided by any of the preceding embodiments.
  • FIG. 4 is a schematic structural diagram of hardware of an electronic device according to a method for decrypting video provided by an embodiment of the present application. As shown in FIG. 4, the device includes:
  • processors 410 and memory 420 One or more processors 410 and memory 420, one processor 410 is exemplified in FIG.
  • the apparatus for performing the method of video decryption may further include: an input device 430 and an output device 440.
  • the processor 410, the memory 420, the input device 430, and the output device 440 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 420 is used as a non-transitory computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as a program instruction corresponding to the video decryption method in the embodiment of the present application. / module.
  • the processor 410 executes various functional applications and data processing of the electronic device by executing non-volatile software programs, instructions, and modules stored in the memory 420, that is, a method of implementing video decryption of the above-described method embodiments.
  • the memory 420 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the video decrypted device, and the like.
  • memory 420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 420 can optionally include memory remotely located relative to processor 410, which can be connected to the device for video decryption over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Input device 430 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the device for video decryption.
  • Output device 440 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 420, and when executed by the one or more processors 410, perform a method of video decryption in any of the above method embodiments.
  • the electronic device of the embodiment of the invention exists in various forms, including but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, preview players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the server consists of a processor, a hard disk, a memory, a system bus, etc.
  • the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.

Abstract

Provided are a video decryption method and device. In the present invention, regardless of which encryption protocol is used to encrypt original video data so as to obtain encrypted video data, when an encryption protocol used to encrypt the original video data so as to obtain the encrypted video data is determined, a target decryption protocol matching the encryption protocol is acquired, wherein if a target decryption protocol matching the encryption protocol is pre-stored locally, the target decryption protocol can be directly acquired locally, and if a target decryption protocol matching the encryption protocol is not stored locally, the target decryption protocol can be acquired from a server. Finally, when the target decryption protocol is used to decrypt the encrypted video data, decryption can certainly succeed, and the original video data can certainly be obtained, so as to ensure that a user can watch a video on a terminal.

Description

视频解密方法及装置Video decryption method and device
本申请要求于2016年6月1日提交中国专利局、申请号为2016103797429、发明名称为“视频解密方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种视频解密的方法及装置。The present invention relates to the field of computer technologies, and in particular, to a video decryption method and apparatus.
背景技术Background technique
随着技术的飞速发展,用户常常利用高清电视观看视频,当用户需要利用高清电视观看视频时,高清电视需要从服务器中获取用户需要观看的视频的原始视频数据。With the rapid development of technology, users often use HDTV to watch video. When users need to watch video on HDTV, HDTV needs to obtain the original video data of the video that the user needs to watch from the server.
其中,服务器在向高清电视发送原始视频数据时,需要先将原始视频数据利用HDCP(High-bandwidth Digital Content Protection,高带宽数字内容保护技术)加密协议进行加密得到加密视频数据,然后再通过HDMI(High Definition Multimedia Interface,高清晰度多媒体接口)向高清电视发送加密视频数据。高清电视通过HDMI接收服务器发送的加密视频数据,然后利用HDCP解密协议对加密视频数据解密得到原始视频数据,进而在高清电视上播放原始视频数据,如此用户就可以在高清电视上观看视频。The server needs to encrypt the original video data by using the HDCP (High-bandwidth Digital Content Protection) encryption protocol to obtain the encrypted video data, and then pass the HDMI (in the case of transmitting the original video data to the HDTV). High Definition Multimedia Interface, which sends encrypted video data to HDTV. The HDTV receives the encrypted video data sent by the server through HDMI, and then decrypts the encrypted video data to obtain the original video data by using the HDCP decryption protocol, thereby playing the original video data on the HDTV, so that the user can watch the video on the HDTV.
其中,高清电视在出厂的时候,技术人员会在高清电视中内置一个解密协议,当高清电视通过HDMI接口接收到服务器发送的加密视频数据时,会利用内置的解密协议对加密视频数据解密。Among them, when the HDTV is shipped from the factory, the technician will build a decryption protocol in the HDTV. When the HDTV receives the encrypted video data sent by the server through the HDMI interface, it will decrypt the encrypted video data by using the built-in decryption protocol.
然而,当前,服务器对原始视频数据加密时能够利用的加密协议有多个,也即,服务器可以从多个不同的加密协议中选择一个加密协议,并利用选择的加密协议对原始视频数据加密;其中,每一个加密协议都与一个解密协议匹配。However, currently, there are multiple encryption protocols that the server can utilize when encrypting the original video data, that is, the server can select one encryption protocol from a plurality of different encryption protocols, and encrypt the original video data by using the selected encryption protocol; Among them, each encryption protocol matches a decryption protocol.
当利用一个加密协议对原始视频数据加密得到加密视频数据之后,如果需要对加密视频数据解密,必须利用与该加密协议相匹配的解密协议对加密视频数据解密,这样才能对加密视频数据解密成功,进而得到原始视频数据;如果利用与该加密协议不匹配的解密协议对加密视频数据解密,就会对加密视频数据解密失败,也就无法得到原始视频数据。 After encrypting the original video data to obtain the encrypted video data by using an encryption protocol, if the encrypted video data needs to be decrypted, the encrypted video data must be decrypted by using a decryption protocol matching the encryption protocol, so that the encrypted video data can be decrypted successfully. Further, the original video data is obtained; if the encrypted video data is decrypted by using a decryption protocol that does not match the encryption protocol, the decryption of the encrypted video data fails, and the original video data cannot be obtained.
因此,如果高清电视中内置的该一个解密协议与对原始视频数据加密得到加密视频数据所利用的加密协议不匹配,则高清电视就无法对加密视频数据解密成功,也就无法得到原始视频数据,进而无法播放原始视频数据,导致用户无法在高清电视上观看视频。Therefore, if the one decryption protocol built in the HDTV does not match the encryption protocol used to encrypt the original video data to obtain the encrypted video data, the HDTV cannot decrypt the encrypted video data successfully, and the original video data cannot be obtained. In turn, the original video data cannot be played, making it impossible for users to watch the video on the HDTV.
发明内容Summary of the invention
为克服相关技术中存在的问题,本发明提供一种视频解密方法及装置。To overcome the problems in the related art, the present invention provides a video decryption method and apparatus.
根据本发明实施例的第一方面,提供一种视频解密方法,应用于终端,所述方法包括:According to a first aspect of the embodiments of the present invention, a video decryption method is provided, which is applied to a terminal, and the method includes:
接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;Receiving encrypted video data transmitted to the terminal through a high definition multimedia interface HDMI, the encrypted video data being obtained by encrypting original video data;
确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;Determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data;
获取与所述加密协议相匹配的目标解密协议;Obtaining a target decryption protocol that matches the encryption protocol;
利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。Decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
其中,所述获取与所述加密协议相匹配的目标解密协议,包括:The obtaining the target decryption protocol that matches the encryption protocol includes:
在本地存储的多个不同的解密协议中查找与所述加密协议相匹配的目标解密协议;Finding a target decryption protocol that matches the encryption protocol among a plurality of different decryption protocols stored locally;
或者,or,
从服务器中获取与所述加密协议相匹配的目标解密协议。A target decryption protocol matching the encryption protocol is obtained from the server.
其中,所述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括:The determining, by the encryption, the encryption protocol used to encrypt the original video data to obtain the encrypted video data, includes:
获取所述加密视频数据中预设加密字段;Obtaining a preset encryption field in the encrypted video data;
获取所述预设加密字段中存储的内容并作为加密协议的协议标识;Obtaining the content stored in the preset encryption field and using the protocol identifier of the encryption protocol;
将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
其中,所述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括: The determining, by the encryption, the encryption protocol used to encrypt the original video data to obtain the encrypted video data, includes:
判断是否接收到所述加密视频数据的属性信息;所述属性信息至少携带对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;Determining whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
当接收到所述属性信息时,从所述属性信息中提取出对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;When receiving the attribute information, extracting, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
其中,所述获取与所述加密协议相匹配的目标解密协议,包括:The obtaining the target decryption protocol that matches the encryption protocol includes:
获取本地存储的协议标识与解密协议之间的对应关系;Obtaining a correspondence between a locally stored protocol identifier and a decryption protocol;
在所述对应关系中查找与所述协议标识相对应的解密协议。A decryption protocol corresponding to the protocol identifier is looked up in the correspondence.
根据本发明实施例的第二方面,提供一种视频解密装置,应用于终端,所述装置包括:According to a second aspect of the embodiments of the present invention, a video decryption apparatus is provided, which is applied to a terminal, and the apparatus includes:
接收模块,用于接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;a receiving module, configured to receive encrypted video data transmitted to the terminal by using a high-definition multimedia interface HDMI, where the encrypted video data is obtained by encrypting original video data;
确定模块,用于确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;a determining module, configured to determine an encryption protocol used by the original video data to obtain the encrypted video data;
获取模块,用于获取与所述加密协议相匹配的目标解密协议;An obtaining module, configured to acquire a target decryption protocol that matches the encryption protocol;
解密模块,用于利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。And a decryption module, configured to decrypt the encrypted video data by using the target decryption protocol to obtain the original video data.
其中,所述获取模块包括:The obtaining module includes:
第一查找单元,用于在本地存储的多个不同的解密协议中查找与所述加密协议相匹配的目标解密协议;a first searching unit, configured to search, in a plurality of different decryption protocols stored locally, a target decryption protocol that matches the encryption protocol;
或者,or,
第一获取单元,用于从服务器中获取与所述加密协议相匹配的目标解密协议。And a first acquiring unit, configured to acquire, from the server, a target decryption protocol that matches the encryption protocol.
其中,所述确定模块包括:The determining module includes:
第二获取单元,用于获取所述加密视频数据中预设加密字段;a second acquiring unit, configured to acquire a preset encryption field in the encrypted video data;
第三获取单元,用于获取所述预设加密字段中存储的内容并作为加密协议的协议标识; a third acquiring unit, configured to acquire content stored in the preset encryption field and use the protocol identifier as an encryption protocol;
第一确定单元,用于将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And a first determining unit, configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
其中,所述确定模块包括:The determining module includes:
判断单元,用于判断是否接收到所述加密视频数据的属性信息;所述属性信息至少携带对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;a determining unit, configured to determine whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used by the original video data to obtain the encrypted video data;
提取单元,用于当接收到所述属性信息时,从所述属性信息中提取出对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;And an extracting unit, configured to: when receiving the attribute information, extract, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
第二确定单元,用于将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And a second determining unit, configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
其中,所述获取模块包括:The obtaining module includes:
第四获取单元,用于获取本地存储的协议标识与解密协议之间的对应关系;a fourth acquiring unit, configured to acquire a correspondence between a locally stored protocol identifier and a decryption protocol;
第二查找单元,用于在所述对应关系中查找与所述协议标识相对应的解密协议。And a second searching unit, configured to search, in the correspondence, a decryption protocol corresponding to the protocol identifier.
根据本发明实施例的第三方面,提供一种终端,所述终端包括:According to a third aspect of the embodiments of the present invention, a terminal is provided, where the terminal includes:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为:Wherein the processor is configured to:
接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;Receiving encrypted video data transmitted to the terminal through a high definition multimedia interface HDMI, the encrypted video data being obtained by encrypting original video data;
确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;Determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data;
获取与所述加密协议相匹配的目标解密协议;Obtaining a target decryption protocol that matches the encryption protocol;
利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。Decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
本申请实施例提供了一种非暂态计算机可读存储介质,其中,该非暂态计算机可读存储介质可存储有计算机程序,该程序执行时可实现上述的一种视频解密方法的部分或全部步骤。The embodiment of the present application provides a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium can store a computer program, and when executed, the program can implement a part of the video decryption method described above or All steps.
本申请实施例提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态 计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行本申请实施例上述视频解密方法。An embodiment of the present application provides a computer program product, where the computer program product is stored in a non-transitory state. A computer program on a computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the video decryption method of the embodiments of the present application.
本发明的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:
在本发明实施例中,接收通过HDMI传输给终端的加密视频数据,加密视频数据是对原始视频数据加密得到的;确定对原始视频数据加密得到加密视频数据所利用的加密协议;获取与该加密协议相匹配的目标解密协议;利用目标解密协议对加密视频数据解密得到原始视频数据。如此,无论加密视频数据是利用何种加密协议对原始视频数据加密得到的,当确定出对原始视频数据加密得到加密视频数据所利用的加密协议时,获取与该加密协议相匹配的目标解密协议,其中,如果事先在本地存储了与该加密协议相匹配的目标解密协议,则可以直接从本地获取目标解密协议,如果本地未存储与该加密协议相匹配的目标解密协议,则可以从服务器中获取目标解密协议;最后利用目标解密协议对加密视频数据解密时一定能解密成功,一定能够得到原始视频数据,进而保证用户能够在终端上观看视频。In the embodiment of the present invention, the encrypted video data transmitted to the terminal through the HDMI is received, and the encrypted video data is obtained by encrypting the original video data; determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data; acquiring and encrypting The protocol matching target decryption protocol; decrypting the encrypted video data using the target decryption protocol to obtain the original video data. In this way, regardless of which encryption protocol is used to encrypt the original video data, when the encryption protocol used to encrypt the original video data to obtain the encrypted video data is determined, the target decryption protocol matching the encryption protocol is obtained. Wherein, if the target decryption protocol matching the encryption protocol is stored locally beforehand, the target decryption protocol may be directly obtained from the local, and if the target decryption protocol matching the encryption protocol is not stored locally, the server may be slaved from the server. The target decryption protocol is obtained; finally, when the encrypted video data is decrypted by using the target decryption protocol, the decryption is successful, and the original video data can be obtained, thereby ensuring that the user can watch the video on the terminal.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in the specification of FIG
图1是根据一示例性实施例示出的一种视频解密方法的流程图;FIG. 1 is a flowchart of a video decryption method according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种视频解密装置的框图;FIG. 2 is a block diagram of a video decryption apparatus according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种终端的框图;FIG. 3 is a block diagram of a terminal according to an exemplary embodiment;
图4是本申请实施例提供的视频解密方法的设备的硬件结构示意图。4 is a schematic diagram of a hardware structure of a device for decrypting a video provided by an embodiment of the present application.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。 Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
图1是根据一示例性实施例示出的一种视频解密方法的流程图,如图1所示,该方法用于终端中,该方法包括以下步骤。FIG. 1 is a flowchart of a video decryption method according to an exemplary embodiment. As shown in FIG. 1 , the method is used in a terminal, and the method includes the following steps.
在步骤S101中,接收通过HDMI传输给终端的加密视频数据,加密视频数据是对原始视频数据加密得到的;In step S101, the encrypted video data transmitted to the terminal through the HDMI is received, and the encrypted video data is obtained by encrypting the original video data;
在本发明实施例中,终端可以为高清电视等用于播放高清视频的终端。In the embodiment of the present invention, the terminal may be a terminal for playing high-definition video such as a high-definition television.
当用户需要利用终端观看视频时,如果终端本地未存储有该视频的原始视频数据,则终端需要从服务器中获取该视频的原始视频数据。其中,终端需要向服务器发送用于视频的视频数据的获取请求;该获取请求携带该视频的视频标识;When the user needs to use the terminal to watch the video, if the terminal does not locally store the original video data of the video, the terminal needs to obtain the original video data of the video from the server. The terminal needs to send an acquisition request for the video data of the video to the server; the acquisition request carries the video identifier of the video;
当服务器接受到该获取请求之后,服务器从该获取请求中提取出该视频标识,根据该视频的视频标识获取该视频的原始视频数据;为了避免原始视频数据在传输给终端的过程中被不法分子窃取,服务器需要利用加密协议对原始视频数据加密得到加密视频数据,然后通过HDMI向终端发送加密视频数据;终端通过HDMI接收服务器发送的加密视频数据。After the server receives the acquisition request, the server extracts the video identifier from the acquisition request, and obtains the original video data of the video according to the video identifier of the video; in order to prevent the original video data from being passed to the terminal in the process of being transmitted to the terminal Stealing, the server needs to encrypt the original video data by using an encryption protocol to obtain encrypted video data, and then send the encrypted video data to the terminal through HDMI; the terminal receives the encrypted video data sent by the server through the HDMI.
在步骤S102中,确定对原始视频数据加密得到加密视频数据所利用的加密协议;In step S102, determining an encryption protocol used to encrypt the original video data to obtain encrypted video data;
在本发明实施例中,可以通过如下两种方式来确定出对原始视频数据加密得到加密视频数据所利用的加密协议,包括:In the embodiment of the present invention, the encryption protocol used to encrypt the original video data to obtain the encrypted video data may be determined in the following two manners, including:
第一种方式:获取加密视频数据中预设加密字段;其中,当服务器在利用加密协议对原始视频数据加密得到加密视频数据之后,会在加密视频数据中的预设加密字段中存储利用的该加密协议的协议标识,协议标识可以为加密协议的版本号或者加密协议的生成时间等,加密协议的生成时间为技术人员创建出加密协议的日期。因此,当获取到加密视频数据中预设加密字段时,终端可以获取预设加密字段中存储的内容并作为加密协议的协议标识;并将该协议标识对应的加密协议确定为对原始视频数据加密得到加密视频数据所利用的加密协议。The first method: obtaining a preset encryption field in the encrypted video data; wherein, after the server encrypts the original video data by using the encryption protocol to obtain the encrypted video data, the server stores the used encrypted field in the encrypted video data. The protocol identifier of the encryption protocol. The protocol identifier can be the version number of the encryption protocol or the generation time of the encryption protocol. The generation time of the encryption protocol is the date when the technician creates the encryption protocol. Therefore, when the preset encryption field is obtained in the encrypted video data, the terminal may obtain the content stored in the preset encryption field and use the protocol identifier as the encryption protocol; and determine the encryption protocol corresponding to the protocol identifier to encrypt the original video data. Obtain the encryption protocol utilized by the encrypted video data.
第二种方式,在本发明另一实施例中,服务器在向终端发送加密视频数据之前,会先向终端发送加密视频数据的属性信息;属性信息至少携带对原始视频数据加密得到加密视频数据所利用的加密协议的协议标识。因此,终端可以判断是否接收到加密视频数据的属性信息;当接收到该属性信息时,从该属性信息中提取出对原始视频数据加密得到加密视频数据所利用的加密协议的协议标识。In a second mode, in another embodiment of the present invention, before sending the encrypted video data to the terminal, the server first sends the attribute information of the encrypted video data to the terminal; the attribute information carries at least the encrypted video data obtained by encrypting the original video data. The protocol identifier of the encryption protocol utilized. Therefore, the terminal can determine whether the attribute information of the encrypted video data is received. When the attribute information is received, the protocol identifier of the encryption protocol used to encrypt the original video data to obtain the encrypted video data is extracted from the attribute information.
在步骤S103中,获取与该加密协议相匹配的目标解密协议; In step S103, acquiring a target decryption protocol that matches the encryption protocol;
其中,在本发明实施例中,不同的加密协议匹配不同的解密协议。在相互匹配的一组加密协议和解密协议中,加密协议的协议标识和解密协议的协议标识相同。Wherein, in the embodiment of the present invention, different encryption protocols match different decryption protocols. In a set of encryption protocols and decryption protocols that match each other, the protocol identifier of the encryption protocol is the same as the protocol identifier of the decryption protocol.
当技术人员创建出一个加密协议时,技术人员就会创建出与该加密协议相匹配的解密协议,如此,当利用创建出的该加密协议对原始视频数据加密得到加密视频数据之后,如果要还原得到原始视频数据,需要利用创建出的与该加密协议相匹配的解密协议对加密视频数据解密,才能得到原始视频数据。When the technician creates an encryption protocol, the technician creates a decryption protocol that matches the encryption protocol. Thus, when the original video data is encrypted using the created encryption protocol, the encrypted video data is obtained. To obtain the original video data, the encrypted video data needs to be decrypted by using the created decryption protocol matching the encryption protocol to obtain the original video data.
在历史过程中技术人员可能创建出了多个不同的加密协议,例如创建出v1.0版本的加密协议之后,对v1.0版本的加密协议升级得到v2.0版本的加密协议,对v2.0版本的加密协议升级得到v3.0版本的加密协议等等。同时,技术人员就会创建多出个不同的解密协议。During the history, the technician may have created a number of different encryption protocols. For example, after creating the v1.0 version of the encryption protocol, the v1.0 version of the encryption protocol is upgraded to obtain the v2.0 version of the encryption protocol, for v2. The 0 version of the encryption protocol is upgraded to obtain the v3.0 version of the encryption protocol and so on. At the same time, the technician will create a different decryption protocol.
每当技术人员创建出一个解密协议,终端就会将创建出的该解密协议的协议标识和创建出的该解密协议组成一条记录并存储在本地存储协议标识与解密协议之间的对应关系中。Whenever the technician creates a decryption protocol, the terminal composes the created protocol identifier of the decryption protocol and the created decryption protocol into a record and stores it in the correspondence between the local storage protocol identifier and the decryption protocol.
因此,在本步骤中,终端可以获取本地存储的协议标识与解密协议之间的对应关系;由于该加密协议的协议标识和与该加密协议相匹配的解密协议的协议标识相同,所以可以在该对应关系中查找与该加密协议的协议标识相对应的解密协议,并作为目标解密协议。Therefore, in this step, the terminal may obtain a correspondence between the locally stored protocol identifier and the decryption protocol; since the protocol identifier of the encryption protocol and the protocol identifier of the decryption protocol matching the encryption protocol are the same, A decryption protocol corresponding to the protocol identifier of the encryption protocol is searched for in the correspondence relationship and used as a target decryption protocol.
在本发明另一实施例中,终端本地存储了技术人员在历史过程中创建的与每一个加密协议相匹配的解密协议,因此,在本步骤中,终端可以在本地存储的多个不同的解密协议中查找与加密协议相匹配的目标解密协议;In another embodiment of the present invention, the terminal locally stores a decryption protocol that is created by the technician in the history process and matches each encryption protocol. Therefore, in this step, the terminal may store multiple different decryptions locally. Finding a target decryption protocol that matches the encryption protocol in the protocol;
在本发明又一实施例中,如果终端本地未存储技术人员在历史过程中创建的与每一个加密协议相匹配的解密协议,则在本步骤中,终端可以从服务器中获取与该加密协议相匹配的目标解密协议。In another embodiment of the present invention, if the terminal does not locally store the decryption protocol that is created by the technician in the history process and matches each encryption protocol, in this step, the terminal may obtain the encryption protocol from the server. Match the target decryption protocol.
在步骤S104中,利用目标解密协议对加密视频数据解密得到原始视频数据。In step S104, the encrypted video data is decrypted using the target decryption protocol to obtain original video data.
在本发明实施例中,接收通过HDMI传输给终端的加密视频数据,加密视频数据是对原始视频数据加密得到的;确定对原始视频数据加密得到加密视频数据所利用的加密协议;获取与该加密协议相匹配的目标解密协议;利用目标解密协议对加密视频数据解密得到原始视频数据。如此,无论加密视频数据是利用何种加密协议对原始视频数据加密得到的,当确定出对原始视频数据加密得到加密视频数据所利用的加密 协议时,获取与该加密协议相匹配的目标解密协议,其中,如果事先在本地存储了与该加密协议相匹配的目标解密协议,则可以直接从本地获取目标解密协议,如果本地未存储与该加密协议相匹配的目标解密协议,则可以从服务器中获取目标解密协议;最后利用目标解密协议对加密视频数据解密时一定能解密成功,一定能够得到原始视频数据,进而保证用户能够在终端上观看视频。In the embodiment of the present invention, the encrypted video data transmitted to the terminal through the HDMI is received, and the encrypted video data is obtained by encrypting the original video data; determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data; acquiring and encrypting The protocol matching target decryption protocol; decrypting the encrypted video data using the target decryption protocol to obtain the original video data. Thus, regardless of which encryption protocol the encrypted video data is encrypted with, the original video data is encrypted, and the encryption used to encrypt the original video data to obtain the encrypted video data is determined. When the protocol is obtained, the target decryption protocol matching the encryption protocol is obtained, wherein if the target decryption protocol matching the encryption protocol is stored locally, the target decryption protocol may be directly obtained locally, if the local is not stored and The target decryption protocol matched by the encryption protocol can obtain the target decryption protocol from the server; finally, the decryption succeeds when decrypting the encrypted video data by using the target decryption protocol, and the original video data can be obtained, thereby ensuring that the user can watch on the terminal. video.
图2是根据一示例性实施例示出的一种视频解密装置的框图。参照图2,该装置包括:FIG. 2 is a block diagram of a video decryption apparatus, according to an exemplary embodiment. Referring to Figure 2, the apparatus includes:
接收模块11,用于接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;The receiving module 11 is configured to receive encrypted video data that is transmitted to the terminal by using a high-definition multimedia interface HDMI, where the encrypted video data is obtained by encrypting original video data;
确定模块12,用于确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;a determining module 12, configured to determine an encryption protocol used by the original video data to obtain the encrypted video data;
获取模块13,用于获取与所述加密协议相匹配的目标解密协议;The obtaining module 13 is configured to obtain a target decryption protocol that matches the encryption protocol;
解密模块14,用于利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。The decryption module 14 is configured to decrypt the encrypted video data by using the target decryption protocol to obtain the original video data.
其中,所述获取模块13包括:The obtaining module 13 includes:
第一查找单元,用于在本地存储的多个不同的解密协议中查找与所述加密协议相匹配的目标解密协议;a first searching unit, configured to search, in a plurality of different decryption protocols stored locally, a target decryption protocol that matches the encryption protocol;
或者,or,
第一获取单元,用于从服务器中获取与所述加密协议相匹配的目标解密协议。And a first acquiring unit, configured to acquire, from the server, a target decryption protocol that matches the encryption protocol.
其中,所述确定模块12包括:The determining module 12 includes:
第二获取单元,用于获取所述加密视频数据中预设加密字段;a second acquiring unit, configured to acquire a preset encryption field in the encrypted video data;
第三获取单元,用于获取所述预设加密字段中存储的内容并作为加密协议的协议标识;a third acquiring unit, configured to acquire content stored in the preset encryption field and use the protocol identifier as an encryption protocol;
第一确定单元,用于将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And a first determining unit, configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
其中,所述确定模块12包括: The determining module 12 includes:
判断单元,用于判断是否接收到所述加密视频数据的属性信息;所述属性信息至少携带对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;a determining unit, configured to determine whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used by the original video data to obtain the encrypted video data;
提取单元,用于当接收到所述属性信息时,从所述属性信息中提取出对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;And an extracting unit, configured to: when receiving the attribute information, extract, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
第二确定单元,用于将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And a second determining unit, configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
其中,所述获取模块13包括:The obtaining module 13 includes:
第四获取单元,用于获取本地存储的协议标识与解密协议之间的对应关系;a fourth acquiring unit, configured to acquire a correspondence between a locally stored protocol identifier and a decryption protocol;
第二查找单元,用于在所述对应关系中查找与所述协议标识相对应的解密协议。And a second searching unit, configured to search, in the correspondence, a decryption protocol corresponding to the protocol identifier.
在本发明实施例中,接收通过HDMI传输给终端的加密视频数据,加密视频数据是对原始视频数据加密得到的;确定对原始视频数据加密得到加密视频数据所利用的加密协议;获取与该加密协议相匹配的目标解密协议;利用目标解密协议对加密视频数据解密得到原始视频数据。如此,无论加密视频数据是利用何种加密协议对原始视频数据加密得到的,当确定出对原始视频数据加密得到加密视频数据所利用的加密协议时,获取与该加密协议相匹配的目标解密协议,其中,如果事先在本地存储了与该加密协议相匹配的目标解密协议,则可以直接从本地获取目标解密协议,如果本地未存储与该加密协议相匹配的目标解密协议,则可以从服务器中获取目标解密协议;最后利用目标解密协议对加密视频数据解密时一定能解密成功,一定能够得到原始视频数据,进而保证用户能够在终端上观看视频。In the embodiment of the present invention, the encrypted video data transmitted to the terminal through the HDMI is received, and the encrypted video data is obtained by encrypting the original video data; determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data; acquiring and encrypting The protocol matching target decryption protocol; decrypting the encrypted video data using the target decryption protocol to obtain the original video data. In this way, regardless of which encryption protocol is used to encrypt the original video data, when the encryption protocol used to encrypt the original video data to obtain the encrypted video data is determined, the target decryption protocol matching the encryption protocol is obtained. Wherein, if the target decryption protocol matching the encryption protocol is stored locally beforehand, the target decryption protocol may be directly obtained from the local, and if the target decryption protocol matching the encryption protocol is not stored locally, the server may be slaved from the server. The target decryption protocol is obtained; finally, when the encrypted video data is decrypted by using the target decryption protocol, the decryption is successful, and the original video data can be obtained, thereby ensuring that the user can watch the video on the terminal.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
图3是根据一示例性实施例示出的一种应用程序安装装置的框图。参照图3,该装置包括:FIG. 3 is a block diagram of an application installation apparatus, according to an exemplary embodiment. Referring to Figure 3, the apparatus includes:
处理器21; Processor 21;
用于存储处理器21可执行指令的存储器22;a memory 22 for storing instructions executable by the processor 21;
其中,所述处理器21被配置为: The processor 21 is configured to:
接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;Receiving encrypted video data transmitted to the terminal through a high definition multimedia interface HDMI, the encrypted video data being obtained by encrypting original video data;
确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;Determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data;
获取与所述加密协议相匹配的目标解密协议;Obtaining a target decryption protocol that matches the encryption protocol;
利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。Decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
在一种可选的实施方式中,所述处理器21被配置为:In an optional implementation manner, the processor 21 is configured to:
在本地存储的多个不同的解密协议中查找与所述加密协议相匹配的目标解密协议;Finding a target decryption protocol that matches the encryption protocol among a plurality of different decryption protocols stored locally;
或者,or,
从服务器中获取与所述加密协议相匹配的目标解密协议。A target decryption protocol matching the encryption protocol is obtained from the server.
在一种可选的实施方式中,所述处理器21被配置为:In an optional implementation manner, the processor 21 is configured to:
获取所述加密视频数据中预设加密字段;Obtaining a preset encryption field in the encrypted video data;
获取所述预设加密字段中存储的内容并作为加密协议的协议标识;Obtaining the content stored in the preset encryption field and using the protocol identifier of the encryption protocol;
将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
在一种可选的实施方式中,所述处理器21被配置为:In an optional implementation manner, the processor 21 is configured to:
判断是否接收到所述加密视频数据的属性信息;所述属性信息至少携带对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;Determining whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
当接收到所述属性信息时,从所述属性信息中提取出对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;When receiving the attribute information, extracting, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
在一种可选的实施方式中,所述处理器21被配置为:In an optional implementation manner, the processor 21 is configured to:
获取本地存储的协议标识与解密协议之间的对应关系;Obtaining a correspondence between a locally stored protocol identifier and a decryption protocol;
在所述对应关系中查找与所述协议标识相对应的解密协议。A decryption protocol corresponding to the protocol identifier is looked up in the correspondence.
本申请实施例还提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存 储介质可存储有程序,该程序执行时可实现执行前述任意一个实施例提供的一种视频解密的方法的各实现方式中的部分或全部步骤。The embodiment of the present application further provides a non-transitory computer readable storage medium, the non-transitory computer readable and stored The storage medium may store a program that, when executed, may implement some or all of the various implementations of the method of performing a video decryption provided by any of the preceding embodiments.
图4是本申请实施例提供的视频解密的方法的电子设备的硬件结构示意图,如图4所示,该设备包括:4 is a schematic structural diagram of hardware of an electronic device according to a method for decrypting video provided by an embodiment of the present application. As shown in FIG. 4, the device includes:
一个或多个处理器410以及存储器420,图4中以一个处理器410为例。One or more processors 410 and memory 420, one processor 410 is exemplified in FIG.
执行视频解密的方法的设备还可以包括:输入装置430和输出装置440。The apparatus for performing the method of video decryption may further include: an input device 430 and an output device 440.
处理器410、存储器420、输入装置430和输出装置440可以通过总线或者其他方式连接,图4中以通过总线连接为例。The processor 410, the memory 420, the input device 430, and the output device 440 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器420作为一种非暂态计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的视频解密的方法对应的程序指令/模块。处理器410通过运行存储在存储器420中的非易失性软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述方法实施例的视频解密的方法。The memory 420 is used as a non-transitory computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as a program instruction corresponding to the video decryption method in the embodiment of the present application. / module. The processor 410 executes various functional applications and data processing of the electronic device by executing non-volatile software programs, instructions, and modules stored in the memory 420, that is, a method of implementing video decryption of the above-described method embodiments.
存储器420可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据视频解密的装置的使用所创建的数据等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器420可选包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至视频解密的装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 420 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the video decrypted device, and the like. Moreover, memory 420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 420 can optionally include memory remotely located relative to processor 410, which can be connected to the device for video decryption over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置430可接收输入的数字或字符信息,以及产生与视频解密的装置的用户设置以及功能控制有关的键信号输入。输出装置440可包括显示屏等显示设备。 Input device 430 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the device for video decryption. Output device 440 can include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器420中,当被所述一个或者多个处理器410执行时,执行上述任意方法实施例中的视频解密的方法。The one or more modules are stored in the memory 420, and when executed by the one or more processors 410, perform a method of video decryption in any of the above method embodiments.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。 The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
本发明实施例的电子设备以多种形式存在,包括但不限于:The electronic device of the embodiment of the invention exists in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、预览播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, preview players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction functions.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由所附的权利要求指出。Other embodiments of the invention will be apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the present invention and include common general knowledge or conventional technical means in the art that are not disclosed in the present invention. . The specification and examples are to be regarded as illustrative only,
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details of The scope of the invention is limited only by the appended claims.

Claims (26)

  1. 一种视频解密方法,应用于终端,其特征在于,所述方法包括:A video decryption method is applied to a terminal, where the method includes:
    接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;Receiving encrypted video data transmitted to the terminal through a high definition multimedia interface HDMI, the encrypted video data being obtained by encrypting original video data;
    确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;Determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data;
    获取与所述加密协议相匹配的目标解密协议;Obtaining a target decryption protocol that matches the encryption protocol;
    利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。Decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
  2. 根据权利要求1所述的方法,其特征在于,所述获取与所述加密协议相匹配的目标解密协议,包括:The method according to claim 1, wherein the obtaining a target decryption protocol that matches the encryption protocol comprises:
    在本地存储的多个不同的解密协议中查找与所述加密协议相匹配的目标解密协议;Finding a target decryption protocol that matches the encryption protocol among a plurality of different decryption protocols stored locally;
    或者,or,
    从服务器中获取与所述加密协议相匹配的目标解密协议。A target decryption protocol matching the encryption protocol is obtained from the server.
  3. 根据权利要求1所述的方法,其特征在于,所述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括:The method according to claim 1, wherein the determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data comprises:
    获取所述加密视频数据中预设加密字段;Obtaining a preset encryption field in the encrypted video data;
    获取所述预设加密字段中存储的内容并作为加密协议的协议标识;Obtaining the content stored in the preset encryption field and using the protocol identifier of the encryption protocol;
    将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  4. 根据权利要求1所述的方法,其特征在于,所述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括:The method according to claim 1, wherein the determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data comprises:
    判断是否接收到所述加密视频数据的属性信息;所述属性信息至少携带对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识; Determining whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
    当接收到所述属性信息时,从所述属性信息中提取出对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;When receiving the attribute information, extracting, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
    将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  5. 根据权利要求3或4所述的方法,其特征在于,所述获取与所述加密协议相匹配的目标解密协议,包括:The method according to claim 3 or 4, wherein the obtaining a target decryption protocol that matches the encryption protocol comprises:
    获取本地存储的协议标识与解密协议之间的对应关系;Obtaining a correspondence between a locally stored protocol identifier and a decryption protocol;
    在所述对应关系中查找与所述协议标识相对应的解密协议。A decryption protocol corresponding to the protocol identifier is looked up in the correspondence.
  6. 一种视频解密装置,应用于终端,其特征在于,所述装置包括:A video decryption device is applied to a terminal, wherein the device comprises:
    接收模块,用于接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;a receiving module, configured to receive encrypted video data transmitted to the terminal by using a high-definition multimedia interface HDMI, where the encrypted video data is obtained by encrypting original video data;
    确定模块,用于确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;a determining module, configured to determine an encryption protocol used by the original video data to obtain the encrypted video data;
    获取模块,用于获取与所述加密协议相匹配的目标解密协议;An obtaining module, configured to acquire a target decryption protocol that matches the encryption protocol;
    解密模块,用于利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。And a decryption module, configured to decrypt the encrypted video data by using the target decryption protocol to obtain the original video data.
  7. 根据权利要求6所述的装置,其特征在于,所述获取模块包括:The device according to claim 6, wherein the obtaining module comprises:
    第一查找单元,用于在本地存储的多个不同的解密协议中查找与所述加密协议相匹配的目标解密协议;a first searching unit, configured to search, in a plurality of different decryption protocols stored locally, a target decryption protocol that matches the encryption protocol;
    或者,or,
    第一获取单元,用于从服务器中获取与所述加密协议相匹配的目标解密协议。And a first acquiring unit, configured to acquire, from the server, a target decryption protocol that matches the encryption protocol.
  8. 根据权利要求6所述的装置,其特征在于,所述确定模块包括: The apparatus according to claim 6, wherein the determining module comprises:
    第二获取单元,用于获取所述加密视频数据中预设加密字段;a second acquiring unit, configured to acquire a preset encryption field in the encrypted video data;
    第三获取单元,用于获取所述预设加密字段中存储的内容并作为加密协议的协议标识;a third acquiring unit, configured to acquire content stored in the preset encryption field and use the protocol identifier as an encryption protocol;
    第一确定单元,用于将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And a first determining unit, configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  9. 根据权利要求6所述的装置,其特征在于,所述确定模块包括:The apparatus according to claim 6, wherein the determining module comprises:
    判断单元,用于判断是否接收到所述加密视频数据的属性信息;所述属性信息至少携带对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;a determining unit, configured to determine whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used by the original video data to obtain the encrypted video data;
    提取单元,用于当接收到所述属性信息时,从所述属性信息中提取出对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;And an extracting unit, configured to: when receiving the attribute information, extract, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
    第二确定单元,用于将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And a second determining unit, configured to determine an encryption protocol corresponding to the protocol identifier as an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  10. 根据权利要求8或9所述的装置,其特征在于,所述获取模块包括:The device according to claim 8 or 9, wherein the obtaining module comprises:
    第四获取单元,用于获取本地存储的协议标识与解密协议之间的对应关系;a fourth acquiring unit, configured to acquire a correspondence between a locally stored protocol identifier and a decryption protocol;
    第二查找单元,用于在所述对应关系中查找与所述协议标识相对应的解密协议。And a second searching unit, configured to search, in the correspondence, a decryption protocol corresponding to the protocol identifier.
  11. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    处理器;processor;
    用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
    其中,所述处理器被配置为:Wherein the processor is configured to:
    接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;Receiving encrypted video data transmitted to the terminal through a high definition multimedia interface HDMI, the encrypted video data being obtained by encrypting original video data;
    确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议; Determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data;
    获取与所述加密协议相匹配的目标解密协议;Obtaining a target decryption protocol that matches the encryption protocol;
    利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。Decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
  12. 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机程序,所述计算机程序用于使所述计算机执行:A non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores a computer program for causing the computer to execute:
    接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;Receiving encrypted video data transmitted to the terminal through a high definition multimedia interface HDMI, the encrypted video data being obtained by encrypting original video data;
    确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;Determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data;
    获取与所述加密协议相匹配的目标解密协议;Obtaining a target decryption protocol that matches the encryption protocol;
    利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。Decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
  13. 根据权利要求12所述的非暂态计算机可读存储介质,其特征在于,所述获取与所述加密协议相匹配的目标解密协议,包括:The non-transitory computer readable storage medium according to claim 12, wherein the obtaining a target decryption protocol that matches the encryption protocol comprises:
    在本地存储的多个不同的解密协议中查找与所述加密协议相匹配的目标解密协议;Finding a target decryption protocol that matches the encryption protocol among a plurality of different decryption protocols stored locally;
    或者,or,
    从服务器中获取与所述加密协议相匹配的目标解密协议。A target decryption protocol matching the encryption protocol is obtained from the server.
  14. 根据权利要求12所述的非暂态计算机可读存储介质,其特征在于,所述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括:The non-transitory computer readable storage medium according to claim 12, wherein the determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data comprises:
    获取所述加密视频数据中预设加密字段;Obtaining a preset encryption field in the encrypted video data;
    获取所述预设加密字段中存储的内容并作为加密协议的协议标识;Obtaining the content stored in the preset encryption field and using the protocol identifier of the encryption protocol;
    将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  15. 根据权利要求12所述的非暂态计算机可读存储介质,其特征在于,所 述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括:A non-transitory computer readable storage medium according to claim 12, wherein Determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data, including:
    判断是否接收到所述加密视频数据的属性信息;所述属性信息至少携带对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;Determining whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
    当接收到所述属性信息时,从所述属性信息中提取出对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;When receiving the attribute information, extracting, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
    将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  16. 根据权利要求14或15所述的非暂态计算机可读存储介质,其特征在于,所述获取与所述加密协议相匹配的目标解密协议,包括:The non-transitory computer readable storage medium according to claim 14 or 15, wherein the obtaining a target decryption protocol that matches the encryption protocol comprises:
    获取本地存储的协议标识与解密协议之间的对应关系;Obtaining a correspondence between a locally stored protocol identifier and a decryption protocol;
    在所述对应关系中查找与所述协议标识相对应的解密协议。A decryption protocol corresponding to the protocol identifier is looked up in the correspondence.
  17. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及,At least one processor; and,
    存储器;其中,Memory; among them,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to:
    接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;Receiving encrypted video data transmitted to the terminal through a high definition multimedia interface HDMI, the encrypted video data being obtained by encrypting original video data;
    确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;Determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data;
    获取与所述加密协议相匹配的目标解密协议;Obtaining a target decryption protocol that matches the encryption protocol;
    利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。Decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
  18. 根据权利要求17所述的电子设备,其特征在于,所述获取与所述加密协议相匹配的目标解密协议,包括: The electronic device according to claim 17, wherein the obtaining a target decryption protocol that matches the encryption protocol comprises:
    在本地存储的多个不同的解密协议中查找与所述加密协议相匹配的目标解密协议;Finding a target decryption protocol that matches the encryption protocol among a plurality of different decryption protocols stored locally;
    或者,or,
    从服务器中获取与所述加密协议相匹配的目标解密协议。A target decryption protocol matching the encryption protocol is obtained from the server.
  19. 根据权利要求17所述的电子设备,其特征在于,所述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括:The electronic device according to claim 17, wherein the determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data comprises:
    获取所述加密视频数据中预设加密字段;Obtaining a preset encryption field in the encrypted video data;
    获取所述预设加密字段中存储的内容并作为加密协议的协议标识;Obtaining the content stored in the preset encryption field and using the protocol identifier of the encryption protocol;
    将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  20. 根据权利要求17所述的电子设备,其特征在于,所述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括:The electronic device according to claim 17, wherein the determining an encryption protocol used to encrypt the original video data to obtain the encrypted video data comprises:
    判断是否接收到所述加密视频数据的属性信息;所述属性信息至少携带对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;Determining whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
    当接收到所述属性信息时,从所述属性信息中提取出对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;When receiving the attribute information, extracting, from the attribute information, a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
    将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  21. 根据权利要求19或20所述的电子设备,其特征在于,所述获取与所述加密协议相匹配的目标解密协议,包括:The electronic device according to claim 19 or 20, wherein the obtaining a target decryption protocol that matches the encryption protocol comprises:
    获取本地存储的协议标识与解密协议之间的对应关系;Obtaining a correspondence between a locally stored protocol identifier and a decryption protocol;
    在所述对应关系中查找与所述协议标识相对应的解密协议。A decryption protocol corresponding to the protocol identifier is looked up in the correspondence.
  22. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非 暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行:A computer program product, characterized in that the computer program product comprises a non-storage program A computer program on a transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to:
    接收通过高清晰度多媒体接口HDMI传输给所述终端的加密视频数据,所述加密视频数据是对原始视频数据加密得到的;Receiving encrypted video data transmitted to the terminal through a high definition multimedia interface HDMI, the encrypted video data being obtained by encrypting original video data;
    确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议;Determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data;
    获取与所述加密协议相匹配的目标解密协议;Obtaining a target decryption protocol that matches the encryption protocol;
    利用所述目标解密协议对所述加密视频数据解密得到所述原始视频数据。Decrypting the encrypted video data using the target decryption protocol to obtain the original video data.
  23. 根据权利要求22所述的计算机程序产品,其特征在于,所述获取与所述加密协议相匹配的目标解密协议,包括:The computer program product of claim 22, wherein the obtaining a target decryption protocol that matches the encryption protocol comprises:
    在本地存储的多个不同的解密协议中查找与所述加密协议相匹配的目标解密协议;Finding a target decryption protocol that matches the encryption protocol among a plurality of different decryption protocols stored locally;
    或者,or,
    从服务器中获取与所述加密协议相匹配的目标解密协议。A target decryption protocol matching the encryption protocol is obtained from the server.
  24. 根据权利要求22所述的计算机程序产品,其特征在于,所述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括:The computer program product of claim 22, wherein the determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data comprises:
    获取所述加密视频数据中预设加密字段;Obtaining a preset encryption field in the encrypted video data;
    获取所述预设加密字段中存储的内容并作为加密协议的协议标识;Obtaining the content stored in the preset encryption field and using the protocol identifier of the encryption protocol;
    将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  25. 根据权利要求22所述的计算机程序产品,其特征在于,所述确定对所述原始视频数据加密得到所述加密视频数据所利用的加密协议,包括:The computer program product of claim 22, wherein the determining an encryption protocol utilized to encrypt the original video data to obtain the encrypted video data comprises:
    判断是否接收到所述加密视频数据的属性信息;所述属性信息至少携带对所述原始视频数据加密得到所述加密视频数据所利用的加密协议的协议标识;Determining whether the attribute information of the encrypted video data is received; the attribute information at least carrying a protocol identifier of an encryption protocol used to encrypt the original video data to obtain the encrypted video data;
    当接收到所述属性信息时,从所述属性信息中提取出对所述原始视频数据加 密得到所述加密视频数据所利用的加密协议的协议标识;When the attribute information is received, extracting from the attribute information, adding the original video data Densifying the protocol identifier of the encryption protocol used by the encrypted video data;
    将所述协议标识对应的加密协议确定为对所述原始视频数据加密得到所述加密视频数据所利用的加密协议。And determining, by the encryption protocol corresponding to the protocol identifier, an encryption protocol used to encrypt the original video data to obtain the encrypted video data.
  26. 根据权利要求24或25所述的计算机程序产品,其特征在于,所述获取与所述加密协议相匹配的目标解密协议,包括:The computer program product of claim 24 or 25, wherein the obtaining a target decryption protocol that matches the encryption protocol comprises:
    获取本地存储的协议标识与解密协议之间的对应关系;Obtaining a correspondence between a locally stored protocol identifier and a decryption protocol;
    在所述对应关系中查找与所述协议标识相对应的解密协议。 A decryption protocol corresponding to the protocol identifier is looked up in the correspondence.
PCT/CN2016/100472 2016-06-01 2016-09-28 Video decryption method and device WO2017206401A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610379742.9 2016-06-01
CN201610379742.9A CN105959800A (en) 2016-06-01 2016-06-01 Video decryption method and device

Publications (1)

Publication Number Publication Date
WO2017206401A1 true WO2017206401A1 (en) 2017-12-07

Family

ID=56907428

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100472 WO2017206401A1 (en) 2016-06-01 2016-09-28 Video decryption method and device

Country Status (2)

Country Link
CN (1) CN105959800A (en)
WO (1) WO2017206401A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959800A (en) * 2016-06-01 2016-09-21 乐视控股(北京)有限公司 Video decryption method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1607793A (en) * 2003-09-26 2005-04-20 创世纪微芯片公司 Packet based high definition high-bandwidth digital content protection
CN1681318A (en) * 2004-04-07 2005-10-12 三星电子株式会社 Source device and method for controlling output to sink device according to each content
CN102656840A (en) * 2010-02-02 2012-09-05 华为技术有限公司 System and method for securing media content
US20150382055A1 (en) * 2006-01-27 2015-12-31 Robin Dua Set-top box apparatus, system, and method of multimedia presentation
CN105577371A (en) * 2009-03-25 2016-05-11 索尼公司 Method to upgrade content encryption
CN105959800A (en) * 2016-06-01 2016-09-21 乐视控股(北京)有限公司 Video decryption method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320707A (en) * 2014-09-19 2015-01-28 小米科技有限责任公司 Playback method and device of network video
CN104581201A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Video encryption method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1607793A (en) * 2003-09-26 2005-04-20 创世纪微芯片公司 Packet based high definition high-bandwidth digital content protection
CN1681318A (en) * 2004-04-07 2005-10-12 三星电子株式会社 Source device and method for controlling output to sink device according to each content
US20150382055A1 (en) * 2006-01-27 2015-12-31 Robin Dua Set-top box apparatus, system, and method of multimedia presentation
CN105577371A (en) * 2009-03-25 2016-05-11 索尼公司 Method to upgrade content encryption
CN102656840A (en) * 2010-02-02 2012-09-05 华为技术有限公司 System and method for securing media content
CN105959800A (en) * 2016-06-01 2016-09-21 乐视控股(北京)有限公司 Video decryption method and device

Also Published As

Publication number Publication date
CN105959800A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
US11055429B2 (en) Key providing method, video playing method, server and client
CN108595970B (en) Configuration method and device of processing assembly, terminal and storage medium
JP6571250B2 (en) How to use one device to unlock another
CN110138749B (en) Data security protection method and related equipment
US10650119B2 (en) Multimedia data processing method, apparatus, system, and storage medium
KR102265658B1 (en) Electronic device and method for discovering network in electronic device
CN112312187B (en) Method, device and equipment for screen projection playing of video and storage medium
US10455286B2 (en) Protected media decoding system supporting metadata
US20150046712A1 (en) Method of operating data security and electronic device supporting the same
CN109951295B (en) Key processing and using method, device, equipment and medium
WO2017185611A1 (en) Interface displaying method and device of smart terminal
CN109034798B (en) Electronic payment system, method, apparatus, device and medium based on micro service
CN103716330A (en) Method and device for encryption and decryption of digital content
JP2018502524A (en) Encryption control for information, information analysis method, system and terminal
CN104735484B (en) A kind of method and device for playing video
CN111723889B (en) Code scanning login method, graphic code display method, device, equipment and storage medium
WO2017054620A1 (en) Dvb-based multi-terminal program playing method and system, set top box and mobile terminal
US9641328B1 (en) Generation of public-private key pairs
US20180063159A1 (en) Apparatus and method for providing security service in communication system
KR20160143540A (en) Distributed white list for security renewability
WO2018227471A1 (en) Secure processing method and apparatus for biometric feature data, sensor, and terminal device
CN110290097B (en) Data processing method and device, storage medium and electronic device
US20190166499A1 (en) Service providing system, service communicating system, service providing method and recording medium
WO2017206401A1 (en) Video decryption method and device
WO2016202292A1 (en) Video encryption method and video decryption method, and mobile terminal

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16903783

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16903783

Country of ref document: EP

Kind code of ref document: A1