CN110401849A - The cipher processing method and device of video data - Google Patents

The cipher processing method and device of video data Download PDF

Info

Publication number
CN110401849A
CN110401849A CN201910156044.6A CN201910156044A CN110401849A CN 110401849 A CN110401849 A CN 110401849A CN 201910156044 A CN201910156044 A CN 201910156044A CN 110401849 A CN110401849 A CN 110401849A
Authority
CN
China
Prior art keywords
algorithm
video data
frame
map information
key
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
Application number
CN201910156044.6A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910156044.6A priority Critical patent/CN110401849A/en
Publication of CN110401849A publication Critical patent/CN110401849A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management 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/266Channel 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/26606Channel 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 entitlement messages, e.g. Entitlement Control Message [ECM] or Entitlement Management Message [EMM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/633Control signals issued by server directed to the network components or client
    • H04N21/6332Control signals issued by server directed to the network components or client directed to client
    • H04N21/6334Control signals issued by server directed to the network components or client directed to client for authorisation, e.g. by transmitting a key
    • H04N21/63345Control signals issued by server directed to the network components or client directed to client for authorisation, e.g. by transmitting a key by transmitting keys

Abstract

The invention discloses a kind of cipher processing method of video data and devices, which comprises first network node sends CIPHERING REQUEST to cipher key service end;Encryption key corresponding at least two Encryption Algorithm and algorithm mark are sent to first network node by cipher key service end;First network node is based at least two encryption keys and algorithm mark encrypts video frame in video data to obtain enciphered video data, records the first map information of video frame and corresponding algorithm mark;Enciphered video data and the first map information are sent to the second network node by first network node;Second network node sends the decoding request identified including the algorithm in first map information to cipher key service end;Algorithm of the cipher key service end group in the first map information, which identifies, determines decruption key, is sent to the second network node;Second network node is based on decruption key and the enciphered video data is decrypted in the first map information, obtains the video data.

Description

The cipher processing method and device of video data
Technical field
The present invention relates to Internet communication technology field more particularly to the cipher processing methods and dress of a kind of video data It sets.
Background technique
With the development of internet technology, network communication is at essential a part in for people's lives.Network communication The safety problem of middle data transmission also becomes the challenge that people must face, video as a kind of data with abundant content, It is the prevailing transmission data of network communication.
Currently, needing to carry out the transmission of video data in a large amount of scenes, such as safety monitoring scene, picture pick-up device is being adopted It after collecting video data, needs to be transferred to monitor terminal, so that staff is monitored analysis processing.Above-mentioned safety monitoring During transmitting in scene from picture pick-up device to monitor terminal, the risk that video data is tampered also is certainly existed.Therefore, it needs Reliable and effective scheme is provided, guarantees the safety during video data transmission.
Summary of the invention
The present invention provides a kind of cipher processing method of video data and devices, can effectively promote video data transmission Safety in the process.
On the one hand, the present invention provides a kind of cipher processing methods of video data, which comprises
First network node sends CIPHERING REQUEST to cipher key service end;
The cipher key service end is sent out by least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark Give the first network node;
The first network node is based at least two encryption key and algorithm mark to frame each in video data Video frame is encrypted, and enciphered video data is obtained;
The algorithm mark of Encryption Algorithm corresponding to each frame video frame of first network nodes records and each frame video frame The first map information known;
The enciphered video data and first map information are sent to the second network section by the first network node Point;
Second network node obtains the mark of the algorithm in first map information, and Xiang Suoshu cipher key service end is sent Decoding request, the decoding request include the algorithm mark in first map information;
Algorithm of the cipher key service end group in first map information, which identifies, determines decruption key, by the decryption Key is sent to second network node;
Second network node is based on the decruption key and first map information to the enciphered video data It is decrypted, obtains the video data.
On the other hand a kind of cipher processing method of video data is provided, which comprises
CIPHERING REQUEST is sent to cipher key service end;
Receive at least two encryption keys and calculation corresponding at least two Encryption Algorithm that the cipher key service end is sent Method mark;
Frame video frame each in video data is encrypted based at least two encryption key and algorithm mark, is obtained To enciphered video data;
Record the first map information of the algorithm mark of Encryption Algorithm corresponding to each frame video frame and each frame video frame;
The enciphered video data and first map information are sent to the second network node, so that second net Network node obtains decruption key from the cipher key service end according to the algorithm mark in first map information, and is based on institute It states decruption key and the enciphered video data is decrypted in first map information, obtain the video data.
On the other hand a kind of cipher processing method of video data is provided, which comprises
Receive the CIPHERING REQUEST that first network node is sent;
At least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark are sent to first net Network node, so that the first network node is based at least two encryption key and algorithm mark to each in video data Frame video frame is encrypted, and enciphered video data is obtained, and is recorded and added corresponding to each frame video frame and each frame video frame First map information of the algorithm mark of close algorithm;And the enciphered video data and first map information are sent to Second network node;
The decoding request that second network node is sent is received, the decoding request includes in first map information Algorithm mark;
It is identified based on the algorithm in first map information and determines decruption key;
The decruption key is sent to second network node, so that second network node is based on the decryption The enciphered video data is decrypted in key and first map information, obtains the video data.
On the other hand a kind of cipher processing method of video data is provided, which comprises
Enciphered video data and the first map information that first network node is sent are received, the enciphered video data includes The first network node is based at least two encryption keys and algorithm mark adds frame video frame each in video data Close obtained enciphered video data, first map information include each frame video frame of the video data and each frame video The map information of the algorithm mark of Encryption Algorithm corresponding to frame;
Obtain the algorithm mark in first map information;
Decoding request is sent to the cipher key service end, the decoding request includes the algorithm in first map information Mark, so that algorithm of the cipher key service end group in first map information identifies and determine decruption key;
Receive the decruption key that the cipher key service end is sent;
The enciphered video data is decrypted based on the decruption key and first map information, is obtained described Video data.
On the other hand a kind of cipher processing apparatus of video data is provided, described device includes:
CIPHERING REQUEST sending module, for sending CIPHERING REQUEST to cipher key service end;
First data reception module, for receiving corresponding at least two Encryption Algorithm that the cipher key service end is sent At least two encryption keys and algorithm mark;
Encryption processing module, for being identified based at least two encryption key and algorithm to frame each in video data Video frame is encrypted, and enciphered video data is obtained;
First map information logging modle, the calculation for Encryption Algorithm corresponding to each frame video frame and each frame video frame First map information of method mark;
First data transmission blocks, for the enciphered video data and first map information to be sent to the second net Network node obtains so that second network node is identified according to the algorithm in first map information from the cipher key service end Decruption key is taken, and the enciphered video data is decrypted based on the decruption key and first map information, Obtain the video data.
On the other hand a kind of cipher processing apparatus of video data is provided, described device includes:
First CIPHERING REQUEST receiving module, for receiving the CIPHERING REQUEST of first network node transmission;
Second data transmission blocks, for by least two encryption keys and algorithm corresponding at least two Encryption Algorithm Mark is sent to the first network node, so that the first network node is based at least two encryption key and algorithm Mark frame video frame each in video data is encrypted, obtain enciphered video data, and record each frame video frame and First map information of the algorithm mark of Encryption Algorithm corresponding to each frame video frame;And by the enciphered video data and institute It states the first map information and is sent to the second network node;
First decoding request receiving module, the decoding request sent for receiving second network node, the decryption Request includes the algorithm mark in first map information;
First decruption key determining module, for determining that decryption is close based on the algorithm mark in first map information Key;
First decruption key sending module, for the decruption key to be sent to second network node, so that institute It states the second network node the enciphered video data is decrypted based on the decruption key and first map information, obtain To the video data.
On the other hand a kind of cipher processing apparatus of video data is provided, described device includes:
Second data reception module, for receiving the enciphered video data and the first mapping letter of the transmission of first network node Breath, the enciphered video data include that the first network node is based at least two encryption keys and algorithm mark to video counts The enciphered video data that each frame video frame is encrypted in, first map information include that the video data is every The map information of the algorithm mark of Encryption Algorithm corresponding to one frame video frame and each frame video frame;
Algorithm identifier acquisition module, for obtaining the mark of the algorithm in first map information;
First decoding request sending module, for sending decoding request, the decoding request packet to the cipher key service end The algorithm mark in first map information is included, so that algorithm of the cipher key service end group in first map information It identifies and determines decruption key;
First decruption key receiving module, the decruption key sent for receiving the cipher key service end;
Decryption processing module, for being based on the decruption key and first map information to the enciphered video data It is decrypted, obtains the video data.
On the other hand a kind of encryption treatment system of video data is provided, the system comprises: first network nodes, close Key server-side and the second network node;
The first network node is used to send CIPHERING REQUEST to the cipher key service end;And it is sent out based on cipher key service end At least two encryption keys and the algorithm mark sent encrypt frame video frame each in video data, obtain encrypted video number According to;And the first mapping letter of the algorithm mark for recording Encryption Algorithm corresponding to each frame video frame and each frame video frame Breath;And for the enciphered video data and first map information to be sent to the second network node;
The cipher key service end is used at least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark Knowledge is sent to the first network node;And in first map information for being sent based on second network node Algorithm identify determine decruption key, the decruption key is sent to second network node;
Second network node is used to obtain the algorithm mark in first map information, and is used for described close Key server-side sends decoding request, and the decoding request includes the algorithm mark in first map information;And it is used for base The enciphered video data is decrypted in the decruption key and first map information, obtains the video data.
The cipher processing method and device of video data provided by the invention, have the following technical effect that
The present invention identifies characterization Encryption Algorithm and decipherment algorithm by algorithm, with algorithm mark during carrying out data transmission Know to distinguish different Encryption Algorithm and decipherment algorithm, and using multiple encryption algorithms and corresponding encryption key to video data In each frame video frame encrypt, it is not exactly the same to may be implemented different video interframe Encryption Algorithm, guarantees the peace of data Quan Xing.Furthermore it is possible to determine corresponding decruption key and decipherment algorithm by algorithm mark, the solution to video data is realized It is close.The safety during video data transmission can be effectively promoted using the technical solution that this specification embodiment provides.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology and advantage, below will be to implementation Example or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, the accompanying drawings in the following description is only It is only some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of schematic diagram of application environment provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the cipher processing method of video data provided in an embodiment of the present invention;
Fig. 3 is that a kind of first network node provided in an embodiment of the present invention is based at least two encryption key and algorithm Mark encrypts frame video frame each in video data, obtains the flow diagram of enciphered video data method;
Fig. 4 is that another first network node provided in an embodiment of the present invention is based at least two encryption key and calculation Method mark encrypts frame video frame each in video data, obtains the flow diagram of enciphered video data method;
Fig. 5 is that a kind of decruption key and first map information of being based on provided in an embodiment of the present invention adds to described Close video data is decrypted, and obtains the flow diagram of the video data method;
Fig. 6 is the flow diagram of the cipher processing method of another video data provided in an embodiment of the present invention;
Fig. 7 is the flow diagram of the cipher processing method of another video data provided in an embodiment of the present invention;
Fig. 8 is the flow diagram of the cipher processing method of another video data provided in an embodiment of the present invention;
Fig. 9 is the flow diagram of the cipher processing method of another video data provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of the cipher processing apparatus of video data provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of the cipher processing apparatus of another video data provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of the cipher processing apparatus of another video data provided in an embodiment of the present invention;
Figure 13 is a kind of structural schematic diagram of server-side provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art without making creative work it is obtained it is all its His embodiment, shall fall within the protection scope of the present invention.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or server-side need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
Referring to Fig. 1, Fig. 1 is a kind of schematic diagram of application environment provided in an embodiment of the present invention, as shown in Figure 1, this is answered First network node 01, cipher key service end 02 and the second network node 03 are included at least with environment.
Specifically, first network node 01 may include picture pick-up device, smart phone, desktop computer, tablet computer, notes The end entity equipment of the types such as this computer, digital assistants, intelligent wearable device, also may include running on end entity to set Software in standby, such as virtual machine etc..The first network node 01 can be used for acquiring video data, and by video it is practical into It is transmitted after row encryption.
Specifically, the cipher key service end 02 may include an independently operated server-side or Distributed Services end, Or the server-side cluster being made of multiple server-sides.Specifically, the cipher key service end 02 can be used for generating key pair.
Specifically, the second network node 03 may include smart phone, desktop computer, tablet computer, laptop, number The entity device of the terminal types such as word assistant, intelligent wearable device, also may include run on it is soft in end entity equipment Body, such as virtual machine etc..Second network node 03 can be used for receiving enciphered video data, and solve to video data It is close.
In practical applications, when needing the video data transmission on first network node 01 to the second network node 03 When, first network node can send video data to the second network node by forwarding server-side.Specifically, the forwarding clothes Business end may include that one or two may include an independently operated server-side perhaps Distributed Services end or by more The server-side cluster of a server-side composition.The forwarding server-side can be used for carrying out the forwarding of video data.
In some embodiments, the forwarding server-side may include that video receives stream server-side and video forwarding flow service End, video receive the video data that stream server-side is used to receive the transmission of first network node, and by the video data transmission to video Video data is sent to the second network node by forwarding flow server-side, video forwarding flow server-side.
In addition, it should be noted that, above-mentioned application environment is only a kind of example, in practical applications, first network Node 01 and the second network node 03 are not limited in above-mentioned terminal, can also include other types, such as first net Network node 01 is terminal, and the second network node 03 is server-side;Or, the first network node 01 is server-side, the second network Node 03 is terminal etc..
It is introduced below the present invention is based on the cipher processing method of the video data of above-mentioned application environment, Fig. 2 is of the invention real A kind of flow diagram of the cipher processing method of video data of example offer is applied, present description provides such as embodiments or process The figure method operating procedure, but may include more or less operation step based on routine or without creative labor Suddenly.The step of enumerating in embodiment sequence is only one of numerous step execution sequences mode, does not represent unique execution Sequentially.When system or server-side product in practice executes, it can be held according to embodiment or method shown in the drawings sequence Capable or parallel execution (such as environment of parallel processor or multiple threads).Specifically as shown in Fig. 2, the method can To include:
S201: first network node sends CIPHERING REQUEST to cipher key service end.
It in practical applications, can be to key when first network node needs to be transmitted local video data Server-side sends CIPHERING REQUEST, to obtain the encryption key of video data transmitted to needs, and determines and transmits to needs Video data carries out encrypting used Encryption Algorithm.
S203: the cipher key service end is by least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark Knowledge is sent to the first network node.
In this specification embodiment, the key algorithm includes Encryption Algorithm and decipherment algorithm, the Encryption Algorithm reconciliation Close algorithm may be the same or different, and when the Encryption Algorithm and decipherment algorithm difference, the Encryption Algorithm and decryption are calculated Method corresponds.Algorithm mark can be used for characterizing Encryption Algorithm and decipherment algorithm, i.e., can be with according to algorithm mark It determines and is encrypted using which kind of Encryption Algorithm, and be decrypted using which kind of decipherment algorithm.
In practical applications, cipher key service end side can be based on a variety of (at least two) after receiving CIPHERING REQUEST Key algorithm generates multipair key pair (key pair may include encryption key and decruption key), and records key pair and close Mapping relations of the key to the algorithm mark of corresponding key algorithm;A variety of key algorithms can also be in advance based on and generate multipair key It is right, and the mapping relations of the algorithm mark of key algorithm corresponding to key pair and key pair are recorded, so as to according to key pair With corresponding algorithm mark determine how carry out encryption and.
Correspondingly, in some embodiments, the cipher key service end by corresponding at least two Encryption Algorithm at least Two encryption keys and algorithm mark are sent to before the first network node, and the method can also include:
The cipher key service end group generates at least two pairs of key pairs at least two key algorithms.
Second mapping letter of the algorithm mark of key algorithm corresponding to the cipher key service end record key pair and key pair Breath.
In this specification embodiment, after the CIPHERING REQUEST for receiving the transmission of first network node, it can add from a large amount of The algorithm mark hair of a variety of key algorithms multiple encryption keys generated and multiple key algorithm is randomly selected in close algorithm First network node is given, so that first network node can carry out multi-enciphering to the data that needs transmit, guarantees data peace Entirely.
In addition, it should be noted that, the key algorithm may include symmetric encipherment algorithm in this specification embodiment And/or rivest, shamir, adelman.
S205: the first network node is based at least two encryption key and algorithm mark to every in video data One frame video frame is encrypted, and enciphered video data is obtained.
In practical applications, video data frequently includes multi-frame video frame, can be to each in order to guarantee the safety of data Frame video frame is encrypted.In a specific embodiment, as shown in figure 3, the first network node be based on it is described at least Two encryption keys and algorithm mark encrypt frame video frame each in video data, and obtaining enciphered video data can wrap It includes:
S301: first network node is identified based on the algorithm and determines Encryption Algorithm.
In practical applications, cipher key service end can negotiate to add corresponding to good algorithm mark with first network node in advance Close algorithm, correspondingly, first network node, which can be directly based upon algorithm, identifies determining Encryption Algorithm.
S303: first network node obtains each frame video frame in the video data.
S305: any encryption key at least two encryption key and described are chosen according to default selection rule The Encryption Algorithm that the algorithm mark of one encryption key is corresponding successively encrypts each frame video frame.
In this specification embodiment, the default selection rule can quantity in conjunction with actual encryption key and the video The quantity of video frame is configured in data, for example, when the quantity of encryption key is consistent with the quantity of video frame in video data, It can be when being encrypted to each frame video frame, choose any one kind of them from multiple secret keys original encryption key and phase The confidentiality algorithm answered encrypts the video frame, when having encrypted whole video frames, at least two in the video data Encryption Algorithm corresponding to frame video frame is different.
In addition, in practical applications, can also directly choose and be chosen from multiple encryption keys that cipher key service end obtains Two encryption keys and corresponding Encryption Algorithm successively encrypt the video frame in the video data, to guarantee encrypting When complete whole video frame, Encryption Algorithm corresponding at least two frame video frames is different in the video data.
S307: first network node merges encrypted each frame video frame, obtains enciphered video data.
Using multiple encryption algorithms and multiple encryption algorithms encryption key generated to video in this specification embodiment Each frame video frame is encrypted in data, it is ensured that subsequent a certain frame video frame immediately is cracked, and can not also play completely Entire video data effectively promotes the safety of data.
In further embodiments, it is contemplated that total data is obtained to each frame video frame and is encrypted, data volume It is larger, as shown in figure 4, the first network node is based at least two encryption key and algorithm mark in video data Each frame video frame is encrypted, and is obtained enciphered video data and be may include:
S401: first network node is identified based on the algorithm and determines Encryption Algorithm.
S403: first network node obtains the partial bytes of each frame video frame in the video data.
In practical applications, the partial bytes can be configured in conjunction with practical application, such as each frame video frame Size is 256 bytes, can directly choose preceding 128 bytes as the partial bytes.
In addition, different video frames can choose the partial bytes of same position, the part of different location can also be chosen Byte, such as a certain frame video frame choose preceding 128 bytes as the partial bytes, 128 after another frame video frame selection Byte is as partial bytes.
S405: any encryption key at least two encryption key and described are chosen according to default selection rule The Encryption Algorithm that the algorithm mark of one encryption key is corresponding successively encrypts the partial bytes of each frame video frame.
Specifically, Encryption Algorithm corresponding at least two frame video frames is different in the video data.
S407: first network node carries out the partial bytes of the partial bytes and unencryption that encrypt in each frame video frame Merge, obtains encrypted video frame.
S409: first network node merges encrypted video frame, obtains enciphered video data.
Using multiple encryption algorithms and multiple encryption algorithms encryption key generated to video in this specification embodiment The partial bytes of each frame video frame are encrypted in data, it is ensured that the safety of data, and effectively reduce data processing Amount improves data processing speed.
S207: the calculation of Encryption Algorithm corresponding to each frame video frame of first network nodes records and each frame video frame First map information of method mark.
In this specification embodiment, the first network node is encrypted in each frame video frame to video data Afterwards, the first map information of the algorithm mark of Encryption Algorithm corresponding to each frame video frame and each frame video frame is recorded, with Continuing after an action of the bowels can be decrypted when being decrypted based on the how a certain frame video frame of corresponding decruption key.
In further embodiments, after the partial bytes to each frame video frame encrypt, the first network section Point can recorde the partial bytes institute of each frame video frame, the partial bytes and the encryption that encrypt in each frame video frame First map information of the algorithm mark of corresponding Encryption Algorithm.
S209: the enciphered video data and first map information are sent to the second net by the first network node Network node.
In practical applications, when the first network node and second network node are terminal, in general, the Enciphered video data and the first map information can be sent to forwarding server-side by one network node;Then, forwarding server-side will Enciphered video data and the first map information are sent to second network node.
S211: the second network node obtains the mark of the algorithm in first map information.
S213: the second network node sends decoding request to the cipher key service end, and the decoding request includes described the Algorithm mark in one map information.
In this specification embodiment, the second network node can extract the mark of the algorithm in the first map information, Bu Nenggai When sending decoding request to cipher key service end again, the algorithm mark in first map information is carried, so as to cipher key service end Determine corresponding decruption key.
S215: algorithm of the cipher key service end group in first map information, which identifies, determines decruption key.
In this specification embodiment, cipher key service end is stored with the calculation including key algorithm corresponding to key pair and key pair Second map information of method mark, correspondingly, can be found from second map information in first map information The corresponding key pair of algorithm mark, and obtain decruption key from the cipher key pair.
S217: the decruption key is sent to second network node by cipher key service end.
S219: the second network node is based on the decruption key and first map information to the enciphered video data It is decrypted, obtains the video data.
In practical applications, cipher key service end can negotiate the corresponding solution of good algorithm mark in advance with the second network node Close algorithm, correspondingly, the second network node, which can be directly based upon algorithm, identifies determining decipherment algorithm.
In a specific embodiment, as shown in figure 5, described be based on the decruption key and first map information The enciphered video data is decrypted, obtaining the video data may include:
S501: each frame encrypted video frame in the enciphered video data is obtained.
S503: it is identified according to the algorithm in first map information and determines decipherment algorithm.
S505: using encrypted video frame described in decipherment algorithm corresponding to each frame encrypted video frame and decryption key pair into Row decryption obtains decryption video frame.
S507: the decryption video frame is merged, the video data is obtained.
In addition, in further embodiments, when only having partial words in the multiframe encrypted video frame that enciphered video data includes When section is encrypted, the first map information includes each frame video frame, partial bytes encrypted in each frame video frame and described The mapping relations of the algorithm mark of Encryption Algorithm corresponding to the partial bytes of encryption.Correspondingly, each frame encryption can obtained After video frame, the partial bytes encrypted in each frame encrypted video frame are solved based on the decipherment algorithm of corresponding decruption key It is close;Then, the partial bytes of the part oneself after decrypting in each frame and unencryption are merged to obtain video frame, by these Video frame merges to obtain the video data.
As seen from the above, characterization Encryption Algorithm and decipherment algorithm are identified by algorithm in this specification embodiment, carried out Different Encryption Algorithm and decipherment algorithm are distinguished with algorithm mark in data transmission procedure, and utilize multiple encryption algorithms and phase The encryption key answered is encrypted to frame video frame each in video data, it is ensured that the safety of data.Furthermore it is possible to Corresponding decruption key and decipherment algorithm are determined by algorithm mark, realize the decryption to video data.Utilize this specification The technical solution that embodiment provides can effectively promote the safety during video data transmission.
In some scenes, video data needs to forward in transmission process by forwarding server-side to be transmitted twice, is The safety of data is promoted, secondary encryption can be carried out in this specification embodiment, correspondingly, as shown in fig. 6, Fig. 6 is this The flow diagram of the cipher processing method for another video data that inventive embodiments provide, the method may include:
S601: first network node sends CIPHERING REQUEST to cipher key service end.
S603: the cipher key service end is by least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark Knowledge is sent to the first network node.
S605: first network node is based at least two encryption key and algorithm mark to frame each in video data Video frame is encrypted, and enciphered video data is obtained.
Specifically, being encrypted to obtain the specific steps of enciphered video data to frame video frame each in video data here It may refer to above-mentioned correlation step, details are not described herein.
S607: the algorithm mark of Encryption Algorithm corresponding to each frame video frame of first network nodes records and each frame video frame The first map information known.
S609: the enciphered video data and first map information are sent to forwarding clothes by the first network node Business end.
S611: forwarding server-side obtains the mark of the algorithm in first map information.
The cipher key service end S613: Xiang Suoshu sends decoding request, and the decoding request includes in first map information Algorithm mark.
S615: algorithm of the cipher key service end group in first map information, which identifies, determines decruption key.
S617: the decruption key is sent to the forwarding server-side.
S619: the forwarding server-side is based on the decruption key and first map information to the encrypted video number According to being decrypted, the video data is obtained.
S621: the forwarding server-side sends CIPHERING REQUEST to cipher key service end.
S623: the cipher key service end is by least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark Knowledge is sent to the forwarding server-side.
Specifically, at least two algorithms mark that cipher key service end is sent to forwarding server-side is sent out with the cipher key service end At least two algorithms mark for giving the first network node can be inconsistent.
S625: the forwarding server-side is based at least two encryption key and algorithm mark to each in video data Frame video frame is encrypted, and enciphered video data is obtained.
Specifically, being encrypted to obtain the specific steps of enciphered video data to frame video frame each in video data here It may refer to above-mentioned correlation step, details are not described herein.
S627: the forwarding server-side records the algorithm of Encryption Algorithm corresponding to each frame video frame and each frame video frame The third map information of mark.
S629: enciphered video data and the third map information are sent to the second network node by forwarding server-side.
S631: the second network node obtains the mark of the algorithm in the third map information.
S633: the second network node sends decoding request to the cipher key service end, and the decoding request includes described the Algorithm mark in three map informations.
S635: algorithm of the cipher key service end group in the third map information, which identifies, determines decruption key.
Specifically, determining that the specific steps of decruption key may refer to above-mentioned correlation step here, details are not described herein.
S637: the decruption key is sent to second network node by cipher key service end.
S639: the second network node is based on the decruption key and first map information to the enciphered video data It is decrypted, obtains the video data.
Specifically, the specific steps for being decrypted to obtain the video data to the enciphered video data here can join See above-mentioned correlation step, details are not described herein.
In some scenes, the acquisition of data has certain permission, the available data of network node with permission. Correspondingly, the enciphered video data and first map information are sent in forwarding server-side in this specification embodiment Before the second network node, the method can also include:
1) the second network node sends video acquisition request to authentication service end, and the video acquisition request includes authentication letter Breath.
Specifically, the authentication information may include that identification information of the second network node etc. can characterize the second network section The information of the permission of point.
2) the authentication service end carries out Authority Verification to second network node according to the authentication information.
3) when being verified, the authentication service end sends video download address information to second network node.
4) second network node is based on the video download address information and requests video counts to the forwarding server-side According to.
By carrying out Authority Verification before carrying out enciphered video data transmission in this specification embodiment, guarantees to receive and be somebody's turn to do The legitimacy of second network node of enciphered video data.
As seen from the above, characterization Encryption Algorithm and decipherment algorithm are identified by algorithm in this specification embodiment, carried out Different Encryption Algorithm and decipherment algorithm are distinguished with algorithm mark in data transmission procedure, and utilize multiple encryption algorithms and phase The encryption key answered is encrypted to frame video frame each in video data, and corresponding solution is determined by algorithm mark Key and decipherment algorithm realize the decryption to video data, can effectively promote the safety during video data transmission. In addition, can preferably promote the safety of data by secondary encryption in transmission process.
A kind of cipher processing method of video data of the invention is introduced using first network node as executing subject below, such as Shown in Fig. 7, the method may include:
S701: CIPHERING REQUEST is sent to cipher key service end.
S703: at least two encryption keys corresponding at least two Encryption Algorithm that the cipher key service end is sent are received It is identified with algorithm.
S705: frame video frame each in video data is added based at least two encryption key and algorithm mark It is close, obtain enciphered video data.
Specifically, described identified based at least two encryption key and algorithm to frame video frame each in video data It is encrypted, obtaining enciphered video data may include:
It is identified based on the algorithm and determines Encryption Algorithm;
Obtain each frame video frame in the video data;
According to default selection rule choose any encryption key at least two encryption key and it is described any plus The Encryption Algorithm that the algorithm mark of key is corresponding successively encrypts each frame video frame, in the video data at least There is Encryption Algorithm corresponding to two frame video frames different;
Encrypted each frame video frame is merged, enciphered video data is obtained.
Specifically, described identified based at least two encryption key and algorithm to frame video frame each in video data It is encrypted, obtaining enciphered video data includes:
It is identified based on the algorithm and determines Encryption Algorithm;
Obtain the partial bytes of each frame video frame in the video data;
According to default selection rule choose any encryption key at least two encryption key and it is described any plus The Encryption Algorithm that the algorithm mark of key is corresponding successively encrypts the partial bytes of each frame video frame, the video Encryption Algorithm corresponding at least two frame video frames is different in data;
The partial bytes of the partial bytes and unencryption that encrypt in each frame video frame are merged, encrypted video is obtained Frame;
Encrypted video frame is merged, enciphered video data is obtained;
Correspondingly, record the algorithm mark of Encryption Algorithm corresponding to each frame video frame and each frame video frame first reflects Penetrating information includes: to record the partial words of each frame video frame, the partial bytes and the encryption that encrypt in each frame video frame Save the first map information of the algorithm mark of corresponding Encryption Algorithm.
S707: the first mapping of the algorithm mark of Encryption Algorithm corresponding to each frame video frame and each frame video frame is recorded Information.
S709: the enciphered video data and first map information are sent to the second network node, so that described Second network node obtains decruption key from the cipher key service end according to the algorithm mark in first map information, and The enciphered video data is decrypted based on the decruption key and first map information, obtains the video counts According to.
Specifically, it is described the enciphered video data and first map information are sent to the second network node can be with Include:
The enciphered video data and first map information are sent to forwarding server-side, so that the forwarding services The enciphered video data and first map information are sent to second network node by end.
The embodiment of the invention provides a kind of encryption terminal of video data, the encryption terminals of the video data Including processor and memory, at least one instruction, at least a Duan Chengxu, code set or instruction set are stored in the memory, At least one instruction, an at least Duan Chengxu, the code set or the instruction set are loaded by the processor and are executed as above to realize State the cipher processing method of video data provided by embodiment of the method.
A kind of cipher processing method of video data of the invention is introduced using cipher key service end as executing subject below, is such as schemed Shown in 8, the method may include:
S801: the CIPHERING REQUEST that first network node is sent is received.
S803: at least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark are sent to described the One network node, so that the first network node is based at least two encryption key and algorithm mark in video data Each frame video frame is encrypted, and enciphered video data is obtained, and record each frame video frame and each frame video frame institute it is right The first map information for answering the algorithm of Encryption Algorithm to identify;And the enciphered video data and first map information are sent out Give the second network node;
S805: receiving the decoding request that second network node is sent, and the decoding request includes first mapping Algorithm mark in information.
S807: it is identified based on the algorithm in first map information and determines decruption key.
S809: being sent to second network node for the decruption key, so that second network node is based on institute It states decruption key and the enciphered video data is decrypted in first map information, obtain the video data.
In some embodiments, it is identified by least two encryption keys corresponding at least two Encryption Algorithm and algorithm It is sent to before the first network node, the method can also include:
At least two pairs of key pairs are generated based at least two key algorithms, the key pair includes encryption key and decrypts close Key, the key algorithm include Encryption Algorithm and decipherment algorithm;
Record the second map information of the algorithm mark of key algorithm corresponding to key pair and key pair;
Correspondingly, the algorithm based in first map information, which identifies, determines that decruption key includes: based on described The determining algorithm with first map information of second map information identifies decruption key.
In some embodiments, the method can also include:
The decoding request that forwarding server-side is sent is received, the decoding request includes the algorithm in first map information Mark;
It is identified based on the algorithm in first map information and determines decruption key, the decruption key is sent to described Server-side is forwarded, so that the forwarding server-side is based on the decruption key and first map information to the encrypted video Data are decrypted, and obtain the video data;
Receive the CIPHERING REQUEST that the forwarding server-side is sent;
At least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark are sent to the forwarding clothes It is engaged in end, regarding frame each in video data so that the forwarding server-side is identified based at least two encryption key and algorithm Frequency frame is encrypted, and enciphered video data is obtained, and records Encryption Algorithm corresponding to each frame video frame and each frame video frame The third map information of algorithm mark, and enciphered video data and the third map information are sent to the second network section Point;
Correspondingly, the decoding request for receiving second network node and sending, the decoding request includes described the Algorithm in one map information identifies replacement are as follows: receives the decoding request that second network node is sent, the decoding request Including the algorithm mark in the third map information;
Wherein, it is sent at least two algorithms mark of the forwarding server-side and is sent to the first network node At least two algorithms mark is inconsistent.
The embodiment of the invention provides a kind of encryption server-side of video data, the encryption of the video data is taken Business end includes processor and memory, and at least one instruction, at least a Duan Chengxu, code set or instruction are stored in the memory Collection, at least one instruction, an at least Duan Chengxu, the code set or the instruction set are loaded by the processor and are executed to realize such as The cipher processing method of video data provided by above method embodiment.
A kind of cipher processing method of video data of the invention is introduced using the second network node as executing subject below, such as Shown in Fig. 9, the method may include:
S901: enciphered video data and the first map information that first network node is sent, the encrypted video number are received It is identified based at least two encryption keys and algorithm to frame video frame each in video data according to including the first network node The enciphered video data encrypted, first map information include each frame video frame of the video data and each The map information of the algorithm mark of Encryption Algorithm corresponding to frame video frame.
Specifically, the enciphered video data for receiving the transmission of first network node and the first map information include:
The first network node is received to reflect by the enciphered video data and described first that forwarding server-side is sent Penetrate information.
S903: the algorithm mark in first map information is obtained.
The cipher key service end S905: Xiang Suoshu sends decoding request, and the decoding request includes in first map information Algorithm mark so that algorithm of the cipher key service end group in first map information, which identifies, determines decruption key;
S907: the decruption key that the cipher key service end is sent is received.
S909: the enciphered video data is decrypted based on the decruption key and first map information, is obtained To the video data.
Specifically, described solve the enciphered video data based on the decruption key and first map information Close, obtaining the video data includes:
Obtain each frame encrypted video frame in the enciphered video data;
It is identified according to the algorithm in first map information and determines decipherment algorithm;
It is solved using encrypted video frame described in decipherment algorithm corresponding to each frame encrypted video frame and decryption key pair It is close, obtain decryption video frame;
The decryption video frame is merged, the video data is obtained.
In some embodiments, the encrypted video sent in the reception first network node by forwarding server-side Before data and first map information, the method can also include:
Video acquisition request is sent to authentication service end, the video acquisition request includes authentication information, so that the mirror It weighs server-side and Authority Verification is carried out according to the authentication information;
Receive the authentication service end Authority Verification by when the video download address information that sends;
Video data is requested to the forwarding server-side based on the video download address information.
The embodiment of the invention provides a kind of encryption terminal of video data, the encryption terminals of the video data Including processor and memory, at least one instruction, at least a Duan Chengxu, code set or instruction set are stored in the memory, At least one instruction, an at least Duan Chengxu, the code set or the instruction set are loaded by the processor and are executed as above to realize State the cipher processing method of video data provided by embodiment of the method.
The embodiment of the invention also provides a kind of cipher processing apparatus of video data, as shown in Figure 10, described device packet It includes:
CIPHERING REQUEST sending module 1010 can be used for sending CIPHERING REQUEST to cipher key service end;
First data reception module 1020 can be used for receiving at least two Encryption Algorithm that the cipher key service end is sent At least two corresponding encryption keys and algorithm mark;
Encryption processing module 1030 can be used for based at least two encryption key and algorithm mark to video data In each frame video frame encrypted, obtain enciphered video data;
First map information logging modle 1040 can be used for each frame video frame and the corresponding encryption of each frame video frame First map information of the algorithm mark of algorithm;
First data transmission blocks 1050 can be used for sending the enciphered video data and first map information To the second network node, so that second network node is identified according to the algorithm in first map information from the key Server-side obtains decruption key, and based on the decruption key and first map information to the enciphered video data into Row decryption, obtains the video data.
In further embodiments, the encryption processing module 1030 may include:
First Encryption Algorithm determination unit determines Encryption Algorithm for identifying based on the algorithm;
First video frame acquiring unit, for obtaining each frame video frame in the video data;
First cryptographic processing unit, for choosing any at least two encryption key according to default selection rule The corresponding Encryption Algorithm of the algorithm of encryption key and any encryption key mark successively adds each frame video frame Close, Encryption Algorithm corresponding at least two frame video frames is different in the video data;
First video frame combining unit obtains encrypted video number for merging encrypted each frame video frame According to.
In further embodiments, the encryption processing module 1030 may include:
Second Encryption Algorithm determination unit determines Encryption Algorithm for identifying based on the algorithm;
Second video frame acquiring unit, for obtaining the partial bytes of each frame video frame in the video data;
Second cryptographic processing unit, for choosing any at least two encryption key according to default selection rule The corresponding Encryption Algorithm of the algorithm of encryption key and any encryption key mark is successively to the part of each frame video frame Byte is encrypted, and Encryption Algorithm corresponding at least two frame video frames is different in the video data;
Second video frame combining unit, the partial words of partial bytes and unencryption for will be encrypted in each frame video frame Section merges, and obtains encrypted video frame;
Third video frame combining unit obtains enciphered video data for merging encrypted video frame.
In further embodiments, first data transmission blocks are specifically used for the enciphered video data and described First map information is sent to forwarding server-side, so that the forwarding server-side reflects the enciphered video data and described first It penetrates information and is sent to second network node.
Apparatus and method embodiment in the Installation practice is based on similarly inventive concept.
The embodiment of the invention also provides a kind of cipher processing apparatus of video data, as shown in figure 11, described device packet It includes:
First CIPHERING REQUEST receiving module 1110 can be used for receiving the CIPHERING REQUEST of first network node transmission;
Second data transmission blocks 1120 can be used at least two encryptions corresponding at least two Encryption Algorithm are close Key and algorithm mark are sent to the first network node, so that the first network node is close based at least two encryption Key and algorithm mark encrypt frame video frame each in video data, obtain enciphered video data, and record each frame First map information of the algorithm mark of Encryption Algorithm corresponding to video frame and each frame video frame;And by the encrypted video Data and first map information are sent to the second network node;
First decoding request receiving module 1130 can be used for receiving the decoding request that second network node is sent, The decoding request includes the algorithm mark in first map information;
First decruption key determining module 1140 can be used for determining based on the algorithm mark in first map information Decruption key;
First decruption key sending module 1150 can be used for for the decruption key being sent to the second network section Point so that second network node be based on the decruption key and first map information to the enciphered video data into Row decryption, obtains the video data.
In further embodiments, described device can also include:
Key pair generation module, for by least two encryption keys and algorithm corresponding at least two Encryption Algorithm Mark is sent to before the first network node, generates at least two pairs of key pairs based at least two key algorithms, described close For key to including encryption key and decruption key, the key algorithm includes Encryption Algorithm and decipherment algorithm;
Second map information logging modle, what the algorithm for recording key algorithm corresponding to key pair and key pair identified Second map information;
Correspondingly, the first decruption key determining module be specifically used for based on second map information determine with it is described Algorithm in first map information identifies decruption key.
In further embodiments, described device can also include:
Second decoding request receiving module, the decoding request sent for receiving forwarding server-side, the decoding request packet Include the algorithm mark in first map information;
Second decruption key determining module, for determining that decryption is close based on the algorithm mark in first map information The decruption key is sent to the forwarding server-side by key, so that the forwarding server-side is based on the decruption key and institute It states the first map information the enciphered video data is decrypted, obtains the video data;
Second CIPHERING REQUEST receiving module, the CIPHERING REQUEST sent for receiving the forwarding server-side;
Second data transmission blocks, for by least two encryption keys and algorithm corresponding at least two Encryption Algorithm Mark is sent to the forwarding server-side, so that the forwarding server-side is based at least two encryption key and algorithm identifies Frame video frame each in video data is encrypted, enciphered video data is obtained, records each frame video frame and each frame view The third map information of the algorithm mark of Encryption Algorithm corresponding to frequency frame, and enciphered video data and third mapping are believed Breath is sent to the second network node;
Second decoding request receiving module, the decoding request sent for receiving second network node, the decryption Request includes the algorithm mark in the third map information;
Correspondingly, the first decruption key determining module is also used to based on the algorithm mark in the third map information Determine decruption key;
Wherein, it is sent at least two algorithms mark of the forwarding server-side and is sent to the first network node At least two algorithms mark is inconsistent.
Apparatus and method embodiment in the Installation practice is based on similarly inventive concept.
The embodiment of the invention also provides a kind of cipher processing apparatus of video data, as shown in figure 12, described device packet It includes:
Second data reception module 1210 can be used for receiving the enciphered video data and first of first network node transmission Map information, the enciphered video data include that the first network node is based at least two encryption keys and algorithm mark pair The enciphered video data that each frame video frame is encrypted in video data, first map information include the video The map information of the algorithm mark of Encryption Algorithm corresponding to each frame video frame of data and each frame video frame;
Algorithm identifier acquisition module 1220 can be used for obtaining the algorithm mark in first map information;
First decoding request sending module 1230 can be used for sending decoding request, the solution to the cipher key service end Close request includes the algorithm mark in first map information, so that the cipher key service end group is in first map information In algorithm identify determine decruption key;
It is close to can be used for receiving the decryption that the cipher key service end is sent for first decruption key receiving module 1240 Key;
Decryption processing module 1250 can be used for based on the decruption key and first map information to the encryption Video data is decrypted, and obtains the video data.
In further embodiments, the decryption processing module 1250 may include:
Encrypted video frame acquiring unit, for obtaining each frame encrypted video frame in the enciphered video data;
Decipherment algorithm determination unit determines decipherment algorithm for identifying according to the algorithm in first map information;
Decryption processing unit, for using described in decipherment algorithm corresponding to each frame encrypted video frame and decryption key pair Encrypted video frame is decrypted, and obtains decryption video frame;
4th video frame combining unit obtains the video data for merging the decryption video frame.
In further embodiments, second data reception module passes through specifically for receiving the first network node The enciphered video data and first map information for forwarding server-side to send.
In further embodiments, described device can also include:
Video acquisition request sending module, the institute for being sent in the reception first network node by forwarding server-side Before stating enciphered video data and first map information, video acquisition request is sent to authentication service end, the video obtains Taking request includes authentication information, so that the authentication service end carries out Authority Verification according to the authentication information;
Video download address information receiving module, for receive the authentication service end Authority Verification by when send Video download address information;
Video data request module, for requesting video to the forwarding server-side based on the video download address information Data.
Apparatus and method embodiment in the Installation practice is based on similarly inventive concept.
In this specification embodiment, the memory can be used for storing software program and module, and processor passes through operation It is stored in the software program and module of memory, thereby executing various function application and data processing.Memory can be main Including storing program area and storage data area, wherein storing program area can application program needed for storage program area, function Deng;Storage data area, which can be stored, uses created data etc. according to the equipment.In addition, memory may include high speed with Machine access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or its His volatile solid-state part.Correspondingly, memory can also include Memory Controller, to provide processor to memory Access.
Embodiment of the method provided by the embodiment of the present invention can be in mobile terminal, terminal, server-side or class As execute in arithmetic unit.For operating in server-side, Figure 13 is a kind of video data provided in an embodiment of the present invention Cipher processing method server-side hardware block diagram.As shown in figure 13, the server-side 1300 can because configuration or performance not Bigger difference is generated together, may include one or more central processing units (Central Processing Units, CPU) 1310 (processor 1310 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc. Processing unit), memory 1330 for storing data, one or more storage application programs 1323 or data 1322 Storage medium 1320 (such as one or more mass memory units).Wherein, memory 1330 and storage medium 1320 can To be of short duration storage or persistent storage.The program for being stored in storage medium 1320 may include one or more modules, often A module may include to the series of instructions operation in server-side.Further, central processing unit 1310 can be set to It is communicated with storage medium 1320, the series of instructions operation in storage medium 1320 is executed in server-side 1300.Server-side 1300 can also include one or more power supplys 1360, one or more wired or wireless network interfaces 1350, one A or more than one input/output interface 1340, and/or, one or more operating systems 1321, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Input/output interface 1340 can be used for that data are received or sent via a network.Above-mentioned network is specifically real Example may include the wireless network that the communication providers of server-side 1300 provide.In an example, input/output interface 1340 wraps A network adapter (Network Interface Controller, NIC) is included, base station and other network equipments can be passed through It is connected so as to be communicated with internet.In an example, input/output interface 1340 can be radio frequency (Radio Frequency, RF) module, it is used to wirelessly be communicated with internet.
It will appreciated by the skilled person that structure shown in Figure 13 is only to illustrate, above-mentioned electronics is not filled The structure set causes to limit.For example, server-side 1300 may also include more perhaps less component or tool than shown in Figure 13 There is the configuration different from shown in Figure 13.
The embodiments of the present invention also provide a kind of storage medium, the storage medium be may be disposed among server-side to protect It deposits for realizing relevant at least one instruction of cipher processing method of video data a kind of in embodiment of the method, an at least Duan Cheng Sequence, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or the instruction set are added by the processor Carry and execute the cipher processing method to realize the video data of above method embodiment offer.
Optionally, in the present embodiment, above-mentioned storage medium can be located in multiple network service ends of computer network At least one network service end.Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, only Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), movement The various media that can store program code such as hard disk, magnetic or disk.
The embodiment of the cipher processing method of video data, device or system that are provided by aforementioned present invention is as it can be seen that this hair In bright characterization Encryption Algorithm and decipherment algorithm is identified by algorithm, is distinguished not during carrying out data transmission with algorithm mark Same Encryption Algorithm and decipherment algorithm, and frame each in video data is regarded using multiple encryption algorithms and corresponding encryption key Frequency frame encrypt, and realizes that different video interframe Encryption Algorithm is not exactly the same.In addition, being determined by algorithm mark corresponding Decruption key and decipherment algorithm, realize decryption to video data, can effectively promote the peace during video data transmission Quan Xing.In addition, can preferably promote the safety of data by secondary encryption in transmission process.
It should be understood that embodiments of the present invention sequencing is for illustration only, do not represent the advantages or disadvantages of the embodiments. And above-mentioned this specification specific embodiment is described.Other embodiments are within the scope of the appended claims.One In a little situations, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment and Still desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or company Continuous sequence is just able to achieve desired result.In some embodiments, multitasking and parallel processing it is also possible or It may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device and For system embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method The part of embodiment illustrates.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (15)

