[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107040799A - The authorization check method and device of video playback - Google Patents

The authorization check method and device of video playback Download PDF

Info

Publication number
CN107040799A
CN107040799A CN201710161029.1A CN201710161029A CN107040799A CN 107040799 A CN107040799 A CN 107040799A CN 201710161029 A CN201710161029 A CN 201710161029A CN 107040799 A CN107040799 A CN 107040799A
Authority
CN
China
Prior art keywords
client
script files
lua script
lua
video flowing
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
CN201710161029.1A
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710161029.1A priority Critical patent/CN107040799A/en
Publication of CN107040799A publication Critical patent/CN107040799A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25816Management of client data involving client authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Graphics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a kind of authorization check method and device of video playback, wherein, methods described includes:The LUA script files being pre-configured with are sent to client, so that the check information of client is encrypted by performing LUA script files for client, to generate the client request check code of video flowing address;Receive in the video flowing address request that client is sent, video flowing address request and carry the client request check code and the check information;Check information is encrypted using AES corresponding with LUA script files, server check code is generated;If server check code is consistent with client request check code, it is determined that authorization check success, asked video flowing address is returned to client.The present invention can effectively realize the authentication verification to video flowing address, improve the security of net cast process, lift Consumer's Experience.

Description

The authorization check method and device of video playback
Technical field
The present invention relates to the authorization check method and device of Internet technical field, more particularly to a kind of video playback.
Background technology
With the development of computer technology and network technology, the user of watching video live broadcast is more and more, and Internet video is straight Broadcast and obtained extensive popularization.Net cast be carried out using internet and stream media technology it is live, webcast website by from regarding The offer server of frequency content obtains video flowing address, according to video flowing address acquisition video content, to realize video content Network direct broadcasting.
In practical application, there is the risk obtained by third-party platform in video flowing address, and then cause third-party platform can By webcast website's direct viewing video content, that is, not bypassed the video playback that the video player of webcast website is provided. The rights and interests of net cast provider have not only directly been invaded in this behavior, reduce the customer flow of video website, but also meeting The risk of leakage of personal information is brought to live user, so as to bring potential safety hazard to personal property.Current most of videos Protection video flowing address can be all encrypted in website, to ensure the security of video display process.Usual way is by right Video flowing address is once verified, the whole video flowing of acquisition that verification then can be complete after passing through so that third-party platform is not Video flowing address can easily be obtained.But, it is contemplated that performance and Consumer's Experience, because client can not be produced too in request Long time delay, so AES can not be too complicated, therefore, what most video website took is fairly simple and conventional Method of calibration, and then cause AES to be easier to be cracked by hacker or third-party platform, so that with having stolen video flowing Location so that video display process still has security risk.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on The authorization check method and device of the video playback of problem is stated, the authentication verification to video flowing address can be effectively realized, carried The security of high net cast process, lifts Consumer's Experience.
One aspect of the present invention there is provided a kind of authorization check method of video playback, including:
The LUA script files being pre-configured with are sent to client, so that the client is by performing the LUA scripts text The check information of client is encrypted part, to generate the client request check code of video flowing address;
Receive described in being carried in the video flowing address request that client is sent, the video flowing address request Client request check code and the check information;
The check information is encrypted using AES corresponding with the LUA script files, server is generated Check code;
If the server check code is consistent with the client request check code, it is determined that authorization check success, to institute State client and return to asked video flowing address.
Alternatively, the check information includes client random string and client-side information;
The client random string is the random string that the client is generated;
The client-side information includes the Token values that user profile and direct broadcast server are returned, and the user profile includes The device identification of client, the IP address of client, direct broadcasting room ID and/or the client generate the check information when Between.
Alternatively, before the LUA script files being pre-configured with to client transmission, methods described also includes:
Corresponding multiple LUA script files are generated respectively according to default multiple encryption algorithms.
Alternatively, the LUA script files being pre-configured with to client transmission, including:
One LUA script file is chosen from the multiple LUA script files according to default file selection rule, and will The LUA script files of the selection are sent to the client.
Alternatively, methods described also includes:
Timing more newly-generated the multiple LUA script files and/or the file selection rule.
Alternatively, the LUA script files being pre-configured with to client transmission, including:
The LUA script files are encrypted, the LUA script files after encryption are sent to the client, for institute State after client is decrypted according to agreement key and perform the LUA script files.
Another aspect of the present invention there is provided a kind of authorization check device of video playback, including:
Sending module, for sending the LUA script files being pre-configured with to client, so that the client is by performing The check information of client is encrypted the LUA script files, to generate the client request check code of video flowing address;
Receiving module, the video flowing address request for receiving client transmission, the video flowing Address requests disappear The client request check code and the check information are carried in breath;
First generation module, for being entered using AES corresponding with the LUA script files to the check information Row encryption, generates server check code;
Correction verification module, for when the server check code is consistent with the client request check code, defining the competence Verify successfully, and asked video flowing address is returned to the client.
Alternatively, described device also includes:
Second generation module, for before the LUA script files being pre-configured with to client transmission, according to default Multiple encryption algorithms generate corresponding multiple LUA script files respectively;
The sending module, specifically for being selected according to default file selection rule from the multiple LUA script files A LUA script file is taken, and the LUA script files of the selection are sent to the client.
Alternatively, described device also includes:
Update module, the multiple LUA script files and/or institute for regularly updating the second generation module generation State file selection rule.
Alternatively, the sending module, specifically for the LUA script files are encrypted, sends out to the client The LUA script files after encryption are sent, the LUA scripts text is performed after being decrypted for the client according to agreement key Part.
The authorization check method and device of video playback provided in an embodiment of the present invention, it is real by using LUA script files Now to the authentication of video flowing address, because LUA is a kind of script, it is not necessary to which compiling can be performed directly, and then can be led to The renewal frequently to LUA script files is crossed, is added with realizing in the renewal to video flowing address authentication mode, increase authentication process Close algorithm cracks difficulty, so as to effectively realize the authentication verification to video flowing address, improves net cast process Security, lifts Consumer's Experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the authorization check method of video playback of the embodiment of the present invention;
Fig. 2 is a kind of structural representation of the authorization check device of video playback of the embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific terminology), with the general understanding identical meaning with the those of ordinary skill in art of the present invention.Should also Understand, those terms defined in such as general dictionary, it should be understood that with the context with prior art The consistent meaning of meaning, and unless by specific definitions, otherwise will not be explained with idealization or excessively formal implication.
To solve AES mistake in the prior art when user just starts to ask video flowing address to video flowing address In complexity, influence Consumer's Experience, or, AES are excessively simple, it is impossible to effectively realize and the authentication of video flowing address is tested The problem of card.The embodiment of the present invention realizes the authentication to video flowing address by using LUA script files, when client is logged in After live Platform Server, the LUA script files that server will flow the authentication arithmetic of address are sent to client, and client passes through Perform LUA script files to generate the client request check code KEY of video flowing address, by the way that the KEY is sent into server Authorization check is carried out, to ask video flowing address.The embodiment of the present invention realizes the mirror to video flowing address by using LUA scripts Power checking, can realize the renewal to video flowing address authentication mode, increase by renewal frequently to LUA script files AES cracks difficulty in authentication process.
Fig. 1 diagrammatically illustrates the flow chart of the authorization check method of the video playback of one embodiment of the invention.Reference Fig. 1, the authorization check method of the video playback of the embodiment of the present invention specifically includes following steps:
Step S11, the LUA script files being pre-configured with to client transmission, so that the client passes through described in execution The check information of client is encrypted LUA script files, to generate the client request check code of video flowing address.
Wherein, LUA is the script of a lightweight, and LUA only includes a core simplified and most basic storehouse.This So that LUA small volumes, toggle speed are fast, so as to be adapted to be embedded in the program of client player.Moreover, LUA configurability, Scalability, although itself and not as other many " large and complete " language like that, including many functions, are schemed such as network communication Shape interface etc..But LUA can be easily expanded:These functions are provided by host language (being typically C or C++), LUA can It is like natively built-in function to use them.Formed in addition, LUA is write by standard C, almost in all operations It can compile, run in system and platform, specific good compatibility.
In actual applications, when user, which opens a direct broadcasting room, carries out net cast viewing, client can whereabouts first Server sends video flowing address request, to obtain the video flowing address in live room.In order to protect video flowing address Safely and effectively, client is needed to carry the check information of client in request message when request.In the present embodiment The check information include client random string and client-side information.Wherein, client random string is the visitor The random string of family end generation;Client-side information includes the Token values that user profile and direct broadcast server are returned, the user Information includes device identification, the IP address of client, direct broadcasting room ID and/or the client generation verification letter of client The time of breath.
Taken in step S12, the video flowing address request for receiving client transmission, the video flowing address request With the client request check code and the check information;
Step S13, using AES corresponding with the LUA script files check information is encrypted, it is raw Into server check code;
If step S14, the server check code are consistent with the client request check code, it is determined that authorization check into Work(, asked video flowing address is returned to the client, so that the client is regarded based on the video flowing address Frequency is played.
Wherein, the validity of video flowing address is effective first, i.e., one time effective address, the address is used only once, Reuse same video flowing address acquisition video flowing next time, then it is invalid to be considered as, and then be effectively prevented from hacker or malice the Tripartite is obtained behind the address, arbitrarily pulls video flowing.Further, the video flowing address arithmetic in the embodiment of the present invention is used The part that Tocken during User logs in is calculated as client request check code KEY, again such that user must log in Video flowing address can be just pulled afterwards so that the hacker or malicious third parties for stealing stream address must realize the login feature of website, Threshold is realized so as to add it.Simultaneously for further protection video flowing address, in the embodiment of the present invention, visitor is also used Some personal user informations at family end are as a part for technology KEY values, and the IP address, equipment including client be unique ID, server wear the random KEY values to client, and the client generates time of the check information etc., Jin Erke Greatly to protect the security of video flowing address.
The authorization check method of video playback provided in an embodiment of the present invention, by using LUA script files realize to regarding Frequency flows the authentication of address, because LUA is a kind of script, it is not necessary to which compiling can be performed directly, and then can be by frequent The renewal to LUA script files, realize AES in renewal to video flowing address authentication mode, increase authentication process Difficulty is cracked, so as to effectively realize the authentication verification to video flowing address, the security of net cast process is improved, carries Rise Consumer's Experience.
In a specific embodiment, after server sends the LUA script files being pre-configured with to client, client The client random string RandKey of one 32 is randomly generated first, and obtains local client-side information.Specifically , the information of acquisition includes, and client logs in the Token values that the direct broadcast server got during webcast website is returned, client The direct broadcasting room ID (RoomID) of the video flowing of request, the device id of client, the IP address of client, client generates the school Test the time Time of information.Get after these information, these information are spliced into a character string.Then LUA scripts are used AES in file, such as TEA algorithms, spliced character string to be encrypted.
Wherein, spliced character string is encrypted using TEA algorithms, wherein TEA AESs can use one Client random string RandKey is used in KEY values, the present embodiment as the KEY values of algorithm.It is implemented as follows:
Video_Key=TEA.encrypt (RandKey, Token+RoomID+ID+IP+Time);
Wherein Video_Key is then the client request check code that client is calculated.
Then, user end to server request video flowing address, while can be by client random string and client (client logs in the Token obtained, room number RoomID, device id, computer IP, the client and generates the verification information The time Time of information) and calculate Video_Key be sent to server, server can also use same LUA scripts to carry out root The check information sent according to client calculates the server check code KEY of video flowing address, so as to verify the visitor that client is reported Whether family end request check code is correct, if correctly, it is determined that authorization check success, and returns to what is asked to the client Video flowing address, carries out video playback, otherwise, it determines authorization check loses so that the client is based on the video flowing address Lose.
Further, in order to during further reinforced authentication AES crack difficulty, can also be by client (client logs in the Token obtained, room number RoomID, device id, computer IP, institute for random string and client-side information State the time Time that client generates the check information) and the Video_Key of calculating when being sent to server, reuse another Symmetrical AES is covered transmission is encrypted.
It should be noted that client random string RandKey can be generated by client, can also by client and Server is generated jointly.
Wherein, the implementation process that client random string RandKey is generated jointly by client and server is as follows:Clothes Business device generation server random number, is sent to client, so that client is according to institute using server random number as trigger signal State trigger signal generation client random number, client returns to client and counts to server at random, client according to server with Machine number and client generating random number client random string.Meanwhile, the client that server receives client return is random Number, uses according to server random number and client random number and generates service end random string with client identical algorithms.This When, client random string is identical with service end random string, therefore, in subsequent processes, will without client Client random string is sent collectively to server in company with video flowing address request, and server can also realize authority school Test.
In the embodiment of the present invention, before the LUA script files being pre-configured with to client transmission, methods described is also Including:Corresponding multiple LUA script files are generated respectively according to default multiple encryption algorithms.Accordingly, it is described to client The LUA script files being pre-configured with are sent, are specifically included:
One LUA script file is chosen from the multiple LUA script files according to default file selection rule, and will The LUA script files of the selection are sent to the client.Be embodied in, can from multiple LUA script files with Machine chooses a LUA script file, and the LUA script files of the selection are sent into the client.
Further, methods described also includes:Timing more newly-generated the multiple LUA script files and/or the text Part selection rule.
In one alternate embodiment, the KEY of video flowing address AES is write using LUA scripts, its The middle AES used and the KEY values used in algorithm can be frequent progress change, and then can pass through update encryption calculate The KEY values used in method and/or algorithm, realize the purpose for updating LUA script files.
In actual applications, server can write the AES of the video flowing address of a variety of conversion in advance, and Corresponding multiple LUA script files can be generated respectively according to obtained multiple encryption algorithms every being updated after a period of time. When client logs in webcast website, LUA scripts are issued to client, the visitor of video flowing address to be asked is generated for client Ask check code in family end.Server can also use same LUA scripts to count the server check code of video flowing address simultaneously KEY, so that whether verify that client reports is correct.Because LUA is a kind of script, so need not be compiled again Translate, being dealt into client then can directly run, so that relatively good can accomplish dynamic renewal.
In an alternate embodiment of the present invention where, it is described that the LUA script files being pre-configured with, bag are sent to client Include:The LUA script files are encrypted, the LUA script files after encryption are sent to the client, for the client End performs the LUA script files after being decrypted according to agreement key.
In the present embodiment, server appoints the key of decryption LUA script files with client in advance, when server is to visitor When family end sends LUA script files, the LUA scripts for being handed down to client are encrypted using AES in advance, Ran Hou Be sent to AES during client, further reinforced authentication cracks difficulty, so as to can also be carried out from code level Protection.
The calling interface for performing the LUA script files is provided with the embodiment of the present invention, in client player. Specific steps realize that step is as follows:
Created by action script Action Script in client player for loading the LUA script files Loader classes;
Created by action script Action Script in the Loader classes for obtaining the LUA script files Address requests interface;
Event registration interface is added in Loader classes, the first call back function is registered by the event registration interface, when After the completion of the LUA script files loading, by calling the call back function to perform the LUA script files, described first time The correlating event of letter of transfer number is that LUA script files load completion event.
In actual applications, the client viewing video of webcast website is substantially using Flash as player.Below Technical solution of the present invention is explained using Flash as client player.According to Flash as player, then The authentication logic of its video flowing address is also in Flash.The embodiment of the present invention in Flash by calling LUA script files To realize the authorization check to video playback.It is implemented as follows:
1st, ActionScript Loader examples are defined first.
Loader class is provided in ActionScript and is used for loading SWF files, or picture JPG, GIF are moved Draw, or LUA files etc..
It is implemented as follows:
VarswfLoader:Loader=new Loader ();
And swfLoader.dataFormat=URLLoaderDataFormat.TEXT is set;
For the file of TEXT forms.
2nd, the call back function that registration SWF loadings are completed.
The interface of a Loader example is added in ActionScript, for registered events, when Loader has been loaded Into after a SWF file, the call back function of this registration can be adjusted back, to tell him SWF files have loaded completion.
An addEventListener interface is provided in Loader and is used for registered events.
The specific prototype of interface is as follows:
Wherein, first parameter type:String is used for representing the event type of registration, corresponding to being then herein Event.COMPLETE, represents registration SWF loading completion events;Second parameter listener:Function is used for representing note Call back function after the completion of the completion event of volume, is performed for triggering call back function;3rd parameter priority:Int is used for The priority of sign event, uses default value 0;4th parameter useWeakReference:Boolean specify call back function be Weak application or strongly reference, use default value false.
3rd, request to create SWF interface URLRequest.
ActionScript is created in the Loader classes to be connect for obtaining the Address requests of the LUA script files Mouthful, physical interface is as follows:
URLRequest(url:String=null)
Wherein, parameter url:The incoming URL addresses of String signs or local path.For being then LUA files herein URL addresses.
4th, the interface of Loader examples is called to carry out the SWF files of loader requests.
SWF files are loaded by calling Loader interface.Physical interface is as follows:
load(request:URLRequest,context:LoaderContext=null)
Wherein parameter request:URLRequest is exactly the request object of loading, is exactly what step 3 was created URLRequest objects.
Wherein parameter context:LoaderContext is used for setting domain information, herein using default value sky null.
5th, call back function swfLoadCompleteHandler is write.
Call back function swfLoadCompleteHandle is write, this function is that the registration completion event called above is filled out The call back function entered.
After the completion of file loading, the call back function can be called, LUA script files are called by call back function.Specifically such as Under:
A varlua is defined first:LuaAlchemy=new LuaAlchemy ();LUA group is called in FLash Part.
Then set LUA's to perform the context that context is current class.
lua.setGlobal("this",this);
If being encrypted to server to LUA script files, also so corresponding solution can be used after the download is complete Close algorithm decrypts LUA script files,
Decode(swfLoader.data);
The interface of last invocation component performs the LUA script files, lua.doString (swfLoader.data);It is real Now download LUA files to perform the authentication to video flowing address from server.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this area Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because according to present invention implementation Example, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification Described in embodiment belong to necessary to preferred embodiment, the involved action not necessarily embodiment of the present invention.
Fig. 2 diagrammatically illustrates the structural representation of the authorization check device of the video playback of one embodiment of the invention. Reference picture 2, the authorization check device of the video playback of the embodiment of the present invention specifically include sending module 201, receiving module 202, First generation module 203 and correction verification module 204, wherein:
Described sending module 201, for sending the LUA script files being pre-configured with to client, for the client The check information of client is encrypted by performing the LUA script files for end, to generate the client of video flowing address Ask check code.In the present embodiment, the check information includes client random string and client-side information.Wherein, client It is the random string that the client is generated to hold random string;Client-side information includes user profile and direct broadcast server is returned The Token values returned, the device identification of the user profile including client, the IP address of client, direct broadcasting room ID and/or described Client generates the time of the check information.
Described receiving module 202, the video flowing address request for receiving client transmission, the video flowing The client request check code and the check information are carried in the request message of location;
The first described generation module 203, for using AES corresponding with the LUA script files to the school Test information to be encrypted, generate server check code;
Described correction verification module 204, for when the server check code is consistent with the client request check code, Define the competence and verify successfully, and asked video flowing address is returned to the client.
In an alternate embodiment of the present invention where, described device also includes the second generation module not shown in accompanying drawing, The second described generation module, for before the LUA script files being pre-configured with to client transmission, according to default Multiple encryption algorithms generate corresponding multiple LUA script files respectively.
Accordingly, the sending module 201, specifically for according to default file selection rule from the multiple LUA pin A LUA script file is chosen in this document, and the LUA script files of the selection are sent to the client.Specific Realize, the sending module 201 can specifically randomly select a LUA script file from multiple LUA script files, and The LUA script files of the selection are sent to the client.
In the present embodiment, described device also includes:
Update module, the multiple LUA script files and/or institute for regularly updating the second generation module generation State file selection rule.
In an alternate embodiment of the present invention where, the sending module 201, specifically for the LUA script files It is encrypted, the LUA script files after encryption is sent to the client, so that the client is solved according to agreement key The LUA script files are performed after close.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, the part shown as unit can be or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
In addition, another embodiment of the present invention additionally provides a kind of electronic equipment, the electronic equipment includes:Housing, processing Device, memory, circuit board and power circuit, wherein, the circuit board is placed in the interior volume that the housing is surrounded, the place Reason device and the memory are arranged on the circuit board;The power circuit, for each circuit for the electronic equipment Or device is powered;The memory is used to store executable program code;The processor is deposited by reading in the memory The executable program code of storage runs program corresponding with executable program code, for performing following steps:To client End sends the LUA script files being pre-configured with, so that the client is by performing school of the LUA script files to client Test information to be encrypted, to generate the client request check code of video flowing address;Receive the video flowing address that client is sent The client request check code and the check information are carried in request message, the video flowing address request; The check information is encrypted using AES corresponding with the LUA script files, server check code is generated;If The server check code is consistent with the client request check code, it is determined that authorization check success, is returned to the client Asked video flowing address is gone back to, video playback is carried out so that the client is based on the video flowing address.
The authorization check method and device of video playback provided in an embodiment of the present invention, it is real by using LUA script files Now to the authentication of video flowing address, because LUA is a kind of script, it is not necessary to which compiling can be performed directly, and then can be led to The renewal frequently to LUA script files is crossed, realizes and is encrypted in the renewal to video flowing address authentication mode, increase authentication process Algorithm cracks difficulty, so as to effectively realize the authentication verification to video flowing address, improves the peace of net cast process Quan Xing, lifts Consumer's Experience.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Understood based on such, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Order is to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Method described in some parts of example or embodiment.
Although in addition, it will be appreciated by those of skill in the art that some embodiments in this include institute in other embodiments Including some features rather than further feature, but not the combination of the feature of be the same as Example mean be in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it One mode can use in any combination.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

1. a kind of authorization check method of video playback, it is characterised in that including:
The LUA script files being pre-configured with are sent to client, so that the client is by performing the LUA script files pair The check information of the client is encrypted, to generate the client request check code of video flowing address;
Receive in the video flowing address request that client is sent, the video flowing address request and carry the client End request check code and the check information;
The check information is encrypted using AES corresponding with the LUA script files, generation server verification Code;
If the server check code is consistent with the client request check code, it is determined that authorization check success, to the visitor Family end returns to asked video flowing address.
2. according to the method described in claim 1, it is characterised in that the check information includes client random string and visitor Family client information;
The client random string is the random string that the client is generated;
The client-side information includes the Token values that user profile and direct broadcast server are returned, and the user profile includes client The device identification at end, the IP address of client, direct broadcasting room ID and/or the client generate the time of the check information.
3. according to the method described in claim 1, it is characterised in that in the LUA scripts for sending and being pre-configured with to client Before file, methods described also includes:
Corresponding multiple LUA script files are generated respectively according to default multiple encryption algorithms.
4. method according to claim 3, it is characterised in that described that the LUA scripts text being pre-configured with is sent to client Part, including:
One LUA script file is chosen from the multiple LUA script files according to default file selection rule, and will be described The LUA script files of selection are sent to the client.
5. method according to claim 3, it is characterised in that methods described also includes:
Timing more newly-generated the multiple LUA script files and/or the file selection rule.
6. according to the method described in claim 1, it is characterised in that described that the LUA scripts text being pre-configured with is sent to client Part, including:
The LUA script files are encrypted, the LUA script files after encryption are sent to the client, for the visitor Family end performs the LUA script files after being decrypted according to agreement key.
7. a kind of authorization check device of video playback, it is characterised in that including:
Sending module, for sending the LUA script files being pre-configured with to client, so that the client is described by performing The check information of client is encrypted LUA script files, to generate the client request check code of video flowing address;
In receiving module, the video flowing address request for receiving client transmission, the video flowing address request Carry the client request check code and the check information;
First generation module, for being added using AES corresponding with the LUA script files to the check information It is close, generate server check code;
Correction verification module, for when the server check code is consistent with the client request check code, to define the competence verification Successfully, and to the client asked video flowing address is returned to.
8. device according to claim 7, it is characterised in that described device also includes:
Second generation module, for before the LUA script files being pre-configured with to client transmission, according to default many Plant AES and generate corresponding multiple LUA script files respectively;
The sending module, specifically for choosing one from the multiple LUA script files according to default file selection rule Individual LUA script files, and the LUA script files of the selection are sent to the client.
9. device according to claim 8, it is characterised in that described device also includes:
Update module, the multiple LUA script files and/or the text for regularly updating the second generation module generation Part selection rule.
10. device according to claim 7, it is characterised in that the sending module, specifically for the LUA scripts File is encrypted, and the LUA script files after encryption are sent to the client, so that the client is entered according to agreement key The LUA script files are performed after row decryption.
CN201710161029.1A 2017-03-17 2017-03-17 The authorization check method and device of video playback Pending CN107040799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710161029.1A CN107040799A (en) 2017-03-17 2017-03-17 The authorization check method and device of video playback

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710161029.1A CN107040799A (en) 2017-03-17 2017-03-17 The authorization check method and device of video playback

Publications (1)

Publication Number Publication Date
CN107040799A true CN107040799A (en) 2017-08-11

Family

ID=59534086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710161029.1A Pending CN107040799A (en) 2017-03-17 2017-03-17 The authorization check method and device of video playback

Country Status (1)

Country Link
CN (1) CN107040799A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107579968A (en) * 2017-08-30 2018-01-12 武汉斗鱼网络科技有限公司 Video flowing address detection method, device and server
CN108769749A (en) * 2018-04-13 2018-11-06 武汉斗鱼网络科技有限公司 A kind of determining method, client and server for stealing brush data
WO2019134275A1 (en) * 2018-01-05 2019-07-11 武汉斗鱼网络科技有限公司 Video stream address authentication method, storage medium, device and system
CN112261040A (en) * 2020-10-21 2021-01-22 厦门悦讯信息科技股份有限公司 Online audio and video anti-theft method and system
CN115802066A (en) * 2022-09-30 2023-03-14 天翼数字生活科技有限公司 Gateway-based streaming media stream pulling method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9253234B2 (en) * 2010-05-28 2016-02-02 Arvato Digital Services Llc Method and apparatus for providing enhanced streaming content delivery with multi-archive support using secure download manager and content-indifferent decoding
CN106028064A (en) * 2016-06-24 2016-10-12 武汉斗鱼网络科技有限公司 Live broadcasting video streaming playing address authorization verification method and system
CN106210775A (en) * 2016-08-26 2016-12-07 浙江大华技术股份有限公司 A kind of method of video-encryption, camera head and video processing platform
CN106452776A (en) * 2015-08-12 2017-02-22 航天信息股份有限公司 Data encryption method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9253234B2 (en) * 2010-05-28 2016-02-02 Arvato Digital Services Llc Method and apparatus for providing enhanced streaming content delivery with multi-archive support using secure download manager and content-indifferent decoding
CN106452776A (en) * 2015-08-12 2017-02-22 航天信息股份有限公司 Data encryption method
CN106028064A (en) * 2016-06-24 2016-10-12 武汉斗鱼网络科技有限公司 Live broadcasting video streaming playing address authorization verification method and system
CN106210775A (en) * 2016-08-26 2016-12-07 浙江大华技术股份有限公司 A kind of method of video-encryption, camera head and video processing platform

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107579968A (en) * 2017-08-30 2018-01-12 武汉斗鱼网络科技有限公司 Video flowing address detection method, device and server
WO2019134275A1 (en) * 2018-01-05 2019-07-11 武汉斗鱼网络科技有限公司 Video stream address authentication method, storage medium, device and system
CN108769749A (en) * 2018-04-13 2018-11-06 武汉斗鱼网络科技有限公司 A kind of determining method, client and server for stealing brush data
CN108769749B (en) * 2018-04-13 2021-11-09 武汉斗鱼网络科技有限公司 Method for determining data embezzlement, client and server
CN112261040A (en) * 2020-10-21 2021-01-22 厦门悦讯信息科技股份有限公司 Online audio and video anti-theft method and system
CN115802066A (en) * 2022-09-30 2023-03-14 天翼数字生活科技有限公司 Gateway-based streaming media stream pulling method and device
CN115802066B (en) * 2022-09-30 2024-03-08 天翼数字生活科技有限公司 Streaming media streaming method and device based on gateway

Similar Documents

Publication Publication Date Title
CN107094261A (en) The authorization check method and device of video playback
CN110036613B (en) System and method for providing identity authentication for decentralized applications
CN102682233B (en) Methods and systems for scalable distribution of protected content
CN107040799A (en) The authorization check method and device of video playback
CN105306473B (en) A kind of method for preventing injection attacks, client, server and system
CN106993201A (en) The authorization check method and device of video playback
CN108848058A (en) Intelligent contract processing method and block catenary system
CN107733883B (en) Method and device for detecting account numbers registered in batches
CN103401957A (en) Method for identifying client machine uniquely in web environment
CN108431819B (en) Method and system for protecting client access to service of DRM agent of video player
CN110958239B (en) Method and device for verifying access request, storage medium and electronic device
CN104320265A (en) Authentication method and device for software platform
Marforio et al. Hardened setup of personalized security indicators to counter phishing attacks in mobile banking
CN111934873A (en) Bidding file encryption and decryption method and device
CN105024885A (en) Anti-plug-in online game system
CN108566374A (en) A kind of application method for down loading and its system, block chain node device, terminal
US20110225634A1 (en) CAPTCHA (Completely Automated Public Test to Tell Computers and Humans Apart) Data Generation Methods and Related Data Management Systems and Computer Program Products Thereof
Shema Seven deadliest web application attacks
KR20230121133A (en) Blocking sensitive data
CN112261040B (en) Online audio and video anti-theft method and system
CN110740112B (en) Authentication method, apparatus and computer readable storage medium
CN108282332A (en) A kind of data signature method and device
CN108234491A (en) Agreement correlating validation method, apparatus and electronic equipment
CN108712657B (en) Barrage verification method, computer equipment and storage medium
CN113127891A (en) Template file encryption method and device for intelligent media desktop

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: 20170811

RJ01 Rejection of invention patent application after publication