CN111741268B - Video transmission method, device, server, equipment and medium - Google Patents

Video transmission method, device, server, equipment and medium Download PDF

Info

Publication number
CN111741268B
CN111741268B CN202010618230.XA CN202010618230A CN111741268B CN 111741268 B CN111741268 B CN 111741268B CN 202010618230 A CN202010618230 A CN 202010618230A CN 111741268 B CN111741268 B CN 111741268B
Authority
CN
China
Prior art keywords
key
data
acquisition request
video
server
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.)
Active
Application number
CN202010618230.XA
Other languages
Chinese (zh)
Other versions
CN111741268A (en
Inventor
方赤
徐志轩
朱可
张元�
陈治宇
何城
尹传威
吴宇光
张荣宸
吴思
李洋莹
秦雯婧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010618230.XA priority Critical patent/CN111741268B/en
Publication of CN111741268A publication Critical patent/CN111741268A/en
Application granted granted Critical
Publication of CN111741268B publication Critical patent/CN111741268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • 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 or manipulating encoded video stream scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream 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/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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a video transmission method, a video transmission device, a video transmission server, video transmission equipment and a video transmission medium. Wherein, the method comprises the following steps: responding to a key acquisition request sent by the mobile equipment, generating a credit authorization key and a data key pair, and sending the credit authorization key to the mobile equipment; wherein the key acquisition request comprises mobile device information; receiving a video acquisition request which is sent by mobile equipment and comprises a target video identifier and a credit granting key; and if the receiving time difference between the key acquisition request and the video acquisition request is detected not to exceed the time length threshold, encrypting the key frame in the target video by using the encryption key in the data key pair to obtain key frame ciphertext data, and sending the key frame ciphertext data and non-key frame data to the mobile equipment. The embodiment of the invention solves the problem that the video is cracked due to the fact that the data key pair is stolen by setting the one-time pad in each video transmission process, thereby effectively improving the safety of video transmission.

Description

Video transmission method, device, server, equipment and medium
Technical Field
The present invention relates to encryption and decryption technologies, and in particular, to a method, an apparatus, a server, a device, and a medium for video transmission.
Background
With the rapid development of mobile internet and live broadcast technology, in security and protection business in the financial industry, at present, in order to realize rapid security and timely collaborative check in the first time, the requirements for checking key monitoring parts of other banks such as network points and the like through a mobile terminal and real-time and historical monitoring videos are increasingly strong, and meanwhile, the information safety is guaranteed. The video is transmitted safely, mainly through a video monitoring technical solution that the video is encrypted by a camera of a bank outlet, then is pushed to a mobile terminal through an encryption link and is played as the current mainstream.
The defects of the scheme are as follows: the encryption key and the decryption key used in each transmission process are fixed and unchangeable; once the key is obtained in the transmission process of the video, the risk of being cracked may exist, so that the security of video transmission is greatly reduced.
Disclosure of Invention
The embodiment of the application provides a video transmission method, a video transmission device, a video transmission server, video transmission equipment and a video transmission medium, and the security of video transmission can be effectively improved by setting a one-time pad in each transmission process.
In a first aspect, an embodiment of the present invention provides a video transmission method, which is applied to a server, and the method includes:
responding to a key acquisition request sent by mobile equipment, generating a credit authorization key and a data key pair, and sending the credit authorization key to the mobile equipment; wherein the key acquisition request comprises mobile device information;
receiving a video acquisition request which is sent by the mobile equipment and comprises a target video identifier and the credit key;
and if the fact that the receiving time difference between the key acquisition request and the video acquisition request does not exceed the time length threshold value is detected, encrypting the key frame in the target video by using the encryption key in the data key pair to obtain key frame ciphertext data, and sending the key frame ciphertext data and non-key frame data to the mobile equipment.
In a second aspect, an embodiment of the present invention provides a video transmission method, which is applied to a mobile device, and the method includes:
sending a key acquisition request to a server; wherein the key acquisition request comprises mobile device information;
receiving a credit granting secret key returned by the server;
sending a video acquisition request to the server; the video acquisition request comprises a target video identifier and the credit granting key;
and receiving key frame ciphertext data and non-key frame data returned by the server.
In a third aspect, an embodiment of the present invention provides a video transmission apparatus, configured in a server, where the apparatus includes:
the generation module is used for responding to a key acquisition request sent by the mobile equipment, generating a credit authorization key and a data key pair, and sending the credit authorization key to the mobile equipment; wherein the key acquisition request comprises mobile device information;
the receiving module is used for receiving a video acquisition request which is sent by the mobile equipment and comprises a target video identifier and the credit granting key;
and the sending module is used for encrypting a key frame in a target video by using an encryption key in the data key pair to obtain key frame ciphertext data and sending the key frame ciphertext data and non-key frame data to the mobile equipment if the fact that the receiving time difference between the key acquisition request and the video acquisition request does not exceed the time length threshold is detected.
In a fourth aspect, an embodiment of the present invention provides an apparatus for transmitting a video, where the apparatus is configured in a mobile device, and the apparatus includes:
the sending module is used for sending a key obtaining request to the server; wherein the key acquisition request comprises mobile device information;
the receiving module is used for receiving the credit granting key returned by the server;
the sending module is also used for sending a video acquisition request to the server; the video acquisition request comprises a target video identifier and the credit granting key;
and the receiving module is also used for receiving the key frame ciphertext data and the non-key frame data returned by the server.
In a fifth aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the video transmission method applied to the server in any of the embodiments of the present invention.
In a sixth aspect, an embodiment of the present invention further provides a mobile device, where the mobile device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement any of the video transmission methods applied to the mobile device in the embodiments of the present invention.
In a seventh aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any one of the embodiments of the present invention as a video transmission method applied to a server, or implements any one of the embodiments of the present invention as a video transmission method applied to a mobile device.
The embodiment of the invention responds to a key acquisition request sent by the mobile equipment, generates a credit authorization key and a data key pair, and sends the credit authorization key to the mobile equipment; wherein the key acquisition request comprises mobile device information; receiving a video acquisition request which is sent by mobile equipment and comprises a target video identifier and a credit granting key; and if the fact that the receiving time difference between the key acquisition request and the video acquisition request does not exceed the time length threshold is detected, encrypting the key frames in the target video by using the encryption key in the data key pair to obtain key frame ciphertext data, and sending the key frame ciphertext data and non-key frame data to the mobile equipment. The embodiment of the invention solves the problem that the video is cracked due to the fact that the data key pair is stolen by setting the one-time pad in each video transmission process, thereby effectively improving the safety of video transmission.
Drawings
Fig. 1 is a schematic flow chart of a video transmission method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a video transmission method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a video transmission apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a video transmission apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server in the fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile device in a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a video transmission method according to an embodiment of the present invention. The embodiment can be applied to the situation of safely and effectively transmitting the encrypted video file to the mobile equipment, and the method of the embodiment can be executed by a video transmission device, which can be realized in a hardware/software mode and can be configured in a server. The video transmission method according to any embodiment of the present application can be realized. As shown in fig. 1, the method specifically includes the following steps:
s110, responding to a key acquisition request sent by the mobile equipment, generating a credit key and a data key pair, and sending the credit key to the mobile equipment; wherein the key acquisition request includes mobile device information.
In this embodiment, the mobile device is a client product available for a user, such as a smart phone, and is mainly used for receiving encrypted data sent by a video provider; in this embodiment, the video provider is a server in different scenarios, for example, a background server in a banking system, and the video may be image data acquired by an acquisition device in a bank.
The trust key and the data key pair are independent information generated by the server according to the attribute information of each mobile device, and the server generates independent and unequal trust key and data key pairs for each mobile device according to the key acquisition request sent by each mobile device; the attribute information of the mobile device may include timestamp information of the key obtaining request, or an ID (Identity Document) of each mobile device, that is, mobile device information. Specifically, the trust key is a verification parameter for the mobile device to pull a specific target video in the server; after the server generates the credit key and the data key pair, the incidence relation among the mobile equipment information, the credit key and the data key pair is established so as to ensure the mutual uniqueness of the keys in the video data transmission process; in this embodiment, the encryption key and the decryption key in the data key pair are the same.
Optionally, generating a trust key and data key pair in response to a key obtaining request sent by the mobile device, including: and generating a credit granting key and a data key pair according to the timestamp information of the key acquisition request. In order to avoid that different mobile devices use the same trust key to cause the same video to be acquired for multiple times, in this embodiment, a unique trust key and data key pair is generated for each mobile device in real time according to the timestamp information of the key acquisition request sent by each mobile device; for example, if the timestamp information of the key obtaining request sent by the mobile device received by the server is "2008.5.21. PM13: 14", the generated trust key may be, but is not limited to, "2008521"; the encryption key and the decryption key in the data key pair may be, but are not limited to, "20085211314", and the key lengths of the trust key and the data key pair are not limited in this embodiment, and may be set differently according to the transmission scenario.
S120, receiving a video acquisition request which is sent by the mobile equipment and comprises a target video identification and a credit key.
In this embodiment, a plurality of videos are stored in the server, and in order to implement unified management on the plurality of videos, a video identifier is labeled on each video; the video identifier may be a key content name, a category name, and a combination of the key content name and the category name of the stored video. When the server receives a video acquisition request sent by the mobile equipment, the identity information of the mobile equipment needs to be verified according to a credit key and a mobile equipment identifier in the video acquisition request, and if the verification is successful, subsequent operation is performed; and if the verification fails, returning the video acquisition request and displaying that the identity of the mobile equipment is wrong.
If the identity information of the mobile device is successfully verified, it is further determined whether a time difference between the received key acquisition request sent by the mobile device and the received video acquisition request exceeds a time threshold, if it is detected that the time difference between the received key acquisition request and the received video acquisition request does not exceed the time threshold, an encryption key in the data key pair is used as a key frame in the target video to encrypt the key frame to obtain key frame ciphertext data, and the key frame ciphertext data and non-key frame data are sent to the mobile device, that is, S130 is executed.
Optionally, after S120, the method further includes: and if the receiving time difference between the key acquisition request and the video acquisition request exceeds a time length threshold value, destroying the credit granting key and the data key pair. If the time difference between the key acquisition request and the video acquisition request exceeds the time length threshold, the mobile equipment does not have the requirement of using a decryption key during the time length threshold, and once the time of the data key stored in the server is too long, the data key is stolen, so that the safety of the stored video is difficult to ensure; therefore, in order to avoid the problem, the trust key and the data key pair need to be destroyed, and the server immediately destroys all the associated information of the mobile device, that is, the mobile device has no memory, and the video acquisition request sent by the mobile device is not responded again; that is, after receiving a video acquisition request, the request is destroyed immediately.
S130, if the fact that the receiving time difference between the key acquisition request and the video acquisition request does not exceed the time length threshold value is detected, the encryption key in the data key pair is used as the key frame in the target video to be encrypted, key frame ciphertext data are obtained, and the key frame ciphertext data and non-key frame data are sent to the mobile equipment.
In this embodiment, the target video is a video that the mobile device needs to acquire; the key frame is an original picture in the two-dimensional animation, namely the frame where the key action in the movement or change of the character and the object is located; the non-key frames are also called difference frames, are divided into difference frames and bidirectional difference frames, are distinguished from the key frames, are frames with differences with the key frames, and are used for incrementally calculating and drawing the original picture.
The key frame ciphertext data is image data obtained by processing key frame data through an encryption key; the non-key frame data is original non-key frame image data obtained without encryption key processing. By encrypting key frames in the target video, the problem that all video frames are encrypted to increase the pressure of a communication link when the video is encrypted is solved, and meanwhile, the calculation load of a video provider and a video receiver is reduced.
The embodiment of the invention responds to a key acquisition request sent by the mobile equipment, generates a credit authorization key and a data key pair, and sends the credit authorization key to the mobile equipment; wherein the key acquisition request comprises mobile device information; receiving a video acquisition request which is sent by mobile equipment and comprises a target video identifier and a credit granting key; and if the fact that the receiving time difference between the key acquisition request and the video acquisition request does not exceed the time length threshold is detected, encrypting the key frames in the target video by using the encryption key in the data key pair to obtain key frame ciphertext data, and sending the key frame ciphertext data and non-key frame data to the mobile equipment. The embodiment of the invention solves the problem that the video is cracked due to the fact that the data key pair is stolen by setting the one-time pad in each video transmission process, thereby effectively improving the safety of video transmission.
Optionally, after the key frame ciphertext data and the non-key frame data are sent to the mobile device, the method further includes: and destroying the trust key.
In this embodiment, after the encrypted target video is sent to the mobile device, in order to ensure that no other mobile device can obtain the encrypted target video again according to the credit key, the credit key needs to be destroyed after the video transmission is completed, so as to ensure that one credit key can only obtain the use effect of the target video once, thereby implementing efficient management of important videos.
On the basis of the foregoing embodiment, optionally, the method of this embodiment further includes:
and sending the decryption key in the data key pair to the mobile equipment, so that the mobile equipment decrypts the key frame ciphertext data by adopting the decryption key.
In this embodiment, symmetric encryption is used, and the encryption key and the decryption key are the same; the symmetric encryption is an encryption method adopting a single-key cryptosystem, and the same key can be used for encrypting and decrypting information at the same time. After the server generates the credit key and the data key pair, the server sends the decryption key in the data key pair to the mobile equipment, so that the mobile equipment can decrypt the received target video containing the key frame ciphertext data to obtain the complete and effective target video.
Optionally, before encrypting the key frame in the target video by using the encryption key in the data key pair, the method further includes:
determining key frames in the target video according to the identification information of the video frames in the target video; wherein the identification information includes key frames and non-key frames.
In this embodiment, different frames in the stored video of the server are labeled with different identification information, which is intended to clearly and effectively distinguish between key frames (I frames) and non-key frames. Specifically, before each frame of image in the video is stored, a frame identifier to which the image frame belongs is identified in advance according to a frame identification algorithm, and then a field information is added to the frame identifier to serve as the identifier information of the video frame. Among them, the non-key frames can be classified into differential frames (P frames) and bidirectional differential frames (B frames).
Example two
Fig. 2 is a flowchart illustrating a video transmission method according to a second embodiment of the present invention. The embodiment can be applied to the case of acquiring encrypted video by a mobile device, and the method of the embodiment can be executed by a video transmission device, which can be implemented in a hardware/software manner and can be configured in the mobile device. The video transmission method according to any embodiment of the present application can be realized. As shown in fig. 2, the method specifically includes the following steps:
s210, sending a key acquisition request to a server; wherein the key acquisition request includes mobile device information.
In this embodiment, when a mobile device used by a user needs to obtain a required video from a server, a key obtaining request is first sent to the server, so as to obtain a trusted key for replacing a target video, so that the target video returned by the server can be effectively received. The mobile device information may be an ID of the mobile device, a device name, or associated user identity information.
And S220, receiving the trust key returned by the server.
In this embodiment, the trust key is used to exchange the receiving right of the target video for the server, and the server sends the corresponding trust key to the mobile device after verifying the identity information security of the mobile device according to the mobile device information.
S230, sending a video acquisition request to a server; the video acquisition request comprises a target video identifier and a credit granting key.
In this embodiment, the video acquisition request is to prompt the server to send the target video to the mobile device; the target video identification can be a key content name and a category name of the target video or a combination of the key content name and the category name, so that the server can quickly and accurately find the target video according to the target video identification in the video acquisition request sent by the mobile equipment; the trust key is used for enabling the server to verify the mobile equipment information according to the trust key; the server stores the association relationship between the mobile equipment information and the credit granting key.
And S240, receiving the key frame ciphertext data and the non-key frame data returned by the server.
In this embodiment, since the transmitted video may have confidential content, if the server performs encryption processing on part of the content in the transmitted video, the mobile device receives the encrypted key ciphertext data and the unencrypted non-key frame data. The embodiment of the invention can acquire the target video through the real-time effective trust key, thereby greatly improving the acquisition efficiency of the target video.
On the basis of the foregoing embodiment, optionally, the method of this embodiment further includes:
and receiving a decryption key in the data key pair sent by the server, and decrypting the key frame ciphertext data according to the decryption key to obtain a target video containing decrypted key frame data and non-key frame data.
In this embodiment, a symmetric encryption manner is adopted, so that the decryption key in the data key pair received by the mobile device is the same as the encryption key in the data key pair adopted when the server performs encryption, thereby effectively improving decryption efficiency. And the mobile equipment decrypts the key frame ciphertext data according to the decryption key to obtain key frame data, and sequentially plays each frame data in the target video according to the receiving sequence of the key frame data and the non-key frame.
The embodiment of the invention sends a key acquisition request to a server; receiving a credit granting key returned by the server; sending a video acquisition request to a server; and receiving key frame ciphertext data and non-key frame data returned by the server. The target video can be obtained through the real-time effective trust key, and the obtaining efficiency of the target video is greatly improved.
EXAMPLE III
A third embodiment of the present invention provides a video transmission device, configured in a server, and referring to fig. 3, the video transmission device includes:
a generating module 310, configured to generate a trust key and a data key pair in response to a key acquisition request sent by a mobile device, and send the trust key to the mobile device; wherein the key acquisition request comprises mobile device information;
a receiving module 320, configured to receive a video acquisition request that includes a target video identifier and the trust key and is sent by the mobile device;
a sending module 330, configured to encrypt a key frame in a target video by using an encryption key in the data key pair if it is detected that a receiving time difference between the key acquisition request and the video acquisition request does not exceed a time threshold, to obtain key frame ciphertext data, and send the key frame ciphertext data and non-key frame data to the mobile device.
On the basis of the foregoing embodiment, optionally, the apparatus of this embodiment further includes:
and the destroying module is used for destroying the credit granting key and the data key pair if the receiving time difference between the key acquisition request and the video acquisition request is detected to exceed a time length threshold.
On the basis of the above embodiment, optionally, the destroying module is further configured to destroy the trust key.
Optionally, the generating module 310 is specifically configured to:
and generating a credit granting key and a data key pair according to the timestamp information of the key acquisition request.
On the basis of the foregoing embodiment, optionally, the sending module 330 is further configured to send the decryption key in the data key pair to the mobile device, so that the mobile device decrypts the key frame ciphertext data by using the decryption key.
On the basis of the foregoing embodiment, optionally, the apparatus of this embodiment further includes:
the determining module is used for determining key frames in the target video according to the identification information of the video frames in the target video; wherein the identification information includes key frames and non-key frames.
By the video transmission device provided by the third embodiment of the invention, the problem that the video is cracked due to the fact that the data key pair is stolen is solved by setting the one-time pad in each video transmission process, and therefore the safety of video transmission is effectively improved.
The video transmission device configured in the server according to the embodiment of the present invention can execute the video transmission method applied to the server according to any embodiment of the present invention, and has functional modules and advantageous effects corresponding to the execution method.
Example four
An embodiment of the present invention provides a video transmission apparatus configured in a mobile device, and referring to fig. 4, the apparatus includes:
a sending module 410, configured to send a key obtaining request to a server; wherein the key acquisition request comprises mobile device information;
a receiving module 420, configured to receive a trust key returned by the server;
a sending module 410, further configured to send a video obtaining request to the server; the video acquisition request comprises a target video identifier and the credit granting secret key;
the receiving module 420 is further configured to receive the key frame ciphertext data and the non-key frame data returned by the server.
On the basis of the foregoing embodiment, optionally, the receiving module 420 is further configured to receive a decryption key in the data key pair sent by the server, and decrypt the key frame ciphertext data according to the decryption key to obtain the target video including the decrypted key frame data and non-key frame data.
By the video transmission device, the target video can be acquired through the real-time effective trust key, and the acquisition efficiency of the target video is greatly improved.
The video transmission device configured in the mobile device according to the embodiment of the present invention can execute the video transmission method applied to the mobile device according to any embodiment of the present invention, and has functional modules and advantageous effects corresponding to the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a server according to a fifth embodiment of the present invention, as shown in fig. 5, the server includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of the processors 510 in the server may be one or more, and one processor 510 is taken as an example in fig. 5; the processor 510, the memory 520, the input device 530 and the output device 540 in the server may be connected by a bus or other means, and the bus connection is exemplified in fig. 5.
The memory 520 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the video transmission method in the embodiment of the present invention. The processor 510 executes various functional applications of the server and data processing by executing software programs, instructions, and modules stored in the memory 520, that is, implements the above-described video transmission method.
The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the server, and may include a keyboard, a mouse, and the like. The output device 540 may include a display device such as a display screen.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a mobile device according to a sixth embodiment of the present invention, as shown in fig. 6, the mobile device includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of the processors 610 in the mobile device may be one or more, and one processor 610 is taken as an example in fig. 6; the processor 610, the memory 620, the input device 630, and the output device 640 in the mobile device may be connected by a bus or other means, and fig. 6 illustrates an example of a connection by a bus.
The memory 620, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the video transmission method in the embodiment of the present invention. The processor 610 executes various functional applications and data processing of the mobile device by executing software programs, instructions and modules stored in the memory 620, that is, implements the above-described video transmission method.
The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 620 can further include memory located remotely from the processor 610, which can be connected to a mobile device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile device, and may include a keyboard, a mouse, and the like. The output device 640 may include a display device such as a display screen.
EXAMPLE seven
The present embodiments provide a storage medium containing computer-executable instructions that, when executed by a computer processor, perform a method of transmitting video applied to a server or a method of transmitting video applied to a mobile device.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the video transmission method applied to the server provided by any embodiment of the present invention, or may also perform related operations in the video transmission method applied to the mobile device provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a server (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A video transmission method is applied to a server, and comprises the following steps:
responding to a key acquisition request sent by mobile equipment, generating a credit authorization key and a data key pair, and sending the credit authorization key to the mobile equipment; wherein the key acquisition request comprises mobile device information;
receiving a video acquisition request which is sent by the mobile equipment and comprises a target video identifier and the credit key;
if the fact that the receiving time difference between the key acquisition request and the video acquisition request does not exceed the time length threshold value is detected, an encryption key in the data key pair is adopted to encrypt key frames in the target video to obtain key frame ciphertext data, and the key frame ciphertext data and non-key frame data are sent to the mobile equipment;
the credit granting key is a verification parameter for the mobile device to pull a specific target video in the server;
after receiving the video acquisition request including the target video identifier and the trust key sent by the mobile device, the method further includes:
if the receiving time difference between the key acquisition request and the video acquisition request exceeds a time length threshold value, destroying the credit granting key and the data key pair;
after the sending the key frame ciphertext data and the non-key frame data to the mobile device, the method further includes:
destroying the trust key;
wherein the data key pair is independent and unequal information generated by the server according to the attribute information of each mobile device.
2. The method of claim 1, wherein generating a trust key and data key pair in response to a key acquisition request sent by a mobile device comprises:
and generating a credit granting key and a data key pair according to the timestamp information of the key acquisition request.
3. The method of claim 1, further comprising:
and sending the decryption key in the data key pair to the mobile equipment, so that the mobile equipment decrypts the key frame ciphertext data by adopting the decryption key.
4. The method of claim 1, further comprising, before encrypting the key frames in the target video using the encryption key in the data key pair:
determining key frames in the target video according to the identification information of the video frames in the target video; wherein the identification information includes key frames and non-key frames.
5. A video transmission method is applied to a mobile device, and comprises the following steps:
sending a key acquisition request to a server; wherein the key acquisition request comprises mobile device information;
receiving a credit granting secret key returned by the server;
sending a video acquisition request to the server; the video acquisition request comprises a target video identifier and the credit granting key, so that after the server receives the video acquisition request which comprises the target video identifier and the credit granting key and is sent by the mobile device, if the receiving time difference between the key acquisition request and the video acquisition request exceeds a time length threshold value, the credit granting key and the data key pair are destroyed;
receiving key frame ciphertext data and non-key frame data returned by the server;
receiving a decryption key in a data key pair sent by the server, and decrypting the key frame ciphertext data according to the decryption key to obtain a target video containing decrypted key frame data and non-key frame data;
the credit granting key is a verification parameter for the mobile device to pull a specific target video in the server;
the credit authorization key is destroyed after the server sends the key frame ciphertext data and the non-key frame data to the mobile equipment;
wherein the data key pair is independent and unequal information generated by the server according to the attribute information of each mobile device.
6. A video transmission apparatus, configured in a server, the apparatus comprising:
the generation module is used for responding to a key acquisition request sent by the mobile equipment, generating a credit authorization key and a data key pair, and sending the credit authorization key to the mobile equipment; wherein the key acquisition request comprises mobile device information;
the receiving module is used for receiving a video acquisition request which is sent by the mobile equipment and comprises a target video identifier and the credit granting key;
the sending module is used for encrypting a key frame in a target video by using an encryption key in the data key pair to obtain key frame ciphertext data and sending the key frame ciphertext data and non-key frame data to the mobile equipment if the receiving time difference between the key acquisition request and the video acquisition request is detected not to exceed a time length threshold;
the credit granting key is a verification parameter for the mobile device to pull a specific target video in the server;
the destroying module is used for destroying the credit granting key and the data key pair if the receiving time difference between the key acquisition request and the video acquisition request is detected to exceed a time length threshold;
the destroying module is further used for destroying the credit authorization key;
wherein the data key pair is independent and unequal information generated by the server according to the attribute information of each mobile device.
7. An apparatus for transmitting video, configured in a mobile device, the apparatus comprising:
the sending module is used for sending a key acquisition request to the server; wherein the key acquisition request comprises mobile device information;
the receiving module is used for receiving the credit granting key returned by the server;
the sending module is also used for sending a video acquisition request to the server; the video acquisition request comprises a target video identifier and the credit granting key, so that after the server receives the video acquisition request which comprises the target video identifier and the credit granting key and is sent by the mobile device, if the receiving time difference between the key acquisition request and the video acquisition request exceeds a time length threshold value, the credit granting key and the data key pair are destroyed;
the receiving module is also used for receiving key frame ciphertext data and non-key frame data returned by the server;
the receiving module is further configured to receive a decryption key in the data key pair sent by the server, and decrypt the key frame ciphertext data according to the decryption key to obtain a target video including decrypted key frame data and non-key frame data;
the credit granting key is a verification parameter for the mobile device to pull a specific target video in the server;
the credit authorization key is destroyed after the server sends the key frame ciphertext data and the non-key frame data to the mobile equipment;
wherein the data key pair is independent and unequal information generated by the server according to the attribute information of each mobile device.
8. A server, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of transmitting video as claimed in any one of claims 1 to 4.
9. A mobile device, comprising:
one or more processors;
a storage device to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of transmitting video as recited in claim 5.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method for transmitting video as claimed in any one of claims 1 to 4, or is adapted to carry out a method for transmitting video as claimed in claim 5.
CN202010618230.XA 2020-06-30 2020-06-30 Video transmission method, device, server, equipment and medium Active CN111741268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010618230.XA CN111741268B (en) 2020-06-30 2020-06-30 Video transmission method, device, server, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010618230.XA CN111741268B (en) 2020-06-30 2020-06-30 Video transmission method, device, server, equipment and medium

Publications (2)

Publication Number Publication Date
CN111741268A CN111741268A (en) 2020-10-02
CN111741268B true CN111741268B (en) 2022-07-05

Family

ID=72653881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010618230.XA Active CN111741268B (en) 2020-06-30 2020-06-30 Video transmission method, device, server, equipment and medium

Country Status (1)

Country Link
CN (1) CN111741268B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890730A (en) * 2021-09-23 2022-01-04 上海华兴数字科技有限公司 Data transmission method and system
CN114025192B (en) * 2021-11-04 2024-05-28 广州方硅信息技术有限公司 Live broadcast data encryption and decryption methods and devices, storage medium and computer equipment
CN115065843B (en) * 2022-07-22 2022-12-20 广州万协通信息技术有限公司 Video encryption and decryption processing method and system under security authentication
CN117395474B (en) * 2023-12-12 2024-02-27 法序(厦门)信息科技有限公司 Locally stored tamper-resistant video evidence obtaining and storing method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163228A (en) * 2007-10-24 2008-04-16 中国电信股份有限公司 Video data encrypted system and method for network video monitoring
CN101461178A (en) * 2006-06-30 2009-06-17 Posdata株式会社 Dvr server and method for controlling accessing monitering device in network based digital video record system
CN104821937A (en) * 2015-03-26 2015-08-05 腾讯科技(北京)有限公司 Token acquisition method, device and system
CN105611318A (en) * 2014-11-25 2016-05-25 上海天脉聚源文化传媒有限公司 Method and system for video encryption playing
CN108235067A (en) * 2018-01-04 2018-06-29 武汉斗鱼网络科技有限公司 A kind of method for authenticating and device of video flowing address
CN108322469A (en) * 2018-02-05 2018-07-24 北京百度网讯科技有限公司 Information processing system, method and apparatus
CN108989848A (en) * 2018-07-26 2018-12-11 网宿科技股份有限公司 A kind of acquisition methods and management system of video resource file
CN109902499A (en) * 2019-03-13 2019-06-18 广州市网星信息技术有限公司 A kind of resource authorization and access method, device, system, equipment and storage medium
CN110401677A (en) * 2019-08-23 2019-11-01 RealMe重庆移动通信有限公司 Acquisition methods, device, storage medium and the electronic equipment of digital publishing rights key

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9215065B2 (en) * 2012-02-17 2015-12-15 Cbs Interactive Inc. Media player security for full length episodes
CN104811773B (en) * 2015-04-28 2017-12-15 天脉聚源(北京)传媒科技有限公司 Channel based on door chain plays implementation method, system and equipment
US10055578B1 (en) * 2016-05-17 2018-08-21 Sprint Communications Company L.P. Secure software containers
CN106453318A (en) * 2016-10-14 2017-02-22 北京握奇智能科技有限公司 Data transmission system and method based on security module
CN106488321B (en) * 2016-12-22 2020-03-17 深圳Tcl数字技术有限公司 Television decryption method and system
CN106961614B (en) * 2017-02-22 2020-04-21 北京奇艺世纪科技有限公司 Method and system for playing encrypted video through network
CN106993201A (en) * 2017-03-17 2017-07-28 武汉斗鱼网络科技有限公司 The authorization check method and device of video playback
CN107483883B (en) * 2017-07-19 2019-12-20 中标慧安信息技术股份有限公司 Intelligent data interaction method and device
CN111246251A (en) * 2020-01-21 2020-06-05 中国科学院苏州纳米技术与纳米仿生研究所 Encryption transmission method, terminal, system and application of video stream data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101461178A (en) * 2006-06-30 2009-06-17 Posdata株式会社 Dvr server and method for controlling accessing monitering device in network based digital video record system
CN101163228A (en) * 2007-10-24 2008-04-16 中国电信股份有限公司 Video data encrypted system and method for network video monitoring
CN105611318A (en) * 2014-11-25 2016-05-25 上海天脉聚源文化传媒有限公司 Method and system for video encryption playing
CN104821937A (en) * 2015-03-26 2015-08-05 腾讯科技(北京)有限公司 Token acquisition method, device and system
CN108235067A (en) * 2018-01-04 2018-06-29 武汉斗鱼网络科技有限公司 A kind of method for authenticating and device of video flowing address
CN108322469A (en) * 2018-02-05 2018-07-24 北京百度网讯科技有限公司 Information processing system, method and apparatus
CN108989848A (en) * 2018-07-26 2018-12-11 网宿科技股份有限公司 A kind of acquisition methods and management system of video resource file
CN109902499A (en) * 2019-03-13 2019-06-18 广州市网星信息技术有限公司 A kind of resource authorization and access method, device, system, equipment and storage medium
CN110401677A (en) * 2019-08-23 2019-11-01 RealMe重庆移动通信有限公司 Acquisition methods, device, storage medium and the electronic equipment of digital publishing rights key

Also Published As

Publication number Publication date
CN111741268A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN112218294B (en) 5G-based access method and system for Internet of things equipment and storage medium
CN111741268B (en) Video transmission method, device, server, equipment and medium
CN111079128B (en) Data processing method and device, electronic equipment and storage medium
CN112019332B (en) Encryption and decryption method based on micro-service, API gateway system and equipment
EP3324572B1 (en) Information transmission method and mobile device
CN109067528B (en) Password operation method, work key creation method, password service platform and equipment
US11063941B2 (en) Authentication system, authentication method, and program
US10659226B2 (en) Data encryption method, decryption method, apparatus, and system
CN113691502B (en) Communication method, device, gateway server, client and storage medium
US11831753B2 (en) Secure distributed key management system
CN109347625B (en) Password operation method, work key creation method, password service platform and equipment
CN113468598A (en) Block chain-based certificate-preserving and security notarization system and method
CN111131416A (en) Business service providing method and device, storage medium and electronic device
CN117240625B (en) Tamper-resistant data processing method and device and electronic equipment
CN114793184B (en) Security chip communication method and device based on third-party key management node
CN114244508A (en) Data encryption method, device, equipment and storage medium
CN112788001A (en) Data encryption-based data processing service processing method, device and equipment
CN115276978A (en) Data processing method and related device
CN113630412B (en) Resource downloading method, resource downloading device, electronic equipment and storage medium
CN113722741A (en) Data encryption method and device and data decryption method and device
CN113434837A (en) Method and device for equipment identity authentication and smart home system
CN115022012B (en) Data transmission method, device, system, equipment and storage medium
CN114640524B (en) Method, apparatus, device and medium for processing transaction replay attack
CN111382451A (en) Security level identification method and device, electronic equipment and storage medium
CN114553557B (en) Key calling method, device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220915

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Patentee after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Patentee before: CHINA CONSTRUCTION BANK Corp.

Patentee before: Jianxin Financial Science and Technology Co.,Ltd.