CN109768978A - A kind of method and relevant apparatus of obfuscated data - Google Patents

A kind of method and relevant apparatus of obfuscated data Download PDF

Info

Publication number
CN109768978A
CN109768978A CN201910038573.6A CN201910038573A CN109768978A CN 109768978 A CN109768978 A CN 109768978A CN 201910038573 A CN201910038573 A CN 201910038573A CN 109768978 A CN109768978 A CN 109768978A
Authority
CN
China
Prior art keywords
live streaming
rule
platform server
live
streaming platform
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
Application number
CN201910038573.6A
Other languages
Chinese (zh)
Other versions
CN109768978B (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 CN201910038573.6A priority Critical patent/CN109768978B/en
Publication of CN109768978A publication Critical patent/CN109768978A/en
Application granted granted Critical
Publication of CN109768978B publication Critical patent/CN109768978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of method of obfuscated data and relevant apparatus, for improving the safety of direct broadcasting room information transmitting.The method comprise the steps that live streaming Platform Server obscures acquisition rule with the client negotiation for having updated live streaming APP;The live streaming Platform Server obscures acquisition rule according to, and timing acquisition obscures rule in the database;The live streaming Platform Server obscures rule according to and obscures main broadcaster's information between current live, obtains obfuscated data;The live streaming Platform Server obtains the turnover rate of the live streaming APP, and judges whether the turnover rate is greater than preset value;If the turnover rate is greater than the preset value, then the live streaming Platform Server sends the obfuscated data to user client, so that the user client obscures main broadcaster's information rule is restored to obtain the current live between the obfuscated data according to, the corresponding user of the user client is the user between the current live.

Description

A kind of method and relevant apparatus of obfuscated data
Technical field
The present invention relates to development platform field more particularly to the methods and relevant apparatus of a kind of obfuscated data.
Background technique
With the continuous universal and development of network, live streaming becomes more and more popular with users on line.Existing live streaming platform It says, some sensitive datas such as attention number, number of fans of the main broadcaster of direct broadcasting room etc., is all owning after logging in direct broadcasting room in plain text Spectators can know these sensitive datas.
However, in the prior art, since these sensitive datas of main broadcaster are in plain text, to be easy to be stolen by illegal hacker, therefore How to guarantee that the safety of these sensitive datas becomes a urgent problem to be solved.
Summary of the invention
The embodiment of the invention provides a kind of method of obfuscated data and relevant apparatus, for improving the transmitting of direct broadcasting room information Safety.
The first aspect of the embodiment of the present invention provides a kind of method of obfuscated data, comprising: live streaming Platform Server with Acquisition rule is obscured in the client negotiation for having updated live streaming APP;The live streaming Platform Server obscures acquisition rule according to Timing acquisition obscures rule in the database;The live streaming Platform Server obscures rule for the master between current live according to It broadcasts information to be obscured, obtains obfuscated data;The live streaming Platform Server obtains the turnover rate of the live streaming APP, and judges Whether the turnover rate is greater than preset value;If the turnover rate be greater than the preset value, the live streaming Platform Server to Family client sends the obfuscated data so that the user client obscure according to it is regular to the obfuscated data into Row reduction obtains main broadcaster's information between the current live, and the corresponding user of the user client is between the current live User.
In a kind of possible embodiment, the live streaming Platform Server is negotiated mixed with the client for having updated live streaming APP Confusing, to obtain rule include: that the live streaming Platform Server generates first message, and the first message includes that the live streaming platform takes Business device obscures the time of rule and the corresponding time obscures acquisition rule described in obtaining;The live streaming Platform Server uses Predetermined encryption algorithm encrypts the first message, and sends first message to the client for having updated live streaming APP.
In a kind of possible embodiment, the live streaming Platform Server obscures rule according to will be between current live Main broadcaster's information is obscured, and obtaining obfuscated data includes: that the live streaming Platform Server believes the main broadcaster between the current live Breath carries out attributive classification, obtains M attribute information, and the M is the integer not less than 1;The live streaming Platform Server is described It selects M hash algorithm to carry out Hash operation to the M attribute information respectively in database, obtains M group hash value, the M Group hash value is contained in the obfuscated data.
In a kind of possible embodiment, the turnover rate that the live streaming Platform Server obtains the live streaming APP includes: institute State the turnover rate that live streaming Platform Server receives the live streaming APP that management server is sent;Or, the direct broadcast server according to Following manner calculates the turnover rate of the live streaming APP: G=M/N;Wherein, the G is used to indicate the turnover rate of live streaming APP, described M is used to indicate the quantity of the client for having updated live streaming APP, and the N is used to indicate to register all visitors of the live streaming APP The quantity at family end.
In a kind of possible embodiment, the method also includes: it is described straight if the turnover rate is less than the preset value It broadcasts Platform Server and sends main broadcaster's information between the obfuscated data and the current live to the user client.
The second aspect of the embodiment of the present invention provides a kind of method of obfuscated data, comprising: user client and live streaming Acquisition rule is obscured in Platform Server negotiation;Based on hypertext transfer protocol http interface, the user client is according to Obscuring acquisition rule, rule is obscured in acquisition in the database;The user client receives what the live streaming Platform Server was sent Obfuscated data, the obfuscated data are that the live streaming Platform Server obscures rule to main broadcaster's letter current live according to Breath carries out obscuring acquisition;The user client is obscured rule according to and is restored to the obfuscated data, obtains described Main broadcaster's information between current live.
The third aspect of the embodiment of the present invention provides a kind of live streaming Platform Server, comprising: determination unit, for Acquisition rule is obscured in the client negotiation for updating live streaming APP;Acquiring unit obtains rule in database for obscuring according to Middle timing acquisition obscures rule;Obfuscation unit mixes main broadcaster's information between current live for obscuring rule according to Confuse, obtains obfuscated data;The acquiring unit is also used to obtain the turnover rate of the live streaming APP, and judges that the turnover rate is It is no to be greater than preset value;If the turnover rate is greater than the preset value, the Transmit-Receive Unit is also used to send to user client The obfuscated data restores the obfuscated data to obtain institute so that the user client obscures rule according to State main broadcaster's information between current live, the corresponding user of the user client is the user between the current live.
In a kind of possible embodiment, the determination unit includes: generation module, described for generating first message First message includes the time that rule is obscured described in the live streaming Platform Server obtains and the corresponding time obscuring acquisition Rule;Sending module, for encrypting the first message using predetermined encryption algorithm, and to the visitor for having updated live streaming APP Family end sends first message.
In a kind of possible embodiment, the obfuscation unit be specifically used for by main broadcaster's information between the current live into Row attributive classification, obtains M attribute information, and the M is the integer not less than 1;M hash algorithm is selected in the database Hash operation is carried out to the M attribute information respectively, obtains M group hash value, the M group hash value be contained in described in obscure number According to.
In a kind of possible embodiment, the acquiring unit is specifically used for: receiving the described straight of management server transmission Broadcast the turnover rate of APP;Or, calculating the turnover rate of the live streaming APP: G=M/N according to following manner;Wherein, the G is used for table Show the turnover rate of live streaming APP, the M is used to indicate the quantity of the client for having updated live streaming APP, and the N is for indicating Register the quantity of all clients of the live streaming APP.
In a kind of possible embodiment, the Transmit-Receive Unit is also used to: if the turnover rate is less than the preset value, to The user client sends main broadcaster's information between the obfuscated data and the current live.
The fourth aspect of the embodiment of the present invention provides a kind of user client, comprising: Transmit-Receive Unit, for flat with live streaming Acquisition rule is obscured in the negotiation of platform server;Based on hypertext transfer protocol http interface, acquiring unit, for obscuring according to It obtains rule and obtains in the database and obscure rule;The Transmit-Receive Unit is also used to receive what the live streaming Platform Server was sent Obfuscated data, the obfuscated data are that the live streaming Platform Server obscures rule to main broadcaster's letter current live according to Breath carries out obscuring acquisition;Reduction unit restores the obfuscated data for obscuring rule according to, obtains described work as Main broadcaster's information of preceding direct broadcasting room.
Fifth aspect present invention provides a kind of electronic equipment, including memory, processor, which is characterized in that the place It is realized as described in above-mentioned first aspect any one when reason device is for executing the computer management class method stored in memory The step of method of obfuscated data.
The 6th aspect of the application provides a kind of computer readable storage medium, in the computer readable storage medium It is stored with instruction, when run on a computer, so that computer executes method described in above-mentioned various aspects.
The 7th aspect of the application provides a kind of computer program product comprising instruction, when it runs on computers When, so that computer executes method described in above-mentioned various aspects.
As can be seen from the above technical solutions, the embodiment of the present invention have the advantage that live streaming Platform Server with more Acquisition rule is obscured in the client negotiation of new live streaming APP;The live streaming Platform Server obscures acquisition rule in number according to Rule is obscured according to timing acquisition in library;The live streaming Platform Server obscures rule according to and believes the main broadcaster between current live Breath is obscured, and obfuscated data is obtained;The live streaming Platform Server obtains the turnover rate of the live streaming APP, and described in judgement Whether turnover rate is greater than preset value;If the turnover rate is greater than the preset value, the live streaming Platform Server is objective to user Family end sends the obfuscated data, goes back so that the user client obscures rule according to the obfuscated data Original obtains main broadcaster's information between the current live, and the corresponding user of the user client is the use between the current live Family.In the embodiment of the present invention, rule is obscured in live streaming Platform Server acquisition, and main broadcaster's information is obscured rule according to this and obscures it Afterwards, obfuscated data is obtained, and the obfuscated data is passed through into client, is continually changing, hacker due to obscuring rule It is which on earth that true data, which can not be cracked, improves the safety of direct broadcasting room information transmitting.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method for obfuscated data provided in an embodiment of the present invention;
Fig. 2 a is the structural schematic diagram of the possible live streaming Platform Server of one kind provided in an embodiment of the present invention;
Fig. 2 b is a kind of structural schematic diagram of possible user client provided in an embodiment of the present invention;
Fig. 3 a is a kind of hardware structural diagram of possible electronic equipment provided in an embodiment of the present invention;
Fig. 3 b is the hardware structural diagram of another possible electronic equipment provided in an embodiment of the present invention
Fig. 4 a is a kind of hardware structural diagram of possible computer readable storage medium provided in an embodiment of the present invention;
Fig. 4 b is the hardware structural diagram of another possible computer readable storage medium provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of method of obfuscated data and relevant apparatus, for improving the transmitting of direct broadcasting room information Safety.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without making creative work Example, shall fall within the protection scope of the present invention.
Referring to Fig. 1, being a kind of flow chart of the method for obfuscated data provided in an embodiment of the present invention, specifically include:
101, live streaming Platform Server obscures acquisition rule with the client negotiation for having updated live streaming APP;
In direct broadcast service, in order to guarantee direct broadcasting room main broadcaster sensitive data safety, for ease of description, the application In embodiment, which is known as main broadcaster's information, in practical application herein, or important information etc. is not done specifically It limits.Wherein, which can be attention number, the number of fans etc. of main broadcaster.In the present embodiment, based on main broadcaster's information is carried out Obscure, and be transferred to client, so that client carries out the also original mode for obtaining main broadcaster's information, to guarantee the main broadcaster after obscuring Information can not obtain the original text of main broadcaster's information, the transmission security of Lai Zengqiang main broadcaster's information obtained by a hacker.Therefore, may be used With understanding, in the embodiment of the present application, needs to carry out program update to the client for having installed live streaming APP, have it also Original obscure after main broadcaster's information ability.
Therefore client, after updating live streaming APP, the data to guarantee that live streaming Platform Server is obscured can be by client also Original need to guarantee that Platform Server, which is broadcast live, obscures rule unanimously with what client used, therefore before this, Platform Server be broadcast live Acquisition rule is obscured with the client negotiation for having updated live streaming APP.Specifically, negotiation mode specifically includes: live streaming platform service Device generates first message, and wherein first message includes that Platform Server is broadcast live and obtains to obscure the mixed of regular time and corresponding time Confuse and obtain rule, such as live streaming Platform Server once obscures rule every preset duration acquisition, it is false if the preset duration is 5s The time that rule is obscured in acquisition fixed for the first time is 3 points of 15s, this obscures acquisition rule to obtain at random;Second of acquisition is mixed The time for rule of confusing is 3 points of 20s, this acquisition rule of obscuring is that complementation obtains, i.e., according to for obscuring rule in database Room number several betweens of current lives carries out complementation processing, obtained remainder be to be obtained obscure rule in the database Serial number.In practical application, live streaming Platform Server can be shared with the client for having updated live streaming APP obscures acquisition rule list, This obscure obtain in rule list it is different obscure obtain the corresponding different identification information of rule, it is such as random to obtain corresponding mark letter Breath is 0, and it is 1 etc. that complementation, which obtains corresponding identification information, the identification information is carried in first message, so that client is according to the mark Know corresponding find out of information and obscures acquisition rule;After generating first message, to guarantee peace of the first message in transmission process Quan Xing, live streaming Platform Server encrypt the first message using predetermined encryption algorithm, and wherein the predetermined encryption algorithm can be pair Claim Encryption Algorithm or rivest, shamir, adelman etc., and sends first message to the client for having updated live streaming APP.
102, according to acquisition rule is obscured, timing acquisition obscures rule to live streaming Platform Server in the database;
After live streaming Platform Server obscures acquisition rule with the client negotiation for having updated live streaming APP, platform service is broadcast live Device obscures regular periodically obtain in the database of acquisition according to this and obscures rule.It should be noted that this obscures rule to be Various hash algorithms, such as md5, sha1, sha224, sha256, sha384 and sha512, specific the application is without limitation.? In the embodiment of the present application, in database include obscure rule list, this obscure rule list include it is a variety of obscure rule and respectively obscure rule Then corresponding sequence number.
For example, obtained if obscuring acquisition rule to be random, be broadcast live Platform Server in the database obscure rule list In obtain any obscure rule at random;If obscuring acquisition rule is that complementation obtains, Platform Server is broadcast live according in database The number for obscuring rule carries out complementation processing to the room number current live, and what obtained remainder as to be obtained obscures rule Serial number in the database, such as room number between current live are 200082, obscure and obscure the number of rule in rule list and be 50, then 200082%50=32, then obscure the regular rule to obscure serial number 32 in rule list.
It is understood that this, which obscures rule list, to constantly update in practical application, that is, obscure obscuring in rule list Rule can increase, and can also delete, so that the serial number for respectively obscuring rule obscured in rule list also can constantly change, increase Obscure the randomness of Rule.
103, live streaming Platform Server is obscured main broadcaster's information between current live according to obscuring regular, is obscured Data;
After rule is obscured in live streaming Platform Server acquisition, rule is obscured according to this, main broadcaster's information current live is carried out Obscure, specifically, main broadcaster's information between current live is carried out attributive classification by live streaming Platform Server, M attribute information is obtained, Wherein M is the integer not less than 1, for example it is assumed that main broadcaster's information includes attention number and number of fans, then it is available to carry out attributive classification The attention number of main broadcaster and the two generic attribute information of number of fans of main broadcaster;Live streaming Platform Server selects M Hash to calculate in the database Method carries out Hash operation to M attribute information respectively, obtains M group hash value, M group hash value is contained in obfuscated data, it can It is interpreted as, live streaming Platform Server can randomly choose 2 kinds of hash algorithms in the database, respectively to the attention number of main broadcaster and master The number of fans broadcast is obscured, such as is obscured using attention number of the md5 algorithm to main broadcaster, using sha512 algorithm to main broadcaster Number of fans obscured, and include corresponding Hash_id in the data after obscuring, used in indicating to be obscured Hash algorithm.It is understood that live streaming Platform Server can also using a kind of hash algorithm come to a variety of attribute informations into The quantity for the hash algorithm that row operation of confusion, i.e. live streaming Platform Server select in the database is not more than the number of attribute information Amount.
Wherein, data are obscured to obtain obfuscated data according to rule is obscured, specifically can be understood as, it is assumed that mixed 0 Confusing is one, and 1 to obscure be two, and 6 to obscure be seven, then obscures number 610, obtained obfuscated data is 721.It uses Obscure regular difference, obtained obfuscated data is also different, therefore in the embodiment of the present application, use obscure it is regular it is specific herein not It limits.
104, live streaming Platform Server obtains the turnover rate of live streaming APP, and judges whether turnover rate is greater than preset value;If big In thening follow the steps 105;If being less than, 106 are thened follow the steps;
105, live streaming Platform Server sends obfuscated data to user client;
106, live streaming Platform Server sends main broadcaster's information between obfuscated data and current live to user client;
Live streaming Platform Server obtains the turnover rate of live streaming APP, i.e., has currently updated the ratio of the client of live streaming APP Example, it should be noted that in practical application, there are many modes for the turnover rate that live streaming Platform Server obtains live streaming APP, packet It includes: 1) directly receiving the turnover rate for the live streaming APP that management server such as management backstage is sent;2) direct broadcast server is according to lower section Formula calculates the turnover rate of live streaming APP: G=M/N;Wherein, G is used to indicate the turnover rate of live streaming APP, and M is straight for indicating to have updated The quantity of the client of APP is broadcast, N is used to indicate the quantity of all clients of registration live streaming APP.Therefore, the mode of acquisition has It is a variety of, specifically herein without limitation.
After live streaming Platform Server obtains the turnover rate of live streaming APP, which is compared with preset value, if The turnover rate is less than preset value, then illustrates that the turnover rate of client not up to requires, execute step 106, is i.e. live streaming platform service Device to the main broadcaster's information and obfuscated data that the data that user client is sent include between the data i.e. current live that do not obscure, In, which is to watch the corresponding client of user of current live;If the turnover rate is greater than preset value, say The turnover rate of bright client has reached requirement, executes step 105, i.e., live streaming Platform Server is only obscured to user client transmission Data.It should be noted that the data that live streaming Platform Server is sent to user client can be to add in the embodiment of the present application Data after close, or the data not encrypted, specifically herein without limitation.
Optionally, in the embodiment of the present application, setting switch can be sent in live streaming Platform Server, is when sending switch Main broadcaster's information when opening, then while sending obfuscated data, also between transmission current live;When sending switch to close, then only send out Send obfuscated data.That is, closing transmission switch when the turnover rate of client is greater than preset value;When the turnover rate of client is small When preset value, transmission switch is opened.
It should be noted that in the embodiment of the present application, live streaming Platform Server can be by message function to user client End sends obfuscated data, wherein the obfuscated data includes the attention number of main broadcaster, and specific implementation function is as follows:
message FollowedCount
{
Required string type=1 [default=" follow_count ", stt_name=" type ", desc =" type of message "];
[default=0, stt_name=" fl ", " user is desc=required int32is_followed=2 No this direct broadcasting room of concern "];
Required int32confused_followed_count=3 [default=0, stt_name=" cfdc ", Desc=" attention number, no hash_id expression are not obscured "];
Optional string confused_index=4 [default=" ", stt_name=" ci ", desc= " hash_id obscured does not pass expression number without obscuring "];
};
Wherein, FollowedCount is for paying close attention to quantity information;Desc=" type of message " is for indicating this The type of message of message;" fl " field be initial data, indicate whether concern current live between;Whether desc=" close by user Infuse this direct broadcasting room " it for the purpose that indicates this field in the message is to be used to indicate whether user pays close attention to this direct broadcasting room; " cfdc " field indicates attention number;Desc=" attention number, no hash_id expression are not obscured " is if for indicating that attention number does not have Hash_id, then the attention number is not obscured, if attention number has hash_id, attention number has been confused;What " ci " expression was obscured Hash_id, desc=" hash_id obscured, not passing indicates number without obscuring " are if indicate the hash_id for having this to obscure, table Registration word has been obscured, if not passing the hash_id obscured, indicates number without obscuring.
It is similar, when obfuscated data includes the number of fans of main broadcaster, live streaming Platform Server can by message function to User client sends the number of fans of main broadcaster, and specific implementation function is as follows:
message MS_FansRank
{
Required string type=1 [default=" frank ", stt_name=" type ", desc=" message Type "];
[default=0, stt_name=" fc ", " bean vermicelli is total by desc=by required int32fans_count=2 Number "];
Optional string confused_index=3 [default=" ", stt_name=" ci ", desc= " hash_id obscured does not pass expression number without obscuring "];
};
Wherein, MS_FansRank is for indicating number of fans information;Desc=" type of message " is for indicating the message Type of message;" fc " field is initial data, indicates the bean vermicelli sum of current anchor;Desc=" bean vermicelli sum " is for indicating The purpose of this field is to be used to indicate bean vermicelli sum in the message;" ci " indicates that the hash_id obscured, desc=" obscure Hash_id, not passing indicates number without obscuring " if indicating the hash_id for thering is this to obscure, indicate that number has been obscured, if not passing The hash_id obscured indicates number without obscuring.
107, according to acquisition rule is obscured, rule is obscured in acquisition to user client in the database;
User client receives the first message that live streaming Platform Server is sent, which includes live streaming platform service Device obtains the time for obscuring rule and obscuring for corresponding time obtains rule, is based on hypertext transfer protocol (hypertext Transfer protocol, http) interface, user client is according to obtaining the mixed of the time for obscuring rule and the corresponding time Confuse to obtain rule and obtain in the database and obscures rule.Optionally, user client obscures Rule by http interface Function, that is, reload_confusion_map_by_index () function obtains obscure rule in the database, defeated such as the function When to enter parameter be 0, then one is randomly selected in rule list obscure rule in obscuring for database;The input parameter of such as function is Non-zero, then obtain that the input parameter corresponds to serial number obscures rule, if the input parameter is not in the sequencing horizon for obscuring rule list It is interior, then one is randomly selected in rule list obscure rule from obscuring.It is understood that user client, which obtains, obscures rule Mode is obtained with live streaming Platform Server obscures that the mode of rule is similar, and obscuring of obtaining is regular consistent, specifically herein no longer It repeats.
It should be noted that the first message can will acquire time and the correspondence for obscuring rule for live streaming Platform Server Time obscures acquisition rule, generates after being encrypted according to predetermined encryption rule, therefore user client is also needed according to pre- with this If the corresponding decryption rule decryption first message of encryption rule obscures the time of rule and obscuring for corresponding time to obtain obtaining Obtain rule, it is to be understood that it can carry the identification information of predetermined encryption rule in the first message, therefore user client It can be according to the corresponding decryption rule of finding out of the identification information of predetermined encryption rule to be decrypted.
108, user client restores obfuscated data according to rule is obscured, and obtains main broadcaster's letter between current live Breath.
It should be noted that after user client receives the obfuscated data that live streaming Platform Server is sent, user client It includes following several for holding received data:
1) main broadcaster's information between obfuscated data and current live;
If user client is the client without updating live streaming APP, user client, which directly parses, to be obtained currently directly Main broadcaster's information between broadcasting;If user client is to have updated the client of live streaming APP, user client is right according to rule is obscured Obfuscated data is restored, and main broadcaster's information between current live is obtained, if such as obscuring rule is 0 corresponding one, 1 corresponding two ... 9 corresponding zero, if the number of fans after then obfuscated data is such as obscured is 2459, user client obscures regular determination according to this Main broadcaster's information, that is, number of fans between current live is 1348.
2) obfuscated data.
If user client is the client without updating live streaming APP, user client can not restore the obfuscated data, Then directly display;If user client is to have updated the client of live streaming APP, user client is regular to obscuring according to obscuring Data are restored, and main broadcaster's information between current live is obtained.
In the embodiment of the present application, rule is obscured in live streaming Platform Server acquisition, and main broadcaster's information is obscured rule according to this and is mixed After confusing, obtain obfuscated data, and the obfuscated data is passed through into client, due to obscure rule be it is continually changing, It is which on earth that hacker, which can not crack true data, improves the safety of direct broadcasting room information transmitting.
The embodiment of the present invention is described from the angle of the method for obfuscated data above, below from live streaming platform service The embodiment of the present invention is described in the angle of device and user client.
Fig. 2 a is please referred to, Fig. 2 a is that the implementation of the possible live streaming Platform Server of one kind provided in an embodiment of the present invention illustrates It is intended to, wherein the live streaming Platform Server specifically includes:
Determination unit 201, for obscuring acquisition rule with the client negotiation for having updated live streaming APP;
Acquiring unit 202, for obscuring acquisition rule according to, timing acquisition obscures rule in the database;
Main broadcaster's information between current live is obscured for obscuring rule according to, is mixed by obfuscation unit 203 Confuse data;
The acquiring unit 202 is also used to obtain the turnover rate of the live streaming APP, and judges whether the turnover rate is greater than Preset value;
If the turnover rate is greater than the preset value, the Transmit-Receive Unit 204, described in sending to user client Obfuscated data restores the obfuscated data to obtain described work as so that the user client obscures rule according to Main broadcaster's information of preceding direct broadcasting room, the corresponding user of the user client are the user between the current live.
In a kind of possible embodiment, the determination unit 201 includes:
Generation module 2011, for generating first message, the first message includes that the live streaming Platform Server obtains The time for obscuring rule and obscuring for the corresponding time obtain rule;
Sending module 2012 for encrypting the first message using predetermined encryption algorithm, and has updated live streaming to described The client of APP sends first message.
In a kind of possible embodiment, the obfuscation unit 203 is specifically used for believing the main broadcaster between the current live Breath carries out attributive classification, obtains M attribute information, and the M is the integer not less than 1;M Hash is selected in the database Algorithm carries out Hash operation to the M attribute information respectively, obtains M group hash value, and the M group hash value is contained in described mixed Confuse data.
In a kind of possible embodiment, the acquiring unit 203 is specifically used for: receiving the described of management server transmission The turnover rate of APP is broadcast live;Or, calculating the turnover rate of the live streaming APP: G=M/N according to following manner;Wherein, the G is used for Indicate the turnover rate of live streaming APP, the M is used to indicate the quantity of the client for having updated live streaming APP, and the N is used for table Show the quantity for registering all clients of the live streaming APP.
In a kind of possible embodiment, the Transmit-Receive Unit 204 is also used to: if the turnover rate is less than described preset Value, Xiang Suoshu user client send main broadcaster's information between the obfuscated data and the current live.
Fig. 2 b is please referred to, Fig. 2 b is a kind of embodiment signal of possible user client provided in an embodiment of the present invention Figure, wherein the user client specifically includes:
Transmit-Receive Unit 210, for obscuring acquisition rule with live streaming Platform Server negotiation;
Based on hypertext transfer protocol http interface, acquiring unit 211 obtains rule in data for obscuring according to It is obtained in library and obscures rule;
The Transmit-Receive Unit 210 is also used to receive the obfuscated data that the live streaming Platform Server is sent, described to obscure number Main broadcaster's information current live is carried out obscuring acquisition according to rule is obscured according to for the live streaming Platform Server;
Reduction unit 212 restores the obfuscated data for obscuring rule according to, obtains described current straight Main broadcaster's information between broadcasting.
Fig. 3 a is please referred to, Fig. 3 a is the embodiment schematic diagram of electronic equipment provided in an embodiment of the present invention.
As shown in Figure 3a, it the embodiment of the invention provides a kind of electronic equipment, including memory 310, processor 320 and deposits The computer program 311 that can be run on memory 320 and on the processor 320 is stored up, processor 320 executes computer program It is performed the steps of when 311 and obscures acquisition rule with the client negotiation for having updated live streaming APP;Acquisition rule are obscured according to described Then timing acquisition obscures rule in the database;Obscure rule according to described and obscure main broadcaster's information between current live, Obtain obfuscated data;The turnover rate of the live streaming APP is obtained, and judges whether the turnover rate is greater than preset value;If it is described more New rate is greater than the preset value, then the obfuscated data is sent to user client, so that the user client is according to institute State the main broadcaster's information obscured rule is restored to obtain the current live between the obfuscated data, the user client pair The user answered is the user between the current live.
Optionally, in a kind of possible embodiment, the processor 320 is specifically used for: generate first message, described the One message includes obscuring the acquisition of obscuring of the time and the corresponding time of rule described in the live streaming Platform Server acquisition to advise Then;The first message is encrypted using predetermined encryption algorithm, and sends first to the client for having updated live streaming APP and disappears Breath.
Optionally, in a kind of possible embodiment, the processor 320 is specifically used for: will be between the current live Main broadcaster's information carries out attributive classification, obtains M attribute information, and the M is the integer not less than 1;M is selected in the database A hash algorithm carries out Hash operation to the M attribute information respectively, obtains M group hash value, the M group hash value is contained in The obfuscated data.
Optionally, in a kind of possible embodiment, the processor 320 is specifically used for: receiving management server and sends The live streaming APP turnover rate;Or, calculating the turnover rate of the live streaming APP: G=M/N according to following manner;Wherein, described G is used to indicate the turnover rate of live streaming APP, and the M is used to indicate the quantity of the client for having updated live streaming APP, and the N is used In the quantity for all clients for indicating the registration live streaming APP.
Optionally, in a kind of possible embodiment, the processor 320 is also used to: if the turnover rate is less than described Preset value, Xiang Suoshu user client send main broadcaster's information between the obfuscated data and the current live.
As shown in Figure 3b, it the embodiment of the invention provides a kind of electronic equipment, including memory 330, processor 340 and deposits The computer program 331 that can be run on memory 340 and on processor 340 is stored up, processor 340 executes computer program It is performed the steps of when 331 and obscures acquisition rule with live streaming Platform Server negotiation;It is connect based on hypertext transfer protocol http Mouthful, according to it is described obscure acquisition rule in the database obtain obscure rule;Receive the mixed of the live streaming Platform Server transmission Confuse data, it is regular between main broadcaster's information current live that the obfuscated data is that the live streaming Platform Server is obscured according to It carries out obscuring acquisition;According to it is described obscure rule the obfuscated data is restored, obtain the main broadcaster between the current live Information.
The electronic equipment introduced by the present embodiment for implement in the embodiment of the present invention a kind of live streaming Platform Server or Equipment used by person's user client, so based on method described in the embodiment of the present invention, the affiliated technology people in this field Member can understand the specific embodiment and its various change form of the electronic equipment of the present embodiment, so herein for the electricity How sub- equipment realizes that the method in the embodiment of the present invention is no longer discussed in detail, as long as those skilled in the art implement this hair Equipment used by method in bright embodiment belongs to the range of the invention to be protected.
Fig. 4 a is please referred to, Fig. 4 a is a kind of embodiment signal of computer readable storage medium provided in an embodiment of the present invention Figure.
As shown in fig. 4 a, a kind of computer readable storage medium 400 is present embodiments provided, computer journey is stored thereon with Sequence 411, the computer program 411 realize following steps when being executed by processor: negotiating with the client for having updated live streaming APP mixed Confuse and obtains rule;According to it is described obscure acquisition rule in the database timing acquisition obscure rule;Regular incite somebody to action is obscured according to described Main broadcaster's information between current live is obscured, and obfuscated data is obtained;The turnover rate of the live streaming APP is obtained, and described in judgement Whether turnover rate is greater than preset value;If the turnover rate is greater than the preset value, number is obscured to described in user client transmission According to so that the user client obscure according to rule the obfuscated data is restored to obtain the current live Between main broadcaster's information, the corresponding user of the user client is the user between the current live.
Optionally, in a kind of possible embodiment, it is specifically used for realizing when which is executed by processor Following steps: generate first message, the first message include it is described live streaming Platform Server obtain described in obscure rule when Between and the corresponding time obscure acquisition rule;The first message is encrypted using predetermined encryption algorithm, and to it is described more The client of new live streaming APP sends first message.
Optionally, in a kind of possible embodiment, which is also used to realize such as when being executed by processor Lower step: carrying out attributive classification for main broadcaster's information between the current live, obtains M attribute information, and the M is not less than 1 Integer;It selects M hash algorithm to carry out Hash operation to the M attribute information respectively in the database, obtains M group Hash value, the M group hash value are contained in the obfuscated data.
Optionally, in a kind of possible embodiment, it is specifically used for realizing when which is executed by processor Following steps: the turnover rate for the live streaming APP that management server is sent is received;Or, calculating the live streaming according to following manner The turnover rate of APP: G=M/N;Wherein, the G is used to indicate the turnover rate of live streaming APP, and the M has been updated for indicating described The quantity of the client of APP is broadcast live, the N is used to indicate to register the quantity of all clients of the live streaming APP.
Optionally, in a kind of possible embodiment, which is also used to realize such as when being executed by processor Lower step: if the turnover rate is less than the preset value, Xiang Suoshu user client sends the obfuscated data and described current Main broadcaster's information of direct broadcasting room.
Fig. 4 b is please referred to, Fig. 4 b is a kind of embodiment signal of computer readable storage medium provided in an embodiment of the present invention Figure.
As shown in Figure 4 b, a kind of computer readable storage medium 420 is present embodiments provided, computer journey is stored thereon with Sequence 431, the computer program 431 realize following steps when being executed by processor: obscuring acquisition with live streaming Platform Server negotiation Rule;Based on hypertext transfer protocol http interface, according to it is described obscure acquisition rule and obtain in the database obscure rule;It connects The obfuscated data that the live streaming Platform Server is sent is received, the obfuscated data is the live streaming Platform Server according to described mixed Rule of confusing carries out obscuring acquisition between main broadcaster's information current live;According to it is described obscure rule the obfuscated data is gone back Original obtains main broadcaster's information between the current live.
It should be noted that in the above-described embodiments, all emphasizing particularly on different fields to the description of each embodiment, in some embodiment The part being not described in may refer to the associated description of other embodiments.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that each process in flowchart and/or the block diagram can be realized by computer program instructions And/or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer programs to refer to Enable the processor of general purpose computer, special purpose computer, embedded computer or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Concept, then additional changes and modifications may be made to these embodiments.So it includes preferred that the following claims are intended to be interpreted as Embodiment and all change and modification for falling into the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the invention is also intended to include including these modification and variations.

