CN110012317A - A kind of video acquiring method and device, a kind of video encryption method and device - Google Patents

A kind of video acquiring method and device, a kind of video encryption method and device Download PDF

Info

Publication number
CN110012317A
CN110012317A CN201910301383.9A CN201910301383A CN110012317A CN 110012317 A CN110012317 A CN 110012317A CN 201910301383 A CN201910301383 A CN 201910301383A CN 110012317 A CN110012317 A CN 110012317A
Authority
CN
China
Prior art keywords
information
client
identification information
video
broadcast address
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
CN201910301383.9A
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.)
Beijing Lexuebang Network Technology Co Ltd
Original Assignee
Beijing Lexuebang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Lexuebang Network Technology Co Ltd filed Critical Beijing Lexuebang Network Technology Co Ltd
Priority to CN201910301383.9A priority Critical patent/CN110012317A/en
Publication of CN110012317A publication Critical patent/CN110012317A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/26613Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4627Rights management associated to the content
    • 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

Abstract

This application provides a kind of video acquiring method and devices, a kind of video encryption method and device, it include: that request broadcast information is sent to server by calling interface invoking web page end, wherein, it requests to include the identification information for choosing video for requesting to play in broadcast information;Receive verification information and encrypted target broadcast address that server is sent, wherein target broadcast address is to choose the corresponding broadcast address of the identification information of video;Verification information is verified, if being verified, target broadcast address is decrypted;Based on the target broadcast address after decryption, obtains and the matched video of target broadcast address and play.By this method, when obtaining video, it is not only to be encrypted to broadcast address, increases the verification process to verification information, just encrypted broadcast address is decrypted when being verified, further ensures the safety of video.

Description