1. a kind of cipher processing method of video data, which is characterized in that the described method includes:
First network node sends CIPHERING REQUEST to cipher key service end;
At least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark are sent to by the cipher key service end The first network node;
The first network node is based at least two encryption key and algorithm mark to frame video each in video data Frame is encrypted, and enciphered video data is obtained;
The algorithm mark of Encryption Algorithm corresponding to each frame video frame of first network nodes records and each frame video frame First map information;
The enciphered video data and first map information are sent to the second network node by the first network node;
Second network node obtains the mark of the algorithm in first map information, and Xiang Suoshu cipher key service end sends decryption Request, the decoding request include the algorithm mark in first map information;
Algorithm of the cipher key service end group in first map information, which identifies, determines decruption key, by the decruption key It is sent to second network node;
Second network node is based on the decruption key and first map information and carries out to the enciphered video data Decryption, obtains the video data.
2. a kind of cipher processing method of video data, which is characterized in that the described method includes:
CIPHERING REQUEST is sent to cipher key service end;
Receive at least two encryption keys and algorithm mark corresponding at least two Encryption Algorithm that the cipher key service end is sent Know;
Frame video frame each in video data is encrypted based at least two encryption key and algorithm mark, is added Close video data;
Record the first map information of the algorithm mark of Encryption Algorithm corresponding to each frame video frame and each frame video frame;
The enciphered video data and first map information are sent to the second network node, so that the second network section Point obtains decruption key from the cipher key service end according to the algorithm mark in first map information, and is based on the solution The enciphered video data is decrypted in key and first map information, obtains the video data.
3. according to the method described in claim 2, it is characterized in that, described be based at least two encryption key and algorithm mark Knowledge encrypts frame video frame each in video data, and obtaining enciphered video data includes:
It is identified based on the algorithm and determines Encryption Algorithm;
Obtain each frame video frame in the video data;
Any encryption key at least two encryption key is chosen according to default selection rule and any encryption is close The Encryption Algorithm that the algorithm mark of key is corresponding successively encrypts each frame video frame, at least two in the video data Encryption Algorithm corresponding to frame video frame is different;
Encrypted each frame video frame is merged, enciphered video data is obtained.
4. according to the method described in claim 2, it is characterized in that, described be based at least two encryption key and algorithm mark Knowledge encrypts frame video frame each in video data, and obtaining enciphered video data includes:
It is identified based on the algorithm and determines Encryption Algorithm;
Obtain the partial bytes of each frame video frame in the video data;
Any encryption key at least two encryption key is chosen according to default selection rule and any encryption is close The Encryption Algorithm that the algorithm mark of key is corresponding successively encrypts the partial bytes of each frame video frame, the video data In Encryption Algorithm corresponding at least two frame video frames it is different;
The partial bytes of the partial bytes and unencryption that encrypt in each frame video frame are merged, encrypted video frame is obtained;
Encrypted video frame is merged, enciphered video data is obtained;
Correspondingly, recording the first mapping letter of the algorithm mark of Encryption Algorithm corresponding to each frame video frame and each frame video frame Breath includes: the partial bytes institute for recording each frame video frame, the partial bytes and the encryption that encrypt in each frame video frame First map information of the algorithm mark of corresponding Encryption Algorithm.
5. according to the method described in claim 2, it is characterized in that, described map the enciphered video data with described first Information is sent to the second network node
The enciphered video data and first map information are sent to forwarding server-side, so that the forwarding server-side will The enciphered video data and first map information are sent to second network node.
6. a kind of cipher processing method of video data, which is characterized in that the described method includes:
Receive the CIPHERING REQUEST that first network node is sent;
At least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark are sent to the first network section Point, so that the first network node is based at least two encryption key and algorithm mark regards frame each in video data Frequency frame is encrypted, and enciphered video data is obtained, and records each frame video frame and the corresponding encryption calculation of each frame video frame First map information of the algorithm mark of method;And the enciphered video data and first map information are sent to second Network node;
The decoding request that second network node is sent is received, the decoding request includes the calculation in first map information Method mark;
It is identified based on the algorithm in first map information and determines decruption key;
The decruption key is sent to second network node, so that second network node is based on the decruption key The enciphered video data is decrypted with first map information, obtains the video data.
7. according to the method described in claim 6, it is characterized in that, will be at least two corresponding at least two Encryption Algorithm Encryption key and algorithm mark are sent to before the first network node, the method also includes:
At least two pairs of key pairs are generated based at least two key algorithms, the key pair includes encryption key and decruption key, The key algorithm includes Encryption Algorithm and decipherment algorithm;
Record the second map information of the algorithm mark of key algorithm corresponding to key pair and key pair;
Correspondingly, the algorithm based in first map information, which identifies, determines that decruption key includes: based on described second The determining algorithm with first map information of map information identifies decruption key.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
The decoding request that forwarding server-side is sent is received, the decoding request includes the algorithm mark in first map information Know;
It is identified based on the algorithm in first map information and determines decruption key, the decruption key is sent to the forwarding Server-side, so that the forwarding server-side is based on the decruption key and first map information to the enciphered video data It is decrypted, obtains the video data;
Receive the CIPHERING REQUEST that the forwarding server-side is sent;
At least two encryption keys corresponding at least two Encryption Algorithm and algorithm mark are sent to the forwarding server-side, So that the forwarding server-side is based at least two encryption key and algorithm mark to frame video frame each in video data It is encrypted, obtains enciphered video data, record the algorithm of Encryption Algorithm corresponding to each frame video frame and each frame video frame The third map information of mark, and enciphered video data and the third map information are sent to the second network node;
Correspondingly, the decoding request for receiving second network node and sending, the decoding request includes described first reflecting Penetrate the algorithm mark replacement in information are as follows: receive the decoding request that second network node is sent, the decoding request includes Algorithm mark in the third map information;
Wherein, it is sent at least two algorithms mark of the forwarding server-side and is sent to the first network node at least Two kinds of algorithm marks are inconsistent.
9. a kind of cipher processing method of video data, which is characterized in that the described method includes:
Enciphered video data and the first map information that first network node is sent are received, the enciphered video data includes described First network node is based at least two encryption keys and algorithm mark encrypt to frame video frame each in video data The enciphered video data arrived, first map information include each frame video frame of the video data and each frame video frame institute The map information of the algorithm mark of corresponding Encryption Algorithm;
Obtain the algorithm mark in first map information;
Decoding request is sent to the cipher key service end, the decoding request includes the algorithm mark in first map information Know, so that algorithm of the cipher key service end group in first map information identifies and determine decruption key;
Receive the decruption key that the cipher key service end is sent;
The enciphered video data is decrypted based on the decruption key and first map information, obtains the video Data.
10. according to the method described in claim 9, it is characterized in that, described mapped based on the decruption key with described first The enciphered video data is decrypted in information, obtains the video data and includes:
Obtain each frame encrypted video frame in the enciphered video data;
It is identified according to the algorithm in first map information and determines decipherment algorithm;
It is decrypted, is obtained using encrypted video frame described in decipherment algorithm corresponding to each frame encrypted video frame and decryption key pair To decryption video frame;
The decryption video frame is merged, the video data is obtained.
11. according to the method described in claim 9, it is characterized in that, the encrypted video for receiving first network node and sending Data and the first map information include:
Receive the enciphered video data and the first mapping letter that the first network node is sent by forwarding server-side Breath.
12. according to the method for claim 11, which is characterized in that pass through forwarding service receiving the first network node Before holding the enciphered video data and first map information sent, the method also includes:
Video acquisition request is sent to authentication service end, the video acquisition request includes authentication information, so that the authentication takes End be engaged according to authentication information progress Authority Verification;
Receive the authentication service end Authority Verification by when the video download address information that sends;
Video data is requested to the forwarding server-side based on the video download address information.
13. a kind of cipher processing apparatus of video data, which is characterized in that described device includes:
CIPHERING REQUEST sending module, for sending CIPHERING REQUEST to cipher key service end;
First data reception module, for receiving corresponding at least two Encryption Algorithm that the cipher key service end is sent at least Two encryption keys and algorithm mark;
Encryption processing module, for being identified based at least two encryption key and algorithm to frame video each in video data Frame is encrypted, and enciphered video data is obtained;
First map information logging modle, the algorithm mark for Encryption Algorithm corresponding to each frame video frame and each frame video frame The first map information known;
First data transmission blocks, for the enciphered video data and first map information to be sent to the second network section Point solves so that second network node is obtained according to the algorithm mark in first map information from the cipher key service end Key, and the enciphered video data is decrypted based on the decruption key and first map information, it obtains The video data.
14. a kind of cipher processing apparatus of video data, which is characterized in that described device includes:
First CIPHERING REQUEST receiving module, for receiving the CIPHERING REQUEST of first network node transmission;
Second data transmission blocks, for identifying at least two encryption keys corresponding at least two Encryption Algorithm and algorithm It is sent to the first network node, so that the first network node is based at least two encryption key and algorithm identifies Frame video frame each in video data is encrypted, enciphered video data is obtained, and records each frame video frame and each First map information of the algorithm mark of Encryption Algorithm corresponding to frame video frame;And by the enciphered video data and described One map information is sent to the second network node;
First decoding request receiving module, the decoding request sent for receiving second network node, the decoding request Including the algorithm mark in first map information;
First decruption key determining module determines decruption key for identifying based on the algorithm in first map information;
First decruption key sending module, for the decruption key to be sent to second network node, so that described Two network nodes are based on the decruption key and the enciphered video data is decrypted in first map information, obtain institute State video data.
15. a kind of cipher processing apparatus of video data, which is characterized in that described device includes:
Second data reception module, for receiving the enciphered video data and the first map information of the transmission of first network node, institute Stating enciphered video data includes that the first network node is based at least two encryption keys and algorithm mark in video data The enciphered video data that each frame video frame is encrypted, first map information include each frame of the video data The map information of the algorithm mark of Encryption Algorithm corresponding to video frame and each frame video frame;
Algorithm identifier acquisition module, for obtaining the mark of the algorithm in first map information;
First decoding request sending module, for sending decoding request to the cipher key service end, the decoding request includes institute The algorithm mark in the first map information is stated, so that algorithm mark of the cipher key service end group in first map information Determine decruption key;
First decruption key receiving module, the decruption key sent for receiving the cipher key service end;
Decryption processing module, for being carried out based on the decruption key and first map information to the enciphered video data Decryption, obtains the video data.
CN201910156044.6A 2019-03-01 2019-03-01 The cipher processing method and device of video data Pending CN110401849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910156044.6A CN110401849A (en) 2019-03-01 2019-03-01 The cipher processing method and device of video data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910156044.6A CN110401849A (en) 2019-03-01 2019-03-01 The cipher processing method and device of video data