Claims (10)

1. a kind of method of obfuscated data characterized by comprising
Live streaming Platform Server obscures acquisition rule with the client negotiation for having updated live streaming APP;
The live streaming Platform Server obscures acquisition rule according to, and timing acquisition obscures rule in the database;
The live streaming Platform Server obscures rule according to and obscures main broadcaster's information between current live, is obscured Data;
The live streaming Platform Server obtains the turnover rate of the live streaming APP, and judges whether the turnover rate is greater than preset value;
If the turnover rate is greater than the preset value, the live streaming Platform Server obscures number to described in user client transmission According to so that the user client obscure according to rule the obfuscated data is restored to obtain the current live Between main broadcaster's information, the corresponding user of the user client is the user between the current live.
2. the method according to claim 1, wherein described be broadcast live Platform Server and updated live streaming APP's Acquisition rule is obscured in client negotiation
The live streaming Platform Server generates first message, and the first message includes described in the live streaming Platform Server obtains The time and obscuring for the corresponding time for obscuring rule obtain rule;
The live streaming Platform Server encrypts the first message using predetermined encryption algorithm, and has updated live streaming APP to described Client send the first message.
3. being incited somebody to action the method according to claim 1, wherein the live streaming Platform Server obscures rule according to Main broadcaster's information between current live is obscured, and obtains obfuscated data and includes:
Main broadcaster's information between the current live is carried out attributive classification by the live streaming Platform Server, obtains M attribute information, The M is the integer not less than 1;
The live streaming Platform Server selects M hash algorithm to carry out respectively to the M attribute information in the database Hash operation, obtains M group hash value, and the M group hash value is contained in the obfuscated data.
4. the method according to claim 1, wherein the live streaming Platform Server obtains the live streaming APP's Turnover rate includes:
The live streaming Platform Server receives the turnover rate for the live streaming APP that management server is sent;
Or,
The direct broadcast server calculates the turnover rate of the live streaming APP according to following manner:
G=M/N;
Wherein, the G is used to indicate the turnover rate of live streaming APP, and the M is used to indicate the client for having updated live streaming APP Quantity, the N be used for indicates register it is described be broadcast live APP all clients quantity.
5. method according to claim 1 to 4, which is characterized in that the method also includes:
If the turnover rate is less than the preset value, the live streaming Platform Server is obscured to described in user client transmission Main broadcaster's information between data and the current live.
6. a kind of method of obfuscated data characterized by comprising
Acquisition rule is obscured in user client and live streaming Platform Server negotiation;
Based on hypertext transfer protocol http interface, the user client is obscured acquisition rule according to and is obtained in the database It takes and obscures rule;
The user client receives the obfuscated data that the live streaming Platform Server is sent, and the obfuscated data is the live streaming Platform Server obscures rule according to and carries out obscuring acquisition between main broadcaster's information current live;
The user client is obscured rule according to and is restored to the obfuscated data, obtains between the current live Main broadcaster's information.
7. a kind of live streaming Platform Server, feature is certainly, comprising:
Determination unit, for obscuring acquisition rule with the client negotiation for having updated live streaming APP;
Acquiring unit, for obscuring acquisition rule according to, timing acquisition obscures rule in the database;
Main broadcaster's information between current live is obscured for obscuring rule according to, obtains obfuscated data by obfuscation unit;
The acquiring unit is also used to obtain the turnover rate of the live streaming APP, and judges whether the turnover rate is greater than preset value;
If the turnover rate is greater than the preset value, Transmit-Receive Unit is used to send the obfuscated data to user client, with So that the user client obscure according to rule the obfuscated data is restored to obtain the current live Main broadcaster's information, the corresponding user of the user client are the user between the current live.
8. a kind of user client characterized by comprising
Transmit-Receive Unit, for obscuring acquisition rule with live streaming Platform Server negotiation;
Based on hypertext transfer protocol http interface, acquiring unit obtains in the database for obscuring acquisition rule according to It takes and obscures rule;
The Transmit-Receive Unit is also used to receive the obfuscated data that the live streaming Platform Server is sent, and the obfuscated data is described Live streaming Platform Server obscures rule according to and carries out obscuring acquisition between main broadcaster's information current live;
Reduction unit restores the obfuscated data for obscuring rule according to, obtains between the current live Main broadcaster's information.
9. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer is executed as weighed Benefit requires method described in 1-6 any one.
10. a kind of computer program product comprising instruction, when run on a computer, so that computer executes such as right It is required that method described in 1-6 any one.
CN201910038573.6A 2019-01-16 2019-01-16 Method and related device for obfuscating data Active CN109768978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910038573.6A CN109768978B (en) 2019-01-16 2019-01-16 Method and related device for obfuscating data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910038573.6A CN109768978B (en) 2019-01-16 2019-01-16 Method and related device for obfuscating data