A kind of video acquiring method and device, a kind of video encryption method and device
Technical field
This application involves technical field of video processing, more particularly, to a kind of video acquiring method and device, video-encryption Method and device.
Background technique
In the prior art, mainly pass through three kinds of modes: page end, client, and mixing end when watching video.Webpage End refers to the webpage opened in a browser, and client refers to the application program for being mounted on user terminal, mixes end for page end and client End combines, and mixing end is mounted in the application program of user terminal, but is by client tune when watching video by mixing end Video is obtained with the interface of page end, is then watched by client.
Mainly pass through two ways when encrypting to mixing end in the prior art, one is add to decrypt in page end Player, one is add decryption player in client.The mode of decryption player is added in page end, because of decrypted code It is realized in page end, encrypted code is easy to be resolved, and cipher round results are simultaneously bad;The mode of decryption player is added in client Although encrypted code is not easy to be resolved, but by page end call client terminal playing video when, call relation is to pass through net Realize that malicious user can control what client terminal playing was specified by cracking page end to the call relation of client in page end Third party's page, cipher round results are also unsatisfactory.
Summary of the invention
In view of this, the application's is designed to provide a kind of video acquiring method and device, video encryption method and dress It sets, to improve the safety of video.
In a first aspect, the embodiment of the present application provides a kind of video acquiring method, applied to the calling for being configured with page end In the client of interface, comprising:
The page end is called to send request broadcast information to server by the calling interface, wherein the request It include the identification information for choosing video that request plays in broadcast information;
Receive verification information and encrypted target broadcast address that the server is sent, wherein the target is broadcast It puts address and chooses the corresponding broadcast address of the identification information of video to be described;
The verification information is verified, if being verified, the target broadcast address is decrypted;
Based on the target broadcast address after decryption, obtains and the matched video of the target broadcast address and play.
With reference to first aspect, the embodiment of the present application provides the first possible embodiment of first aspect, wherein institute It states in request broadcast information further include: the identification information of the client;
The verification information include the identification information of the client and according to the first predetermined encryption method to the visitor The identification information at family end carries out encrypted encryption information.
The possible embodiment of with reference to first aspect the first, the embodiment of the present application provide second of first aspect Possible embodiment, wherein described that the verification information is verified, comprising:
According to first predetermined encryption method to the identification information of the client for including in the verification information into Row encryption, obtains encrypted result;
The encryption information for including in the encrypted result and the verification information is compared, if the encrypted result with The encryption information for including in the verification information is consistent, it is determined that is verified.
Second aspect, the embodiment of the present application provide a kind of video encryption method, are applied in server, comprising:
Receive the request broadcast information that page end is sent, wherein include the choosing that request plays in the request broadcast information The identification information of the identification information of middle video and the client;
If it is determined that the identification information of the client meets presupposed information condition, then it is right according to the first predetermined encryption method The identification information of the client is encrypted, and encryption information is obtained;
Determine the request broadcasting chooses the corresponding target broadcast address of the identification information of video;
According to the second predetermined encryption method, the target broadcast address is encrypted, obtains the encrypted target Broadcast address;
The encrypted target broadcast address and verification information are sent to the client, wherein the verifying Information include the client identification information and the encryption information.
In conjunction with second aspect, the embodiment of the present application provides the first possible embodiment of second aspect, wherein institute It states and determines that the identification information of the client meets presupposed information condition, comprising:
When the identification information of the client is in the list of identification information that the server stores, it is determined that the visitor The identification information at family end meets presupposed information condition.
The third aspect, the embodiment of the present application also provide a kind of video acquisition device, connect for the calling configured with page end In the client of mouth, comprising:
First sending module plays letter for calling the page end to send request to server by the calling interface Breath, wherein include the identification information for choosing video that request plays in the request broadcast information;
First receiving module, for receiving the verification information and encrypted target broadcasting ground that the server is sent Location, wherein the target broadcast address chooses the corresponding broadcast address of the identification information of video to be described;
Authentication module, for being verified to the verification information, if being verified, to the target broadcast address into Row decryption;
Playing module, for based on the target broadcast address after decryption, acquisition to be matched with the target broadcast address Video and broadcasting.
In conjunction with the third aspect, the embodiment of the present application provides the first possible embodiment of the third aspect, wherein institute It states in request broadcast information further include: the identification information of the client;
The verification information include the identification information of the client and according to the first predetermined encryption method to the visitor The identification information at family end carries out encrypted encryption information.
In conjunction with the first possible embodiment of the third aspect, the embodiment of the present application provides second of the third aspect Possible embodiment, wherein the authentication module is specifically used for when verifying to the verification information:
According to first predetermined encryption method to the identification information of the client for including in the verification information into Row encryption, obtains encrypted result;
The encryption information for including in the encrypted result and the verification information is compared, if the encrypted result with The encryption information for including in the verification information is consistent, it is determined that is verified.
Fourth aspect, the embodiment of the present application provide a kind of video-encryption device, are applied in server, comprising:
Second receiving module, for receiving the request broadcast information of page end transmission, wherein in the request broadcast information The identification information of the identification information for choosing video and the client that are played including request;
First encrypting module, for if it is determined that the identification information of the client meets presupposed information condition, then according to One predetermined encryption method encrypts the identification information of the client, obtains encryption information;
Determining module, the corresponding target broadcast address of the identification information for choosing video played for determining the request;
Second encrypting module, for encrypting, obtaining to the target broadcast address according to the second predetermined encryption method The encrypted target broadcast address;
Second sending module, for the encrypted target broadcast address and verification information to be sent to the visitor Family end, wherein the verification information include the client identification information and the encryption information.
In conjunction with fourth aspect, the embodiment of the present application provides the first possible embodiment of fourth aspect, wherein institute The first encrypting module is stated, when determining that the identification information of the client meets presupposed information condition, is specifically used for:
When the identification information of the client is in the list of identification information that the server stores, it is determined that the visitor The identification information at family end meets presupposed information condition.
5th aspect, the embodiment of the present application also provide a kind of electronic equipment, comprising: processor, memory and bus, it is described Memory is stored with the executable machine readable instructions of the processor, when electronic equipment operation, the processor with it is described By bus communication between memory, the machine readable instructions executed when being executed by the processor it is above-mentioned in a first aspect, or In any possible embodiment or second aspect of first aspect or any possible embodiment of second aspect The step of.
6th aspect, the embodiment of the present application also provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, which executes above-mentioned in a first aspect, or first aspect when being run by processor Step in any possible embodiment of any possible embodiment or above-mentioned second aspect or second aspect.
Video acquiring method and device provided by the embodiments of the present application, video encryption method and device, client pass through tune With interface invoking web page end to server send request broadcast information, and receive server transmission verification information and encryption after Target broadcast address, then verification information is verified, if being verified, target broadcast address is decrypted, then Based on the target broadcast address after decryption, obtains and the matched video of target broadcast address and play.
It is not only to be encrypted to broadcast address, but increase and test when being encrypted to video in the above method Information is demonstrate,proved, client could be decrypted encrypted broadcast address when being verified when being decrypted, and further protect The safety of video is demonstrate,proved.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of flow diagram of video acquiring method provided by the embodiment of the present application;
Fig. 2 shows a kind of flow diagrams of video encryption method provided by the embodiment of the present application;
Fig. 3 shows a kind of interaction flow schematic diagram provided by the embodiment of the present application;
Fig. 4 shows a kind of configuration diagram of video acquisition device 400 provided by the embodiment of the present application;
Fig. 5 shows a kind of configuration diagram of video-encryption device 500 provided by the embodiment of the present application;
Fig. 6 shows the structural schematic diagram of a kind of electronic equipment 600 provided by the embodiment of the present application;
Fig. 7 shows the structural schematic diagram of a kind of electronic equipment 700 provided by the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application Middle attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only It is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is real The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, below to the application's provided in the accompanying drawings The detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the application Apply example.Based on embodiments herein, those skilled in the art institute obtained without making creative work There are other embodiments, shall fall in the protection scope of this application.
Mixing end is equipped with the client of the calling interface of page end, in the prior art, by mixing end to video Broadcast address is decrypted mainly through two methods, one is the broadcast address for the encryption that server is sent in page end into Row decryption, one is be decrypted in broadcast address of the client to the encryption that server is sent.
In the method that broadcast address of the page end to the encryption that server is sent is decrypted because decrypting process is in webpage Realize that user can obtain in page end and realize code, and therefore, this manner of decryption is easier to be cracked in end;In client To the method that the broadcast address for the encryption that server is sent is decrypted, although decryption method is not easy to be cracked, because In video display process, the mode of client call page end is realized in page end, can when method of calling is cracked Can be there is a situation where calling client terminal playing designated by the method for calling that cracks, therefore this manner of decryption is not yet It can guarantee the safety of video.
In method provided herein, the process for decrypting broadcast address is realized that server is encrypted by client In journey other than encrypting to broadcast address, verification information is also added, it, just can be to encryption when client validation passes through Broadcast address is decrypted, and therefore, compared with above two decryption method, method provided herein, which further ensures, to be added The safety of close video.
For convenient for understanding the present embodiment, first to a kind of video acquiring method disclosed in the embodiment of the present application into Row is discussed in detail.
Embodiment one
It is shown in Figure 1, it is a kind of flow diagram of video acquiring method provided by the embodiments of the present application, applied to matching It is equipped in the client of the calling interface of page end, comprising the following steps:
Step 101 sends request broadcast information to server by calling interface invoking web page end.
Wherein, it requests to include the identification information for choosing video for requesting to play in broadcast information.
In a kind of possible application scenarios, client can show the interface of multiple videos, and different video is corresponding different Identification information, when receive user input when choosing video instructions, can to server send user request play choosing The identification information of middle video.
In a kind of possible embodiment, requesting can also be including the identification information of client, example in broadcast information Property, the identification information of client may include the identity number (Identity, ID) of user.
Step 102 receives verification information and encrypted target broadcast address that server is sent.
Wherein target broadcast address is to choose the corresponding broadcast address of the identification information of video.
In specific implementation, the verification information of server transmission can be received by page end and encrypted target is broadcast Address is put, client is then passed to by page end.
When in the request broadcast information that user sends including the identification information of client, the verification information of server transmission After may include the identification information of client and being encrypted according to identification information of first predetermined encryption method to client Encryption information.
In a kind of possible embodiment, encrypted according to identification information of first predetermined encryption method to client When, first the identification information of client and designated character string can be spliced, then pass through Message Digest 5 (Message- Digest Algorithm 5, MD5) spliced character string is calculated, obtain encryption information, wherein designated character string It is the character string that server and client side has made an appointment.
In the embodiment of another possibility, carried out according to identification information of first predetermined encryption method to client When encryption, first the identification information of client and designated character string can also be spliced, then pass through secure hash algorithm (Secure Hash Algorithm 1, SHA-1) calculates spliced character string, obtains encryption information, wherein refer to Determining character string is the character string that server and client side has made an appointment.
Step 103 verifies verification information, if being verified, target broadcast address is decrypted.
In specific implementation, when verifying to verification information, client can believe verifying according to the first encryption method The identification information for the client for including in breath is encrypted, and encrypted result is obtained, and then will be wrapped in encrypted result and verification information The encryption information contained is compared, if the encrypted result of client is consistent with the encryption information of server, it is determined that be verified.
If it is obstructed out-of-date to verify, client can send prompt information to user, for prompting authentication error, at this point, Target broadcast address will not be decrypted in client.
Step 104, based on the target broadcast address after decryption, obtain and the matched video of target broadcast address and play.
It is shown in Figure 2, it is a kind of flow diagram of video encryption method provided by the embodiments of the present application, is applied to clothes It is engaged in device, comprising the following steps:
Step 201 receives the request broadcast information that page end is sent.
It wherein, include the identification information for choosing video of request broadcasting in the request broadcast information of client.
Step 202, if it is determined that the identification information of client meets presupposed information condition, then according to the first predetermined encryption side Method encrypts the identification information of client, obtains encryption information.
When whether the identification information for determining client meets presupposed information condition, it can be determined that the identification information of client Whether in the list of identification information of server storage, when the mark letter for detecting that the identification information of client is stored in server When ceasing in list, then judge that the client for sending request broadcast information for legitimate client, therefore, can execute subsequent step.
When the identification information for detecting client does not meet presupposed information condition, illustrate that client may be illegal visitor Family end can send warning message to client at this time, and wherein warning message is illegal client for warning this client of user End, and object stops executing subsequent step.
Step 203 determines and requests what is played to choose the corresponding target broadcast address of the identification information of video.
In specific implementation, the correspondence of broadcast address corresponding to the identification information of each video can be stored in server In, when receiving the request broadcast information of client, then in the broadcast address of database purchase, filters out request and play letter The matched target broadcast address of identification information institute of video is chosen in breath.
Step 204, according to the second predetermined encryption method, target broadcast address is encrypted, encrypted target is obtained Broadcast address.
Encrypted target broadcast address and verification information are sent to client by step 205, wherein verification information Identification information and encryption information including client.
After encrypted target broadcast address is sent to client by server, client is verified to verification information It, can be according to decryption method corresponding to the second predetermined encryption method, to encrypted target broadcast address and after being verified It is decrypted.
Video acquiring method provided by the embodiments of the present application, video encryption method, client call net by calling interface Page end sends request broadcast information to server, and receives the verification information and encrypted target broadcasting ground of server transmission Then location is verified verification information, if being verified, target broadcast address is decrypted, then based on decryption after Target broadcast address is obtained and the matched video of target broadcast address and is played.
It is not only to be encrypted to broadcast address, but increase and test when being encrypted to video in the above method Information is demonstrate,proved, client could be decrypted encrypted broadcast address when being verified when being decrypted, and further protect The safety of video is demonstrate,proved.
Embodiment two
In the present embodiment, by client in video acquiring method provided in embodiment one and video encryption method, Interactive process between page end and server is introduced.
It is shown in Figure 3, it is a kind of interaction flow schematic diagram provided by the embodiments of the present application, comprising the following steps:
Step 301, client send request broadcast information to server by calling interface invoking web page end.
Step 302, server receive the request broadcast information that page end is sent.
Step 303, server if it is determined that the identification information of client meets presupposed information condition, then according to first it is default plus Decryption method encrypts the identification information of client's degree, obtains encryption information.
Step 304, server, which determine, requests what is played to choose the corresponding target broadcast address of the identification information of video, and root According to the second predetermined encryption method, target broadcast address is encrypted, obtains encrypted target broadcast address.
Encrypted target broadcast address and verification information are sent to client by step 305, server.
Step 306, client receive target broadcast address and verification information that server is sent, and to verification information It is verified.
If step 307 is verified, encrypted target broadcast address is decrypted in client.
Step 308, client are obtained with the matched video of target broadcast address simultaneously based on the target broadcast address after decryption It plays.
It is not only to be encrypted to broadcast address, but increase and test when being encrypted to video in the above method Information is demonstrate,proved, client could be decrypted encrypted broadcast address when being verified when being decrypted, and further protect The safety of video is demonstrate,proved.
Embodiment three
A kind of video acquisition device is present embodiments provided, the client applied to the calling interface configured with page end In, it is shown in Figure 4, it is the configuration diagram of video acquisition device 400 provided in this embodiment, including the first sending module 401, the first receiving module 402, authentication module 403 and playing module 404, specific:
First sending module 401 is broadcast for calling the page end to send request to server by the calling interface Put information, wherein include the identification information for choosing video that request plays in the request broadcast information;
First receiving module 402, for receiving the verification information and the broadcasting of encrypted target that the server is sent Address, wherein the target broadcast address chooses the corresponding broadcast address of the identification information of video to be described;
Authentication module 403, if being verified, plays ground to the target for verifying to the verification information Location is decrypted;
Playing module 404, for obtaining and the target broadcast address based on the target broadcast address after decryption The video matched and broadcasting.
In a kind of possible design, in the request broadcast information further include: the identification information of the client;
The verification information include the identification information of the client and according to the first predetermined encryption method to the visitor The identification information at family end carries out encrypted encryption information.
In a kind of possible design, the authentication module 403 is specifically used for when verifying to the verification information:
According to first predetermined encryption method to the identification information of the client for including in the verification information into Row encryption, obtains encrypted result;
The encryption information for including in the encrypted result and the verification information is compared, if the encrypted result with The encryption information for including in the verification information is consistent, it is determined that is verified.
The present embodiment additionally provides a kind of video-encryption device, is applied in server, shown in Figure 5, is this implementation The configuration diagram for the video-encryption device 500 that example provides, including the second receiving module 501, the first encrypting module 502, determination Module 503, the second encrypting module 504 and the second sending module 505, specific:
Second receiving module 501, for receiving the request broadcast information of page end transmission, wherein the request plays letter It include the identification information of the identification information for choosing video that request plays and the client in breath;
First encrypting module 502, for if it is determined that the identification information of the client meets presupposed information condition, then basis First predetermined encryption method encrypts the identification information of the client, obtains encryption information;
Determining module 503, the corresponding target of the identification information for choosing video for determining that the request plays play ground Location;
Second encrypting module 504, for being encrypted to the target broadcast address according to the second predetermined encryption method, Obtain the encrypted target broadcast address;
Second sending module 505, it is described for the encrypted target broadcast address and verification information to be sent to Client, wherein the verification information include the client identification information and the encryption information.
In a kind of possible design, the first encrypting module 502 is determining that the identification information of the client meets default letter When breath condition, it is specifically used for:
When the identification information of the client is in the list of identification information that the server stores, it is determined that the visitor The identification information at family end meets presupposed information condition.
Device provided by the embodiments of the present application, client send request to server by calling interface invoking web page end and broadcast Information is put, and receives the verification information and encrypted target broadcast address of server transmission, then verification information is carried out Verifying, if being verified, is decrypted target broadcast address, then based on the target broadcast address after decryption, acquisition and mesh The matched video of mark broadcast address simultaneously plays.
It is not only to be encrypted to broadcast address, but increase when being encrypted to video by above-mentioned apparatus Verification information, client could be decrypted encrypted broadcast address when being verified, further when being decrypted It ensure that the safety of video.
Example IV
Based on same technical concept, the embodiment of the present application also provides a kind of electronic equipment.It is this Shen referring to shown in Fig. 6 Please the structural schematic diagram of electronic equipment 600 that provides of embodiment, including processor 601, memory 602 and bus 603.Wherein, Memory 602 is executed instruction for storing, including memory 6021 and external memory 6022;Here memory 6021 is also referred to as memory Reservoir, for temporarily storing the operational data in processor 601, and the data exchanged with external memories 6022 such as hard disks, Processor 601 carries out data exchange by memory 6021 and external memory 6022, when electronic equipment 600 is run, processor It is communicated between 601 and memory 602 by bus 603, so that processor 601 is being executed to give an order:
The page end is called to send request broadcast information to server by the calling interface, wherein the request It include the identification information for choosing video that request plays in broadcast information;
Receive verification information and encrypted target broadcast address that the server is sent, wherein the target is broadcast It puts address and chooses the corresponding broadcast address of the identification information of video to be described;
The verification information is verified, if being verified, the target broadcast address is decrypted;
Based on the target broadcast address after decryption, obtains and the matched video of the target broadcast address and play.
In a kind of possible design, in the processing that processor 601 executes, in the request broadcast information further include: described The identification information of client;
The verification information include the identification information of the client and according to the first predetermined encryption method to the visitor The identification information at family end carries out encrypted encryption information.
It is described that the verification information is verified in the processing that processor 601 executes in a kind of possible design, packet It includes:
According to first predetermined encryption method to the identification information of the client for including in the verification information into Row encryption, obtains encrypted result;
The encryption information for including in the encrypted result and the verification information is compared, if the encrypted result with The encryption information for including in the verification information is consistent, it is determined that is verified.
Based on same technical concept, the embodiment of the present application also provides a kind of electronic equipment.It is this Shen referring to shown in Fig. 7 Please the structural schematic diagram of electronic equipment 700 that provides of embodiment, including processor 701, memory 702 and bus 703.Wherein, Memory 702 is executed instruction for storing, including memory 7021 and external memory 7022;Here memory 7021 is also referred to as memory Reservoir, for temporarily storing the operational data in processor 701, and the data exchanged with external memories 7022 such as hard disks, Processor 701 carries out data exchange by memory 7021 and external memory 7022, when electronic equipment 700 is run, processor It is communicated between 701 and memory 702 by bus 703, so that processor 701 is being executed to give an order:
Receive the request broadcast information that page end is sent, wherein include the choosing that request plays in the request broadcast information The identification information of the identification information of middle video and the client;
If it is determined that the identification information of the client meets presupposed information condition, then it is right according to the first predetermined encryption method The identification information of the client is encrypted, and encryption information is obtained;
Determine the request broadcasting chooses the corresponding target broadcast address of the identification information of video;
According to the second predetermined encryption method, the target broadcast address is encrypted, obtains the encrypted target Broadcast address;
The encrypted target broadcast address and verification information are sent to the client, wherein the verifying Information include the client identification information and the encryption information.
In a kind of possible design, in the instruction that processor 701 executes, the identification information of the determination client is accorded with Close presupposed information condition, comprising:
When the identification information of the client is in the list of identification information that the server stores, it is determined that the visitor The identification information at family end meets presupposed information condition.
Embodiment five
The embodiment of the present application also provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program, the computer program execute any of the above-described video acquiring method as described in the examples when being run by processor Step.
Specifically, which can be general storage medium, such as mobile disk, hard disk, on the storage medium Computer program when being run, above-mentioned video acquiring method step is able to carry out, to improve the safety of video.
The computer program product of video acquiring method is carried out provided by the embodiment of the present application, including stores processor The computer readable storage medium of executable non-volatile program code, the instruction that said program code includes can be used for executing Previous methods method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
The embodiment of the present application also provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program, the computer program execute any of the above-described video encryption method as described in the examples when being run by processor Step.
Specifically, which can be general storage medium, such as mobile disk, hard disk, on the storage medium Computer program when being run, the step of being able to carry out above-mentioned video encryption method, to improve the safety of video.
The computer program product of video encryption method is carried out provided by the embodiment of the present application, including stores processor The computer readable storage medium of executable non-volatile program code, the instruction that said program code includes can be used for executing Previous methods method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, the application Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the application State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen It please be described in detail, those skilled in the art should understand that: anyone skilled in the art Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution, should all cover the protection in the application Within the scope of.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (10)