Publications (1)

Publication Number Publication Date
CN110401849A true CN110401849A (en) 2019-11-01

Family

ID=68322406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910156044.6A Pending CN110401849A (en) 2019-03-01 2019-03-01 The cipher processing method and device of video data

Country Status (1)

Country Link
CN (1) CN110401849A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010408A (en) * 2020-01-06 2020-04-14 中国银联股份有限公司 Distributed encryption and decryption method and system
CN111343170A (en) * 2020-02-19 2020-06-26 深圳壹账通智能科技有限公司 Electronic signing method and system
CN113285870A (en) * 2021-06-09 2021-08-20 成都安恒信息技术有限公司 Method and system for protecting internet chat privacy
CN114727157A (en) * 2022-03-31 2022-07-08 慧之安信息技术股份有限公司 Video encryption and decryption method and system based on platform

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050138372A1 (en) * 2003-12-22 2005-06-23 Masaru Kajihara Information delivering system, information delivering apparatus, information delivering method and computer readable information recording medium
US20080260153A1 (en) * 2007-04-20 2008-10-23 John Almeida Symmetric and asymmetric cryptography using shadow numbers
CN102271124A (en) * 2010-06-01 2011-12-07 富士通株式会社 Data processing equipment and data processing method
CN104270614A (en) * 2014-10-16 2015-01-07 浙江宇视科技有限公司 Video encryption and decryption method and device
CN104966023A (en) * 2015-03-10 2015-10-07 深圳市腾讯计算机系统有限公司 Data protection system, method and apparatus
CN105208404A (en) * 2015-08-26 2015-12-30 北京新东方迅程网络科技有限公司 Video encryption and decryption method and device
CN105791893A (en) * 2014-12-19 2016-07-20 北京奇虎科技有限公司 Video file encryption method and device, and video file decryption method and device
CN106126373A (en) * 2016-06-21 2016-11-16 青岛海信传媒网络技术有限公司 Data back up method and device, data reconstruction method and device
CN106210775A (en) * 2016-08-26 2016-12-07 浙江大华技术股份有限公司 A kind of method of video-encryption, camera head and video processing platform
CN106657110A (en) * 2016-12-30 2017-05-10 北京奇虎科技有限公司 Encrypted transmission method and apparatus of streaming data
CN106664203A (en) * 2014-08-07 2017-05-10 索尼克Ip股份有限公司 Systems and methods for protecting elementary bitstreams incorporating independently encoded tiles
CN106850220A (en) * 2017-02-22 2017-06-13 腾讯科技(深圳)有限公司 Data ciphering method, data decryption method and device
CN107277456A (en) * 2017-07-26 2017-10-20 北京计算机技术及应用研究所 A kind of video security monitoring system based on Android device
CN107425959A (en) * 2017-06-20 2017-12-01 郑州云海信息技术有限公司 A kind of method for realizing encryption, system, client and service end
CN109151507A (en) * 2018-08-08 2019-01-04 武汉市风奥科技股份有限公司 Audio/video player system and method

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050138372A1 (en) * 2003-12-22 2005-06-23 Masaru Kajihara Information delivering system, information delivering apparatus, information delivering method and computer readable information recording medium
US20080260153A1 (en) * 2007-04-20 2008-10-23 John Almeida Symmetric and asymmetric cryptography using shadow numbers
CN102271124A (en) * 2010-06-01 2011-12-07 富士通株式会社 Data processing equipment and data processing method
CN106664203A (en) * 2014-08-07 2017-05-10 索尼克Ip股份有限公司 Systems and methods for protecting elementary bitstreams incorporating independently encoded tiles
CN104270614A (en) * 2014-10-16 2015-01-07 浙江宇视科技有限公司 Video encryption and decryption method and device
CN105791893A (en) * 2014-12-19 2016-07-20 北京奇虎科技有限公司 Video file encryption method and device, and video file decryption method and device
CN104966023A (en) * 2015-03-10 2015-10-07 深圳市腾讯计算机系统有限公司 Data protection system, method and apparatus
CN105208404A (en) * 2015-08-26 2015-12-30 北京新东方迅程网络科技有限公司 Video encryption and decryption method and device
CN106126373A (en) * 2016-06-21 2016-11-16 青岛海信传媒网络技术有限公司 Data back up method and device, data reconstruction method and device
CN106210775A (en) * 2016-08-26 2016-12-07 浙江大华技术股份有限公司 A kind of method of video-encryption, camera head and video processing platform
CN106657110A (en) * 2016-12-30 2017-05-10 北京奇虎科技有限公司 Encrypted transmission method and apparatus of streaming data
CN106850220A (en) * 2017-02-22 2017-06-13 腾讯科技(深圳)有限公司 Data ciphering method, data decryption method and device
CN107425959A (en) * 2017-06-20 2017-12-01 郑州云海信息技术有限公司 A kind of method for realizing encryption, system, client and service end
CN107277456A (en) * 2017-07-26 2017-10-20 北京计算机技术及应用研究所 A kind of video security monitoring system based on Android device
CN109151507A (en) * 2018-08-08 2019-01-04 武汉市风奥科技股份有限公司 Audio/video player system and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张茹等: "《数字内容安全》", 31 October 2017 *
王永滨等: "《媒体信息安全的整体监控》", 30 September 2006 *
陈关荣等: "《动力系统的混沌化 理论、方法与应用》", 30 April 2006 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010408A (en) * 2020-01-06 2020-04-14 中国银联股份有限公司 Distributed encryption and decryption method and system
CN111010408B (en) * 2020-01-06 2022-02-11 中国银联股份有限公司 Distributed encryption and decryption method and system
CN111343170A (en) * 2020-02-19 2020-06-26 深圳壹账通智能科技有限公司 Electronic signing method and system
CN111343170B (en) * 2020-02-19 2022-07-08 深圳壹账通智能科技有限公司 Electronic signing method and system
CN113285870A (en) * 2021-06-09 2021-08-20 成都安恒信息技术有限公司 Method and system for protecting internet chat privacy
CN114727157A (en) * 2022-03-31 2022-07-08 慧之安信息技术股份有限公司 Video encryption and decryption method and system based on platform

Similar Documents

Publication Publication Date Title
CN110401849A (en) The cipher processing method and device of video data
CN109150499B (en) Method and device for dynamically encrypting data, computer equipment and storage medium
CN109146481B (en) Method, medium and device for automatically importing account private key of blockchain wallet and blockchain system
CN106452770B (en) Data encryption method, data decryption method, device and system
RU2005101217A (en) KEY GENERATION IN A COMMUNICATION SYSTEM
JP2014119486A (en) Secret retrieval processing system, secret retrieval processing method, and secret retrieval processing program
CN112019541A (en) Data transmission method and device, computer equipment and storage medium
CN110061957A (en) Data encryption, decryption method, user terminal, server and data management system
WO2021189566A1 (en) Encryption method and device allowing for sender access and third party supervision
CN104519013A (en) Method and system for ensuring security of media stream, and device
WO2017221979A1 (en) Process control device, process control method, and recording medium having process control program recorded therein
CN116662941B (en) Information encryption method, device, computer equipment and storage medium
KR101697868B1 (en) Method for encrypting data for sharing or searching the data and apparatus for performing the method
CN113301036A (en) Communication encryption method and device, equipment and storage medium
CN112291268A (en) Information transmission method, device, equipment and storage medium
CN110505053A (en) A kind of quantum key filling method, apparatus and system
CN107682335A (en) Data transmission method, service end and computer-readable recording medium
Camargo et al. Study of cryptographic algorithms to protect electronic medical records in mobile platforms
KR20200136629A (en) Apparatus and method for decrypting end-to-end encrypted files
CN112118267B (en) Anonymous communication method and related device
CN113672954A (en) Feature extraction method and device and electronic equipment
JPH1021302A (en) User's information collecting system
CN109711207B (en) Data encryption method and device
CN112699391A (en) Target data sending method and privacy computing platform
CN106570410B (en) Data encryption method, data decryption method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191101