CN108055356B - Information processing method, server, client and readable storage medium - Google Patents

Information processing method, server, client and readable storage medium Download PDF

Info

Publication number
CN108055356B
CN108055356B CN201810015938.9A CN201810015938A CN108055356B CN 108055356 B CN108055356 B CN 108055356B CN 201810015938 A CN201810015938 A CN 201810015938A CN 108055356 B CN108055356 B CN 108055356B
Authority
CN
China
Prior art keywords
live broadcast
room
server
key
broadcast room
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810015938.9A
Other languages
Chinese (zh)
Other versions
CN108055356A (en
Inventor
周志刚
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201810015938.9A priority Critical patent/CN108055356B/en
Publication of CN108055356A publication Critical patent/CN108055356A/en
Application granted granted Critical
Publication of CN108055356B publication Critical patent/CN108055356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • H04N21/2351Processing of additional data, e.g. scrambling of additional data or processing content descriptors involving encryption of additional data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2389Multiplex stream processing, e.g. multiplex stream encrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26613Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities

Abstract

The embodiment of the invention provides an information processing method, a server and a readable storage medium, which are used for preventing the security of resources in a live platform server from being improved. The information processing method is applied to a server of a live broadcast platform and comprises the following steps: receiving an access request sent by a client, wherein the access request is sent when the client opens a first live broadcast room after logging in the server through the installed live broadcast platform; obtaining a first key corresponding to the room number of the first live broadcast room; and sending the first key to the client, so that after the client receives the first key, a preset decryption algorithm is called to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcasting based on the first key.

Description

Information processing method, server, client and readable storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an information processing method, a server, a client, and a readable storage medium.
Background
The fifth generation hypertext markup language HTML5 is the next generation HTML standard, and most browsers have support for HTML5 with the development of HTML5 technology. One important characteristic of HTML is WebSocket, which can implement full duplex communication between a browser and a server, so that data can be transmitted between the server and the browser in a client. With the maturity of the HTML5 technology, more and more live broadcast platforms are turned from the WEB technology to the HTML technology, and when the HTML5 technology is used, the live broadcast platforms of the server and the client perform network communication based on the WebSocket protocol. For the live broadcast platform based on the HTML5, the main codes of the page are JavaScript codes, and when the live broadcast platform is published, the JavaScript codes of the page can be directly obtained by anyone, and then the obtained JavaScript codes of the page request the server for the resources of the page, so that the resources in the server of the live broadcast platform are unsafe.
Disclosure of Invention
The embodiment of the invention provides an information processing method, a server and a readable storage medium, which are used for preventing the security of resources in a live platform server from being improved.
In a first aspect, the present invention provides an information processing method, including:
receiving an access request sent by a client, wherein the access request is sent when the client opens a first live broadcast room after logging in the server through the installed live broadcast platform;
obtaining a first key corresponding to the room number of the first live broadcast room;
and sending the first key to the client, so that after the client receives the first key, a preset decryption algorithm is called to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcasting based on the first key.
Optionally, before receiving the access request sent by the client, the method further includes:
acquiring a room number of each live broadcast room of the live broadcast platform;
generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm;
based on the key corresponding to the room number of each live broadcast room, encrypting the core code of the live broadcast room by adopting a preset encryption algorithm to obtain an encrypted core code corresponding to each live broadcast room;
And pre-embedding the encrypted core code corresponding to each live broadcast room in a page template corresponding to the live broadcast room.
Optionally, the generating a key corresponding to the room number of each live broadcast room by using a preset key generation algorithm includes:
acquiring a timestamp and preset data information;
and generating a key corresponding to the room number by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information.
Optionally, a preset key generation algorithm is used to generate a key corresponding to the room number of each live broadcast room based on the room number, the timestamp, and the preset data information, and the method further includes:
updating a key corresponding to the room number of each live broadcast room according to a preset time interval, wherein when the key corresponding to the room number of each live broadcast room is updated, the timestamp is time information during updating;
updating the encrypted core code corresponding to each live broadcast room based on the updated key corresponding to the room number of each live broadcast room;
and pre-embedding each updated encryption core code in a page template corresponding to the live broadcast room corresponding to the encryption core code.
In a second aspect, an embodiment of the present invention provides an information processing method, which is applied to a client for installing a live broadcast platform, and includes:
Sending an access request aiming at a first live broadcast room to a server of the live broadcast platform, wherein the access request is a request sent to the server when a user of the client logs in the live broadcast platform and opens the first live broadcast room;
receiving a first secret key which is sent by the server and corresponds to the room number of the first live broadcast room;
and calling a preset decryption algorithm to decrypt the encrypted core codes pre-embedded in the page template corresponding to the first direct broadcasting time based on the first key to obtain decrypted core codes.
In a third aspect, an embodiment of the present invention provides a server, where the server corresponds to a live broadcast platform, and the server includes:
the receiving unit is used for receiving an access request sent by a client, wherein the access request is sent when the client logs in the server through the installed live broadcast platform and then opens a first live broadcast time;
the acquisition unit is used for acquiring a first key corresponding to the room number of the first live broadcast room;
and the sending unit is used for sending the first key to the client, and is used for calling a preset decryption algorithm to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcasting room based on the first key after the client receives the first key.
Optionally, the server further includes:
the encryption unit is used for acquiring the room number of each live broadcast room of the live broadcast platform before receiving an access request sent by a client; generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm; based on the key corresponding to the room number of each live broadcast room, encrypting the core code of the live broadcast room by adopting a preset encryption algorithm to obtain an encrypted core code corresponding to each live broadcast room; and pre-embedding the encrypted core code corresponding to each live broadcast room in a page template corresponding to the live broadcast room.
Optionally, the encryption unit is further configured to:
acquiring a timestamp and preset data information;
and generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information.
Optionally, the server further includes:
the updating unit is used for updating the key corresponding to the room number of each live broadcast room according to a preset time interval after the key corresponding to the room number of each live broadcast room is generated by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information, and the timestamp is time information during updating when the key corresponding to the room number of each live broadcast room is updated; updating the encrypted core code corresponding to each live broadcast room based on the updated key corresponding to the room number of each live broadcast room; and pre-embedding each updated encryption core code in a page template corresponding to the live broadcast room corresponding to the encryption core code.
In a fourth aspect, an embodiment of the present invention provides a client, where the client is equipped with a live broadcast platform end, and the client includes:
a sending unit, configured to send an access request for a first live broadcast room to a server of the live broadcast platform, where the access request is a request sent to the server when a user of the client logs in the live broadcast platform and opens the first live broadcast room;
the receiving unit is used for receiving a first secret key which is sent by the server and corresponds to the room number of the first live broadcast room;
and the decryption unit is used for calling a preset decryption algorithm to decrypt the encrypted core code pre-embedded in the page template corresponding to the first direct broadcast based on the first key to obtain a decrypted core code.
In a fifth aspect, an embodiment of the present invention provides a server, where the server includes a processor, and the processor is configured to implement the steps of the information processing method described in the foregoing first aspect when executing a computer program stored in a memory.
In a sixth aspect, an embodiment of the present invention provides a client, where the client includes a processor, and the processor is configured to implement, when executing a computer program stored in a memory, the steps of the information processing method described in the foregoing second aspect embodiment.
In a seventh aspect, an embodiment of the present invention provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the information processing method as described in the foregoing first and second aspect embodiments.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
in the technical scheme of the embodiment of the invention, the server embeds the encrypted core codes corresponding to each live broadcast room of the live broadcast platform in the corresponding page template, when the client logs in the live broadcast platform to open the first live broadcast room, the client sends an access request aiming at the first live broadcast room to the server, the server determines a first key corresponding to the room number of the first live broadcast room after receiving the access request, and then sends the first key to the client, and after receiving the first key, the client can decrypt the encrypted core codes embedded in the page template corresponding to the first live broadcast room by using the first key and a preset decryption algorithm to obtain the decrypted core codes. The server only sends the key to the legal client which logs in the live broadcast platform server, so that the safety of resources in the server can be improved. In addition, different keys are corresponding to different live broadcast rooms, and an illegal client is difficult to acquire the keys corresponding to all live broadcast platforms, so that encrypted core codes corresponding to all live broadcast rooms can be effectively prevented from being easily cracked, the illegal client cannot acquire core resources related to all live broadcast rooms in the server through the core codes, and the safety of the core resources of the live broadcast platforms is ensured.
Drawings
Fig. 1 is a flowchart of an information processing method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of an information processing method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a server in a third embodiment of the present invention;
FIG. 4 is a diagram of a client according to a fourth embodiment of the present invention;
FIG. 5 is a schematic diagram of a server in a fifth embodiment of the invention;
fig. 6 is a schematic diagram of a client according to a sixth embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an information processing method, a server and a readable storage medium, which are used for preventing the security of resources in a live platform server from being improved. The information processing method includes: receiving an access request sent by a client, wherein the access request is sent when the client opens a first live broadcast room after logging in the server through the installed live broadcast platform; obtaining a first key corresponding to the room number of the first live broadcast room; and sending the first key to the client, so that after the client receives the first key, a preset decryption algorithm is called to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcasting based on the first key.
The technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are described in detail in the technical solutions of the present application, and are not limited to the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Examples
Referring to fig. 1, a first embodiment of the present invention provides an information processing method, including the following steps:
s101: receiving an access request sent by a client, wherein the access request is sent when the client opens a first live broadcast room after logging in the server through the installed live broadcast platform;
s102: obtaining a first key corresponding to the room number of the first live broadcast room;
S103: and sending the first key to the client, so that after the client receives the first key, a preset decryption algorithm is called to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcasting based on the first key.
Before receiving the access request sent by the client, the method further includes:
acquiring a room number of each live broadcast room of the live broadcast platform;
generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm;
based on the key corresponding to the room number of each live broadcast room, encrypting the core code of the live broadcast room by adopting a preset encryption algorithm to obtain an encrypted core code corresponding to each live broadcast room;
and pre-embedding the encrypted core code corresponding to each live broadcast room in a page template corresponding to the live broadcast room.
Specifically, in this embodiment, the information processing method is applied to a server of a live platform, the live platform is a live platform based on a fifth generation hypertext markup language HTML5, and the server is a server based on an HTML 5.
The server generates keys corresponding to the room numbers of the live rooms in advance and stores the keys corresponding to the room numbers in a local cache. Furthermore, the server encrypts the core code corresponding to each live broadcast room by using a preset encryption algorithm based on the key corresponding to each room number. And then, embedding the encrypted core codes corresponding to each live broadcast room in the corresponding page template.
Such as: the live broadcast platform comprises a live broadcast room 1, a live broadcast room 2 and a live broadcast room 3. The room number of live broadcast room 1 is a1, the room number of live broadcast room 2 is a2, and the room number of live broadcast room 3 is A3. The live broadcast room 1 corresponds to the core code B1 and the core code B2, the live broadcast room 2 corresponds to the core code B3, and the live broadcast room 3 corresponds to the core code B4. The server is provided with a page template 1 corresponding to the live broadcast room 1, a page template 2 corresponding to the live broadcast room 2 and a page template 3 corresponding to the live broadcast room 3.
The server generates a key 1 corresponding to room number a1 using a preset key generation algorithm, a key 2 corresponding to room number a2 using a preset key generation algorithm, and a key 3 corresponding to room number A3 using a preset key generation algorithm. The server stores key 1, key 2, and key 3 in a local cache. The keys corresponding to different room numbers are different.
Further, the server encrypts the core code B1 by using a predetermined encryption algorithm based on the key 1 to generate an encrypted core code B11. Meanwhile, the server encrypts the core code B2 by using a preset encryption algorithm based on the key 1 to generate an encrypted core code B12. Similarly, the server encrypts the core code B3 by using the preset encryption algorithm based on the key 2 to generate an encrypted core code B23, and the server encrypts the core code B4 by using the preset encryption algorithm based on the key 3 to generate an encrypted core code B34. Further, the server pre-embeds the encryption core code B11 and the encryption core code B12 in the page template 1, the encryption core code B23 in the page template 2, and the encryption core code B34 in the page template 3.
In this embodiment, the live broadcast platform is a live broadcast platform based on HTML5, the server is a server based on HTML5, the core code corresponding to each live broadcast room is a JavaScript code, and the core code corresponding to each live broadcast room can be set to a code for acquiring user information corresponding to the live broadcast room, a code for acquiring user attention data corresponding to the live broadcast room, and the like.
Meanwhile, the preset key generation algorithms used for generating the keys corresponding to the room numbers of the respective live broadcast rooms may be the same or different, and the preset key generation algorithms may be MD5(Message-Digest Algorithm5, information Digest Algorithm 5), hash algorithms, and the like. In a specific implementation process, a preset key generation algorithm for generating keys corresponding to room numbers of all live rooms can be set according to actual needs, and the application is not limited herein.
Meanwhile, based on the key corresponding to the room number, the preset encryption algorithm for encrypting the core code of the live broadcast room corresponding to the room number can be set according to actual needs, and the method is not limited herein.
Furthermore, a live broadcast platform is installed in the client, the client logs in a server of the live broadcast platform after being verified by an account password, when the client opens a first live broadcast room to watch live broadcast video, the client sends an access request aiming at the first live broadcast room to the server, the request carries a room number of the first live broadcast room, and the access request further comprises data in a page template requesting the first live broadcast room, and the access request comprises the following steps: cascading style sheets CSS, pictures, JavaScript code, etc. And the JavaScript code comprises an encryption core code of the first live broadcast room.
After the server receives the access request and determines a room number corresponding to a first live broadcast room, a first secret key corresponding to the room number is obtained based on the corresponding relation between the room number and the secret key, the first secret key is sent to the client side, and after the client side receives the first secret key, the client side can decrypt an encrypted core code of the first live broadcast room by adopting a preset decryption algorithm based on the first secret key to obtain a decrypted core code, so that the corresponding core code is called to obtain a core resource in the server where the core code is needed.
The server only sends the key to the legal client which logs in the live broadcast platform server, so that the safety of resources in the server can be improved. In addition, different keys are corresponding to different live broadcast rooms, and an illegal client is difficult to acquire the keys corresponding to all live broadcast platforms, so that encrypted core codes corresponding to all live broadcast rooms can be effectively prevented from being easily cracked, the illegal client cannot acquire core resources related to all live broadcast rooms in the server through the core codes, and the safety of the core resources of the live broadcast platforms is ensured. Because the encrypted core code is pre-embedded in the page template, the client does not need to encrypt the core code on site when accessing, and the access speed of the user can be improved.
Further, in this embodiment, the server generates a key corresponding to the room number of each live broadcast room by using a preset key generation algorithm, and the method may be implemented by the following steps:
acquiring a timestamp and preset data information;
and generating a key corresponding to the room number by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information.
Specifically, in this embodiment, in order to generate different keys for different live broadcast rooms, the server may generate a key corresponding to the live broadcast room based on the room number because the room numbers of the live broadcast rooms are different. The key is used for encrypting the core code of the live broadcast room and is also used for decrypting the encrypted core code. Such as: an MD5 algorithm is adopted to generate KEYs corresponding to various live broadcasting rooms, the MD5 algorithm is expressed as KEY-MD5. Create (roommId + Time + data), wherein MD5.Create is a calculation interface of the HASH algorithm MD5 algorithm, roommId is a room number of a live broadcasting room, KEY value is a KEY corresponding to the room number, Time is a Time stamp and can be set to the date of the day so that the KEY value is frequently transformed, and data is constant data to prevent the algorithm for generating the KEYs from being cracked.
In this embodiment, the server uses a symmetric encryption algorithm, so both encryption and decryption are the same key. The server stores the key corresponding to the threshold value for each live broadcast room, and when the subsequent client logs in the live broadcast room, the server can issue the key to the client.
In order to further improve the security of the core code, in this embodiment, after generating the key corresponding to the room number of each live broadcast room by using a preset key generation algorithm based on the room number, the timestamp, and the preset data information, the method further includes the following steps:
updating a key corresponding to the room number of each live broadcast room according to a preset time interval, wherein when the key corresponding to the room number of each live broadcast room is updated, the timestamp is time information during updating;
updating the encrypted core code corresponding to each live broadcast room based on the updated key corresponding to the room number of each live broadcast room;
and pre-embedding each updated encryption core code in a page template corresponding to the live broadcast room corresponding to the encryption core code.
Specifically, in this embodiment, the key corresponding to each live broadcast room needs to be updated according to a preset time interval. Such as: and updating the corresponding key of each live broadcast room at intervals of 24 hours, 12 hours, 6 hours and the like. As can be seen from the foregoing example, when the key corresponding to each live broadcast room is generated, the timestamp needs to be acquired, and when the key corresponding to the room number of the live broadcast room is updated, the timestamp is time information at the time of update. Such as: the timestamp adopted when the first key of the first live broadcast room is generated last time is the time T1 at that time, the first key corresponding to the time is regenerated after the interval of 24 hours, the timestamp adopted at this time is the time T2, and the interval between T1 and T2 is 24 hours.
After the key corresponding to each live broadcast room is updated, the encrypted core code corresponding to each live broadcast room needs to be updated, that is, the core password is re-encrypted by using the updated key. And after the updated key is adopted to re-encrypt the core password of the corresponding live broadcast room, re-embedding the re-encrypted core code into the corresponding webpage template. In the specific implementation process, the preset time interval for updating each live broadcast room may be the same or different, and the preset time interval may be set according to actual needs, and herein, the present application is not limited.
Because the key for encrypting and decrypting the core code is continuously updated, even if an illegal client steals the key before updating, the core code cannot be decrypted if the updated key is not obtained in time, and the security of the core code can be further ensured.
In order to better understand the scheme in this embodiment, a complete description of the information processing method in this embodiment is provided below in a complete embodiment.
For the first live broadcast room, firstly, the server determines the JavaScript code of the core in the HTML5 for the first live broadcast room as the subsequent core code to be encrypted. Since the JavaScript code is a script language, the plaintext is stored in the page corresponding to the first live broadcast room, and is very easy to steal and parse. Therefore, the core JavaScript code which is important in the first direct broadcasting time needs to be encrypted and then stored in the page template, so that illegal clients can be prevented from stealing the core code. The encrypted core code is stored in the page template in the form of global data, and the effect of hiding the code can be achieved. Which codes are specifically selected as core codes according to needs. Such as: for the live platform, codes for acquiring room user information or acquiring data of interest of a user are important codes and can be selected as core codes.
Assume the core code JavaScript code as follows:
function add32(x,y){
var lsw=(x&0xFFFF)+(y&0xFFFF),
msw=(x>>16)+(y>>16)+(lsw>>16);
return(msw<<16)|(lsw&0xFFFF);
}
the code segment is a code obtained by performing a series of operations on the input parameters X and Y to obtain a result.
Then, the server calculates an MD5 value according to the room number of the first live broadcast room, so as to obtain a KEY1 value of an encryption algorithm and a decryption algorithm, which is specifically implemented as follows:
KEY1=MD5.Create(roomId1+Time+data);
create is the calculation interface of the HASH algorithm MD5 algorithm, roommid 1 is the room number of the first live room, Time is the date of the day. data is a constant data to prevent the KEY1 algorithm from being broken, and KEY1 is a KEY to be obtained and used later to encrypt the core code.
Because a symmetric encryption algorithm is used, both encryption and decryption are the same KEY1 value. The server stores the corresponding KEY1 value for the room number of the first live broadcast room, i.e. the KEY1 value corresponding to the first live broadcast room obtained in the manner described above. When the subsequent client logs in the first live broadcast room, the server will issue the KEY1 value corresponding to the first live broadcast room to the client. The server may re-compute the KEY value in a procedural manner to achieve the update of the encrypted core code.
Furthermore, after the core code of the first live broadcast room is selected and the KEY1 value corresponding to the first live broadcast room is calculated, the core code needs to be encrypted by using the KEY1 value. The present embodiment uses the same KEY1 value for encryption and decryption, so a symmetric encryption algorithm is used to encrypt the core code. Specifically, a data encryption standard algorithm DES may be adopted, which is specifically expressed as follows:
EncryptJs=DES.Encrypt(add32,KEY1);
Encrypt is the encryption interface Encrypt of the encryption algorithm DES, and the parameter add32 is the core code of the first live broadcast room selected in the previous steps. The parameter KEY1 is a KEY corresponding to the first live broadcast room, encrypt js is a string of encrypted data obtained by using a DES algorithm, and the server stores the encrypted data in a page template corresponding to the first live broadcast room.
The original core code is:
function add32(x,y){
var lsw=(x&0xFFFF)+(y&0xFFFF),
msw=(x>>16)+(y>>16)+(lsw>>16);
return(msw<<16)|(lsw&0xFFFF);
}
the encryption core code obtained by adopting the method is as follows:
870c3e99245e0d1c06b747deb3124dc843bb8ba61f035a7d0938251f5dd4cbfc96f5453b130d890a1cdbae32209a50ee407836fd124932f69e7d49dcad4f14f2444066d06bc430b7323ba122f622919de18b1fdab0ca9902b9729d492c807ec599d5e980b2eac9cc53bf67d6bf14d67e2ddc8e6683ef574961ff698f61cdd11e9d9c167272e61df0844f4a7702d7e8392c53cbc9121e。
that is, the original core code is changed into a piece of data without any readable meaning. The server may store the encrypted core code in the form of constant data in the page template, for example, a string variable VarencryptCode ═ EncryptJs is defined for storage.
Furthermore, after the client logs in the live broadcast platform server, when the client opens the first live broadcast room to view live broadcast video, firstly, the client requests the page template data of the first live broadcast room, including CSS, pictures, JavaScript core codes and the like, the server issues a KEY (KEY 1 value in the foregoing step) of the decryption core code corresponding to the room number of the first live broadcast room, and the client calls a corresponding decryption algorithm to decrypt the encryption core code pre-embedded in the page template, which is specifically implemented as follows:
add32=DES.Decrypt(encryptCode,KEY1);
Decrypt is an interface of a corresponding decryption algorithm, encryptCode is an encrypted core code pre-embedded in a page template obtained through the steps, KEY1 is a KEY which is logged in a server and issued by the server to a client, and add32 is an original code of the decrypted core code.
Referring to fig. 2, a second embodiment of the present invention provides an information processing method applied to a client for installing a live platform, including:
s201: sending an access request aiming at a first live broadcast room to a server of the live broadcast platform, wherein the access request is a request sent to the server when a user of the client logs in the live broadcast platform and opens the first live broadcast room;
s202: receiving a first secret key which is sent by the server and corresponds to the room number of the first live broadcast room;
s203: and calling a preset decryption algorithm to decrypt the encrypted core codes pre-embedded in the page template corresponding to the first direct broadcasting time based on the first key to obtain decrypted core codes.
Specifically, in this embodiment, the information processing method is applied to a client, where the client may be a terminal device such as a smart phone, a tablet computer, a desktop computer, or other electronic devices, and the application is not limited herein. The client is provided with a live broadcast platform, the live broadcast platform is based on HTML5, and a server corresponding to the live broadcast platform is a server of HTML 5. Of course, the information processing method may also be applied to clients of other live broadcast platforms where source codes are issued, and the application is not limited herein.
And generating a key corresponding to each room number of the live broadcast room in advance in the server, and storing the key corresponding to each room number in a local cache. Furthermore, the server encrypts the core code corresponding to each live broadcast room by using a preset encryption algorithm based on the key corresponding to each room number. And then, embedding the encrypted core codes corresponding to each live broadcast room in the corresponding page template.
Such as: the live broadcast platform comprises a live broadcast room 1, a live broadcast room 2 and a live broadcast room 3. The room number of live broadcast room 1 is a1, the room number of live broadcast room 2 is a2, and the room number of live broadcast room 3 is A3. The live broadcast room 1 corresponds to the core code B1 and the core code B2, the live broadcast room 2 corresponds to the core code B3, and the live broadcast room 3 corresponds to the core code B4. The server is provided with a page template 1 corresponding to the live broadcast room 1, a page template 2 corresponding to the live broadcast room 2 and a page template 3 corresponding to the live broadcast room 3.
Further, the server generates a key 1 corresponding to room number a1 using a preset key generation algorithm, generates a key 2 corresponding to room number a2 using a preset key generation algorithm, and generates a key 3 corresponding to room number A3 using a preset key generation algorithm. The server stores key 1, key 2, and key 3 in a local cache. The keys corresponding to different room numbers are different.
Furthermore, the server encrypts the core code B1 by using the preset encryption algorithm based on the key 1 to generate an encrypted core code B11, and at the same time, the server encrypts the core code B2 by using the preset encryption algorithm based on the key 1 to generate an encrypted core code B12. Similarly, the server encrypts the core code B3 by using the preset encryption algorithm based on the key 2 to generate an encrypted core code B23, and the server encrypts the core code B4 by using the preset encryption algorithm based on the key 3 to generate an encrypted core code B34. Further, the server pre-embeds the encryption core code B11 and the encryption core code B12 in the page template 1, the encryption core code B23 in the page template 2, and the encryption core code B34 in the page template 3.
In this embodiment, the live broadcast platform is a live broadcast platform based on HTML5, the server is a server based on HTML5, the core code corresponding to each live broadcast room is a JavaScript code, and the core code corresponding to each live broadcast room can be set to a code for acquiring user information corresponding to the live broadcast room, a code for acquiring user attention data corresponding to the live broadcast room, and the like.
Meanwhile, the preset key generation algorithms for generating the keys corresponding to the room numbers of the respective live broadcast rooms may be the same or different, and the preset key generation algorithms may be MD5(Message-Digest Algorithm 5), hash algorithms, and the like. In a specific implementation process, a preset key generation algorithm for generating keys corresponding to room numbers of all live rooms can be set according to actual needs, and the application is not limited herein. Meanwhile, based on the key corresponding to the room number, the preset encryption algorithm for encrypting the core code of the live broadcast room corresponding to the room number can be set according to actual needs, and the method is not limited herein.
Furthermore, a live broadcast platform is installed in the client, the client logs in a server of the live broadcast platform after being verified by an account password, when the client opens a first live broadcast room for watching, the client sends an access request aiming at the first live broadcast room to the server, the request carries a room number of the first live broadcast room, and the access request comprises data in a page template requesting the first live broadcast room, and the access request comprises the following steps: cascading style sheets CSS, pictures, JavaScript code, etc. And the JavaScript code comprises an encryption core code of the first live broadcast room.
After the server receives the access request and determines a room number corresponding to a first live broadcast room, a first secret key corresponding to the room number is obtained based on the corresponding relation between the room number and the secret key, the first secret key is sent to the client side, and after the client side receives the first secret key, the client side can decrypt an encrypted core code of the first live broadcast room by adopting a preset decryption algorithm based on the first secret key to obtain a decrypted core code, so that the corresponding core code is called to obtain a core resource in the server where the core code is needed.
The server only sends the key to the legal client which logs in the live broadcast platform server, so that the safety of resources in the server can be improved. In addition, different keys are corresponding to different live broadcast rooms, and an illegal client is difficult to acquire the keys corresponding to all live broadcast platforms, so that encrypted core codes corresponding to all live broadcast rooms can be effectively prevented from being easily cracked, the illegal client cannot acquire core resources related to all live broadcast rooms in the server through the core codes, and the safety of the core resources of the live broadcast platforms is ensured. Because the encrypted core code is pre-embedded in the page template, the client does not need to encrypt the core code on site when accessing, and the access speed of the user can be improved.
Further, in this embodiment, in order to generate different keys for different live rooms, the server may generate a key corresponding to a corresponding live room based on the room number because the room numbers of the live rooms are different. The key is used for encrypting the core code of the live broadcast room and is also used for decrypting the encrypted core code. Such as: an MD5 algorithm is adopted to generate KEYs corresponding to various live broadcasting rooms, the MD5 algorithm is expressed as KEY-MD5. Create (roommId + Time + data), wherein MD5.Create is a calculation interface of the HASH algorithm MD5 algorithm, roommId is a room number of a live broadcasting room, KEY value is a KEY corresponding to the room number, Time is a Time stamp and can be set to the date of the day so that the KEY value is frequently transformed, and data is constant data to prevent the algorithm for generating the KEYs from being cracked.
In this embodiment, the server uses a symmetric encryption algorithm, so both encryption and decryption are the same key. The server stores the key corresponding to the threshold value for each live broadcast room, and when the subsequent client logs in the live broadcast room, the server can issue the key to the client.
In order to further improve the security of the core code, in this embodiment, the key corresponding to each live broadcast room needs to be updated according to a preset time interval. Such as: and updating the corresponding key of each live broadcast room at intervals of 24 hours, 12 hours, 6 hours and the like. As can be seen from the foregoing example, when the key corresponding to each live broadcast room is generated, the timestamp needs to be acquired, and when the key corresponding to the room number of the live broadcast room is updated, the timestamp is time information at the time of update. Such as: the timestamp adopted when the first key of the first live broadcast room is generated last time is the time T1 at that time, the first key corresponding to the time is regenerated after the interval of 24 hours, the timestamp adopted at this time is the time T2, and the interval between T1 and T2 is 24 hours.
After the server updates the key corresponding to each live broadcast room, the encrypted core code corresponding to each live broadcast room needs to be updated, that is, the core password is re-encrypted by using the updated key. And after the updated key is adopted to re-encrypt the core password of the corresponding live broadcast room, re-embedding the re-encrypted core code into the corresponding webpage template. In the specific implementation process, the preset time interval for updating each live broadcast room may be the same or different, and the preset time interval may be set according to actual needs, and herein, the present application is not limited.
Because the key for encrypting and decrypting the core code is continuously updated, even if an illegal client steals the key before updating, the core code cannot be decrypted if the updated key is not obtained, and the security of the core code can be further ensured.
Referring to fig. 3, a third embodiment of the present invention provides a server, where the server corresponds to a live platform, and the server includes:
a receiving unit 301, configured to receive an access request sent by a client, where the access request is sent when the client opens a first live broadcast room after logging in the server through the installed live broadcast platform;
An obtaining unit 302, configured to obtain a first key corresponding to a room number of the first live broadcast room;
a sending unit 303, configured to send the first key to the client, so that after the client receives the first key, the client invokes a preset decryption algorithm to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcast based on the first key.
Further, in this embodiment, the server further includes:
the encryption unit is used for acquiring the room number of each live broadcast room of the live broadcast platform before receiving an access request sent by a client; generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm; based on the key corresponding to the room number of each live broadcast room, encrypting the core code of the live broadcast room by adopting a preset encryption algorithm to obtain an encrypted core code corresponding to each live broadcast room; and pre-embedding the encrypted core code corresponding to each live broadcast room in a page template corresponding to the live broadcast room.
The encryption unit is further configured to:
acquiring a timestamp and preset data information;
and generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information.
To further ensure the security of the core code of the live broadcast room, the server further comprises:
the updating unit is used for updating the key corresponding to the room number of each live broadcast room according to a preset time interval after the key corresponding to the room number of each live broadcast room is generated by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information, and the timestamp is time information during updating when the key corresponding to the room number of each live broadcast room is updated; updating the encrypted core code corresponding to each live broadcast room based on the updated key corresponding to the room number of each live broadcast room; and pre-embedding each updated encryption core code in a page template corresponding to the live broadcast room corresponding to the encryption core code.
Referring to fig. 4, a fourth embodiment of the present invention provides a client installed with a live platform end, including:
a sending unit 401, configured to send an access request for a first live broadcast room to a server of the live broadcast platform, where the access request is a request sent to the server when a user of the client logs in the live broadcast platform and opens the first live broadcast room;
A receiving unit 402, configured to receive a first key corresponding to the room number of the first live broadcast room, where the first key is sent by the server;
a decryption unit 403, configured to invoke a preset decryption algorithm to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcast based on the first key, so as to obtain a decrypted core code.
Referring to fig. 5, a fifth embodiment of the present invention provides a server, where the server of the embodiment includes: a processor 501, a memory 502, and a computer program stored in the memory and operable on the processor, for example, a program corresponding to the information processing method in the first embodiment. The processor, when executing the computer program, implements the steps in the authentication in the first embodiment described above. Alternatively, the processor implements the functions of the modules/units in the server of the third embodiment described above when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the computer apparatus. For example, the computer program may be divided into functions of a receiving unit, an obtaining unit, and a transmitting unit, and the specific functions of each unit are as follows:
The receiving unit is used for receiving an access request sent by a client, wherein the access request is sent when the client logs in the server through the installed live broadcast platform and then opens a first live broadcast time;
the acquisition unit is used for acquiring a first key corresponding to the room number of the first live broadcast room;
and the sending unit is used for sending the first key to the client, and is used for calling a preset decryption algorithm to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcasting room based on the first key after the client receives the first key.
The server may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the schematic diagram 5 is merely an example of a computer apparatus and is not intended to limit a server, which may include more or fewer components than those shown, or some components in combination, or different components, for example, the server may also include input output devices, network access devices, buses, etc.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory 502 may be used to store the computer programs and/or modules, and the processor may implement the various functions of the computer device by running or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Referring to fig. 6, a sixth embodiment of the present invention provides a client, where the client of this embodiment includes: a processor 601, a memory 602, and a computer program stored in the memory and operable on the processor, for example, a program corresponding to the information processing method in the first embodiment. The processor, when executing the computer program, implements the steps in the authentication in the first embodiment described above. Alternatively, the processor implements the functions of the modules/units in the client according to the third embodiment when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the computer apparatus. For example, the computer program may be divided into functions of a transmitting unit, a receiving unit, and a decrypting unit, and the specific functions of each unit are as follows:
a sending unit, configured to send an access request for a first live broadcast room to a server of the live broadcast platform, where the access request is a request sent to the server when a user of the client logs in the live broadcast platform and opens the first live broadcast room;
the receiving unit is used for receiving a first secret key which is sent by the server and corresponds to the room number of the first live broadcast room;
and the decryption unit is used for calling a preset decryption algorithm to decrypt the encrypted core code pre-embedded in the page template corresponding to the first direct broadcast based on the first key to obtain a decrypted core code.
The client may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the schematic diagram 5 is merely an example of a computer apparatus and is not intended to limit the client, and may include more or fewer components than those shown, or some components in combination, or different components, for example, the client may also include input and output devices, network access devices, buses, etc.
The Processor 601 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory 602 may be used to store the computer programs and/or modules, and the processor may implement the various functions of the computer device by running or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
A seventh embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and the server in the third embodiment and the client-integrated functional unit in the fourth embodiment of the present invention may be stored in one computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow in the information processing method according to the first embodiment may be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above method embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In the technical scheme of the embodiment of the invention, the server embeds the encrypted core codes corresponding to each live broadcast room of the live broadcast platform in the corresponding page template, when the client logs in the live broadcast platform to open the first live broadcast room, the client sends an access request aiming at the first live broadcast room to the server, the server determines a first key corresponding to the room number of the first live broadcast room after receiving the access request, and then sends the first key to the client, and after receiving the first key, the client can decrypt the encrypted core codes embedded in the page template corresponding to the first live broadcast room by using the first key and a preset decryption algorithm to obtain the decrypted core codes. The server only sends the key to the legal client which logs in the live broadcast platform server, and the illegal client is difficult to obtain the keys corresponding to all the live broadcast platforms due to the fact that different live broadcast rooms correspond to different keys, so that the encrypted core codes corresponding to all the live broadcast rooms can be effectively prevented from being easily cracked, the illegal client cannot obtain the core resources related to all the live broadcast rooms in the server through the core codes, and the safety of the core resources of the live broadcast platforms is guaranteed.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. An information processing method is applied to a server of a live broadcast platform, and is characterized by comprising the following steps:
acquiring a room number, a timestamp and preset data information of each live broadcast room of the live broadcast platform;
generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information;
based on the key corresponding to the room number of each live broadcast room, encrypting the core code of the live broadcast room by adopting a preset encryption algorithm to obtain an encrypted core code corresponding to each live broadcast room;
Embedding the encrypted core code corresponding to each live broadcast room in a page template corresponding to the live broadcast room;
receiving an access request sent by a client, wherein the client is provided with the live broadcast platform, and the access request is sent when the client opens a first live broadcast time after logging in a server of the live broadcast platform;
acquiring a first key corresponding to the room number of the first live broadcast room, wherein different keys corresponding to room numbers of different live broadcast rooms are prestored in the server;
sending the first key to the client, so that after the client receives the first key, a preset decryption algorithm is called to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcasting on the basis of the first key;
wherein, the live platform is HTML5 live platform, the server is HTML5 server, the core code includes: and acquiring a code of user information corresponding to the live broadcast room and a code of user attention data corresponding to the live broadcast room.
2. The method of claim 1, wherein after the generating a key corresponding to the room number of each live broadcast room using a preset key generation algorithm based on the room number, the timestamp, and the preset data information, the method further comprises:
Updating a key corresponding to the room number of each live broadcast room according to a preset time interval, wherein when the key corresponding to the room number of each live broadcast room is updated, the timestamp is time information during updating;
updating the encrypted core code corresponding to each live broadcast room based on the updated key corresponding to the room number of each live broadcast room;
and pre-embedding each updated encryption core code in a page template corresponding to the live broadcast room corresponding to the encryption core code.
3. An information processing method is applied to a client side for installing a live broadcast platform, and is characterized in that the live broadcast platform is an HTML5 live broadcast platform, and the method comprises the following steps:
sending an access request aiming at a first live broadcast room to a server of the live broadcast platform, wherein the access request is a request sent to the server when a user of the client logs in the live broadcast platform and opens the first live broadcast room;
receiving a first secret key which is sent by the server and corresponds to the room number of the first live broadcast room;
based on the first secret key, calling a preset decryption algorithm to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcasting so as to obtain a decrypted core code;
The encryption core code is obtained by the server by adopting the following method:
acquiring a room number, a timestamp and preset data information of each live broadcast room of the live broadcast platform;
generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information;
based on the key corresponding to the room number of each live broadcast room, encrypting the core code of the live broadcast room by adopting a preset encryption algorithm to obtain an encrypted core code corresponding to each live broadcast room;
the core code includes: and acquiring a code of user information corresponding to the live broadcast room and a code of user attention data corresponding to the live broadcast room.
4. A server, the server corresponding to a live platform, the server comprising:
an encryption unit: the system comprises a live broadcast platform, a server and a server, wherein the live broadcast platform is used for acquiring room numbers, timestamps and preset data information of each live broadcast room of the live broadcast platform; generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information; based on the key corresponding to the room number of each live broadcast room, encrypting the core code of the live broadcast room by adopting a preset encryption algorithm to obtain an encrypted core code corresponding to each live broadcast room; embedding the encrypted core code corresponding to each live broadcast room in a page template corresponding to the live broadcast room;
The receiving unit is used for receiving an access request sent by a client, wherein the access request is sent when the client logs in the server through the installed live broadcast platform and then opens a first live broadcast time;
the acquisition unit is used for acquiring a first key corresponding to the room number of the first live broadcast room;
the sending unit is used for sending the first key to the client, and calling a preset decryption algorithm to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcasting room based on the first key after the client receives the first key;
wherein, the live platform is HTML5 live platform, the server is HTML5 server, the core code includes: and acquiring a code of user information corresponding to the live broadcast room and a code of user attention data corresponding to the live broadcast room.
5. The utility model provides a client, live platform end is installed to the client, its characterized in that, live platform is the live platform of HTML5, the client includes:
a sending unit, configured to send an access request for a first live broadcast room to a server of the live broadcast platform, where the access request is a request sent to the server when a user of the client logs in the live broadcast platform and opens the first live broadcast room;
The receiving unit is used for receiving a first secret key which is sent by the server and corresponds to the room number of the first live broadcast room;
the decryption unit is used for calling a preset decryption algorithm to decrypt an encrypted core code pre-embedded in a page template corresponding to the first direct broadcast based on the first key to obtain a decrypted core code;
the encryption core code is obtained by the server by adopting the following method:
acquiring a room number, a timestamp and preset data information of each live broadcast room of the live broadcast platform;
generating a key corresponding to the room number of each live broadcast room by adopting a preset key generation algorithm based on the room number, the timestamp and the preset data information;
based on the key corresponding to the room number of each live broadcast room, encrypting the core code of the live broadcast room by adopting a preset encryption algorithm to obtain an encrypted core code corresponding to each live broadcast room;
the core code includes: and acquiring a code of user information corresponding to the live broadcast room and a code of user attention data corresponding to the live broadcast room.
6. A server, characterized in that the server comprises a processor for implementing the steps of the information processing method according to any one of claims 1-2 when executing a computer program stored in a memory.
7. A client, characterized in that it comprises a processor for implementing the steps of the information processing method as claimed in claim 3 when executing a computer program stored in a memory.
8. A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the information processing method according to any one of claims 1 to 3.
CN201810015938.9A 2018-01-08 2018-01-08 Information processing method, server, client and readable storage medium Active CN108055356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810015938.9A CN108055356B (en) 2018-01-08 2018-01-08 Information processing method, server, client and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810015938.9A CN108055356B (en) 2018-01-08 2018-01-08 Information processing method, server, client and readable storage medium

Publications (2)

Publication Number Publication Date
CN108055356A CN108055356A (en) 2018-05-18
CN108055356B true CN108055356B (en) 2021-03-16

Family

ID=62126950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810015938.9A Active CN108055356B (en) 2018-01-08 2018-01-08 Information processing method, server, client and readable storage medium

Country Status (1)

Country Link
CN (1) CN108055356B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355986B (en) * 2018-12-21 2022-01-04 腾讯科技(深圳)有限公司 Message processing method and device in live broadcast room and storage medium
CN111125667A (en) * 2019-12-09 2020-05-08 北京握奇智能科技有限公司 Roaming key calling method, device and system
CN111565177B (en) * 2020-04-26 2022-07-19 蘑菇车联信息科技有限公司 Vehicle-mounted machine data encryption transmission method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933766A (en) * 2016-01-21 2016-09-07 上海东方明珠新媒体股份有限公司 WebOS system based on set top box and set top box
CN106971111A (en) * 2017-02-13 2017-07-21 武汉斗鱼网络科技有限公司 Data ciphering method, terminal and server
CN107066843A (en) * 2017-03-31 2017-08-18 武汉斗鱼网络科技有限公司 A kind of method and device protected to application program
CN107426151A (en) * 2017-03-31 2017-12-01 武汉斗鱼网络科技有限公司 A kind of file decryption method and device
CN107454441A (en) * 2017-06-30 2017-12-08 武汉斗鱼网络科技有限公司 A kind of method for detecting direct broadcasting room brush popularity behavior and live Platform Server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012129549A1 (en) * 2011-03-23 2012-09-27 General Instrument Corporation System and methods for providing live streaming content using digital rights management-based key management
CN102438172A (en) * 2011-03-28 2012-05-02 苏州汉辰数字科技有限公司 System for realizing video-on-demand (VOD) and push VOD by cloud computing technology and method thereof
CN107483509B (en) * 2017-10-09 2019-12-03 武汉斗鱼网络科技有限公司 A kind of auth method, server and readable storage medium storing program for executing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933766A (en) * 2016-01-21 2016-09-07 上海东方明珠新媒体股份有限公司 WebOS system based on set top box and set top box
CN106971111A (en) * 2017-02-13 2017-07-21 武汉斗鱼网络科技有限公司 Data ciphering method, terminal and server
CN107066843A (en) * 2017-03-31 2017-08-18 武汉斗鱼网络科技有限公司 A kind of method and device protected to application program
CN107426151A (en) * 2017-03-31 2017-12-01 武汉斗鱼网络科技有限公司 A kind of file decryption method and device
CN107454441A (en) * 2017-06-30 2017-12-08 武汉斗鱼网络科技有限公司 A kind of method for detecting direct broadcasting room brush popularity behavior and live Platform Server

Also Published As

Publication number Publication date
CN108055356A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
US9648027B2 (en) Segment authentication for dynamic adaptive streaming
WO2017215514A1 (en) Audio/video encrypted playing method and system thereof
EP2835933B1 (en) Method, device and system for implementing media data processing
CN104471913A (en) Signaling and handling content encryption and rights management in content transport and delivery
US20160063223A1 (en) Distributing protected content
US20150121484A1 (en) System and method for signaling and verifying url signatures for both url authentication and url-based content access authorization in adaptive streaming
US9369288B1 (en) Video data delivery protection
US20130129086A1 (en) Downloading of Data to Secure Devices
CN108055356B (en) Information processing method, server, client and readable storage medium
JP2008524681A (en) Systems and methods for enhancing network cluster proximity requirements
CN111970109B (en) Data transmission method and system
JP2008538676A (en) Rights management for streamed multimedia content
US20210192551A1 (en) Using hashed media identifiers to determine audience measurement data including demographic data from third party providers
CN104540016A (en) Video playing method and device
US20160182466A1 (en) TransDRM for Streaming Media
US20150121073A1 (en) Software fingerprinting
CN110798714B (en) HLS-based local video playing system and playing method
JP2008177752A (en) Key management device, terminal device, content management device, and computer program
CN107087004A (en) Source file processing method and processing device, source file acquisition methods and device
CN110912941A (en) Transmission processing method and device for multicast data
CN110008654B (en) Electronic file processing method and device
CN112560003A (en) User authority management method and device
KR101701625B1 (en) Method and system for reproducing contents by secure acquiring decryption key for encrypted contents
JP6013233B2 (en) Content distribution system, apparatus and program
US20170054553A1 (en) Using web entropy to scramble messages

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