1. a kind of video acquiring method, which is characterized in that in the client applied to the calling interface configured with page end, packet It includes:
The page end is called to send request broadcast information to server by the calling interface, wherein the request plays It include the identification information for choosing video that request plays in information;
Receive verification information and encrypted target broadcast address that the server is sent, wherein the target plays ground The corresponding broadcast address of the identification information of video is chosen described in being in location;
The verification information is verified, if being verified, the target broadcast address is decrypted;
Based on the target broadcast address after decryption, obtains and the matched video of the target broadcast address and play.
2. the method according to claim 1, wherein in the request broadcast information further include: the client Identification information;
The verification information include the identification information of the client and according to the first predetermined encryption method to the client Identification information carry out encrypted encryption information.
3. according to the method described in claim 2, it is characterized in that, described verify the verification information, comprising:
Add according to identification information of first predetermined encryption method to the client for including in the verification information It is close, obtain encrypted result;
The encryption information for including in the encrypted result and the verification information is compared, if the encrypted result with it is described The encryption information for including in verification information is consistent, it is determined that is verified.
4. a kind of video encryption method, which is characterized in that be applied in server, comprising:
Receive the request broadcast information that page end is sent, wherein include requesting what is played to choose view in the request broadcast information The identification information of frequency and the identification information of client;
If it is determined that the identification information of the client meets presupposed information condition, then according to the first predetermined encryption method, to described The identification information of client is encrypted, and encryption information is obtained;
Determine the request broadcasting chooses the corresponding target broadcast address of the identification information of video;
According to the second predetermined encryption method, the target broadcast address is encrypted, the encrypted target is obtained and plays Address;
The encrypted target broadcast address and verification information are sent to the client, wherein the verification information Identification information and the encryption information including the client.
5. according to the method described in claim 4, it is characterized in that, the identification information of the determination client meet it is default Information condition, comprising:
When the identification information of the client is in the list of identification information that the server stores, it is determined that the client Identification information meet presupposed information condition.
6. a kind of video acquisition device, which is characterized in that in the client applied to the calling interface configured with page end, packet It includes:
First sending module, for calling the page end to send request broadcast information to server by the calling interface, It wherein, include the identification information for choosing video of request broadcasting in the request broadcast information;
First receiving module, the verification information and encrypted target broadcast address sent for receiving the server, In, the target broadcast address chooses the corresponding broadcast address of the identification information of video to be described;
Authentication module, if being verified, solves the target broadcast address for verifying to the verification information It is close;
Playing module, for obtaining and the matched view of target broadcast address based on the target broadcast address after decryption Frequency simultaneously plays.
7. device according to claim 6, which is characterized in that in the request broadcast information further include: the client Identification information;
The verification information include the identification information of the client and according to the first predetermined encryption method to the client Identification information carry out encrypted encryption information.
8. device according to claim 7, which is characterized in that the authentication module is tested to the verification information When card, it is specifically used for:
Add according to identification information of first predetermined encryption method to the client for including in the verification information It is close, obtain encrypted result;
The encryption information for including in the encrypted result and the verification information is compared, if the encrypted result with it is described The encryption information for including in verification information is consistent, it is determined that is verified.
9. a kind of video-encryption device, which is characterized in that be applied in server, comprising:
Second receiving module, for receiving the request broadcast information of page end transmission, wherein include in the request broadcast information Request the identification information of the identification information for choosing video played and client;
First encrypting module, for if it is determined that the identification information of the client meets presupposed information condition, then in advance according to first If encryption method, the identification information of the client is encrypted, encryption information is obtained;
Determining module, the corresponding target broadcast address of the identification information for choosing video played for determining the request;
Second encrypting module, for encrypting, being encrypted to the target broadcast address according to the second predetermined encryption method The target broadcast address afterwards;
Second sending module, for the encrypted target broadcast address and verification information to be sent to the client, Wherein, the verification information include the client identification information and the encryption information.
10. device according to claim 9, which is characterized in that first encrypting module is determining the client When identification information meets presupposed information condition, it is specifically used for:
When the identification information of the client is in the list of identification information that the server stores, it is determined that the client Identification information meet presupposed information condition.
CN201910301383.9A 2019-04-15 2019-04-15 A kind of video acquiring method and device, a kind of video encryption method and device Pending CN110012317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910301383.9A CN110012317A (en) 2019-04-15 2019-04-15 A kind of video acquiring method and device, a kind of video encryption method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910301383.9A CN110012317A (en) 2019-04-15 2019-04-15 A kind of video acquiring method and device, a kind of video encryption method and device

Publications (1)

Publication Number Publication Date
CN110012317A true CN110012317A (en) 2019-07-12

Family

ID=67172014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910301383.9A Pending CN110012317A (en) 2019-04-15 2019-04-15 A kind of video acquiring method and device, a kind of video encryption method and device

Country Status (1)

Country Link
CN (1) CN110012317A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541758A (en) * 2020-04-17 2020-08-14 支付宝(杭州)信息技术有限公司 Page updating method and device
CN111935546A (en) * 2020-07-23 2020-11-13 深圳市鼎盛光电有限公司 Program importing method and device, video playing equipment and storage medium
CN114466215A (en) * 2022-02-10 2022-05-10 上海哔哩哔哩科技有限公司 Data processing method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521818A (en) * 2009-04-08 2009-09-02 四川长虹电器股份有限公司 Encryption and decryption system based on medium security protection of IPTV platform
US20150150038A1 (en) * 2013-11-22 2015-05-28 Verizon Patent And Licensing Inc. Video content protection
CN105141984A (en) * 2015-08-21 2015-12-09 湖南亿谷科技发展股份有限公司 Network video obtaining system and network video obtaining method
CN105657456A (en) * 2016-03-10 2016-06-08 腾讯科技(深圳)有限公司 Processing method, device and system for multimedia data
CN105721903A (en) * 2014-12-26 2016-06-29 乐视网信息技术(北京)股份有限公司 Method and system for playing online videos
CN105871805A (en) * 2015-12-11 2016-08-17 乐视云计算有限公司 Anti-stealing-link method and device
CN106993201A (en) * 2017-03-17 2017-07-28 武汉斗鱼网络科技有限公司 The authorization check method and device of video playback
CN107659829A (en) * 2017-11-06 2018-02-02 网宿科技股份有限公司 A kind of method and system of video-encryption
CN108235067A (en) * 2018-01-04 2018-06-29 武汉斗鱼网络科技有限公司 A kind of method for authenticating and device of video flowing address
CN108337536A (en) * 2017-01-20 2018-07-27 创盛视联数码科技(北京)有限公司 The method of video-encryption

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521818A (en) * 2009-04-08 2009-09-02 四川长虹电器股份有限公司 Encryption and decryption system based on medium security protection of IPTV platform
US20150150038A1 (en) * 2013-11-22 2015-05-28 Verizon Patent And Licensing Inc. Video content protection
CN105721903A (en) * 2014-12-26 2016-06-29 乐视网信息技术(北京)股份有限公司 Method and system for playing online videos
CN105141984A (en) * 2015-08-21 2015-12-09 湖南亿谷科技发展股份有限公司 Network video obtaining system and network video obtaining method
CN105871805A (en) * 2015-12-11 2016-08-17 乐视云计算有限公司 Anti-stealing-link method and device
CN105657456A (en) * 2016-03-10 2016-06-08 腾讯科技(深圳)有限公司 Processing method, device and system for multimedia data
CN108337536A (en) * 2017-01-20 2018-07-27 创盛视联数码科技(北京)有限公司 The method of video-encryption
CN106993201A (en) * 2017-03-17 2017-07-28 武汉斗鱼网络科技有限公司 The authorization check method and device of video playback
CN107659829A (en) * 2017-11-06 2018-02-02 网宿科技股份有限公司 A kind of method and system of video-encryption
CN108235067A (en) * 2018-01-04 2018-06-29 武汉斗鱼网络科技有限公司 A kind of method for authenticating and device of video flowing address

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541758A (en) * 2020-04-17 2020-08-14 支付宝(杭州)信息技术有限公司 Page updating method and device
CN111541758B (en) * 2020-04-17 2023-06-16 支付宝(杭州)信息技术有限公司 Page updating method and device
CN111935546A (en) * 2020-07-23 2020-11-13 深圳市鼎盛光电有限公司 Program importing method and device, video playing equipment and storage medium
CN111935546B (en) * 2020-07-23 2022-02-25 深圳市鼎盛光电有限公司 Program importing method and device, video playing equipment and storage medium
CN114466215A (en) * 2022-02-10 2022-05-10 上海哔哩哔哩科技有限公司 Data processing method and device
WO2023151415A1 (en) * 2022-02-10 2023-08-17 上海哔哩哔哩科技有限公司 Data processing methods and apparatuses

