CN109218774A - A kind of method, server and computer equipment improving video playing safety - Google Patents
A kind of method, server and computer equipment improving video playing safety Download PDFInfo
- Publication number
- CN109218774A CN109218774A CN201710522463.8A CN201710522463A CN109218774A CN 109218774 A CN109218774 A CN 109218774A CN 201710522463 A CN201710522463 A CN 201710522463A CN 109218774 A CN109218774 A CN 109218774A
- Authority
- CN
- China
- Prior art keywords
- floating number
- string
- authentication values
- authentication
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000007667 floating Methods 0.000 claims abstract description 156
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 54
- 238000012986 modification Methods 0.000 claims abstract description 18
- 230000004048 modification Effects 0.000 claims abstract description 18
- 230000006870 function Effects 0.000 claims description 22
- 239000003550 marker Substances 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 4
- 238000004891 communication Methods 0.000 claims description 2
- 238000012545 processing Methods 0.000 description 10
- 230000008901 benefit Effects 0.000 description 6
- 125000004122 cyclic group Chemical group 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012905 input function Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/254—Management at additional data server, e.g. shopping server, rights management server
- H04N21/2541—Rights Management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/266—Channel 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/26613—Channel 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management 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/462—Content 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/4623—Processing of entitlement messages, e.g. ECM [Entitlement Control Message] or EMM [Entitlement Management Message]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management 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/462—Content 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/4627—Rights management associated to the content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Abstract
The present invention provides a kind of method, server and computer equipment for improving video playing safety, method includes: random the first string of generation floating number;The first string floating number is converted using preset first Encryption Algorithm, obtains the second string floating number;The second string floating number is rounded using modification rule is rounded, obtains third string floating number;The video flowing address authentication information and the first authentication values that client is sent are received, institute's authentication information and the third string floating number are based on, calculates the second authentication values using preset second Encryption Algorithm;Judge whether the first authentication values are identical as the second authentication values, if the first authentication values are identical as the second authentication values, sends the video flowing address to institute's client;In this way, calculating the authentication values of video flowing address using floating number, the complexity of authentication arithmetic is improved, avoids how improper user generates video flowing address by debugging live streaming platform to crack out, and then avoids the loss of the flowing of access of current live platform.
Description
Technical field
The invention belongs to live video Stream Technology field more particularly to a kind of sides for improving video playing safety
Method, server and computer equipment.
Background technique
With the fast development of live streaming industry, live streaming audient also in continuous expand, also get over by all types of net casts
Come more.
Currently, net cast is usually to be broadcast live using internet and stream media technology, and in this case, improper user
The video flowing address of video content provider can be obtained by improper means, these improper users can not be by current straight
Platform direct viewing video is broadcast, that is, the video playing that the video player of current live platform provides has been bypassed, to reduce
The flowing of access of current live platform reduces the economic benefit of current live platform.
Based on this, method, server and the computer that the embodiment of the present invention provides a kind of raising video playing safety are set
It is standby, to solve the above problem in the prior art.
Summary of the invention
In view of the problems of the existing technology, the embodiment of the invention provides a kind of sides for improving video playing safety
Method, server and computer equipment, for solving in the prior art when current live platform carries out net cast, video flowing
Location is easy to be cracked by improper user, so as to by current live platform direct viewing video, not cause so current straight
The flowing of access for broadcasting platform is reduced, and reduces the economic benefit of current live platform.
A kind of method for improving video playing safety of the embodiment of the present invention, is applied in live streaming platform, the method
Include:
It is random to generate the first string floating number;
The first string floating number is converted using preset first Encryption Algorithm, obtains the second string floating number;
The second string floating number is rounded using modification rule is rounded, obtains third string floating number;
The video flowing address authentication information and the first authentication values that client is sent are received, based on the authentication information and described
Third string floating number calculates the second authentication values using preset second Encryption Algorithm;
Judge whether first authentication values and second authentication values are identical, if first authentication values and described second
Authentication values are identical, then send the video flowing address to the client.
It is described that the first string floating number is converted using preset first Encryption Algorithm in above scheme, it obtains
Second string floating number, comprising:
Based on preset first Encryption Algorithm, cyclical function For (int i=0 is utilized;i<n;I++) successively to described
Numerical value in a string of floating numbers is converted;Preset first Encryption Algorithm is add operation, subtraction, multiplying
And at least one of division arithmetic or multiple combinations;The n is the number of the first string floating number.
It is described that the second string floating number is rounded using rounding modification rule in above scheme, obtain third string
Floating number, comprising:
Based on preset rounding base value, successively the numerical value in the second string floating number is counted using add operation
It calculates, obtains the third string floating number.
It is described to be based on the authentication information and the third string floating number in above scheme, utilize preset second encryption
Algorithm calculates the second authentication values, comprising:
It is counted using function CheckKEY1=Md5.Create (Token+RoomId+IP+Time+DeviceId+ndata)
Calculate the second authentication values CheckKEY1;Wherein, the Token is preset marker, and the RoomId is live streaming room
Number;The IP is the current internet protocol address of the client;The Time is the current time of the client;Institute
State the equipment exclusive identification code that DeviceId is the client;The ndata is the third string floating number.
The embodiment of the present invention also provides a kind of video stream server, and the server includes:
Generation unit, for generating the first string floating number at random;
Converting unit obtains for converting using preset first Encryption Algorithm to the first string floating number
Two string floating numbers;
It is rounded unit, for being rounded using rounding modification rule to the second string floating number, it is floating to obtain third string
Points;
Computing unit, for receiving the video flowing address authentication information and the first authentication values of client transmission, based on described
Authentication information and the third string floating number calculate the second authentication values using preset second Encryption Algorithm;
Judging unit, for judging whether first authentication values and second authentication values are identical, if first mirror
Weight is identical as second authentication values, then sends the video flowing address to the client.
In above scheme, the converting unit is specifically used for:
Based on preset first Encryption Algorithm, cyclical function For (int i=0 is utilized;i<n;I++) successively to described
Numerical value in a string of floating numbers is converted;Preset first Encryption Algorithm is add operation, subtraction, multiplying
And at least one of division arithmetic or multiple combinations;The n is the number of the first string floating number.
In above scheme, the rounding unit is specifically used for:
Based on preset rounding base value, successively the numerical value in the second string floating-point is calculated using add operation,
Obtain the third string floating number.
In above scheme, the computing unit is specifically used for:
It is calculated using function CheckKEY=Md5.Create (Token+RoomId+IP+Time+DeviceId+ndata)
The second authentication values CheckKEY;Wherein, the Token is preset marker, and the RoomId is live streaming room number;Institute
Stating IP is the current internet protocol address of the client;The Time is the current time of the client;It is described
DeviceId is the equipment exclusive identification code of the client;The ndata is the third string floating number.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the program
It is performed the steps of when being executed by processor
It is random to generate the first string floating number;
The first string floating number is converted using preset first Encryption Algorithm, obtains the second string floating number;
The second string floating number is rounded using modification rule is rounded, obtains third string floating number;
The video flowing address authentication information and the first authentication values that client is sent are received, based on the authentication information and described
Third string floating number calculates the second authentication values using preset second Encryption Algorithm;
Judge whether first authentication values and second authentication values are identical, if first authentication values and described second
Authentication values are identical, then send the video flowing address to the client.
The embodiment of the present invention also provides a kind of computer equipment for improving video playing safety, comprising:
At least one processor;And
At least one processor being connect with the processor communication, wherein
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to
Order is able to carry out such as any of the above-described method.
The present invention provides a kind of method, server and computer equipments for improving video playing safety, are applied to straight
It broadcasts in platform, which comprises random to generate the first string floating number;Using preset first Encryption Algorithm to first string
Floating number is converted, and the second string floating number is obtained;The second string floating number is rounded using modification rule is rounded, is obtained
Take third string floating number;The video flowing address authentication information and the first authentication values that client is sent are received, is believed based on the authentication
Breath and the third string floating number calculate the second authentication values using preset second Encryption Algorithm;Judge first authentication values
It is whether identical as second authentication values, if first authentication values are identical as second authentication values, to the client
Send the video flowing address;In this way, calculating the authentication values of video flowing address using floating number, the complexity of authentication arithmetic is improved
Degree, avoids how improper user generates video flowing address by debugging live streaming platform to crack out, and then avoids current live
The loss of the flowing of access of platform improves the economic benefit of live streaming platform.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram for the raising video playing safety that the embodiment of the present invention one provides;
Fig. 2 is the overall structure diagram of video stream server provided by Embodiment 2 of the present invention;
Fig. 3 is the overall structure signal of the computer equipment for the raising video playing safety that the embodiment of the present invention three provides
Figure.
Specific embodiment
In order to solve in the prior art when current live platform carries out net cast, video flowing address is easy improper
User cracks, so as to by current live platform direct viewing video, the flowing of access of current live platform not caused to subtract
Few technical problem, the present invention provides a kind of method, server and computer equipment for improving video playing safety, applications
In live streaming platform, which comprises random to generate the first string floating number;Using preset first Encryption Algorithm to described
A string of floating numbers are converted, and the second string floating number is obtained;The second string floating number is taken using modification rule is rounded
It is whole, obtain third string floating number;The video flowing address authentication information and the first authentication values that client is sent are received, the mirror is based on
Information and the third string floating number are weighed, calculates the second authentication values using preset second Encryption Algorithm;Judge first mirror
Whether weight and second authentication values are identical, if first authentication values are identical as second authentication values, to the visitor
Family end sends the video flowing address.
Technical solution of the present invention is described in further detail below by drawings and the specific embodiments.
Embodiment one
The present embodiment provides a kind of method for improving video playing safety, the method is applied in live streaming platform, such as
Described in Fig. 1, which comprises
S101, it is random to generate the first string floating number;
In this step, in order to improve the complexity of video flowing address authentication arithmetic, therefore frequency stream is carried out using floating number
The calculating of address authentication values.Because the present embodiment does not need that the second floating number is decrypted, initial data, therefore first are obtained
String floating number can be random, unordered, can be further improved the safety of data in this way.
Server can generate the first string floating number at random first, and the first string floating number can be 1024 floating numbers,
It may include: the floating number of the similar integers such as 3.0,28.0,236.0, and the first string floating number be stored in and is pre-established
Array float 1024data [1024] in.
S102 converts the first string floating number using preset first Encryption Algorithm, obtains the second string floating-point
Number;
In this step, after generating the first string floating number, using preset first Encryption Algorithm to the first string floating number
It is converted, obtains the second string floating number.The second string floating number is also the data of similar integer.
Specifically, it is based on preset first Encryption Algorithm, utilizes cyclical function For (int i=0;i<n;I++) successively right
Data in the first string floating number are converted;Preset first Encryption Algorithm is add operation, subtraction, multiplies
At least one of method operation and division arithmetic or multiple combinations, certain add operation, subtraction, multiplying and
The order of operation of division arithmetic can also be arbitrarily arranged;The n is the number of the first string floating number.
For example, first data in the first string floating number are 8.0, then add operation 8.0+2.0 can be carried out to it;?
To the result is that 10.0 be an integer.Subtraction 10.0-6.0 is carried out to 10.0 obtained;It is obtaining the result is that 4.0;It is right
4.0 obtained carry out division arithmetic 4.0/2.0;It is obtaining the result is that 2.0;Multiplying 2.0*6.0 is carried out to 2.0 obtained;
It is obtaining the result is that 12.0;Hence for above-mentioned first data calculating from input be 8.0 it is finally obtained be 12.0.
Similarly, for example first data is 1.0, if that carrying out division arithmetic 1.0/3.0 to 1.0;It is so final
It is obtaining but finally multiplying to be carried out to 0.33333 Infinite Cyclic the result is that 0.33333 Infinite Cyclic, i.e.,
The processing of 0.33333 Infinite Cyclic * 3.0.What it is to ensure is 1.0 result.
It is equally all to be handled using above-mentioned same method, finally for other data in the first string floating number
Obtain the second string floating number.
S103 is rounded the second string floating number using modification rule is rounded, obtains third string floating number;
Because being to need to float when calculating the second authentication values using the second Encryption Algorithm in the authentication arithmetic of video flowing address
Points are converted to what integer was calculated, therefore this step also needs to carry out the second string floating number using rounding modification rule
It is rounded, obtains third string floating number.It is specifically based on preset rounding base value, using add operation successively to second string
Numerical value in floating-point is calculated, and the third string floating number is obtained.
For example, the result that 1.0/3.0*3.0 is obtained may be 0.9999999 for data 1.0, it is also possible to
1.000001, therefore, it can use add operation and preset rounding base value added to the result that 1.0/3.0*3.0 is obtained
0.00001, then 0.999999 can correct plus after 0.00001 available 1.00009, then to 1.00009 round numbers
What is obtained afterwards is 1.
And 1.000001 amendments are plus after 0.00001 available 1.000011, then to after 1.000011 round numbers
To be 1.
The arithmetic eror of the second floating number can be thus modified to obtain determining whole-number result, to obtain the
Three string floating numbers.
S104 receives video flowing address authentication information and the first authentication values that client is sent, is based on the authentication information
And the third string floating number, the second authentication values are calculated using preset second Encryption Algorithm;
After getting third string floating number, the video flowing address authentication information and the first authentication that client is sent are received
Value is based on the authentication information and the third string floating number, calculates the second authentication values using preset second Encryption Algorithm.
Specifically, when client, which is hit, watches some room video, request can be sent to video stream server first to obtain
Take the video flowing address in the room.Address authentication information can be carried in sending request, comprising: marker when client logs in
Token, the current time Time of client, the room number RoomId of client request, the current internet protocol of client
The address (IP, Internet Protocol), the equipment exclusive identification code DeviceID of client.
So server can utilize function CheckKEY1=Md5.Create (Token+RoomId+IP+Time+
DeviceId+ndata the second authentication values CheckKEY1) is calculated.Wherein, second Encryption Algorithm is Hash HASH calculation
Method, the Md5.Create are then the interface functions of HASH algorithm MD5;The ndata is the third string floating number.
It should be noted that the second authentication values that client is sent to server are also to utilize function by client
CheckKEY2=Md5.Create (Token+RoomId+IP+Time+DeviceId+ndata) is calculated.Second mirror
Weight is CheckKEY2.
S105 judges whether first authentication values and second authentication values are identical, if first authentication values and institute
It is identical to state the second authentication values, then sends the video flowing address to the client.
In this step, because server and client side be according to same Encryption Algorithm calculate authentication values, theoretically for
First authentication values should be identical as the second authentication values.
After getting the first authentication values, judge whether first authentication values and second authentication values are identical, if institute
It is identical as second authentication values to state the first authentication values, illustrates that client is normal client, then sends institute to the client
State video flowing address;If first authentication values and second authentication values are not identical, illustrate that client is improper client,
Then video flowing address is not issued to the client, in this way it is avoided that improper user please obtains video flowing to crack authentication arithmetic
Address, and then the client is avoided to bypass the video player of current live platform to watch corresponding video.
Embodiment two
Corresponding to embodiment one, the present embodiment also provides a kind of video stream server, as shown in Fig. 2, the server packet
Include: generation unit 21, is rounded unit 23, computing unit 24 and judging unit 25 at converting unit 22;Wherein,
In order to improve the complexity of video flowing address authentication arithmetic, therefore frequency is carried out using floating number and flows address authentication values
Calculating.Because the present embodiment does not need that the second floating number is decrypted, initial data is obtained, therefore the first string floating number can
Be it is random, unordered, can be further improved the safety of data in this way.
Therefore the generation unit 21 can generate the first string floating number at random;The first string floating number can be 1024
Floating number may include: the floating number of the similar integers such as 3.0,28.0,236.0, and the first string floating number is stored in pre-
In the array float 1024data [1024] first established.
After the generation unit 21 generates the first string floating number, the converting unit 22 is used to utilize preset first encryption
Algorithm converts the first string floating number, obtains the second string floating number.The second string floating number is also similar integer
Data.
Specifically, the converting unit 22 is based on preset first Encryption Algorithm, utilizes cyclical function For (int i=0;
i<n;I++) successively the data in the first string floating number are converted;Preset first Encryption Algorithm is addition fortune
At least one of calculation, subtraction, multiplying and division arithmetic or multiple combinations, the certain add operation, subtraction
The order of operation of operation, multiplying and division arithmetic can also be arbitrarily arranged;The n is of the first string floating number
Number.
For example, first data in the first string floating number are 8.0, the converting unit 22 then can carry out addition to it
Operation 8.0+2.0;It is obtaining the result is that 10.0 be an integer.Subtraction 10.0-6.0 is carried out to 10.0 obtained;It obtains
The result is that 4.0;Division arithmetic 4.0/2.0 is carried out to 4.0 obtained;It is obtaining the result is that 2.0;2.0 obtained are multiplied
Method operation 2.0*6.0;It is obtaining the result is that 12.0;Hence for above-mentioned first data calculating from input be 8.0 final
To be 12.0.
Similarly, for example first data is 1.0, if then the converting unit 22 carries out division arithmetic to 1.0
1.0/3.0;It is so finally obtained the result is that 0.33333 Infinite Cyclic, but 0.33333 Infinite Cyclic can finally be carried out
Multiplying, the i.e. processing of 0.33333 Infinite Cyclic * 3.0.What it is to ensure is 1.0 result.
For other data in the first string floating number, the converting unit 22 is equally all using above-mentioned same method
It is handled, finally obtains the second string floating number.
After getting the second string floating number, the rounding unit 23 is used for using rounding modification rule to second string
Floating number is rounded, and third string floating number is obtained;Here, because in the authentication arithmetic of video flowing address, computing unit 24 is utilized
It when second Encryption Algorithm calculates the second authentication values, needs floating number being converted to integer and calculates, therefore be rounded unit
23 also need to be rounded the second string floating number using rounding modification rule, obtain third string floating number.Specifically institute
It states and is rounded unit 23 based on preset rounding base value, successively the numerical value in the second string floating-point is counted using add operation
It calculates, obtains the third string floating number.
For example, the result that 1.0/3.0*3.0 is obtained may be 0.9999999 for data 1.0, it is also possible to
1.000001, therefore, the unit 23 that is rounded can use result that add operation obtains 1.0/3.0*3.0 plus preset
It is rounded base value 0.00001, then 0.999999 can correct plus after 0.00001 available 1.00009, then right
What is obtained after 1.00009 round numbers is 1.
And 1.000001 amendments are plus after 0.00001 available 1.000011, then the rounding unit 23 is right
1.000011 what is obtained after round numbers is 1.
The rounding unit 23 described in this way can be modified the arithmetic eror of the second floating number to obtain determining integer
As a result, to obtain third string floating number.
After getting third string floating number, the computing unit 24 is used to receive the video flowing address mirror of client transmission
Information and the first authentication values are weighed, the authentication information and the third string floating number is based on, utilizes preset second Encryption Algorithm
Calculate the second authentication values;Specifically, when client, which is hit, watches some room video, it can send ask to video stream server first
It asks to obtain the video flowing address in the room.Address authentication information can be carried in sending request, comprising: when client logs in
Marker Token, the current time Time of client, the room number RoomId of client request, the current IP address of client,
The equipment exclusive identification code DeviceID of client.
So computing unit 24 can utilize function CheckKEY1=Md5.Create (Token+RoomId+IP+
Time+DeviceId+ndata the second authentication values CheckKEY1) is calculated.Wherein, second Encryption Algorithm is Hash
HASH algorithm, the Md5.Create are then the interface functions of HASH algorithm MD5;The ndata is the third string floating number.
It should be noted that the second authentication values that client is sent to server are also to utilize function by client
CheckKEY2=Md5.Create (Token+RoomId+IP+Time+DeviceId+ndata) is calculated.Second mirror
Weight is CheckKEY2.Here, because computing unit 24 and client are the authentication values calculated according to same Encryption Algorithm, reason
It should be identical as the second authentication values by the first authentication values for upper.
After getting the first authentication values and the second authentication values, the judging unit 25 is for judging first authentication values
It is whether identical as second authentication values, if first authentication values are identical as second authentication values, illustrate that client is positive
Normal client then sends the video flowing address to the client.
If first authentication values and second authentication values are not identical, illustrate that client is improper client, then not
Video flowing address is issued to the client, in this way it is avoided that improper user is please to crack authentication arithmetic with obtaining video flowing
Location, and then the client is avoided to bypass the video player of current live platform to watch corresponding video.
Embodiment three
The present embodiment also provide it is a kind of for improving the computer equipment of video playing safety, as shown in figure 3, the meter
Calculating machine equipment includes: radio frequency (Radio Frequency, RF) circuit 310, memory 320, input unit 330, display unit
340, the components such as voicefrequency circuit 350, WiFi module 360, processor 370 and power supply 380.Those skilled in the art can manage
Solution, computer equipment structure shown in Fig. 3 do not constitute the restriction to computer equipment, may include more or more than illustrating
Few component perhaps combines certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 3 to computer equipment:
RF circuit 310 can be used for sending and receiving for signal, particularly, after the downlink information of base station is received, to processing
The processing of device 350.In general, RF circuit 310 includes but is not limited at least one amplifier, transceiver, coupler, low noise amplification
Device (Low Noise Amplifier, LNA), duplexer etc..
Memory 320 can be used for storing software program and module, and processor 350 is stored in memory 320 by operation
Software program and module, thereby executing the various function application and data processing of computer equipment.Memory 320 can be led
It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function
Application program etc.;Storage data area, which can be stored, uses created data etc. according to computer equipment.In addition, memory 320
May include high-speed random access memory, can also include nonvolatile memory, a for example, at least disk memory,
Flush memory device or other volatile solid-state parts.
Input unit 330 can be used for receiving the number or character information of input, and generate the user with computer equipment
Setting and the related key signals input of function control.Specifically, input unit 330 may include keyboard 331 and other inputs
Equipment 332.Keyboard 331 collects the input operation of user on it, and drives corresponding connection according to preset formula
Device.Keyboard 331 gives processor 350 after collecting output information again.In addition to keyboard 331, input unit 330 can also include
Other input equipments 332.Specifically, other input equipments 332 can include but is not limited to touch panel, function key (such as sound
Measure control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Display unit 340 can be used for showing information input by user or the information and computer equipment that are supplied to user
Various menus.Display unit 340 may include display panel 341, optionally, can use liquid crystal display (Liquid
Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
To configure display panel 341.Further, keyboard 331 can cover display panel 341, when keyboard 331 detect it is on it or attached
After close touch operation, processor 350 is sent to determine the type of touch event, is followed by subsequent processing device 350 according to incoming event
Type corresponding visual output is provided on display panel 341.Although keyboard 331 and display panel 341 are conducts in Fig. 3
Two independent components realize the input and input function of computer equipment, but in some embodiments it is possible to by keyboard
331 is integrated with display panel 341 and that realizes computer equipment output and input function.
Voicefrequency circuit 350, loudspeaker 351, microphone 352 can provide the audio interface between user and computer equipment.
Electric signal after the audio data received conversion can be transferred to loudspeaker 351, be converted by loudspeaker 351 by voicefrequency circuit 350
For voice signal output;
WiFi belongs to short range wireless transmission technology, and computer equipment can help user to receive and dispatch by WiFi module 360
Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 3
WiFi module 360 is shown, but it is understood that, and it is not belonging to must be configured into for computer equipment, it completely can root
It is omitted within the scope of not changing the essence of the invention according to needs.
Processor 370 is the control centre of computer equipment, utilizes various interfaces and the entire computer equipment of connection
Various pieces, by running or execute the software program and/or module that are stored in memory 320, and call and be stored in
Data in memory 320 execute the various functions and processing data of computer equipment, to carry out to computer equipment whole
Monitoring.Optionally, processor 370 may include one or more processing units;Preferably, processor 370 can be integrated using processing
Device, wherein the main processing operation system of application processor, user interface and application program etc..
Computer equipment further includes the power supply 380 (such as power supply adaptor) powered to all parts, it is preferred that power supply can
With logically contiguous by power-supply management system and processor 370.
The method for improving video playing safety, server and computer equipment energy bring provided by the invention are beneficial to effect
Fruit is at least:
The embodiment of the invention provides a kind of method, server and computer equipment for improving video playing safety, institutes
The method of stating includes: random the first string of generation floating number;The first string floating number is carried out using preset first Encryption Algorithm
Conversion obtains the second string floating number;The second string floating number is rounded using modification rule is rounded, it is floating to obtain third string
Points;The video flowing address authentication information and the first authentication values that client is sent are received, based on the authentication information and described the
Three string floating numbers, calculate the second authentication values using preset second Encryption Algorithm;Judge first authentication values and described second
Whether authentication values are identical, if first authentication values are identical as second authentication values, send the view to the client
Frequency stream address;In this way, calculating the authentication values of video flowing address using floating number, the complexity of authentication arithmetic is improved, is avoided non-
How normal users generate video flowing address by debugging live streaming platform to crack out, and then avoid the access of current live platform
The loss of flow improves the economic benefit of live streaming platform.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments
Including certain features rather than other feature, but the combination of the feature of different embodiment means 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 can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize gateway according to an embodiment of the present invention, proxy server, in system
Some or all components some or all functions.The present invention is also implemented as executing side as described herein
Some or all device or device programs (for example, computer program and computer program product) of method.It is such
It realizes that program of the invention can store on computer readable storage medium, or can have one or more signal
Form.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other
Form provides;The program performs the steps of random the first string of generation floating number when being executed by processor;Utilize preset first
Encryption Algorithm converts the first string floating number, obtains the second string floating number;Using being rounded modification rule to described the
Two string floating numbers are rounded, and third string floating number is obtained;Receive the video flowing address authentication information and first that client is sent
Authentication values are based on the authentication information and the third string floating number, calculate the second authentication using preset second Encryption Algorithm
Value;Judge whether first authentication values and second authentication values are identical, if first authentication values and second authentication
It is worth identical, then sends the video flowing address to the client;In this way, calculating the authentication of video flowing address using floating number
Value, improves the complexity of authentication arithmetic, avoids how improper user generates video to crack out by debugging live streaming platform
Address is flowed, and then avoids the loss of the flowing of access of current live platform, improves the economic benefit of live streaming platform.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention, it is all
Made any modifications, equivalent replacements, and improvements etc. within the spirit and principles in the present invention, should be included in protection of the invention
Within the scope of.
Claims (10)
1. a kind of method for improving video playing safety, which is characterized in that be applied in live streaming platform, which comprises
It is random to generate the first string floating number;
The first string floating number is converted using preset first Encryption Algorithm, obtains the second string floating number;
The second string floating number is rounded using modification rule is rounded, obtains third string floating number;
The video flowing address authentication information and the first authentication values that client is sent are received, the authentication information and the third are based on
String floating number, utilizes preset second Encryption Algorithm to calculate the second authentication values;
Judge whether first authentication values and second authentication values are identical, if first authentication values and second authentication
It is worth identical, then sends the video flowing address to the client.
2. the method as described in claim 1, which is characterized in that described to be gone here and there using preset first Encryption Algorithm to described first
Floating number is converted, and the second string floating number is obtained, comprising:
Based on preset first Encryption Algorithm, cyclical function For (int i=0 is utilized;i<n;I++) successively to first string
Numerical value in floating number is converted;Preset first Encryption Algorithm is add operation, subtraction, multiplying and removes
At least one of method operation or multiple combinations;The n is the number of the first string floating number.
3. the method as described in claim 1, which is characterized in that described utilize is rounded modification rule to the second string floating number
It is rounded, obtains third string floating number, comprising:
Based on preset rounding base value, successively the numerical value in the second string floating number is calculated using add operation, is obtained
Take the third string floating number.
4. the method as described in claim 1, which is characterized in that described to be based on the authentication information and the third string floating-point
Number calculates the second authentication values using preset second Encryption Algorithm, comprising:
Institute is calculated using function CheckKEY1=Md5.Create (Token+RoomId+IP+Time+DeviceId+ndata)
State the second authentication values CheckKEY1;Wherein, the Token is preset marker, and the RoomId is live streaming room number;Institute
Stating IP is the current internet protocol address of the client;The Time is the current time of the client;It is described
DeviceId is the equipment exclusive identification code of the client;The ndata is the third string floating number.
5. a kind of video stream server, which is characterized in that the server includes:
Generation unit, for generating the first string floating number at random;
Converting unit obtains the second string for converting using preset first Encryption Algorithm to the first string floating number
Floating number;
It is rounded unit, for being rounded using rounding modification rule to the second string floating number, obtains third string floating number;
Computing unit is based on the authentication for receiving the video flowing address authentication information and the first authentication values of client transmission
Information and the third string floating number calculate the second authentication values using preset second Encryption Algorithm;
Judging unit, for judging whether first authentication values and second authentication values are identical, if first authentication values
It is identical as second authentication values, then the video flowing address is sent to the client.
6. server as claimed in claim 5, which is characterized in that the converting unit is specifically used for:
Based on preset first Encryption Algorithm, cyclical function For (int i=0 is utilized;i<n;I++) successively to first string
Numerical value in floating number is converted;Preset first Encryption Algorithm is add operation, subtraction, multiplying and removes
At least one of method operation or multiple combinations;The n is the number of the first string floating number.
7. server as claimed in claim 5, which is characterized in that the rounding unit is specifically used for:
Based on preset rounding base value, successively the numerical value in the second string floating-point is calculated using add operation, is obtained
The third string floating number.
8. server as claimed in claim 5, which is characterized in that the computing unit is specifically used for:
Using described in function CheckKEY=Md5.Create (Token+RoomId+IP+Time+DeviceId+ndata) calculating
Second authentication values CheckKEY;Wherein, the Token is preset marker, and the RoomId is live streaming room number;The IP
For the current internet protocol address of the client;The Time is the current time of the client;It is described
DeviceId is the equipment exclusive identification code of the client;The ndata is the third string floating number.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
It is performed the steps of when row
It is random to generate the first string floating number;
The first string floating number is converted using preset first Encryption Algorithm, obtains the second string floating number;
The second string floating number is rounded using modification rule is rounded, obtains third string floating number;
The video flowing address authentication information and the first authentication values that client is sent are received, the authentication information and the third are based on
String floating number, utilizes preset second Encryption Algorithm to calculate the second authentication values;
Judge whether first authentication values and second authentication values are identical, if first authentication values and second authentication
It is worth identical, then sends the video flowing address to the client.
10. a kind of computer equipment for improving video playing safety characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, wherein
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy
Enough methods executed as described in Claims 1-4 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522463.8A CN109218774B (en) | 2017-06-30 | 2017-06-30 | Method for improving video playing safety, server and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522463.8A CN109218774B (en) | 2017-06-30 | 2017-06-30 | Method for improving video playing safety, server and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109218774A true CN109218774A (en) | 2019-01-15 |
CN109218774B CN109218774B (en) | 2020-10-16 |
Family
ID=64977091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710522463.8A Active CN109218774B (en) | 2017-06-30 | 2017-06-30 | Method for improving video playing safety, server and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109218774B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984574A (en) * | 2010-11-29 | 2011-03-09 | 北京卓微天成科技咨询有限公司 | Data encryption and decryption method and device |
CN102012993A (en) * | 2010-11-29 | 2011-04-13 | 北京卓微天成科技咨询有限公司 | Methods and devices for selectively encrypting and decrypting data |
US20120226891A1 (en) * | 2011-03-01 | 2012-09-06 | Advanced Micro Devices, Inc. | Processor with increased efficiency via control word prediction |
CN102694644A (en) * | 2012-05-16 | 2012-09-26 | 华中科技大学 | Interface unit for fully homomorphic encryption chip |
CN107147484A (en) * | 2017-05-12 | 2017-09-08 | 南京邮电大学 | A kind of full homomorphic cryptography method of floating number towards secret protection |
-
2017
- 2017-06-30 CN CN201710522463.8A patent/CN109218774B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984574A (en) * | 2010-11-29 | 2011-03-09 | 北京卓微天成科技咨询有限公司 | Data encryption and decryption method and device |
CN102012993A (en) * | 2010-11-29 | 2011-04-13 | 北京卓微天成科技咨询有限公司 | Methods and devices for selectively encrypting and decrypting data |
US20120226891A1 (en) * | 2011-03-01 | 2012-09-06 | Advanced Micro Devices, Inc. | Processor with increased efficiency via control word prediction |
CN102694644A (en) * | 2012-05-16 | 2012-09-26 | 华中科技大学 | Interface unit for fully homomorphic encryption chip |
CN107147484A (en) * | 2017-05-12 | 2017-09-08 | 南京邮电大学 | A kind of full homomorphic cryptography method of floating number towards secret protection |
Also Published As
Publication number | Publication date |
---|---|
CN109218774B (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107770596A (en) | A kind of special efficacy synchronous method, device and mobile terminal | |
CN104918124A (en) | Live interaction system, information transmission method, information receiving method and device | |
CN104657203B (en) | Task executing method, device and system | |
CN107544842B (en) | Applied program processing method and device, computer equipment, storage medium | |
CN107451852A (en) | The live promotion method and server using APP of third party in a kind of live platform | |
CN108243346A (en) | A kind of method, server and computer equipment for filtering barrage information | |
CN107103211B (en) | SDK send, using publication, using operation method and device | |
CN110166276A (en) | A kind of localization method, device, terminal device and the medium of frame synchronization exception | |
CN107391115A (en) | A kind of method, apparatus and computer equipment for realizing pop-up alternative events | |
CN103345602A (en) | Client-side code integrality detection method, device and system | |
CN105450772B (en) | Exempt from flow method for down loading and device | |
CN105550101A (en) | Test method for application program, electronic device and system | |
CN103338145B (en) | Method, device and system for controlling voice data transmission | |
CN107276984A (en) | Game live broadcasting method, device and mobile terminal | |
CN105430448B (en) | A kind of the control processing method and video player client of video player | |
CN108184148B (en) | A kind of method, apparatus and computer equipment of user for identification | |
CN108306739A (en) | A kind of method, server and computer equipment for detecting subscriber identity information | |
CN107967424A (en) | A kind of verification method of plug-in unit, device, terminal device and storage medium | |
CN105099796B (en) | A kind of multimedia content change detection method, device and resource broadcasting system | |
JP2021192214A (en) | Method and device for verifying operation states of applications | |
CN108712670A (en) | A kind of method, apparatus and computer equipment for video preview | |
CN109558732A (en) | A kind of method for preventing application file to be tampered and server | |
CN107948753B (en) | A kind of recommended method, device and computer equipment | |
CN107577712B (en) | A kind of method, apparatus and computer equipment of loading page | |
CN106713319A (en) | Method, device, system of realizing remote control between terminals, and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231130 Address after: 518000, Building A, Huayuan City Digital Building, No. 1079 Nanhai Avenue, Yanshan Community, Nanshan District, Shenzhen City, Guangdong Province, China 204A12 Patentee after: Shenzhen Pengcheng Information Technology Co.,Ltd. Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |