CN106101754A - A kind of method and device protecting data transmission stream - Google Patents
A kind of method and device protecting data transmission stream Download PDFInfo
- Publication number
- CN106101754A CN106101754A CN201610450970.0A CN201610450970A CN106101754A CN 106101754 A CN106101754 A CN 106101754A CN 201610450970 A CN201610450970 A CN 201610450970A CN 106101754 A CN106101754 A CN 106101754A
- Authority
- CN
- China
- Prior art keywords
- time
- unique identifier
- transmission stream
- data transmission
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 90
- 238000000034 method Methods 0.000 title claims abstract description 28
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 claims description 13
- 238000012856 packing Methods 0.000 claims description 5
- 230000005055 memory storage Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- MTMSNUZWAOVYRU-PLNGDYQASA-N (z)-1,1,1-trifluoro-4-sulfanyl-4-thiophen-2-ylbut-3-en-2-one Chemical compound FC(F)(F)C(=O)\C=C(/S)C1=CC=CS1 MTMSNUZWAOVYRU-PLNGDYQASA-N 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
- H04N21/4385—Multiplex stream processing, e.g. multiplex stream decrypting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2389—Multiplex stream processing, e.g. multiplex stream encrypting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
- H04N21/26613—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/432—Content retrieval operation from a local storage medium, e.g. hard-disk
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/432—Content retrieval operation from a local storage medium, e.g. hard-disk
- H04N21/4325—Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4335—Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8352—Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Storage Device Security (AREA)
Abstract
The embodiment of the invention discloses a kind of method and device protecting data transmission stream; by Set Top Box unique identifier and described external storage equipment unique identifier; the storage device of Set Top Box and recording is bound; only this Set Top Box could play recorded program, maintains the income of operator;At the same time it can also be allow user setup record guard time, according to recording the set of time protected, expired recording program is allowed to delete.
Description
Technical field
The present embodiments relate to the technical field of Set Top Box, particularly relate to a kind of method protecting data transmission stream and dress
Put.
Background technology
At present, increasing user selects to use PVR Set Top Box, has had the Set Top Box of PVR function, it is possible to need not be with
The time synchronized that television station plays watches that we want the TV programme watched.Fixing or the shifting by USB interface or STTA etc.
Dynamic External memory equipment, is recorded to local video original for this program resolution, at the convenient time watches, and this gives to user
More watch right, become actively watching by passively accepting.PVR Set Top Box is by being stored in by program on general hard disk,
This allows for the bootlegging to program, propagation is possibly realized.Program copyright accordingly, for content supplier forms challenge.
Meanwhile, hard-disc storage limited space, how to accomplish the expired process just carrying out emptying of recorded program, certain family member records
Program do not allow the control of authority problems such as other member's viewings, these be required for solve.
Summary of the invention
The purpose of the embodiment of the present invention is to propose a kind of method and device protecting data transmission stream, it is intended to how solve
The program copyright protecting content supplier and the problem emptying expired program in time.
For reaching this purpose, the embodiment of the present invention by the following technical solutions:
First aspect, a kind of method protecting data transmission stream, described method includes:
Data recording transmission stream, obtains the program expired time of user's input, hardware device unique identifier and program and protects
Protect password, according to described program expired time and, described hardware device unique identifier and described program protection password to described
Data transmission stream is encrypted, and is stored in external storage equipment by the data transmission stream after encryption, and described hardware device is unique
Identifier includes Set Top Box unique identifier and described external storage equipment unique identifier;
Playing back in the case of described data transmission stream, it is judged that current playback time whether exceed described program expired time
Between, and judge whether the unique identifier of currently playing hardware device mates described hardware device unique identifier;
If judge described current playback time not less than described program expired time, and described currently playing hardware device
Unique identifier match described in hardware device unique identifier, then according to described program protection password to the number after described encryption
It is decrypted according to transmission stream, the data transmission stream after playback deciphering.
Preferably, described according to described program expired time, described data transmission stream is encrypted, including:
Obtain the present data transmission stream time, calculate described program expired time according to the self-destruction time arranged, by described
Program protection password and the packing of described program expired time generate metadata time.dat.
Preferably, described according to described hardware device unique identifier, described data transmission stream is encrypted, including:
Unique identifier and the described external storage equipment unique identifier of Set Top Box are cured as byte n, by fixing
Rule generates a length of 128bit data Ka;According to AES encryption algorithm, described metadata time.dat is encrypted, use during encryption
Described data Ka, as key, obtain AES.dat.
Preferably, described according to described program protection password described data transmission stream is encrypted, including:
Randomly generate 128bit random number R, according to AES encryption algorithm, described random number R is encrypted, use during encryption
Described data Ka are as key, the 128bit random number Kc after being encrypted;
According to described AES encryption algorithm, described data transmission stream is encrypted, during encryption, uses described random number Kc to make
For key, form data PVR.TS after encryption.
Preferably, described judge whether current playback time exceedes described program expired time before, also include:
Check whether described external storage equipment includes described metadata time.dat, described AES.dat and described
PVR.TS;If described external storage equipment lacks in described metadata time.dat, described AES.dat and described PVR.TS
Any one file, then forbid playback, and delete the file on described external storage equipment;
Described judge whether current playback time exceedes described program expired time before, also include:
Receive the password of user's input, it is judged that the password of described user input is the most consistent with preset password;
If judging, the password that described user inputs is inconsistent with described preset password, and input error number of times exceedes default time
Number, then forbid playback, and delete the file on described external storage equipment.
Second aspect, a kind of device protecting data transmission stream, described device includes:
Encrypting module, for data recording transmission stream, the program expired time of acquisition user's input, hardware device are uniquely marked
Know symbol and program protect password, according to described program expired time and, described hardware device unique identifier and described program protect
Protecting password to be encrypted described data transmission stream, described hardware device unique identifier includes Set Top Box unique identifier and institute
State external storage equipment unique identifier;
Memory module, for being stored in the data transmission stream after encryption in external storage equipment;
Judge module, in the case of playing back described data transmission stream, it is judged that whether current playback time exceedes institute
State program expired time, and judge whether the unique identifier of currently playing hardware device mates described hardware device and uniquely mark
Know symbol;
Deciphering module, if for judge described current playback time not less than described program expired time, and described currently
Hardware device unique identifier described in the unique identifier match of the hardware device play, then protect password pair according to described program
Data transmission stream after described encryption is decrypted;
Playback module, the data transmission stream after playing back deciphering.
Preferably, described encrypting module, it is used for
Obtain the present data transmission stream time, calculate described program expired time according to the self-destruction time arranged, by described
Program protection password and the packing of described program expired time generate metadata time.dat.
Preferably, described encrypting module, it is used for:
Unique identifier and the described external storage equipment unique identifier of Set Top Box are cured as byte n, by fixing
Rule generates a length of 128bit data Ka;According to AES encryption algorithm, described metadata time.dat is encrypted, use during encryption
Described data Ka, as key, obtain AES.dat.
Preferably, described encrypting module, it is used for:
Randomly generate 128bit random number R, according to AES encryption algorithm, described random number R is encrypted, use during encryption
Described data Ka are as key, the 128bit random number Kc after being encrypted;
According to described AES encryption algorithm, described data transmission stream is encrypted, during encryption, uses described random number Kc to make
For key, form data PVR.TS after encryption.
Preferably, described device also includes:
Removing module, for before judging whether current playback time exceedes described program expired time, checks described
Whether external storage equipment includes described metadata time.dat, described AES.dat and described PVR.TS;External deposit if described
Storage equipment lacks any one file in described metadata time.dat, described AES.dat and described PVR.TS, then forbid
Playback, and delete the file on described external storage equipment;
Described removing module, before being additionally operable to judge whether current playback time exceedes described program expired time, receives
The password of user's input, it is judged that the password of described user input is the most consistent with preset password;If judging what described user inputted
Password is inconsistent with described preset password, and input error number of times exceedes preset times, then forbid playback, and delete described external
File in storage device.
The embodiment of the present invention provides a kind of method and device protecting data transmission stream, by Set Top Box unique identifier and
Described external storage equipment unique identifier, is bound the storage device of Set Top Box and recording, only this Set Top Box
Recorded program could be play, maintain the income of operator;At the same time it can also be allow user setup record guard time, according to
Record the set of time of protection, allow expired recording program delete.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of method protecting data transmission stream that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the method for the another kind of protection data transmission stream that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the method for the another kind of protection data transmission stream that the embodiment of the present invention provides;
Fig. 4 is the high-level schematic functional block diagram of a kind of device protecting data transmission stream that the embodiment of the present invention provides.
Detailed description of the invention
With embodiment, the embodiment of the present invention is described in further detail below in conjunction with the accompanying drawings.It is understood that this
Specific embodiment described by place is used only for explaining the embodiment of the present invention, rather than the restriction to the embodiment of the present invention.Additionally also
It should be noted that for the ease of describing, accompanying drawing illustrate only the part relevant to the embodiment of the present invention rather than entire infrastructure.
It is the schematic flow sheet of a kind of method protecting data transmission stream that the embodiment of the present invention provides with reference to Fig. 1, Fig. 1.
As it is shown in figure 1, the method for described protection data transmission stream includes:
Step 101, data recording transmission stream, obtain the program expired time of user's input, hardware device unique identifier
With program protect password, according to described program expired time and, described hardware device unique identifier and described program protection close
Described data transmission stream is encrypted by code, is stored in external storage equipment by the data transmission stream after encryption, described hardware
Equipment unique identifier includes Set Top Box unique identifier and described external storage equipment unique identifier;
Concrete, software copyright management system, will encryption for being encrypted the data transmission stream TS stream recorded
TS stream file put into inside hard disk, PVR playback when, need first to be decrypted by the TS stream file of encryption, be decrypted into
Just can play after merit.
When recording program, user is needed to input program expired time, program protection password, then by above-mentioned information conduct
TS is encrypted by key, then stores in external memory storage by the programme information after encryption, and recording terminates.
Preferably, described according to described program expired time, described data transmission stream is encrypted, including:
Obtain the present data transmission stream time, calculate described program expired time according to the self-destruction time arranged, by described
Program protection password and the packing of described program expired time generate metadata time.dat.
Preferably, described according to described hardware device unique identifier, described data transmission stream is encrypted, including:
Unique identifier and the described external storage equipment unique identifier of Set Top Box are cured as byte n, by fixing
Rule generates a length of 128bit data Ka;According to AES encryption algorithm, described metadata time.dat is encrypted, use during encryption
Described data Ka, as key, obtain AES.dat.
Preferably, described according to described program protection password described data transmission stream is encrypted, including:
Randomly generate 128bit random number R, according to AES encryption algorithm, described random number R is encrypted, use during encryption
Described data Ka are as key, the 128bit random number Kc after being encrypted;
According to described AES encryption algorithm, described data transmission stream is encrypted, during encryption, uses described random number Kc to make
For key, form data PVR.TS after encryption.
Concrete, metadata is that the PVR of user setup destroys time and viewing password automatically, can be by obtaining in code stream
Current time table, calculates the automatic destruction time, so the two data are transparent, it is not necessary to encryption.
Verification data are to be encrypted metadata by aes algorithm, and the key of encryption uses Ka, and this Ka is by machine
The unique identifier of top box, external memory storage ID carry out solidifying, and such benefit ensures that uniqueness, this flash disk or
Person's hard disk, at this Set Top Box recorded program, can only play back on this Set Top Box.
PVR.TS TS stream here is the TS stream after encryption, and the encryption key of use is K, and Kc here is at random
Number R is encrypted, and encryption key is Ka, so also ensure that the uniqueness of TS stream deciphering here.
Step 102, in the case of playing back described data transmission stream, it is judged that whether current playback time exceedes described program
Expired time, and judge whether the unique identifier of currently playing hardware device mates described hardware device unique identifier;
Concrete, from system, read current time table, simultaneously according to the self-destruction time set at that time, if alreadyd more than
Self-destruction time, does not the most support playback, then need three files deposited in a hard disk to delete, so can save hard disk empty
Between, also can well ensure the reliability of setting to the programme replay time simultaneously.
Metadata time.dat carries out AES encryption process, and encryption uses Ka as key, and Ka is available, is
The unique identifier of Set Top Box and storage device No. ID, such as now the B hard-disc recording of A box, the D hard disk of C box
Recording, if play on this box of A with D hard disk, now Ka just changes, because equipment No. ID varies by, now
Verification data AES_verify.dat will not be passed through, if the most different, just forbid playing, is deleted by file simultaneously, as
Fruit unanimously then carries out next step.
Step 103, if judging, described current playback time is not less than described program expired time and described currently playing
Hardware device unique identifier described in the unique identifier match of hardware device, then add described according to described program protection password
Data transmission stream after close is decrypted, the data transmission stream after playback deciphering.
Concrete, if after above can correctly passing through, now the TS of encryption is flowed and decrypt with corresponding decipherment algorithm
Coming, the TS stream after deciphering flows for normal TS, then can be with normal playback.
The embodiment of the present invention provide a kind of method protecting data transmission stream, by Set Top Box unique identifier and described outside
Connecing storage device unique identifier, the storage device of Set Top Box and recording bound, only this Set Top Box just can be broadcast
Put recorded program, maintain the income of operator;At the same time it can also be allow user setup record guard time, protect according to recording
The set of time protected, allows expired recording program delete.
It it is the flow process signal of the method for the another kind of protection data transmission stream that the embodiment of the present invention provides with reference to Fig. 2, Fig. 2
Figure.
As in figure 2 it is shown, the method for described protection data transmission stream includes:
Step 201, data recording transmission stream, obtain the program expired time of user's input, hardware device unique identifier
With program protect password, according to described program expired time and, described hardware device unique identifier and described program protection close
Described data transmission stream is encrypted by code, is stored in external storage equipment by the data transmission stream after encryption, described hardware
Equipment unique identifier includes Set Top Box unique identifier and described external storage equipment unique identifier;
Step 202, checks and whether includes described metadata time.dat, described AES.dat in described external storage equipment
With described PVR.TS;If described external storage equipment lacks described metadata time.dat, described AES.dat and described
Any one file in PVR.TS, then forbid playback, and delete the file on described external storage equipment;
Step 203, in the case of playing back described data transmission stream, it is judged that whether current playback time exceedes described program
Expired time, and judge whether the unique identifier of currently playing hardware device mates described hardware device unique identifier;
Step 204, if judging, described current playback time is not less than described program expired time and described currently playing
Hardware device unique identifier described in the unique identifier match of hardware device, then add described according to described program protection password
Data transmission stream after close is decrypted, the data transmission stream after playback deciphering;
It it is the flow process signal of the method for the another kind of protection data transmission stream that the embodiment of the present invention provides with reference to Fig. 3, Fig. 3
Figure.
As it is shown on figure 3, the method for described protection data transmission stream includes: including:
Step 301, data recording transmission stream, obtain the program expired time of user's input, hardware device unique identifier
With program protect password, according to described program expired time and, described hardware device unique identifier and described program protection close
Described data transmission stream is encrypted by code, is stored in external storage equipment by the data transmission stream after encryption, described hardware
Equipment unique identifier includes Set Top Box unique identifier and described external storage equipment unique identifier;
Step 302, receives the password of user's input, it is judged that the password of described user input is the most consistent with preset password;
Step 303, if judging, the password that described user inputs is inconsistent with described preset password, and input error number of times surpasses
Cross preset times, then forbid playback, and delete the file on described external storage equipment;
Concrete, select to arrange password according to interface when recording program, then the when of playback, input password broadcasting, if even
Continuous input three passwords by mistake and the most automatically this document is deleted, PVR can well be realized and record authority administration by different levels, allow inside family
Adult recorded program child does not sees.
Step 304, in the case of playing back described data transmission stream, it is judged that whether current playback time exceedes described program
Expired time, and judge whether the unique identifier of currently playing hardware device mates described hardware device unique identifier;
Step 305, if judging, described current playback time is not less than described program expired time and described currently playing
Hardware device unique identifier described in the unique identifier match of hardware device, then add described according to described program protection password
Data transmission stream after close is decrypted, the data transmission stream after playback deciphering.
It is the functional module signal of a kind of device protecting data transmission stream that the embodiment of the present invention provides with reference to Fig. 4, Fig. 4
Figure.
As shown in Figure 4, the device of described protection data transmission stream includes:
Encrypting module 401, for data recording transmission stream, obtains the program expired time of user's input, hardware device only
One identifier and program protection password, according to described program expired time and, described hardware device unique identifier and described joint
Described data transmission stream is encrypted by mesh protection password, and described hardware device unique identifier includes Set Top Box unique identifier
With described external storage equipment unique identifier;
Preferably, described encrypting module 401, it is used for:
Unique identifier and the described external storage equipment unique identifier of Set Top Box are cured as byte n, by fixing
Rule generates a length of 128bit data Ka;According to AES encryption algorithm, described metadata time.dat is encrypted, use during encryption
Described data Ka, as key, obtain AES.dat.
Preferably, described encrypting module 401, it is used for:
Randomly generate 128bit random number R, according to AES encryption algorithm, described random number R is encrypted, use during encryption
Described data Ka are as key, the 128bit random number Kc after being encrypted;
According to described AES encryption algorithm, described data transmission stream is encrypted, during encryption, uses described random number Kc to make
For key, form data PVR.TS after encryption.
Memory module 402, for being stored in the data transmission stream after encryption in external storage equipment;
Judge module 403, in the case of playing back described data transmission stream, it is judged that whether current playback time exceedes
Described program expired time, and it is unique to judge whether the unique identifier of currently playing hardware device mates described hardware device
Identifier;
Deciphering module 404, if for judge described current playback time not less than described program expired time, and described work as
Hardware device unique identifier described in the unique identifier match of the hardware device of front broadcasting, then protect password according to described program
Data transmission stream after described encryption is decrypted;
Playback module 405, the data transmission stream after playing back deciphering.
Preferably, described device also includes:
Removing module, for before judging whether current playback time exceedes described program expired time, checks described
Whether external storage equipment includes described metadata time.dat, described AES.dat and described PVR.TS;External deposit if described
Storage equipment lacks any one file in described metadata time.dat, described AES.dat and described PVR.TS, then forbid
Playback, and delete the file on described external storage equipment.
Described removing module, before being additionally operable to judge whether current playback time exceedes described program expired time, receives
The password of user's input, it is judged that the password of described user input is the most consistent with preset password;If judging what described user inputted
Password is inconsistent with described preset password, and input error number of times exceedes preset times, then forbid playback, and delete described external
File in storage device.
The embodiment of the present invention provide a kind of device protecting data transmission stream, by Set Top Box unique identifier and described outside
Connecing storage device unique identifier, the storage device of Set Top Box and recording bound, only this Set Top Box just can be broadcast
Put recorded program, maintain the income of operator;At the same time it can also be allow user setup record guard time, protect according to recording
The set of time protected, allows expired recording program delete.
The know-why of the embodiment of the present invention is described above in association with specific embodiment.These describe and are intended merely to explain this
The principle of inventive embodiments, and the restriction to embodiment of the present invention protection domain can not be construed to by any way.Based on herein
Explanation, those skilled in the art need not to pay performing creative labour, and can to associate other of the embodiment of the present invention concrete
Embodiment, within these modes fall within the protection domain of the embodiment of the present invention.
Claims (10)
1. the method protecting data transmission stream, it is characterised in that described method includes:
Data recording transmission stream, obtains the program expired time of user's input, hardware device unique identifier and program protection close
Code, according to described program expired time and, described hardware device unique identifier and described program protection password to described data
Transmission stream is encrypted, and is stored in external storage equipment by the data transmission stream after encryption, and described hardware device uniquely identifies
Symbol includes Set Top Box unique identifier and described external storage equipment unique identifier;
In the case of playing back described data transmission stream, it is judged that whether current playback time exceedes described program expired time, and
Judge whether the unique identifier of currently playing hardware device mates described hardware device unique identifier;
If judge described current playback time not less than described program expired time, and described currently playing hardware device is only
Hardware device unique identifier described in one identifier match, then pass the data after described encryption according to described program protection password
Defeated stream is decrypted, the data transmission stream after playback deciphering.
Method the most according to claim 1, it is characterised in that described according to described program expired time, described data are passed
Defeated stream is encrypted, including:
Obtain the present data transmission stream time, calculate described program expired time according to the self-destruction time arranged, by described program
Protection password and the packing of described program expired time generate metadata time.dat.
Method the most according to claim 2, it is characterised in that described according to described hardware device unique identifier to described
Data transmission stream is encrypted, including:
Unique identifier and the described external storage equipment unique identifier of Set Top Box are cured as byte n, pass through unalterable rules
Generate a length of 128bit data Ka;According to AES encryption algorithm, described metadata time.dat is encrypted, use described during encryption
Data Ka, as key, obtain AES.dat.
Method the most according to claim 1, it is characterised in that described according to described program protection password described data are passed
Defeated stream is encrypted, including:
Randomly generate 128bit random number R, according to AES encryption algorithm, described random number R is encrypted, use described during encryption
Data Ka are as key, the 128bit random number Kc after being encrypted;
According to described AES encryption algorithm, described data transmission stream is encrypted, during encryption, uses described random number Kc as close
Key, forms data PVR.TS after encryption.
5. according to the method described in Claims 1-4 any one, it is characterised in that described whether judge current playback time
Before exceeding described program expired time, also include:
Check and whether described external storage equipment includes described metadata time.dat, described AES.dat and described PVR.TS;
If described external storage equipment lacks in described metadata time.dat, described AES.dat and described PVR.TS any one
Individual file, then forbid playback, and delete the file on described external storage equipment;
Described judge whether current playback time exceedes described program expired time before, also include:
Receive the password of user's input, it is judged that the password of described user input is the most consistent with preset password;
If judging, the password that described user inputs is inconsistent with described preset password, and input error number of times exceedes preset times,
Then forbid playback, and delete the file on described external storage equipment.
6. the device protecting data transmission stream, it is characterised in that described device includes:
Encrypting module, for data recording transmission stream, obtains the program expired time of user's input, hardware device unique identifier
With program protect password, according to described program expired time and, described hardware device unique identifier and described program protection close
Code described data transmission stream is encrypted, described hardware device unique identifier include Set Top Box unique identifier and described outside
Connect storage device unique identifier;
Memory module, for being stored in the data transmission stream after encryption in external storage equipment;
Judge module, in the case of playing back described data transmission stream, it is judged that whether current playback time exceedes described joint
Mesh expired time, and judge whether the unique identifier of currently playing hardware device mates described hardware device and uniquely identify
Symbol;
Deciphering module, if for judging that described current playback time is not less than described program expired time and described currently playing
Hardware device unique identifier match described in hardware device unique identifier, then according to described program protection password to described
Data transmission stream after encryption is decrypted;
Playback module, the data transmission stream after playing back deciphering.
Device the most according to claim 6, it is characterised in that described encrypting module, is used for
Obtain the present data transmission stream time, calculate described program expired time according to the self-destruction time arranged, by described program
Protection password and the packing of described program expired time generate metadata time.dat.
Device the most according to claim 7, it is characterised in that described encrypting module, is used for:
Unique identifier and the described external storage equipment unique identifier of Set Top Box are cured as byte n, pass through unalterable rules
Generate a length of 128bit data Ka;According to AES encryption algorithm, described metadata time.dat is encrypted, use described during encryption
Data Ka, as key, obtain AES.dat.
Device the most according to claim 6, it is characterised in that described encrypting module, is used for:
Randomly generate 128bit random number R, according to AES encryption algorithm, described random number R is encrypted, use described during encryption
Data Ka are as key, the 128bit random number Kc after being encrypted;
According to described AES encryption algorithm, described data transmission stream is encrypted, during encryption, uses described random number Kc as close
Key, forms data PVR.TS after encryption.
10. according to the device described in claim 6 to 9 any one, it is characterised in that described device also includes:
Removing module, for before judging whether current playback time exceedes described program expired time, checks described external
Whether storage device includes described metadata time.dat, described AES.dat and described PVR.TS;If described external storage sets
For lacking any one file in described metadata time.dat, described AES.dat and described PVR.TS, then forbid back
Put, and delete the file on described external storage equipment;
Described removing module, before being additionally operable to judge whether current playback time exceedes described program expired time, receives user
The password of input, it is judged that the password of described user input is the most consistent with preset password;If judging the password that described user inputs
Inconsistent with described preset password, and input error number of times exceedes preset times, then forbid playback, and delete described external storage
File on equipment.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610450970.0A CN106101754A (en) | 2016-06-21 | 2016-06-21 | A kind of method and device protecting data transmission stream |
PCT/CN2017/089374 WO2017219981A1 (en) | 2016-06-21 | 2017-06-21 | Method and device for protecting data transport stream |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610450970.0A CN106101754A (en) | 2016-06-21 | 2016-06-21 | A kind of method and device protecting data transmission stream |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106101754A true CN106101754A (en) | 2016-11-09 |
Family
ID=57238585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610450970.0A Pending CN106101754A (en) | 2016-06-21 | 2016-06-21 | A kind of method and device protecting data transmission stream |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106101754A (en) |
WO (1) | WO2017219981A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107277579A (en) * | 2017-05-10 | 2017-10-20 | 深圳创维数字技术有限公司 | Information encipher-decipher method and set top box |
WO2017219981A1 (en) * | 2016-06-21 | 2017-12-28 | 深圳创维数字技术有限公司 | Method and device for protecting data transport stream |
WO2019129116A1 (en) * | 2017-12-29 | 2019-07-04 | 华为技术有限公司 | Video recording method and device |
CN112788385A (en) * | 2019-11-01 | 2021-05-11 | 苏州梦想人软件科技有限公司 | Convenient playing and control method of media resource |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8755523B2 (en) * | 2003-04-13 | 2014-06-17 | Cisco Technology Inc. | System for securing access to data streams |
CN104902324A (en) * | 2015-06-26 | 2015-09-09 | 深圳市九洲电器有限公司 | Method and system for protecting personal video recording file |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8082592B2 (en) * | 2008-01-12 | 2011-12-20 | Harris Technology, Llc | Read/write encrypted media and method of playing |
CN201430640Y (en) * | 2009-06-23 | 2010-03-24 | 北京视博数字电视科技有限公司 | Terminal device |
CN102158759B (en) * | 2011-04-22 | 2013-11-06 | 深圳创维数字技术股份有限公司 | Program recording method, playback method of recorded program and set top box |
CN102281468A (en) * | 2011-08-09 | 2011-12-14 | 深圳市九洲电器有限公司 | Method and device for recording and playing personal video record, and set-top box |
CN106101754A (en) * | 2016-06-21 | 2016-11-09 | 深圳创维数字技术有限公司 | A kind of method and device protecting data transmission stream |
-
2016
- 2016-06-21 CN CN201610450970.0A patent/CN106101754A/en active Pending
-
2017
- 2017-06-21 WO PCT/CN2017/089374 patent/WO2017219981A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8755523B2 (en) * | 2003-04-13 | 2014-06-17 | Cisco Technology Inc. | System for securing access to data streams |
CN104902324A (en) * | 2015-06-26 | 2015-09-09 | 深圳市九洲电器有限公司 | Method and system for protecting personal video recording file |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017219981A1 (en) * | 2016-06-21 | 2017-12-28 | 深圳创维数字技术有限公司 | Method and device for protecting data transport stream |
CN107277579A (en) * | 2017-05-10 | 2017-10-20 | 深圳创维数字技术有限公司 | Information encipher-decipher method and set top box |
WO2018205512A1 (en) * | 2017-05-10 | 2018-11-15 | 深圳创维数字技术有限公司 | Information encryption and decryption method, set-top box, system, and storage medium |
WO2019129116A1 (en) * | 2017-12-29 | 2019-07-04 | 华为技术有限公司 | Video recording method and device |
CN109996020A (en) * | 2017-12-29 | 2019-07-09 | 华为技术有限公司 | A kind of video recording method and device |
CN109996020B (en) * | 2017-12-29 | 2021-08-13 | 华为技术有限公司 | Video recording method and device |
US11122327B2 (en) | 2017-12-29 | 2021-09-14 | Huawei Technologies Co., Ltd. | Video recording method and video recording apparatus |
CN112788385A (en) * | 2019-11-01 | 2021-05-11 | 苏州梦想人软件科技有限公司 | Convenient playing and control method of media resource |
Also Published As
Publication number | Publication date |
---|---|
WO2017219981A1 (en) | 2017-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2684393C (en) | Method and apparatus for providing a secure trick play | |
US7706531B2 (en) | Recording apparatus, reproduction apparatus, data processing apparatus, recording and reproduction apparatus and data transmission apparatus and corresponding methods | |
KR100413682B1 (en) | Method for controlling transmission and reception of data including ciphered data stream | |
KR101127194B1 (en) | System and method for providing a secure content with revocable access | |
US8249428B2 (en) | Content management device and content management method for controlling transfer of content having copy control information | |
US20080072072A1 (en) | Recording Device and Recording Method | |
US20040139338A1 (en) | Contents distribution system | |
CN103200387B (en) | A kind of monitoring video content protecting method and system | |
US8571209B2 (en) | Recording keys in a broadcast-encryption-based system | |
US20070112685A1 (en) | Contents distribution system, recording apparatus, signature apparatus, contents supply apparatus, and contents playback apparatus | |
CN106101754A (en) | A kind of method and device protecting data transmission stream | |
CN105828186B (en) | A kind of set-top box recording secondary encrypted method of program | |
KR100928099B1 (en) | Method for managing rights of encrypted content stored on personal digital recorder | |
CN105263047B (en) | A kind of digital television program encrypting shooting method for thering is mobile device to participate in | |
CN102158759B (en) | Program recording method, playback method of recorded program and set top box | |
US7715558B2 (en) | Encrypted-content recording medium, playback apparatus, and playback method | |
KR101407139B1 (en) | Method of recording and securely distributing digital data, access device and recorder | |
KR20030004987A (en) | Digital information recording apparatus and outputting apparatus | |
US20070253676A1 (en) | Method of controlling recording of program | |
JP2005174388A (en) | Recording device, recording method, reproducing device and reproducing method | |
KR100933262B1 (en) | Method of transmitting digital data representing content | |
JP2003224557A (en) | Reception recording and reproducing device and reception recording and reproducing method | |
US8279729B2 (en) | Content recording method and apparatus | |
JP2009159172A (en) | Content management apparatus and content management method | |
CN101141600A (en) | Method for recordable liquid crystal television to implement video file encryption and television set device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161109 |
|
RJ01 | Rejection of invention patent application after publication |