Similar Documents

Publication Publication Date Title
EP3453136B1 (en) Methods and apparatus for device authentication and secure data exchange between a server application and a device
US10867016B2 (en) Securing webpages, webapps and applications
US10797868B2 (en) Shared secret establishment
CN108234115B (en) Information security verification method, device and system
CN110198296B (en) Authentication method and device, storage medium and electronic device
JP2018501567A (en) Device verification method and equipment
CN107145769B (en) Digital Rights Management (DRM) method, equipment and system
CN104199657B (en) The call method and device of open platform
CN109831311B (en) Server verification method, system, user terminal and readable storage medium
CN110378105A (en) Security upgrading method, system, server and car-mounted terminal
US11177963B2 (en) Method for authenticating a user based on an image relation rule and corresponding first user device, server and system
CN110012317A (en) A kind of video acquiring method and device, a kind of video encryption method and device
CN105075176B (en) Challenge-response method and associated client device
CN111143869A (en) Application package processing method and device, electronic equipment and storage medium
US20150244695A1 (en) Network authentication method for secure user identity verification
CN112417385A (en) Safety control method and system
CN111125677A (en) Equipment authorization method and system
CN110446075A (en) Encryption method and device, decryption method and device, electronic equipment
CN112311718A (en) Method, device and equipment for detecting hardware and storage medium
CN107948186A (en) A kind of safety certifying method and device
CN107707577A (en) Multi-layer data encryption method based on encryption transmission system
CN106550359A (en) The authentication method and system of a kind of terminal and SIM
CN107040799A (en) The authorization check method and device of video playback
CN109728912A (en) Broadcasting content safe transmission method, system and terminal
CN108235067B (en) Authentication method and device for video stream address

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

Application publication date: 20190712

RJ01 Rejection of invention patent application after publication