Publications (2)

Publication Number Publication Date
CN109768978A true CN109768978A (en) 2019-05-17
CN109768978B CN109768978B (en) 2021-05-25

Family

ID=66453690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910038573.6A Active CN109768978B (en) 2019-01-16 2019-01-16 Method and related device for obfuscating data

Country Status (1)

Country Link
CN (1) CN109768978B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110929270A (en) * 2019-10-29 2020-03-27 北京芯盾集团有限公司 Information security encryption method and device
CN111314351A (en) * 2020-02-19 2020-06-19 望海康信(北京)科技股份公司 Anti-crawler data processing method and device, electronic equipment and storage medium
WO2020258727A1 (en) * 2019-06-28 2020-12-30 深圳前海微众银行股份有限公司 Data encryption method, apparatus and device, and medium
CN112449204A (en) * 2019-08-30 2021-03-05 武汉斗鱼网络科技有限公司 Method and related device for obfuscating data
CN114286131A (en) * 2021-12-27 2022-04-05 上海哔哩哔哩科技有限公司 Transmission method and device for anchor image model file in live broadcast wheat
CN115085974A (en) * 2022-05-20 2022-09-20 武汉虹旭信息技术有限责任公司 Flow confusion method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471771A (en) * 2007-12-29 2009-07-01 华为技术有限公司 Method and system for transmitting and enciphering medium based on P2P network
CN106604044A (en) * 2016-11-21 2017-04-26 武汉斗鱼网络科技有限公司 Direct broadcast room recommendation strategy assessment method, user equipment, and server system
US20170359683A1 (en) * 2000-07-28 2017-12-14 Silver State Intellectual Technologies, Inc. Technique for effective organization and communication of information
CN108307246A (en) * 2018-01-09 2018-07-20 武汉斗鱼网络科技有限公司 A kind of method, storage medium, equipment and system calculating direct broadcasting room popularity
CN108574877A (en) * 2018-01-05 2018-09-25 北京金山云网络技术有限公司 Live broadcasting method, Zhu Boduan, viewer end, equipment, system and storage medium
CN109067805A (en) * 2018-10-12 2018-12-21 武汉斗鱼网络科技有限公司 Anti- crawler method, apparatus, terminal and the readable medium of direct broadcasting room data
CN109121013A (en) * 2018-07-25 2019-01-01 北京达佳互联信息技术有限公司 Method, apparatus, terminal, server and the storage medium of played data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170359683A1 (en) * 2000-07-28 2017-12-14 Silver State Intellectual Technologies, Inc. Technique for effective organization and communication of information
CN101471771A (en) * 2007-12-29 2009-07-01 华为技术有限公司 Method and system for transmitting and enciphering medium based on P2P network
CN106604044A (en) * 2016-11-21 2017-04-26 武汉斗鱼网络科技有限公司 Direct broadcast room recommendation strategy assessment method, user equipment, and server system
CN108574877A (en) * 2018-01-05 2018-09-25 北京金山云网络技术有限公司 Live broadcasting method, Zhu Boduan, viewer end, equipment, system and storage medium
CN108307246A (en) * 2018-01-09 2018-07-20 武汉斗鱼网络科技有限公司 A kind of method, storage medium, equipment and system calculating direct broadcasting room popularity
CN109121013A (en) * 2018-07-25 2019-01-01 北京达佳互联信息技术有限公司 Method, apparatus, terminal, server and the storage medium of played data
CN109067805A (en) * 2018-10-12 2018-12-21 武汉斗鱼网络科技有限公司 Anti- crawler method, apparatus, terminal and the readable medium of direct broadcasting room data

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020258727A1 (en) * 2019-06-28 2020-12-30 深圳前海微众银行股份有限公司 Data encryption method, apparatus and device, and medium
CN112449204A (en) * 2019-08-30 2021-03-05 武汉斗鱼网络科技有限公司 Method and related device for obfuscating data
CN112449204B (en) * 2019-08-30 2022-09-09 武汉斗鱼网络科技有限公司 Method and related device for obfuscating data
CN110929270A (en) * 2019-10-29 2020-03-27 北京芯盾集团有限公司 Information security encryption method and device
CN111314351A (en) * 2020-02-19 2020-06-19 望海康信(北京)科技股份公司 Anti-crawler data processing method and device, electronic equipment and storage medium
CN114286131A (en) * 2021-12-27 2022-04-05 上海哔哩哔哩科技有限公司 Transmission method and device for anchor image model file in live broadcast wheat
CN115085974A (en) * 2022-05-20 2022-09-20 武汉虹旭信息技术有限责任公司 Flow confusion method and device

