CN104065968A - Video data encryption method, video data decryption method, video data encryption device and video data decryption device - Google Patents

Video data encryption method, video data decryption method, video data encryption device and video data decryption device Download PDF

Info

Publication number
CN104065968A
CN104065968A CN201410313239.4A CN201410313239A CN104065968A CN 104065968 A CN104065968 A CN 104065968A CN 201410313239 A CN201410313239 A CN 201410313239A CN 104065968 A CN104065968 A CN 104065968A
Authority
CN
China
Prior art keywords
information
request
scrambler
scrambling
descrambling
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.)
Granted
Application number
CN201410313239.4A
Other languages
Chinese (zh)
Other versions
CN104065968B (en
Inventor
陈家鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HARBIN HAINENGDA TECHNOLOGY Co Ltd
Original Assignee
HARBIN HAINENGDA TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HARBIN HAINENGDA TECHNOLOGY Co Ltd filed Critical HARBIN HAINENGDA TECHNOLOGY Co Ltd
Priority to CN201410313239.4A priority Critical patent/CN104065968B/en
Publication of CN104065968A publication Critical patent/CN104065968A/en
Application granted granted Critical
Publication of CN104065968B publication Critical patent/CN104065968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the present invention discloses a video data encryption method, a video data decryption method, a video data encryption device and a video data decryption device. The encryption method comprises the steps of receiving a data frame outputted by an encoder, wherein the data frame contains a feature code; mapping the feature code in the data frame into a pseudo feature code to obtain a data frame after mapping processing; sending a scrambling request to a system and receiving the information sent by the system in response to the scrambling request; carrying out the scrambling processing on the data frame after mapping processing by the information to obtain an encryption data frame. The processing process of the decryption method is the inverse processing of the encryption method. According to the technical scheme of the present invention, the video data safety can be improved, and the operation complexity of the encryption and decryption modes is low.

Description

A kind of video data encryption, decryption method and device
Technical field
The present invention relates to mobile communication technology field, particularly relate to a kind of video data encryption, decryption method and device.
Background technology
Along with the development of wireless communication technology, user also turns to multimedia service from simple speech business to the demand of private network communication, especially video traffic.Video data enciphering/deciphering is compared with common data file encryption and decryption, there is encryption and decryption data amount large, the features such as data structure is special, therefore, the encipher-decipher method of video data has stricter requirement to computation complexity and fail safe, because video data service there are certain requirements real-time, therefore, encipher-decipher method must be found a balance point between computation complexity and these two performances of fail safe.
Fail safe: fail safe is the primary requirement of data encrypting and deciphering.Fail safe generally comprises the meaning of two aspects, and one is vision fail safe, namely, by video encrypting/deciphering technology, can the information in video image effectively be disturbed and be hidden.The 2nd, the security of system of encryption and decryption, namely video encrypting/deciphering method can be resisted common cryptography attack.
Computation complexity: the complexity assessment to the encryption and decryption operation of video can be assessed from two aspects, and one of a complexity that is software is realized is hard-wired complexity.Consider the design of performance and the simplification terminal system of coding and decoding video, the design of enciphering and deciphering algorithm should not affect the key link of code decode algorithm, and the data volume of encryption and decryption will be lacked as much as possible.
Higher its fail safe of computation complexity of encipher-decipher method is higher, and meanwhile, the operational data amount of encryption and decryption also can be larger, causes the more difficult realization of real-time of video data transmitting; Because people are the most remarkable to the requirement of real-time, therefore, existing encipher-decipher method is, based on matrix variation pattern, video data is carried out to encryption and decryption processing, and this mode computation complexity is lower, real-time performance accesses assurance, but its fail safe exists larger hidden danger.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of video data encryption, decryption method and device, can meet the fail safe of video data transmitting and the low complex degree requirement of computations.
First aspect, the invention provides a kind of video data encryption method, and described method comprises:
The Frame of received code device output, described data frame packet is containing condition code;
Condition code in Frame is mapped to pseudo-characteristic code and obtains the Frame after mapping is processed;
To system, send scrambling request, receive the information in response to described scrambling request that described system sends;
Frame after utilizing described information to described mapping processing is done scrambling processing and is obtained scrambled data frame.
Preferably, described to system transmission scrambling request, receive the information in response to described scrambling request of described system transmission, comprising:
Utilize short message service to send the first scrambling request to described system, described the first scrambling request is used for asking scrambling numbering;
Receive the response of described system transmission and the information of described the first scrambling request, described packets of information is containing scrambler numbering;
Describedly utilize Frame after described information is processed described mapping to do scrambling to process and obtain scrambled data frame, comprising:
Mapping table according to the scrambler numbering prestoring with scrambler, searches with the scrambler in described information and numbers corresponding scrambler;
Frame after the scrambler that utilization is searched is processed described mapping is done scrambling processing and is obtained scrambled data frame.
Preferably, described to system transmission scrambling request, receive the information in response to described scrambling request of described system transmission, comprising:
Utilize short message service to send the second scrambling request to described system, described the second scrambling request is used for asking scrambler;
Receive the information in response to described the second scrambling request that described system sends, described packets of information is containing scrambler;
Describedly utilize Frame after described information is processed described mapping to do scrambling to process and obtain scrambled data frame, comprising: the Frame after utilizing scrambler in described information to process described mapping is done scrambling and processed and obtain scrambled data frame.
Preferably, described method also comprises:
According to the host-host protocol of described system, described scrambled data frame is packaged into packet, and adds signaling information in described packet, so that described system is according to described signaling information executable operations.
Second aspect, the invention provides a kind of video data decryption method, and described method comprises:
The packet that receiving system sends, described packet comprises scrambled data frame, comprises pseudo-characteristic code in described Frame;
To described system, send descrambling request, receive the information in response to described descrambling request that described system sends;
Utilize described information as scramble process, to obtain descrambling data frame to described scrambled data frame;
Pseudo-characteristic code in described descrambling data frame is mapped as to condition code and obtains data decryption frame.
Preferably, described to the request of described system transmission descrambling, receive the information in response to described descrambling request of described system transmission, comprising:
Utilize short message service to send the first descrambling request to described system, described the first descrambling request is used for asking scrambler numbering;
Receive the information in response to described the first descrambling request that described system sends, described packets of information is containing scrambler numbering;
Describedly utilize described information to carry out scramble process to described scrambled data frame to obtain descrambling data frame, comprising:
Mapping table according to the scrambler numbering prestoring with scrambler, searches with the scrambler in described information and numbers corresponding scrambler;
Utilize the scrambler of searching as scramble process, to obtain descrambling data frame to described scrambled data frame.
Preferably, described to the request of described system transmission descrambling, receive the information in response to described descrambling request of described system transmission, comprising:
Utilize short message service to send the second descrambling request to described system, described the second descrambling request is used for asking scrambler;
Receive the information in response to described the second descrambling request that described system sends, described packets of information is containing scrambler;
Describedly utilize described information as scramble process, to obtain descrambling data frame to described scrambled data frame, comprising: utilize the scrambler in described information as scramble process, to obtain descrambling data frame to described scrambled data frame.
The third aspect the invention provides a kind of video data encryption device, and described device comprises:
Receiving element, for the Frame of received code device output, described data frame packet is containing condition code;
Map unit, obtains the Frame after mapping is processed for the condition code of Frame being mapped to pseudo-characteristic code;
Scrambling request unit, for sending scrambling request to system, receives the information in response to described scrambling request that described system sends;
Scrambling unit, does scrambling processing for the Frame after utilizing described information to described mapping processing and obtains scrambled data frame.
Preferably, described scrambling request unit, comprising:
The first request sends subelement, and for utilizing short message service to send the first scrambling request to described system, described the first scrambling request is used for asking scrambler numbering;
The first information receives subelement, and for receiving the response of described system transmission and the information of described the first scrambling request, described packets of information is containing scrambler numbering;
Described scrambling unit comprises:
Search subelement, for the mapping table with scrambler according to the scrambler numbering prestoring, search with the scrambler in described information and number corresponding scrambler;
Scrambling subelement, does scrambling processing for the Frame after utilizing searched scrambler to described mapping processing and obtains scrambled data frame.
Preferably, described scrambling request unit, comprising:
The second request sends subelement, and for utilizing short message service to send the second scrambling request to described system, described the second scrambling request is used for asking scrambler;
The second information receives subelement, the information in response to described the second scrambling request sending for receiving described system, and described packets of information is containing scrambler;
Described scrambling unit is processed and is obtained scrambled data frame specifically for utilizing Frame after scrambler in described information is processed described mapping to do scrambling.
Preferably, described device also comprises:
Packaged unit for according to the host-host protocol of described system, described scrambled data frame being packaged into packet, and is added signaling information in described packet, so that described system is according to described signaling information executable operations.
Fourth aspect, the invention provides a kind of video data decryption device, and described method comprises:
Receiving element, the packet sending for receiving system, described packet comprises scrambled data frame, comprises pseudo-characteristic code in described Frame;
Descrambling request unit, for sending descrambling request to described system, receives the information in response to described descrambling request that described system sends;
Descrambling unit, for utilizing described information to obtain descrambling data frame to described scrambled data frame as scramble process;
Map unit, obtains data decryption frame for the pseudo-characteristic code of described descrambling data frame is mapped as to condition code.
Preferably, described descrambling request unit, comprising:
The first request sends subelement, and for utilizing short message service to send the first descrambling request to described system, described the first descrambling request is used for asking scrambler numbering;
The first information receives subelement, the information in response to described the first descrambling request sending for receiving described system, and described packets of information is containing scrambler numbering;
Described descrambling unit comprises:
Search subelement, for according to the mapping table between the scrambler storing in advance and scrambler numbering, search with scrambler in described information and number corresponding scrambler;
Descrambling subelement, obtains descrambling data frame for utilizing searched scrambler to carry out scramble process to described scrambled data frame.
Preferably, described descrambling request unit, comprising:
The second request sends subelement, and for utilizing short message service to send the second descrambling request to described system, described descrambling request is used for asking scrambler;
The second information receives subelement, the information in response to described the second descrambling request sending for receiving described system, and described packets of information is containing scrambler;
Described scramble process unit is specifically for utilizing the scrambler in described information to obtain descrambling data frame to described scrambled data frame as scramble process.
Known by foregoing description, beneficial effect of the present invention is:
Video data encryption method and the device of the embodiment of the present invention, first, shine upon the Frame of processing after being shone upon to the condition code in Frame.Because the condition code in Frame has been carried out mapping processing, therefore,, even if some receiving terminal illegally intercepts this Frame, also cannot be correctly decoded, cannot obtain real video data, this processing mode can improve video data fail safe and this compute mode simple possible.Then, after mapping is processed, Frame after also mapping being processed carries out scrambling processing, the scramble information adopting is distributed according to request dynamic by system, the scramble information adopting for different Frames is not changeless, possibility is identical also may be different, so, even if some receiving terminal illegally intercepts scrambled data frame, owing to knowing scramble information, cannot successfully not decipher yet, this dynamic scrambling mode can further improve video data fail safe and scrambling processing mode simple possible, and computation complexity is low.
In addition, corresponding with video data encryption method and device, video data decryption method and device that the embodiment of the present invention provides, its handling process and encryption flow process are reciprocal, just because of encrypting end, adopt mapping to process, scrambling is processed and has been improved video data fail safe and processing mode simple possible, and corresponding decryption processing corresponding first carry out scramble process, what when the descrambling information adopting and encryption, adopt one shows and guarantees correct descrambling, and then the Frame after scramble process is shone upon to processing, namely pseudo-characteristic code is mapped as to condition code, process like this so as encoder correctly to its decoding, to guarantee encryption and decryption, process the processing that does not affect encoder, this decryption method simple and can guaranteeing data security property.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of embodiment 1 of the video data encryption method of the embodiment of the present invention;
Fig. 2 is the flow chart of embodiment 1 of the video data decryption method of the embodiment of the present invention;
Fig. 3 is the structure chart of embodiment 1 of the video data encryption device of the embodiment of the present invention;
Fig. 4 is the structure chart of embodiment 1 of the video data decryption device of the embodiment of the present invention.
Embodiment
In order to make those skilled in the art person understand better the scheme of the embodiment of the present invention, below in conjunction with drawings and embodiments, the embodiment of the present invention is described in further detail.
Referring to Fig. 1, show the flow chart of the embodiment 1 that the video data of the embodiment of the present invention encrypts, the present embodiment is to describe from the angle of video data transmitting sending end, the method can comprise:
Step 101, the Frame of received code device output, described data frame packet is containing condition code.
Video data service between transmitting terminal model and receiving terminal, then transmitting terminal is processed successively to sent video data, first coding video data is processed, and then be encrypted, finally will after scrambled data frame packing, send.Therefore, encryption is coding to be processed to Frame be afterwards encrypted, and the Frame that is exactly in fact encoder output is encrypted.For transmitting terminal, this encoder can be that a hardware unit can be also a software module; Based on this, below coding processing procedure is simply introduced.
In fact the object that coding is processed is exactly that video data is carried out to video compression to reduce the capacity of data.When actual compression, encoder can take various algorithms to reduce the capacity of data, video coding algorithm from MPEG-1 develop into, MPEG-2, MPEG-4 and H.264.In order to pursue higher compression efficiency, more focus on removing the temporal redundancy of image sequence.Therefore, introduced I frame (intracoded frame), P frame (forward-predictive-coded frames), B frame (bi-directional predictive coding frame) in these algorithms, in video compression, every frame represents a static image.
Wherein, I frame is also referred to as key frame, and it carries out compressed encoding by full frame image information, and its decoding does not rely on any other frame, only uses the data of I frame just can reconstruct complete image.I frame is the reference frame of P frame and B frame.
P frame, by abundant reduction and image sequence above the time redundancy information of coded frame carry out the coded image of compressed transmission data amount, be also referred to as predictive frame.P frame recording be this frame with the difference of former frame (I frame or P frame), due to, P frame does not have complete image data, only have other data of image difference with former frame, therefore, before need to utilizing during decoding, the image of buffer memory is superimposed with the difference of this frame definition, generates final image.
B frame, both considered and sequence of source images before the time redundancy information between coded frame, taken into account again and sequence of source images after the time redundancy information between coded frame carry out the coded image of compressed transmission data amount, be also referred to as bi-directional predicted frames.B frame recording be this frame and the difference of front and back frame, therefore, the B frame of decoding, the cache image before not only will obtaining, the image after also will decoding, is superposeed and obtains final image with this two field picture by front and back image.
Through coding, process and obtain dissimilar coded frame, and in different coded frame, all comprise condition code, condition code is for identification data frame type.This condition code is for this Frame of distinctive mark is I frame, P frame or B frame, so that receiving terminal adopts corresponding decoding process according to the type of Frame when decoding.
Step 102, is mapped to pseudo-characteristic code by the condition code in Frame and obtains the Frame after mapping is processed.
The map operation of this step can be processed according to transmitting terminal and the pre-set mapping mode of receiving terminal, detailed process is, according to default mapping mode, the condition code of carrying in Frame is mapped to pseudo-characteristic code, such as: default mapping mode is for getting non-processing, if I frame identification is " 00 ", through mapping, processes and obtain pseudo-characteristic code " 11 "; If P frame identification is " 10 ", through mapping, processes and obtain pseudo-characteristic code " 01 "; If B frame identification is " 01 ", through mapping, processes and obtain pseudo-characteristic code " 10 ".
The map operation of this step can also be that transmitting terminal oneself is set a kind of mapping mode, and by this mapping mode transmitting and receiving terminal, so that receiving terminal carries out contrary processing according to this mapping mode to the Frame receiving, obtains former condition code; Or by transmitting terminal, mapping relations table between condition code in Frame and pseudo-characteristic code is sent to receiving terminal, so that receiving terminal carries out contrary processing according to this mapping relations table to the Frame receiving, obtain former condition code.
Step 103, sends scrambling request to system, receives the information in response to described scrambling request that described system sends.
This step can have following two kinds of implementations, respectively these two kinds of implementations is explained below.The first implementation, can comprise:
Utilize short message service to send the first scrambling request to described system, described the first scrambling request is used for asking scrambler numbering;
Receive the information in response to described the first scrambling request that described system sends, described packets of information is containing scrambler numbering.
Said system refers to the private network communication system of not only supporting narrow band service but also support broadband services.For this system, after receiving the first scrambling request of transmitting terminal transmission, can choose scrambler numbering according to certain rule, the irregular scrambler numbering of choosing of milli that also can be random, the form of then selected scrambler being numbered with short message sends to transmitting terminal.
In order to guarantee the normal execution of above-mentioned the first implementation, transmitting terminal sets in advance a scrambler pond, and this scrambler pond comprises many group scramblers, the corresponding scrambler numbering of each group scrambler, the scrambler numbering that different scramblers is corresponding different.Transmitting terminal can save the mapping table between scrambler numbering and scrambler in advance, so that follow-up execution scrambling operation.Based on this, said system also needs to preserve in advance a scrambler numbering pond, the scrambler numbering of all scramblers that this scrambler numbering pond comprises transmitting terminal setting; After said system receives the first scrambling request of transmitting terminal transmission, in the scrambler numbering pond of preserving in advance, select a scrambler numbering, and utilizing short message service to send it to transmitting terminal, the mapping table of then being preserved in advance according to self by transmitting terminal, searches corresponding scrambler.
The second implementation, can comprise:
Utilize short message service to send the second scrambling request to described system, described the second scrambling request is used for asking scrambler;
Receive the information in response to described the second scrambling request that described system sends, described packets of information is containing scrambler.
In order to guarantee the normal execution of above-mentioned the second implementation, different from the first implementation, in transmitting terminal, can preserve scrambler, scrambler numbering or mapping table etc., still, system must set in advance a scrambler pond, and this scrambler pond comprises many group scramblers; Transmitting terminal directly sends the second scrambling request to system, after system receives this scrambling request, from the scrambler pond of preserving in advance, select a scrambler, and utilize short message service that this scrambler is sent to transmitting terminal, transmitting terminal just can be carried out follow-up scrambling according to this scrambler and process.
Step 104, utilizes Frame after described information is processed described mapping to do scrambling and processes and obtain scrambled data frame.
The information that need to obtain according to above-mentioned steps 103 due to the realization of this step, and above-mentioned steps 103 has two kinds of different implementations to obtain the information that comprises different content, based on this, this step also has two kinds of implementations.
When step 103 adopts the first implementation, this step can realize in the following manner, comprising:
Mapping table according to the scrambler numbering prestoring with scrambler, searches with the scrambler in described information and numbers corresponding scrambler;
Frame after the scrambler that utilization is searched is processed described mapping is done scrambling processing and is obtained scrambled data frame.
For transmitting terminal, utilize scrambler to do scrambling to described mapping process frames of data and process, the Frame after scrambling is processed is as scrambled data frame.
When step 103 adopts the second implementation, this step specific implementation is:
Utilizing Frame after scrambler in described information is processed described mapping to carry out scrambling processes and obtains scrambled data frame.
By above-mentioned steps 101~104, just realized the encryption to the Frame after coding, this cipher processing method, can improve Information Security, and implementation simple possible.Generally, after encryption, transmitting terminal can be packaged into packet by this scrambled data frame according to the host-host protocol of system, by system forwards to receiving terminal, thereby realize video data service.
Transmitting terminal can send video traffic request to system before initiating video data service, and this video traffic request comprises: receiving terminal identify label and type of service; Transmitting terminal can be initiated man-to-man video traffic, also can initiate the video traffic of one-to-many.What is called refers to only have a receiving terminal one to one, and one-to-many has referred to a plurality of receiving terminals.System is therefrom learnt receiving terminal identify label after receiving this video traffic request, to transmitting terminal, sends and allows message; After system receives the packet of transmitting terminal transmission, send it to receiving terminal.
Transmitting terminal also can be without the identify label of apprizing system receiving terminal, but by schedule information, dispatch the corresponding relation between transmitting terminal and receiving terminal by control centre,, when system receives the packet of transmitting terminal transmission, just according to schedule information, send it to corresponding receiving terminal.
By the invention described above embodiment, can find out: utilize video encryption method of the present invention, condition code in Frame after first coding being processed is shone upon to process and is obtained pseudo-characteristic code, after processing like this, even if some receiving terminals illegally intercept this Frame, also cannot be correctly decoded, cannot obtain real video data.Therefore, the method can improve video data fail safe and this compute mode simple possible after mapping is processed, Frame after also mapping being processed carries out scrambling processing, the scramble information adopting is distributed according to request dynamic by system, the scramble information adopting for different Frames is not changeless, possibility is identical also may be different, so, even if some receiving terminals illegally intercept scrambled data frame, owing to not knowing that scramble information also cannot realize decryption processing, this dynamic scrambling mode can further improve video data fail safe and scrambling processing mode simple possible, computation complexity is low.
In existing system, a lot of operations all need control centre's (dispatching desk), and control centre realizes some control functions by schedule information, more consuming time, for example work as the video call service between transmitting terminal A initiation and receiving terminal B and C, when video data transmitting after certain hour, transmitting terminal A no longer needs receiving terminal B to participate in this business, must by schedule information, control receiving terminal B by control centre and exit this business, or transmitting terminal A wishes that receiving terminal D can participate in this business, also agree to control by control centre.Based on this problem, the invention provides a kind of preferred version, do not need control centre just can realize above-mentioned functions.This preferred version is specifically on the basis of above-described embodiment 1, and before giving described system by described Packet Generation, described method also comprises:
According to the host-host protocol of described system, described scrambled data frame is packaged into packet, and adds signaling information in described packet, so that described system is according to described signaling information executable operations.
While having increased signaling information in described packet, after system receives this packet, according to signaling information, carry out corresponding operation.Such as when signaling information being allows some receiving terminals exit the video traffic that transmitting terminal is initiated, system stops sending packet to corresponding receiving terminal according to this signaling information, so that this receiving terminal exits this video traffic.Or when signaling information is the video traffic that allows some receiving terminals add transmitting terminal to initiate, system sends packet according to this signaling information to corresponding receiving terminal, so that this receiving terminal adds video traffic.
Utilize the invention described above preferred version, can with apprizing system, carry out corresponding operation by carry signaling information in packet, no longer need control centre to come to realize control by schedule information, thereby save the operating time.
Corresponding with above-mentioned video data encryption method, the embodiment of the present invention provides video data decoding method, referring to Fig. 2, show the flow chart of embodiment 1 of the video data decryption method of the embodiment of the present invention, the present embodiment is to describe from the angle of video data receiving terminal, and the method can comprise:
Step 201, the packet that receiving system sends, described packet comprises scrambled data frame, comprises pseudo-characteristic code in described Frame.
System, according to the request of transmitting terminal or according to schedule information, is given corresponding receiving terminal by Packet Generation, because Frame is through after the processing of above-described embodiment encryption method, comprises pseudo-characteristic code in Frame. 
Step 202, sends descrambling request to described system, receives the information in response to described descrambling request that described system sends.
Receiving terminal is unpacked packet to obtain scrambled data frame according to the host-host protocol of described system after receiving packet, then just need to be decrypted processing to this Frame, the process of this decryption processing should be the contrary of ciphering process and processes, first to carry out processing corresponding scramble process with scrambling, because scramble process need to be processed and adopt correctly descrambling of same scrambler with scrambling, therefore, need to be by this step to information corresponding to system acquisition.In actual applications, in fact descrambling process can regard scrambling processing as.
This step can realize by following two kinds of modes, respectively these two kinds of implementations is explained below.
The first implementation, can comprise:
Utilize short message service to send the first descrambling request to described system, described the first descrambling request is used for asking scrambler numbering;
Receive the information in response to described the first descrambling request that described system sends, described packets of information is containing scrambler numbering.
In order to guarantee the normal execution of the first implementation, receiving terminal need to be preserved the mapping table between scrambler and scrambler numbering in advance, and this mapping table preserve with transmitting terminal identical.For system, system need to record transmitting terminal Frame is carried out to the scrambler numbering that scrambling processing adopts.Receiving terminal can be wanted to obtain the scrambler which Frame adopts by descrambling request apprizing system and numbers, and, carries Frame numbering in descrambling request that is; After system receives descrambling request, recorded corresponding scrambler numbering will be sent to receiving terminal with short message form.
The second implementation, can comprise:
Utilize short message service to send the second descrambling request to described system, described the second descrambling request is used for asking scrambler;
Receive the information in response to described the second descrambling request that described system sends, described packets of information is containing scrambler.
In order to guarantee the normal execution of the second implementation, with first kind of way difference be, receiving terminal can be preserved anything, but system need to set in advance a scrambler pond, and this scrambler pond comprises many group scramblers; System need to record transmitting terminal data are encrypted to adopted scrambler.By descrambling request apprizing system, it will obtain receiving terminal is the scrambler which Frame is corresponding, in descrambling request, carries Frame numbering.After system receives this scrambler request, utilize short message service that scrambler corresponding to this Frame sent to receiving terminal.
Step 203, utilizes described information as scramble process, to obtain descrambling data frame to described scrambled data frame.
The information that need to obtain according to above-mentioned steps 202 due to the realization of this step, and above-mentioned steps 202 has two kinds of different implementations to obtain the information that comprises different content, based on this, this step also has two kinds of implementations.
When step 202 adopts the first implementation, this step can realize in the following manner, comprising:
Mapping table according to the scrambler numbering prestoring with scrambler, searches with the scrambler in described information and numbers corresponding scrambler;
Utilize the scrambler of searching as scramble process, to obtain descrambling data frame to described scrambled data frame.
When step 202 adopts the second implementation, this step is specially:
Utilize the scrambler in described information as scramble process, to obtain descrambling data frame to described scrambled data frame.
Step 204, is mapped as condition code by the pseudo-characteristic code in described descrambling data frame and obtains data decryption frame.
Receiving terminal is in order to realize the mapping processing between pseudo-characteristic code and condition code, can be according to processing with the pre-set mapping mode of transmitting terminal, specific implementation process is, according to default mapping mode, the pseudo-characteristic code carrying in Frame is mapped to former condition code.
Certainly, if receiving terminal and transmitting terminal do not have pre-set mapping mode, but the mapping mode of being set alone by transmitting terminal, transmitting terminal need to be in advance by this mapping mode or by the corresponding relation between condition code and pseudo-characteristic code, by short message service, send to receiving terminal, so that receiving terminal completes mapping according to these information, process, the Frame after mapping processing is as data decryption frame the most at last.
By the invention described above embodiment, can find out: video data decryption method of the present invention, its handling process and encryption flow process are reciprocal, just because of encrypting end, adopt mapping to process, scrambling is processed and has been improved video data fail safe and processing mode simple possible, and corresponding decryption processing corresponding first carry out scramble process, what when the descrambling information adopting and encryption, adopt one shows and guarantees correct descrambling, and then the Frame after scramble process is shone upon to processing, namely pseudo-characteristic code is mapped as to condition code, process like this so as encoder correctly to its decoding, to guarantee encryption and decryption, process the processing that does not affect encoder, its implementation is simple and can guaranteeing data security property.
Corresponding with the invention described above embodiment video data encryption method, the embodiment of the present invention also provides video data encryption device, for existing terminal equipment, want to realize structured video data transmitting, must be encrypted data, therefore, this encryption device is often applied in transmitting apparatus.
Consult Fig. 3, the structure chart of the embodiment 1 of the embodiment of the present invention video data encryption device illustrating, this device can comprise:
Receiving element 301, for the Frame of received code device output, described data frame packet is containing condition code;
Map unit 302, obtains the Frame after mapping is processed for the condition code of Frame being mapped to pseudo-characteristic code;
Scrambling request unit 303, for sending scrambling request to system, receives the information in response to described scrambling request that described system sends;
Scrambling unit 304, does scrambling processing for the Frame after utilizing described information to described mapping processing and obtains scrambled data frame.
Preferably, described scrambling request unit, comprising:
The first request sends subelement, and for utilizing short message service to send the first scrambling request to described system, described the first scrambling request is used for asking scrambler numbering;
The first information receives subelement, and for receiving the response of described system transmission and the information of described the first scrambling request, described packets of information is containing scrambler numbering;
Described scrambling unit comprises:
Search subelement, for the mapping table with scrambler according to the scrambler numbering prestoring, search with the scrambler in described information and number corresponding scrambler;
Scrambling subelement, does scrambling processing for the Frame after utilizing searched scrambler to described mapping processing and obtains scrambled data frame.
Preferably, described scrambling request unit, comprising:
The second request sends subelement, and for utilizing short message service to send the second scrambling request to described system, described the second scrambling request is used for asking scrambler;
The second information receives subelement, the information in response to described the second scrambling request sending for receiving described system, and described packets of information is containing scrambler;
Described scrambling unit is processed and is obtained scrambled data frame specifically for utilizing Frame after scrambler in described information is processed described mapping to do scrambling.
Preferably, described device also comprises:
Packaged unit for according to the host-host protocol of described system, described scrambled data frame being packaged into packet, and is added signaling information in described packet, so that described system is according to described signaling information executable operations.
By above-described embodiment, can find out, utilize encryption device of the present invention to process and the scrambling encryption of having finished dealing with by mapping, these two processing modes have increased deciphering difficulty and have improved video fail safe, and its processing mode simple operation amount is low, by short message service, obtain the mode of scramble information, realize wide and narrow strip combination, further improve the fail safe of video data transmitting.
Corresponding with the invention described above embodiment video data decryption method, the embodiment of the present invention also provides video data decryption device, for existing terminal equipment, wanting to realize video data correctly receives, must be decrypted processing to data, therefore, this decryption device is often applied in receiving equipment.
Consult Fig. 4, the structure chart of the embodiment 1 of the embodiment of the present invention video data decryption device illustrating, this device can comprise:
Receiving element 401, the packet sending for receiving system, described packet comprises scrambled data frame, comprises pseudo-characteristic code in described Frame;
Descrambling request unit 402, for sending descrambling request to described system, receives the information in response to described descrambling request that described system sends;
Descrambling unit 403, for utilizing described information to obtain descrambling data frame to described scrambled data frame as scramble process;
Map unit 404, obtains data decryption frame for the pseudo-characteristic code of described descrambling data frame is mapped as to condition code.
Described descrambling request unit, comprising:
The first request sends subelement, and for utilizing short message service to send the first descrambling request to described system, described the first descrambling request is used for asking scrambler numbering;
The first information receives subelement, the information in response to described the first descrambling request sending for receiving described system, and described packets of information is containing scrambler numbering;
Described descrambling unit, comprising:
Search subelement, for according to the mapping table between the scrambler storing in advance and scrambler numbering, search with scrambler in described information and number corresponding scrambler;
Descrambling subelement, obtains descrambling data frame for utilizing searched scrambler to carry out scramble process to described scrambled data frame.
Preferably, described descrambling request unit, comprising:
The second request sends subelement, and for utilizing short message service to send the second descrambling request to described system, described the second descrambling request is used for asking scrambler;
The second information receives subelement, the information in response to described descrambling request sending for receiving described system, and described packets of information is containing scrambler;
Described scramble process unit is specifically for utilizing the scrambler in described information to obtain descrambling data frame to described scrambled data frame as scramble process.
By the invention described above embodiment, can find out: the contrary of decryption device workflow of the present invention and encryption device workflow processed, by scramble process and the mapping decryption processing of having finished dealing with, these two processing modes have guaranteed the secure decryption of video data, and its processing mode simple operation amount is low, by short message service, obtain the mode of scramble information, realize wide and narrow strip combination, further improve the fail safe of video data transmitting.
In actual applications, the terminal of initiating video traffic is called to transmitting terminal, the terminal of receiving video service is called to receiving terminal, therefore, existing terminal equipment likely as transmitting terminal also likely as receiving terminal, in order to guarantee that terminal equipment can normally be encrypted, therefore, terminal equipment need to load encryption device of the present invention and decryption device.
At some in particular cases, some terminal is just for initiating video data service, and same, some terminal also can only be for receiving video data, consideration in view of the situation, and terminal can select to install encryption device or decryption device according to the actual requirements.In actual applications, this terminal equipment is the terminal equipment that is applicable to private network, such as equipment such as intercom, ride, mobile intermediate stations.
It should be noted that, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space in this article, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
It should be noted that, one of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above a kind of video data encryption provided by the present invention, decryption method and device are described in detail, applied specific embodiment herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (14)

1. a video data encryption method, is characterized in that, described method comprises:
The Frame of received code device output, described data frame packet is containing condition code;
Condition code in Frame is mapped to pseudo-characteristic code and obtains the Frame after mapping is processed;
To system, send scrambling request, receive the information in response to described scrambling request that described system sends;
Frame after utilizing described information to described mapping processing is done scrambling processing and is obtained scrambled data frame.
2. method according to claim 1, is characterized in that, described to system transmission scrambling request, receives the information in response to described scrambling request of described system transmission, comprising:
Utilize short message service to send the first scrambling request to described system, described the first scrambling request is used for asking scrambling numbering;
Receive the response of described system transmission and the information of described the first scrambling request, described packets of information is containing scrambler numbering;
Describedly utilize Frame after described information is processed described mapping to do scrambling to process and obtain scrambled data frame, comprising:
Mapping table according to the scrambler numbering prestoring with scrambler, searches with the scrambler in described information and numbers corresponding scrambler;
Frame after the scrambler that utilization is searched is processed described mapping is done scrambling processing and is obtained scrambled data frame.
3. method according to claim 1, is characterized in that, described to system transmission scrambling request, receives the information in response to described scrambling request of described system transmission, comprising:
Utilize short message service to send the second scrambling request to described system, described the second scrambling request is used for asking scrambler;
Receive the information in response to described the second scrambling request that described system sends, described packets of information is containing scrambler;
Describedly utilize Frame after described information is processed described mapping to do scrambling to process and obtain scrambled data frame, comprising: the Frame after utilizing scrambler in described information to process described mapping is done scrambling and processed and obtain scrambled data frame.
4. according to the method in any one of claims 1 to 3, it is characterized in that, described method also comprises:
According to the host-host protocol of described system, described scrambled data frame is packaged into packet, and adds signaling information in described packet, so that described system is according to described signaling information executable operations.
5. a video data decryption method, is characterized in that, described method comprises:
The packet that receiving system sends, described packet comprises scrambled data frame, comprises pseudo-characteristic code in described Frame;
To described system, send descrambling request, receive the information in response to described descrambling request that described system sends;
Utilize described information as scramble process, to obtain descrambling data frame to described scrambled data frame;
Pseudo-characteristic code in described descrambling data frame is mapped as to condition code and obtains data decryption frame.
6. method according to claim 5, is characterized in that, described to the request of described system transmission descrambling, receives the information in response to described descrambling request of described system transmission, comprising:
Utilize short message service to send the first descrambling request to described system, described the first descrambling request is used for asking scrambler numbering;
Receive the information in response to described the first descrambling request that described system sends, described packets of information is containing scrambler numbering;
Describedly utilize described information to carry out scramble process to described scrambled data frame to obtain descrambling data frame, comprising:
Mapping table according to the scrambler numbering prestoring with scrambler, searches with the scrambler in described information and numbers corresponding scrambler;
Utilize the scrambler of searching as scramble process, to obtain descrambling data frame to described scrambled data frame.
7. method according to claim 5, is characterized in that, described to the request of described system transmission descrambling, receives the information in response to described descrambling request of described system transmission, comprising:
Utilize short message service to send the second descrambling request to described system, described the second descrambling request is used for asking scrambler;
Receive the information in response to described the second descrambling request that described system sends, described packets of information is containing scrambler;
Describedly utilize described information as scramble process, to obtain descrambling data frame to described scrambled data frame, comprising: utilize the scrambler in described information as scramble process, to obtain descrambling data frame to described scrambled data frame.
8. a video data encryption device, is characterized in that, described device comprises:
Receiving element, for the Frame of received code device output, described data frame packet is containing condition code;
Map unit, obtains the Frame after mapping is processed for the condition code of Frame being mapped to pseudo-characteristic code;
Scrambling request unit, for sending scrambling request to system, receives the information in response to described scrambling request that described system sends;
Scrambling unit, does scrambling processing for the Frame after utilizing described information to described mapping processing and obtains scrambled data frame.
9. device according to claim 8, is characterized in that, described scrambling request unit, comprising:
The first request sends subelement, and for utilizing short message service to send the first scrambling request to described system, described the first scrambling request is used for asking scrambler numbering;
The first information receives subelement, and for receiving the response of described system transmission and the information of described the first scrambling request, described packets of information is containing scrambler numbering;
Described scrambling unit comprises:
Search subelement, for the mapping table with scrambler according to the scrambler numbering prestoring, search with the scrambler in described information and number corresponding scrambler;
Scrambling subelement, does scrambling processing for the Frame after utilizing searched scrambler to described mapping processing and obtains scrambled data frame.
10. device according to claim 8, is characterized in that, described scrambling request unit, comprising:
The second request sends subelement, and for utilizing short message service to send the second scrambling request to described system, described the second scrambling request is used for asking scrambler;
The second information receives subelement, the information in response to described the second scrambling request sending for receiving described system, and described packets of information is containing scrambler;
Described scrambling unit is processed and is obtained scrambled data frame specifically for utilizing Frame after scrambler in described information is processed described mapping to do scrambling.
Device in 11. according to Claim 8 to 10 described in any one, is characterized in that, described device also comprises:
Packaged unit for according to the host-host protocol of described system, described scrambled data frame being packaged into packet, and is added signaling information in described packet, so that described system is according to described signaling information executable operations.
12. 1 kinds of video data decryption devices, is characterized in that, described method comprises:
Receiving element, the packet sending for receiving system, described packet comprises scrambled data frame, comprises pseudo-characteristic code in described Frame;
Descrambling request unit, for sending descrambling request to described system, receives the information in response to described descrambling request that described system sends;
Descrambling unit, for utilizing described information to obtain descrambling data frame to described scrambled data frame as scramble process;
Map unit, obtains data decryption frame for the pseudo-characteristic code of described descrambling data frame is mapped as to condition code.
13. devices according to claim 12, is characterized in that, described descrambling request unit, comprising:
The first request sends subelement, and for utilizing short message service to send the first descrambling request to described system, described the first descrambling request is used for asking scrambler numbering;
The first information receives subelement, the information in response to described the first descrambling request sending for receiving described system, and described packets of information is containing scrambler numbering;
Described descrambling unit comprises:
Search subelement, for according to the mapping table between the scrambler storing in advance and scrambler numbering, search with scrambler in described information and number corresponding scrambler;
Descrambling subelement, obtains descrambling data frame for utilizing searched scrambler to carry out scramble process to described scrambled data frame.
14. devices according to claim 12, is characterized in that, described descrambling request unit, comprising:
The second request sends subelement, and for utilizing short message service to send the second descrambling request to described system, described descrambling request is used for asking scrambler;
The second information receives subelement, the information in response to described the second descrambling request sending for receiving described system, and described packets of information is containing scrambler;
Described scramble process unit is specifically for utilizing the scrambler in described information to obtain descrambling data frame to described scrambled data frame as scramble process.
CN201410313239.4A 2014-07-02 2014-07-02 A kind of video data encryption and decryption method and device Active CN104065968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410313239.4A CN104065968B (en) 2014-07-02 2014-07-02 A kind of video data encryption and decryption method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410313239.4A CN104065968B (en) 2014-07-02 2014-07-02 A kind of video data encryption and decryption method and device

Publications (2)

Publication Number Publication Date
CN104065968A true CN104065968A (en) 2014-09-24
CN104065968B CN104065968B (en) 2017-11-24

Family

ID=51553466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410313239.4A Active CN104065968B (en) 2014-07-02 2014-07-02 A kind of video data encryption and decryption method and device

Country Status (1)

Country Link
CN (1) CN104065968B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735457A (en) * 2015-03-27 2015-06-24 南京中新赛克科技有限责任公司 Video encryption and decryption method based on H.264 code
CN104811652A (en) * 2015-04-27 2015-07-29 成都腾悦科技有限公司 Conference system based on electronic white board
CN106470100A (en) * 2015-08-14 2017-03-01 启碁科技股份有限公司 Ciphering and deciphering device, encryption method and decryption method
CN110557680A (en) * 2019-07-30 2019-12-10 视联动力信息技术股份有限公司 Audio and video data frame transmission method and system
CN112003859A (en) * 2020-08-21 2020-11-27 江苏徐工工程机械研究院有限公司 Data encryption method and device and data decryption method and device
CN112637246A (en) * 2021-01-14 2021-04-09 山西太钢不锈钢股份有限公司 Method for intelligently encoding and transmitting coal type information of coking coal sampling control system
WO2022193570A1 (en) * 2021-03-17 2022-09-22 Tcl华星光电技术有限公司 Scrambling device and scrambling method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1308463A (en) * 2000-02-09 2001-08-15 德国汤姆森-布兰特有限公司 Encryption and decryption method for protecting data stream and coder and decoder
CN101159500A (en) * 2007-11-09 2008-04-09 北京创毅视讯科技有限公司 Method, system and equipment of protecting mobile multimedia service
CN101969545A (en) * 2010-09-08 2011-02-09 中兴通讯股份有限公司 Encryption method and device of multimedia file
CN103024449A (en) * 2011-09-28 2013-04-03 中国移动通信集团公司 Method for processing video frame stream, video server and terminal equipment
CN103607272A (en) * 2013-11-26 2014-02-26 曙光信息产业股份有限公司 Video encryption method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1308463A (en) * 2000-02-09 2001-08-15 德国汤姆森-布兰特有限公司 Encryption and decryption method for protecting data stream and coder and decoder
CN101159500A (en) * 2007-11-09 2008-04-09 北京创毅视讯科技有限公司 Method, system and equipment of protecting mobile multimedia service
CN101969545A (en) * 2010-09-08 2011-02-09 中兴通讯股份有限公司 Encryption method and device of multimedia file
CN103024449A (en) * 2011-09-28 2013-04-03 中国移动通信集团公司 Method for processing video frame stream, video server and terminal equipment
CN103607272A (en) * 2013-11-26 2014-02-26 曙光信息产业股份有限公司 Video encryption method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹蕊: "基于H.264压缩编码标准的视频加密技术", 《中国优秀硕士学位论文全文数据库》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735457A (en) * 2015-03-27 2015-06-24 南京中新赛克科技有限责任公司 Video encryption and decryption method based on H.264 code
CN104811652A (en) * 2015-04-27 2015-07-29 成都腾悦科技有限公司 Conference system based on electronic white board
CN106470100A (en) * 2015-08-14 2017-03-01 启碁科技股份有限公司 Ciphering and deciphering device, encryption method and decryption method
CN106470100B (en) * 2015-08-14 2019-08-20 启碁科技股份有限公司 Ciphering and deciphering device, encryption method and decryption method
CN110557680A (en) * 2019-07-30 2019-12-10 视联动力信息技术股份有限公司 Audio and video data frame transmission method and system
CN110557680B (en) * 2019-07-30 2020-11-27 视联动力信息技术股份有限公司 Audio and video data frame transmission method and system
CN112003859A (en) * 2020-08-21 2020-11-27 江苏徐工工程机械研究院有限公司 Data encryption method and device and data decryption method and device
CN112637246A (en) * 2021-01-14 2021-04-09 山西太钢不锈钢股份有限公司 Method for intelligently encoding and transmitting coal type information of coking coal sampling control system
WO2022193570A1 (en) * 2021-03-17 2022-09-22 Tcl华星光电技术有限公司 Scrambling device and scrambling method

Also Published As

Publication number Publication date
CN104065968B (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN104065968A (en) Video data encryption method, video data decryption method, video data encryption device and video data decryption device
CN102469344B (en) Video stream encryption and decryption method, video stream encryption and decryption device, communication terminal and storage terminal
JP2019537871A5 (en)
CN106973056B (en) Object-oriented security chip and encryption method thereof
CN105009597A (en) Master key encryption functions for transmitter-receiver pairing as countermeasure to thwart key recovery attacks
CN106888183A (en) Data encryption, decryption, the method and apparatus and system of key request treatment
CN103294961A (en) Method and device for file encrypting/decrypting
CN101646168B (en) Data encryption method, decryption method and mobile terminal
CN103338385A (en) Video processing system and corresponding method
CN106470345A (en) Video-encryption transmission method and decryption method, apparatus and system
US20170272407A1 (en) Encrypted communications method and communications terminal, and computer storage medium
CN101156448A (en) Method and system for securing media content in a multimedia processor
CN106817358B (en) Encryption and decryption method and device for user resources
US20120076300A1 (en) Key information management method, content transmission method, key information management apparatus, license management apparatus, content transmission system, and terminal apparatus
CN101969545A (en) Encryption method and device of multimedia file
CN104519013A (en) Method and system for ensuring security of media stream, and device
CN105376236B (en) Mobile device information transmitting methods
CN114286131A (en) Transmission method and device for anchor image model file in live broadcast wheat
CN105246172A (en) Network transmission method for mobile terminals
CN111083119B (en) Two-dimensional code-based large-capacity information transmission method
CN105430430B (en) Intelligent terminal network communication means
CN103745252A (en) Coding line, two-dimensional coding method and two-dimensional decoding method
CN108449600B (en) Transmission method and device of movie data
CN101390332A (en) Method and apparatus for synchronous stream cipher encryption with reserved codes
CN105187912A (en) Ciphertext video player and playing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant