The content of the invention
In view of this, it is necessary to which lacking or damaging for above-mentioned smart card causes paying customer can not continue to watch program
Problem, there is provided a kind of program authorization method and system.
A kind of program authorization method provided by the invention, includes the following steps:
S10:Whether the smart card of monitoring audio-video terminal is abnormal, if being abnormal, produces one group of identifying code simultaneously
User is notified to send identifying code to front end;
S20:Identifying code is verified and is verified in front end, is sent to the corresponding audio-video terminal of identifying code interim
Authorization message after, parsing obtains interim authorization message to carry out mandate broadcasting to scrambled program;
S30:Whether expired monitor interim authorization message, if expired, stopping carries out mandate broadcasting to scrambled program.
A kind of program authoring system provided by the invention, including:
Whether smart card monitoring unit, the smart card for monitoring audio-video terminal are abnormal, if being abnormal, produce one
Group identifying code simultaneously notifies user to send identifying code to front end;
Temporary Authorization unit, is verified and is verified to identifying code in front end, whole to the corresponding audio and video of identifying code
After end sends interim authorization message, parsing obtains interim authorization message to carry out mandate broadcasting to scrambled program;
Time limit monitoring unit, monitors whether interim authorization message is expired, if expired, scrambled program is awarded in stopping
Power plays.
Program authorization method of the present invention and system, when smart card is abnormal, produces identifying code and are sent to by user
Front end, front end receiver simultaneously verifies identifying code, interim authorization message is sent after being verified so that user can be in intelligence
It can block when being abnormal and mandate broadcasting is carried out to scrambled program using interim authorization message, so that user is applying newly
It in smart card period, can continue to watch scrambled program, not influence user and watch scrambled program, very big side is brought to user
Just, it greatly ensure that the experience effect of paying customer.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.
Fig. 1 is the flow chart of the program authorization method in one embodiment, as shown in Figure 1, the program authorization method includes
Following steps:
S10:Whether the smart card of monitoring audio-video terminal is abnormal, if being abnormal, produces one group of identifying code simultaneously
User is notified to send identifying code to front end.
When user is using audio-video terminal viewing scrambled program, if smart card is abnormal (missing or damage),
User will be unable to continue to watch scrambled program.Therefore in this embodiment, it is necessary to which whether monitoring smart card is abnormal in real time, in intelligence
It can be handled during card exception.
In further embodiment, step S10 is specially:Communicate in real time with smart card, if in pre- timing
Interior to communicate with smart card, then smart card is abnormal.If can not all communicate in the given time, illustrate
The no plug-in card of smart card long-time is damaged, and is abnormal situation, thus is avoided that in the short time that user does not have plug-in card
Situation.
If smart card is abnormal, produces one group of identifying code and notify user to send identifying code to front end.Notice is used
The mode that family sends identifying code to front end can be:Identifying code is sent on the mobile terminal of user's binding or in TV
Shown on the display interfaces such as machine and notify user.
It is protection scrambled program copyright and operator's rights and interests, it is necessary to ensure the uniqueness and security of identifying code, it is contemplated that
Front end can send different ECM (Entitlement Control Message) to every audio-video terminal, and ECM is to be scrambled CW (control word) by front end
Formed, smart card obtains CW after being parsed to ECM, CW completes the descrambling to scrambled program.CW is change, is had very high
Security.One CW is made of two parts of ODDkey (strange key) and EVENkey (even key).And two neighboring CW
ODDkey and EVENkey always has that a part is identical, for example, the EVENkey and CW1 of CW2 EVENkey be it is identical,
The ODDkey of the ODDkey and CW2 of CW3 are identical.In this embodiment, step S10 is specially:Preserve a period of time in by
The CW that smart card parses, and select two adjacent CW that combination is encrypted, produce one group of identifying code.Since CW is corresponded in itself
Unique audio-video terminal and security is higher, identifying code can be effectively ensured by producing identifying code by the way of two CW are combined
Security.
Meanwhile to prevent the CW preserved to be stolen, the uniqueness and security of identifying code are further protected, the step is specific
For:The CW parsed in a period of time by smart card is preserved, selects two adjacent CW, and the different piece of two CW is carried out
Encrypted combination, produces one group of identifying code.The different piece of two CW is so only chosen, is stolen also be effectively ensured even if CW and tests
Demonstrate,prove the security of code.
S20:Identifying code is verified and is verified in front end, is sent to the corresponding audio-video terminal of identifying code interim
Authorization message after, parsing obtains interim authorization message to carry out mandate broadcasting to scrambled program.
After identifying code is sent to front end by user by modes such as networks or mobile terminal, by front end to identifying code
Uniqueness and legitimacy are verified.If the verification passes, then sent out according to the uniqueness of identifying code to corresponding audio-video terminal
Interim authorization message is sent, then parsing, which obtains interim authorization message, to carry out mandate broadcasting to scrambled program, to use
Family can also watch scrambled program when smart card is abnormal.
In further embodiment, step S20 is specially:Carried out by front end receiver identifying code, and to identifying code
Decryption, obtain two CW, judge two CW whether be front end generation two adjacent C W, it is otherwise obstructed if being then verified
Cross.
Further, step S20 is specially:It is decrypted by front end receiver identifying code, and to identifying code, obtains two
A part, judge two parts whether be front end produce two CW a part, if being then verified, otherwise do not pass through.
So pass through the legal verification of effective and safe, it is ensured that to the correctness of audio-video terminal mandate.
After being verified, front end sends interim authorization message, specifically, interim authorization message is used verification by front end
Code is encrypted, and generation encryption data is added in CA (condition control) private data and is sent to audio and video end by transport stream
End, then the CA private datas in filter transport stream, add data segment if finding to have to increase newly, add data segment to newly-increased with identifying code
It is decrypted, obtains interim authorization message.
S30:Whether expired monitor interim authorization message, if expired, stopping carries out mandate broadcasting to scrambled program.
Since the authorization message is the temporary Authorization when smart card is abnormal, interim authorization message includes the mandate phase
Limit, only ensures normally to watch during user more change card, exceeds the time limit to will be unable to continue to watch.To interim authorization message
Be monitored, the authorization message is effective in licensing term, more than then stop authorize, so both ensured user have enough time more
Change card, and do not interfere with user and scrambled program is watched during more change card.
The program authorization method, when smart card is abnormal, produces identifying code and is sent to front end, preceding termination by user
Receive and identifying code is verified, interim authorization message is sent after being verified so that user can occur different in smart card
Mandate broadcasting is carried out to scrambled program using interim authorization message when often, so that user is applying for new smart card period
It is interior, it can continue to watch scrambled program, not influence user and watch scrambled program, bring great convenience to user, greatly ensure
The experience effect of paying customer.
Meanwhile the present invention also provides a kind of program authoring system, as shown in Fig. 2, the program authoring system includes:
Whether smart card monitoring unit 100, the smart card for monitoring audio-video terminal are abnormal, if being abnormal, produce
Raw one group of identifying code simultaneously notifies user to send identifying code to front end.
When user is using audio-video terminal viewing scrambled program, if smart card is abnormal (missing or damage),
User will be unable to continue to watch scrambled program.Therefore in this embodiment, it is necessary to which whether monitoring smart card is abnormal in real time, in intelligence
It can be handled during card exception.
In further embodiment, smart card monitoring unit 100 communicates with smart card in real time, if in pre- timing
Interior to communicate with smart card, then smart card is abnormal.If can not all communicate in the given time, illustrate
The no plug-in card of smart card long-time is damaged, and is abnormal situation, thus is avoided that in the short time that user does not have plug-in card
Situation.
If smart card is abnormal, smart card monitoring unit 100 produces one group of identifying code and notifies user by identifying code
Send to front end.Smart card monitoring unit 100 notifies that the mode that user sends identifying code to front end can be:Smart card monitors
Identifying code is sent on the mobile terminal of user's binding or is shown on the display interfaces such as television set and notify to use by unit 100
Family.
It is protection scrambled program copyright and operator's rights and interests, it is necessary to ensure the uniqueness and security of identifying code, it is contemplated that
Front end can send different ECM (Entitlement Control Message) to every audio-video terminal, and ECM is to be scrambled CW (control word) by front end
Formed, smart card obtains CW after being parsed to ECM, CW completes the descrambling to scrambled program.CW is change, is had very high
Security.One CW is made of two parts of ODDkey (strange key) and EVENkey (even key).And two neighboring CW
ODDkey and EVENkey always has that a part is identical, for example, the EVENkey and CW1 of CW2 EVENkey be it is identical,
The ODDkey of the ODDkey and CW2 of CW3 are identical.In this embodiment, smart card monitoring unit 100 was preserved in a period of time
The CW parsed by smart card, and select two adjacent CW that combination is encrypted, produce one group of identifying code.Since CW is right in itself
Answer unique audio-video terminal and security is higher, verification can be effectively ensured by producing identifying code by the way of two CW are combined
The security of code.
Meanwhile to prevent the CW preserved to be stolen, further protect the uniqueness and security of identifying code, smart card monitoring
Unit 100 preserves the CW that is parsed by smart card in a period of time, two adjacent CW of selection, and by the different piece of two CW
Combination is encrypted, produces one group of identifying code.The different piece of two CW is so only chosen, is stolen even if CW and also can effectively protect
Demonstrate,prove the security of identifying code.
Temporary Authorization unit 200, is verified and is verified to identifying code in front end, to the corresponding audio and video of identifying code
After terminal sends interim authorization message, parsing obtains interim authorization message to carry out mandate broadcasting to scrambled program.
After identifying code is sent to front end by user by modes such as networks or mobile terminal, by front end to identifying code
Uniqueness and legitimacy are verified.If the verification passes, then sent out according to the uniqueness of identifying code to corresponding audio-video terminal
Interim authorization message is sent, the then parsing of temporary Authorization unit 200 obtains interim authorization message and scrambled program can be carried out
Authorize and play, allow the user to also watch scrambled program when smart card is abnormal.
In further embodiment, by front end receiver identifying code, and identifying code is decrypted, obtains two CW,
Judge two CW whether be front end produce two adjacent C W, if being then verified, otherwise do not pass through.
Further, by front end receiver identifying code, and identifying code is decrypted, obtains two parts, judge two
Part whether be front end produce two CW a part, if being then verified, otherwise do not pass through.
So pass through the legal verification of effective and safe, it is ensured that to the correctness of audio-video terminal mandate.
After being verified, front end sends interim authorization message, specifically, being tested interim authorization message use by front end
Card code is encrypted, and generation encryption data is added in CA (condition control) private data and is sent to audio and video by transport stream
Terminal, then CA private datas in 200 filter transport stream of temporary Authorization unit, if find to have it is newly-increased add data segment, with testing
Card code adds data segment and is decrypted to newly-increased, obtains interim authorization message.
Whether time limit monitoring unit 300, it is expired to monitor interim authorization message, if expired, stop to scrambled program into
Row, which authorizes, to be played.
Since the authorization message is the temporary Authorization when smart card is abnormal, interim authorization message includes the mandate phase
Limit, only ensures normally to watch during user more change card, exceeds the time limit to will be unable to continue to watch.To interim authorization message
Be monitored, the authorization message is effective in licensing term, more than then stop authorize, so both ensured user have enough time more
Change card, and do not interfere with user and scrambled program is watched during more change card.
The program authoring system, when smart card is abnormal, produces identifying code and is sent to front end, preceding termination by user
Receive and identifying code is verified, interim authorization message is sent after being verified so that user can occur different in smart card
Mandate broadcasting is carried out to scrambled program using interim authorization message when often, so that user is applying for new smart card period
It is interior, it can continue to watch scrambled program, not influence user and watch scrambled program, bring great convenience to user, greatly ensure
The experience effect of paying customer.
Program authorization method of the present invention and system, when smart card is abnormal, produces identifying code and are sent to by user
Front end, front end receiver simultaneously verifies identifying code, interim authorization message is sent after being verified so that user can be in intelligence
It can block when being abnormal and mandate broadcasting is carried out to scrambled program using interim authorization message, so that user is applying newly
It in smart card period, can continue to watch scrambled program, not influence user and watch scrambled program, very big side is brought to user
Just, it greatly ensure that the experience effect of paying customer.
The foregoing is merely a prefered embodiment of the invention, is not intended to limit the invention, it is all the present invention spirit and
All any modification, equivalent and improvement made within principle etc., should all be included in the protection scope of the present invention.