Also Published As

Publication number Publication date
CN109768978B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN109768978A (en) A kind of method and relevant apparatus of obfuscated data
CN107454441B (en) A kind of method, live streaming Platform Server and the computer readable storage medium of detection direct broadcasting room brush popularity behavior
CA3040148A1 (en) Blockchain-based digital rights management
CN110800250A (en) Controlled distribution of encrypted private keys
CN103457727A (en) Method, device and system for processing media data
CN111027981B (en) Method and device for multi-party joint training of risk assessment model for IoT (Internet of things) machine
KR101615137B1 (en) Data access method based on attributed
US20140281576A1 (en) Information providing system, information processing apparatus, computer readable medium, and information providing method
CN103841469A (en) Digital film copyright protection method and device
CN105871805A (en) Anti-stealing-link method and device
CN108549824A (en) A kind of data desensitization method and device
CN104320426A (en) Data layering accessing method and system under cloud environment
CN111597250B (en) Visualization method of block chain system
CN110460674A (en) A kind of information-pushing method, apparatus and system
US8495154B2 (en) Content usage tracking in superdistribution
CN113140079A (en) Intelligent cabinet opening method, data processing method and device and intelligent cabinet application system
CN107070874A (en) System, encryption method and the device of broadcast communication, decryption method and device
CN104462877B (en) A kind of digital resource acquisition method under copyright protection and system
CN109981551A (en) A kind of data transmission system based on block chain, method and relevant device
CN113300999A (en) Information processing method, electronic device, and readable storage medium
US20160210596A1 (en) Method, device and system for controlling presentation of application
CN109218837B (en) Method and equipment for displaying special effect of virtual gift
CN109120576B (en) Data sharing method and device, computer equipment and storage medium
KR102284877B1 (en) Efficient functional encryption for set intersection
CN109271800A (en) A kind of document handling method and device

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