CN109768978B - Method and related device for obfuscating data - Google Patents

Method and related device for obfuscating data Download PDF

Info

Publication number
CN109768978B
CN109768978B CN201910038573.6A CN201910038573A CN109768978B CN 109768978 B CN109768978 B CN 109768978B CN 201910038573 A CN201910038573 A CN 201910038573A CN 109768978 B CN109768978 B CN 109768978B
Authority
CN
China
Prior art keywords
live broadcast
confusion
platform server
rule
app
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
CN201910038573.6A
Other languages
Chinese (zh)
Other versions
CN109768978A (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

Images

Abstract

The embodiment of the invention discloses a method for obfuscating data and a related device, which are used for improving the safety of information transmission of a live broadcast room. The method provided by the embodiment of the invention comprises the following steps: the live broadcast platform server negotiates with a client terminal of the updated live broadcast APP to obtain an confusion rule; the live broadcast platform server regularly acquires confusion rules in a database according to the confusion acquisition rules; the live broadcast platform server confuses the anchor information of the current live broadcast room according to the confusion rule to obtain confusion data; the live broadcast platform server acquires the update rate of the live broadcast APP and judges whether the update rate is greater than a preset value; and if the update rate is greater than the preset value, the live broadcast platform server sends the confusion data to a user client, so that the user client restores the confusion data according to the confusion rule to obtain the anchor broadcast information of the current live broadcast room, and the user corresponding to the user client is the user in the current live broadcast room.

Description

Method and related device for obfuscating data
Technical Field
The present invention relates to the field of development platforms, and in particular, to a method for obfuscating data and a related apparatus.
Background
With the increasing popularity and development of networks, online live broadcasting becomes more and more popular with users. In the existing live broadcast platform, some sensitive data of a main broadcast in a live broadcast room, such as attention number, fan number and the like, are plaintext, that is, all audiences logged in the live broadcast room can know the sensitive data.
However, in the prior art, since the sensitive data of the anchor is plaintext and is easily stolen by an illegal hacker, how to ensure the security of the sensitive data becomes a problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides a method for obfuscating data and a related device, which are used for improving the safety of information transfer of a live broadcast room.
A first aspect of an embodiment of the present invention provides a method for obfuscating data, including: the live broadcast platform server negotiates with a client terminal of the updated live broadcast APP to obtain an confusion rule; the live broadcast platform server regularly acquires confusion rules in a database according to the confusion acquisition rules; the live broadcast platform server confuses the anchor information of the current live broadcast room according to the confusion rule to obtain confusion data; the live broadcast platform server acquires the update rate of the live broadcast APP and judges whether the update rate is greater than a preset value; and if the update rate is greater than the preset value, the live broadcast platform server sends the confusion data to a user client, so that the user client restores the confusion data according to the confusion rule to obtain the anchor broadcast information of the current live broadcast room, and the user corresponding to the user client is the user in the current live broadcast room.
In a possible embodiment, the negotiating, by the live platform server, the confusion obtaining rule with the client of the updated live APP includes: the live broadcast platform server generates a first message, wherein the first message comprises the time for the live broadcast platform server to acquire the confusion rule and the confusion acquisition rule corresponding to the time; and the live broadcast platform server encrypts the first message by adopting a preset encryption algorithm and sends the first message to the client side of the updated live broadcast APP.
In a possible embodiment, the step of the live broadcast platform server obfuscating the anchor information of the current live broadcast room according to the obfuscation rule to obtain obfuscated data includes: the live broadcast platform server carries out attribute classification on the anchor information of the current live broadcast room to obtain M pieces of attribute information, wherein M is an integer not less than 1; and the live broadcast platform server selects M Hash algorithms from the database to respectively carry out Hash operation on the M attribute information to obtain M groups of Hash values, and the M groups of Hash values are contained in the confusion data.
In a possible embodiment, the obtaining, by the live platform server, the update rate of the live APP includes: the live broadcast platform server receives the update rate of the live broadcast APP sent by the management server; or, the live broadcast server calculates the update rate of the live broadcast APP according to the following method: g is M/N; wherein, the G is used for representing the update rate of live APP, the M is used for representing the number of the clients of the updated live APP, and the N is used for representing the number of all the clients registering the live APP.
In a possible embodiment, the method further comprises: and if the update rate is smaller than the preset value, the live broadcast platform server sends the confusion data and the anchor information of the current live broadcast room to the user client.
A second aspect of an embodiment of the present invention provides a method for obfuscating data, including: a user client and a live broadcast platform server negotiate confusion acquisition rules; based on a hypertext transfer protocol (http) interface, the user client acquires an confusion rule in a database according to the confusion acquisition rule; the user client receives confusion data sent by the live broadcast platform server, wherein the confusion data is obtained by the live broadcast platform server through confusion on anchor information of a current live broadcast room according to the confusion rule; and the user client restores the confusion data according to the confusion rule to obtain the anchor information of the current live broadcast room.
A third aspect of an embodiment of the present invention provides a live broadcast platform server, including: the determining unit is used for negotiating confusion acquisition rules with the client of the updated live broadcast APP; the obtaining unit is used for obtaining the confusion rule in a database at regular time according to the confusion obtaining rule; the confusion unit is used for confusing the anchor information of the current live broadcast room according to the confusion rule to obtain confusion data; the obtaining unit is further configured to obtain an update rate of the live broadcast APP, and determine whether the update rate is greater than a preset value; if the update rate is greater than the preset value, the transceiver unit is further configured to send the confusion data to a user client, so that the user client restores the confusion data according to the confusion rule to obtain anchor broadcast information of the current live broadcast room, and a user corresponding to the user client is a user in the current live broadcast room.
In a possible embodiment, the determining unit comprises: the generating module is used for generating a first message, wherein the first message comprises the time for the live broadcast platform server to acquire the confusion rule and the confusion acquisition rule corresponding to the time; and the sending module is used for encrypting the first message by adopting a preset encryption algorithm and sending the first message to the client side of the updated live broadcast APP.
In a possible embodiment, the confusion unit is specifically configured to perform attribute classification on anchor information in the current live broadcast room to obtain M pieces of attribute information, where M is an integer not less than 1; and selecting M Hash algorithms from the database to perform Hash operation on the M attribute information respectively to obtain M groups of Hash values, wherein the M groups of Hash values are contained in the confusion data.
In a possible embodiment, the obtaining unit is specifically configured to: receiving the update rate of the live APP sent by a management server; or, calculating an update rate of the live APP according to the following mode: g is M/N; wherein, the G is used for representing the update rate of live APP, the M is used for representing the number of the clients of the updated live APP, and the N is used for representing the number of all the clients registering the live APP.
In a possible embodiment, the transceiver unit is further configured to: and if the update rate is smaller than the preset value, sending the confusion data and the anchor information of the current live broadcast room to the user client.
A fourth aspect of an embodiment of the present invention provides a user client, including: the receiving and sending unit is used for negotiating confusion acquisition rules with a live broadcast platform server; the obtaining unit is used for obtaining the confusion rule in a database according to the confusion obtaining rule based on a hypertext transfer protocol (http) interface; the receiving and sending unit is further configured to receive confusion data sent by the live broadcast platform server, where the confusion data is obtained by the live broadcast platform server confusing anchor information in a current live broadcast room according to the confusion rule; and the restoring unit is used for restoring the confusion data according to the confusion rule to obtain the anchor information of the current live broadcast room.
A fifth aspect of the present invention provides an electronic device comprising a memory and a processor, wherein the processor is configured to implement the steps of the method for obfuscating data according to any one of the first aspect described above when executing a computer management class program stored in the memory.
A sixth aspect of the present application provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the method of the above-described aspects.
A seventh aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the above aspects.
According to the technical scheme, the embodiment of the invention has the following advantages: the live broadcast platform server negotiates with a client terminal of the updated live broadcast APP to obtain an confusion rule; the live broadcast platform server regularly acquires confusion rules in a database according to the confusion acquisition rules; the live broadcast platform server confuses the anchor information of the current live broadcast room according to the confusion rule to obtain confusion data; the live broadcast platform server acquires the update rate of the live broadcast APP and judges whether the update rate is greater than a preset value; and if the update rate is greater than the preset value, the live broadcast platform server sends the confusion data to a user client, so that the user client restores the confusion data according to the confusion rule to obtain the anchor broadcast information of the current live broadcast room, and the user corresponding to the user client is the user in the current live broadcast room. In the embodiment of the invention, the live broadcast platform server obtains the confusion rule, obtains the confusion data after the main broadcast information is confused according to the confusion rule, and transmits the confusion data to the client side.
Drawings
FIG. 1 is a flow chart of a method for obfuscating data according to an embodiment of the present invention;
fig. 2a is a schematic structural diagram of a possible live broadcast platform server according to an embodiment of the present invention;
fig. 2b is a schematic structural diagram of a possible user client according to an embodiment of the present invention;
fig. 3a is a schematic diagram of a hardware structure of a possible electronic device according to an embodiment of the present invention;
FIG. 3b is a schematic diagram of a hardware structure of another possible electronic device according to an embodiment of the present invention
FIG. 4a is a schematic diagram of a hardware structure of a possible computer-readable storage medium according to an embodiment of the present invention;
fig. 4b is a schematic diagram of a hardware structure of another possible computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method for obfuscating data and a related device, which are used for improving the safety of information transfer of a live broadcast room.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of a method for obfuscating data according to an embodiment of the present invention includes:
101. the live broadcast platform server negotiates with a client terminal of the updated live broadcast APP to obtain an confusion rule;
in the live broadcast service, in order to ensure the security of the sensitive data of the anchor in the live broadcast room, for convenience of description, in the embodiment of the present application, the sensitive data is referred to as anchor information, and in practical applications, the sensitive data may also be important information, and the like, which is not limited herein. The anchor information may be the attention number, fan number, etc. of the anchor. In this embodiment, based on the manner of obfuscating the anchor information and transmitting the obfuscated anchor information to the client, so that the client performs the restoration to obtain the anchor information, it is ensured that the obfuscated anchor information cannot obtain the original text of the anchor information even if the obfuscated anchor information is obtained by a hacker, and the transmission security of the anchor information is enhanced. Therefore, it can be understood that, in the embodiment of the present application, program update needs to be performed on a client that has installed a live APP, so that the client has the capability of restoring obfuscated anchor information.
Therefore, after the live broadcast APP is updated by the client, in order to ensure that the data confused by the live broadcast platform server can be restored by the client, the live broadcast platform server needs to ensure that the confusion rule adopted by the client is consistent with that adopted by the live broadcast platform server, and therefore before the live broadcast platform server negotiates with the client which has updated the live broadcast APP to confuse the obtaining rule. Specifically, the negotiation manner specifically includes: the live broadcast platform server generates a first message, wherein the first message comprises the time for the live broadcast platform server to obtain the confusion rule and the confusion obtaining rule corresponding to the time, for example, the live broadcast platform server obtains the confusion rule every other preset time length, the preset time length is set as 5s, the time for obtaining the confusion rule for the first time is assumed to be 3 minutes and 15s, and the confusion obtaining rule for the current time is randomly obtained; the time for obtaining the confusion rule for the second time is 3 minutes and 20 seconds, the confusion obtaining rule for the current time is complementation obtaining, namely complementation processing is carried out on the room number of the current live broadcast room according to the number of the confusion rules in the database, and the obtained remainder is the serial number of the confusion rule to be obtained in the database. In practical application, the live broadcast platform server may share an obfuscation acquisition rule table with a client that has updated a live broadcast APP, where different obfuscation acquisition rules in the obfuscation acquisition rule table correspond to different identification information, and if randomly acquiring corresponding identification information as 0, obtaining the remainder to obtain corresponding identification information as 1, and the like, the identification information is carried in the first message, so that the client correspondingly finds out the obfuscation acquisition rule according to the identification information; after the first message is generated, in order to ensure the security of the first message in the transmission process, the live broadcast platform server encrypts the first message by using a preset encryption algorithm, wherein the preset encryption algorithm can be a symmetric encryption algorithm or an asymmetric encryption algorithm and the like, and sends the first message to the client side of the updated live broadcast APP.
102. The live broadcast platform server regularly acquires the confusion rule in the database according to the confusion acquisition rule;
after the live broadcast platform server negotiates with the client side of the updated live broadcast APP for obtaining the confusion rule, the live broadcast platform server obtains the confusion rule in the database at regular time according to the confusion obtaining rule. It should be noted that the obfuscation rule may be various Hash algorithms, such as md5, sha1, sha224, sha256, sha384, sha512, and the like, and the specific application is not limited thereto. In the embodiment of the present application, the database includes an obfuscation rule table, where the obfuscation rule table includes a plurality of obfuscation rules and serial numbers corresponding to the obfuscation rules.
For example, if the confusion acquisition rule is randomly acquired, the live broadcast platform server randomly acquires any confusion rule in a confusion rule table in the database; if the confusion acquisition rule is complementation acquisition, the live broadcast platform server performs complementation processing on the room number of the current live broadcast room according to the number of the confusion rules in the database, and the obtained remainder is the serial number of the confusion rule to be acquired in the database, for example, the room number of the current live broadcast room is 200082, the number of the confusion rules in the confusion rule table is 50, 200082% of 50 is 32, and the confusion rule is a rule with the serial number of 32 in the confusion rule table.
It can be understood that, in practical application, the confusion rule table may be updated continuously, that is, the confusion rules in the confusion rule table may be added or deleted, so that the sequence numbers of the confusion rules in the confusion rule table may also be changed continuously, thereby increasing the randomness of obtaining the confusion rules.
103. The live broadcast platform server confuses the anchor information of the current live broadcast room according to a confusion rule to obtain confusion data;
after acquiring a confusion rule, a live broadcast platform server confuses anchor information of a current live broadcast room according to the confusion rule, specifically, the live broadcast platform server performs attribute classification on the anchor information of the current live broadcast room to obtain M pieces of attribute information, wherein M is an integer not less than 1, and for example, assuming that the anchor information includes an attention number and a fan number, the attribute classification is performed to obtain two types of attribute information, namely the attention number of the anchor and the fan number of the anchor; the live broadcast platform server selects M Hash algorithms in the database to perform Hash operation on the M attribute information respectively to obtain M groups of Hash values, and the M groups of Hash values are contained in the obfuscated data, namely, the live broadcast platform server can randomly select 2 Hash algorithms in the database to obfuscate the attention number of the anchor and the fan number of the anchor respectively, for example, the attention number of the anchor is obfuscated by using an md5 algorithm, the fan number of the anchor is obfuscated by using a sha512 algorithm, and the obfuscated data includes a corresponding Hash _ id for indicating the Hash algorithm used for obfuscating. It can be understood that the live broadcast platform server may also use a Hash algorithm to perform obfuscation operation on multiple attribute information, that is, the number of Hash algorithms selected by the live broadcast platform server in the database is not greater than the number of attribute information.
Specifically, if 0 is confused into one, 1 into two, and 6 into seven, the number 610 is confused, and the resulting confused data is seven. The confusion rules used are different, and the obtained confusion data are also different, so in the embodiment of the present application, the specific confusion rules used are not limited herein.
104. The method comprises the steps that a live broadcast platform server obtains an update rate of a live broadcast APP and judges whether the update rate is larger than a preset value or not; if yes, go to step 105; if so, go to step 106;
105. the live broadcast platform server sends the confusion data to the user client;
106. a live broadcast platform server sends confusion data and anchor information of a current live broadcast room to a user client;
live broadcast platform server obtains this live broadcast APP's update rate, and the proportion of the client side that has updated this live broadcast APP promptly at present needs to explain that, among the practical application, the mode that live broadcast platform server obtained this live broadcast APP's update rate has the multiple, include: 1) directly receiving the update rate of live APP sent by a management server such as a management background; 2) the live broadcast server calculates the update rate of the live broadcast APP according to the following modes: g is M/N; wherein, G is used for representing the update rate of live APP, M is used for representing the number of the clients which have updated the live APP, and N is used for representing the number of all the clients which register the live APP. Therefore, there are various ways of obtaining the information, and the details are not limited herein.
After the live broadcast platform server obtains the update rate of the live broadcast APP, comparing the update rate with a preset value, if the update rate is smaller than the preset value, indicating that the update rate of the client does not meet the requirement, and executing step 106, namely that data sent to the user client by the live broadcast platform server comprises un-confused data, namely anchor broadcast information and confused data of a current live broadcast room, wherein the user client is a client corresponding to a user watching the current live broadcast; if the update rate is greater than the preset value, it indicates that the update rate of the client has reached the requirement, and step 105 is executed, that is, the live broadcast platform server only sends the obfuscated data to the user client. It should be noted that, in this embodiment of the application, the data sent by the live broadcast platform server to the user client may be encrypted data or unencrypted data, and is not limited herein.
Optionally, in this embodiment of the application, a sending switch may be set in the live broadcast platform server, and when the sending switch is turned on, the anchor information of the current live broadcast room is sent while sending the obfuscated data; when the transmit switch is off, only the garbled data is transmitted. Namely, when the update rate of the client is greater than the preset value, the sending switch is closed; and when the update rate of the client is less than the preset value, the sending switch is turned on.
It should be noted that, in the embodiment of the present application, the live broadcast platform server may send obfuscated data to the user client through a message function, where the obfuscated data includes an attention number of the anchor, and a specific implementation function is as follows:
message FollowedCount
{
required string type is 1[ default ═ follow _ count ", stt _ name ═ type", desc ═ message type "];
required int32 is _ closed ═ 2[ default ═ 0, stt _ name ═ fl ", desc ═ whether the user is interested in the live broadcasting room" ];
required int32 consolidated _ closed _ count is 3[ default is 0, st _ name is "cfdc", desc is "number of interest, no hash _ id indicates no confusion ];
optional string bound _ index is 4[ default ═ and stt _ name ═ and desc ═ confused hash _ id, and no numbers are transmitted, not to be confused ];
};
wherein the FollowedCount is used for representing the attention amount information; "message type" is used to indicate the message type of the message; the "fl" field is raw data indicating whether to focus on the current live channel; desc is used to indicate whether the user is interested in the live broadcast room, and the purpose of this field in the message is to indicate whether the user is interested in the live broadcast room; the "cfdc" field represents the number of interest; desc ═ number of interest, no hash _ id means no confusion, "used to indicate that the number of interest is not confused if the number of interest does not have a hash _ id, and that the number of interest is confused if the number of interest has a hash _ id; "ci" indicates an obfuscated hash _ id, desc is "obfuscated hash _ id, and the absence of a transmission indicates that a digit has been obfuscated if the obfuscated hash _ id is present, and indicates that the digit has not been obfuscated if the obfuscated hash _ id is not transmitted.
Similarly, when the obfuscated data includes the number of fans of the anchor, the live broadcast platform server may send the number of fans of the anchor to the user client through the message function as follows:
message MS_FansRank
{
required string type is 1[ default ═ frank ", stt _ name ═ type", desc ═ message type ];
required int32 fans _ count is 2[ default is 0, st _ name is "fc", desc is "total number of fans ];
optional string bound _ index is 3[ default ═ st _ name ═ ci ], desc ═ confused hash _ id, not yet transmitted the number not yet confused ];
};
wherein, MS _ FansRank is used for representing information of the number of fans; "message type" is used to indicate the message type of the message; the fc field is original data and represents the total number of fans of the current anchor; desc is used to indicate that the purpose of this field in the message is to indicate the total number of fans; "ci" indicates an obfuscated hash _ id, desc is "obfuscated hash _ id, and the absence of a transmission indicates that a digit has been obfuscated if the obfuscated hash _ id is present, and indicates that the digit has not been obfuscated if the obfuscated hash _ id is not transmitted.
107. The user client side obtains the confusion rule in the database according to the confusion obtaining rule;
the method comprises the steps that a user client receives a first message sent by a live broadcast platform server, the first message comprises the time when the live broadcast platform server obtains an obfuscating rule and an obfuscating obtaining rule corresponding to the time, and the user client obtains the obfuscating rule in a database according to the time when the obfuscating rule is obtained and the obfuscating obtaining rule corresponding to the time based on a hypertext transfer protocol (http) interface. Optionally, the user client obtains the confusion rule in the database through a confusion rule obtaining function of the http interface, that is, a reload _ fusion _ map _ by _ index () function, and if an input parameter of the function is 0, a confusion rule is randomly selected from a confusion rule table of the database; if the input parameter of the function is not 0, obtaining the confusion rule of the serial number corresponding to the input parameter, and if the input parameter is not in the sorting range of the confusion rule table, randomly selecting one confusion rule from the confusion rule table. It can be understood that the manner in which the user client obtains the confusion rule is similar to the manner in which the live broadcast platform server obtains the confusion rule, and the obtained confusion rule is consistent, which is not described herein again.
It should be noted that the first message may be generated by encrypting, by the live broadcast platform server, the time for acquiring the confusion rule and the confusion acquisition rule corresponding to the time according to the preset encryption rule, so that the user client further needs to decrypt, according to the decryption rule corresponding to the preset encryption rule, the first message to obtain the time for acquiring the confusion rule and the confusion acquisition rule corresponding to the time.
108. And the user client restores the confusion data according to the confusion rule to obtain the anchor information of the current live broadcast room.
It should be noted that, after the user client receives the obfuscated data sent by the live broadcast platform server, the data received by the user client includes the following data:
1) obfuscating data and anchor information of a current live broadcast room;
if the user client is the client which does not update the live APP, the user client directly analyzes to obtain the anchor information of the current live broadcast room; if the user client is the client which updates the live APP, the user client restores the obfuscated data according to the obfuscation rule to obtain the anchor information of the current live broadcast room, for example, if the obfuscation rule is that 0 corresponds to one and 1 corresponds to two.
2) The data is obfuscated.
If the user client is the client which does not update the live APP, the user client cannot restore the confusion data, and the confusion data is directly displayed; and if the user client is the client of the updated live broadcast APP, the user client restores the confusion data according to the confusion rule to obtain the anchor information of the current live broadcast room.
In the embodiment of the application, the live broadcast platform server obtains the confusion rule, obtains the confusion data after the main broadcast information is confused according to the confusion rule, and transmits the confusion data to the client side.
The embodiments of the present invention are described above from the perspective of a method of obfuscating data, and are described below from the perspective of a live platform server and a user client.
Referring to fig. 2a, fig. 2a is a schematic diagram of an embodiment of a possible live platform server according to an embodiment of the present invention, where the live platform server specifically includes:
a determining unit 201, configured to negotiate an confusion obtaining rule with a client of an updated live APP;
an obtaining unit 202, configured to obtain an obfuscating rule in a database at regular time according to the obfuscating obtaining rule;
the confusion unit 203 is configured to confuse anchor information of the current live broadcast room according to the confusion rule to obtain confusion data;
the obtaining unit 202 is further configured to obtain an update rate of the live APP, and determine whether the update rate is greater than a preset value;
if the update rate is greater than the preset value, the transceiver 204 is configured to send the confusion data to a user client, so that the user client restores the confusion data according to the confusion rule to obtain the anchor information of the current live broadcast room, where a user corresponding to the user client is a user in the current live broadcast room.
In a possible embodiment, the determining unit 201 comprises:
a generating module 2011, configured to generate a first message, where the first message includes a time when the live broadcast platform server obtains the confusion rule and a confusion obtaining rule corresponding to the time;
a sending module 2012, configured to encrypt the first message by using a preset encryption algorithm, and send the first message to the client of the updated live APP.
In a possible embodiment, the obfuscating unit 203 is specifically configured to perform attribute classification on the anchor information of the current live broadcast room to obtain M pieces of attribute information, where M is an integer not less than 1; and selecting M Hash algorithms from the database to perform Hash operation on the M attribute information respectively to obtain M groups of Hash values, wherein the M groups of Hash values are contained in the confusion data.
In a possible embodiment, the obtaining unit 202 is specifically configured to: receiving the update rate of the live APP sent by a management server; or, calculating an update rate of the live APP according to the following mode: g is M/N; wherein, the G is used for representing the update rate of live APP, the M is used for representing the number of the clients of the updated live APP, and the N is used for representing the number of all the clients registering the live APP.
In a possible embodiment, the transceiver unit 204 is further configured to: and if the update rate is smaller than the preset value, sending the confusion data and the anchor information of the current live broadcast room to the user client.
Referring to fig. 2b, fig. 2b is a schematic diagram of an embodiment of a possible user client according to an embodiment of the present invention, where the user client specifically includes:
a transceiving unit 210, configured to negotiate an confusion obtaining rule with a live broadcast platform server;
based on the http interface of the hypertext transfer protocol, the obtaining unit 211 is configured to obtain the confusion rule in the database according to the confusion obtaining rule;
the transceiver unit 210 is further configured to receive confusion data sent by the live broadcast platform server, where the confusion data is obtained by the live broadcast platform server confusing anchor information in a current live broadcast room according to the confusion rule;
and a restoring unit 212, configured to restore the obfuscated data according to the obfuscation rule, to obtain anchor information of the current live broadcast room.
Referring to fig. 3a, fig. 3a is a schematic diagram of an embodiment of an electronic device according to an embodiment of the invention.
As shown in fig. 3a, an embodiment of the present invention provides an electronic device 300, which includes a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320, wherein the processor 320 executes the computer program 311 to implement the following steps: negotiating with a client of the updated live APP for confusion of an acquisition rule; acquiring confusion rules in a database at regular time according to the confusion acquisition rules; obfuscating the anchor information of the current live broadcast room according to the obfuscating rule to obtain obfuscated data; acquiring the update rate of the live broadcast APP, and judging whether the update rate is greater than a preset value; and if the update rate is greater than the preset value, sending the confusion data to a user client so that the user client restores the confusion data according to the confusion rule to obtain the anchor broadcast information of the current live broadcast room, wherein the user corresponding to the user client is the user in the current live broadcast room.
Optionally, in a possible embodiment, the processor 320 is specifically configured to: generating a first message, wherein the first message comprises the time for the live broadcast platform server to acquire the confusion rule and the confusion acquisition rule corresponding to the time; and encrypting the first message by adopting a preset encryption algorithm, and sending the first message to the client side of the updated live broadcast APP.
Optionally, in a possible embodiment, the processor 320 is specifically configured to: performing attribute classification on the anchor information of the current live broadcast room to obtain M pieces of attribute information, wherein M is an integer not less than 1; and selecting M Hash algorithms from the database to perform Hash operation on the M attribute information respectively to obtain M groups of Hash values, wherein the M groups of Hash values are contained in the confusion data.
Optionally, in a possible embodiment, the processor 320 is specifically configured to: receiving the update rate of the live APP sent by a management server; or, calculating an update rate of the live APP according to the following mode: g is M/N; wherein, the G is used for representing the update rate of live APP, the M is used for representing the number of the clients of the updated live APP, and the N is used for representing the number of all the clients registering the live APP.
Optionally, in a possible embodiment, the processor 320 is further configured to: and if the update rate is smaller than the preset value, sending the confusion data and the anchor information of the current live broadcast room to the user client.
As shown in fig. 3b, an embodiment of the present invention provides an electronic device 300, which includes a memory 330, a processor 340, and a computer program 331 stored in the memory 330 and executable on the processor 340, wherein the processor 340 implements the following steps when executing the computer program 331: negotiating confusion acquisition rules with a live broadcast platform server; acquiring an confusion rule in a database according to the confusion acquisition rule based on a hypertext transfer protocol (http) interface; receiving confusion data sent by the live broadcast platform server, wherein the confusion data is obtained by the live broadcast platform server through confusion on anchor information of a current live broadcast room according to the confusion rule; and restoring the obfuscated data according to the obfuscation rule to obtain the anchor information of the current live broadcast room.
Since the electronic device described in this embodiment is a device used for implementing a live platform server or a user client in the embodiment of the present invention, based on the method described in the embodiment of the present invention, those skilled in the art can understand the specific implementation manner of the electronic device in this embodiment and various variations thereof, so that how to implement the method in the embodiment of the present invention by the electronic device is not described in detail herein, and as long as the device used for implementing the method in the embodiment of the present invention by the person skilled in the art belongs to the scope of the present invention to be protected.
Referring to fig. 4a, fig. 4a is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present invention.
As shown in fig. 4a, the present embodiment provides a computer-readable storage medium 400, on which a computer program 411 is stored, which computer program 411, when being executed by a processor, realizes the following steps: negotiating with a client of the updated live APP for confusion of an acquisition rule; acquiring confusion rules in a database at regular time according to the confusion acquisition rules; obfuscating the anchor information of the current live broadcast room according to the obfuscating rule to obtain obfuscated data; acquiring the update rate of the live broadcast APP, and judging whether the update rate is greater than a preset value; and if the update rate is greater than the preset value, sending the confusion data to a user client so that the user client restores the confusion data according to the confusion rule to obtain the anchor broadcast information of the current live broadcast room, wherein the user corresponding to the user client is the user in the current live broadcast room.
Optionally, in a possible embodiment, the computer program 411 is specifically adapted to implement the following steps when being executed by a processor: generating a first message, wherein the first message comprises the time for the live broadcast platform server to acquire the confusion rule and the confusion acquisition rule corresponding to the time; and encrypting the first message by adopting a preset encryption algorithm, and sending the first message to the client side of the updated live broadcast APP.
Optionally, in a possible embodiment, the computer program 411 is further configured to, when executed by the processor, implement the following steps: performing attribute classification on the anchor information of the current live broadcast room to obtain M pieces of attribute information, wherein M is an integer not less than 1; and selecting M Hash algorithms from the database to perform Hash operation on the M attribute information respectively to obtain M groups of Hash values, wherein the M groups of Hash values are contained in the confusion data.
Optionally, in a possible embodiment, the computer program 411 is specifically adapted to implement the following steps when being executed by a processor: receiving the update rate of the live APP sent by a management server; or, calculating an update rate of the live APP according to the following mode: g is M/N; wherein, the G is used for representing the update rate of live APP, the M is used for representing the number of the clients of the updated live APP, and the N is used for representing the number of all the clients registering the live APP.
Optionally, in a possible embodiment, the computer program 411 is further configured to, when executed by the processor, implement the following steps: and if the update rate is smaller than the preset value, sending the confusion data and the anchor information of the current live broadcast room to the user client.
Referring to fig. 4b, fig. 4b is a schematic diagram of an embodiment of a computer-readable storage medium according to the present invention.
As shown in fig. 4b, the present embodiment provides a computer-readable storage medium 420 having a computer program 431 stored thereon, the computer program 431 when executed by a processor implementing the steps of: negotiating confusion acquisition rules with a live broadcast platform server; acquiring an confusion rule in a database according to the confusion acquisition rule based on a hypertext transfer protocol (http) interface; receiving confusion data sent by the live broadcast platform server, wherein the confusion data is obtained by the live broadcast platform server through confusion on anchor information of a current live broadcast room according to the confusion rule; and restoring the obfuscated data according to the obfuscation rule to obtain the anchor information of the current live broadcast room.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to relevant descriptions of other embodiments for parts that are not described in detail in a certain embodiment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
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. A method of obfuscating data, comprising:
the live broadcast platform server negotiates with a client terminal of the updated live broadcast APP to obtain an confusion rule;
the live broadcast platform server regularly acquires confusion rules in a database according to the confusion acquisition rules;
the live broadcast platform server confuses the anchor information of the current live broadcast room according to the confusion rule to obtain confusion data;
the live broadcast platform server acquires the update rate of the live broadcast APP and judges whether the update rate is greater than a preset value;
and if the update rate is greater than the preset value, the live broadcast platform server sends the confusion data to a user client, so that the user client restores the confusion data according to the confusion rule to obtain the anchor broadcast information of the current live broadcast room, and the user corresponding to the user client is the user in the current live broadcast room.
2. The method of claim 1, wherein negotiating confusion acquisition rules by the live platform server with the client of the updated live APP comprises:
the live broadcast platform server generates a first message, wherein the first message comprises the time for the live broadcast platform server to acquire the confusion rule and the confusion acquisition rule corresponding to the time;
and the live broadcast platform server encrypts the first message by adopting a preset encryption algorithm and sends the first message to the client side of the updated live broadcast APP.
3. The method as claimed in claim 1, wherein the step of the live broadcast platform server obfuscating the anchor information of the current live broadcast room according to the obfuscation rule to obtain obfuscated data includes:
the live broadcast platform server carries out attribute classification on the anchor information of the current live broadcast room to obtain M pieces of attribute information, wherein M is an integer not less than 1;
and the live broadcast platform server selects M Hash algorithms from the database to respectively carry out Hash operation on the M attribute information to obtain M groups of Hash values, and the M groups of Hash values are contained in the confusion data.
4. The method of claim 1, wherein obtaining the update rate of the live APP by the live platform server comprises:
the live broadcast platform server receives the update rate of the live broadcast APP sent by the management server;
or the like, or, alternatively,
the live broadcast server calculates the update rate of the live broadcast APP according to the following modes:
G=M/N;
wherein, the G is used for representing the update rate of live APP, the M is used for representing the number of the clients of the updated live APP, and the N is used for representing the number of all the clients registering the live APP.
5. The method according to any one of claims 1 to 4, further comprising:
and if the update rate is smaller than the preset value, the live broadcast platform server sends the confusion data and the anchor information of the current live broadcast room to the user client.
6. A live platform server, comprising:
the determining unit is used for negotiating confusion acquisition rules with the client of the updated live broadcast APP;
the obtaining unit is used for obtaining the confusion rule in a database at regular time according to the confusion obtaining rule;
the confusion unit is used for confusing the anchor information of the current live broadcast room according to the confusion rule to obtain confusion data;
the obtaining unit is further configured to obtain an update rate of the live broadcast APP, and determine whether the update rate is greater than a preset value;
and if the update rate is greater than the preset value, a transceiving unit is used for sending the confusion data to a user client so that the user client restores the confusion data according to the confusion rule to obtain the anchor broadcast information of the current live broadcast room, and the user corresponding to the user client is the user in the current live broadcast room.
7. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1-5.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of claims 1-5 when executing the computer program.
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 CN109768978A (en) 2019-05-17
CN109768978B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266484B (en) * 2019-06-28 2021-07-06 深圳前海微众银行股份有限公司 Data encryption method, device, equipment and medium
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

Citations (4)

* 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
CN108307246A (en) * 2018-01-09 2018-07-20 武汉斗鱼网络科技有限公司 A kind of method, storage medium, equipment and system calculating direct broadcasting room popularity
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002010939A1 (en) * 2000-07-28 2002-02-07 American Calcar Inc. Technique for effective organization and communication of information
CN106604044A (en) * 2016-11-21 2017-04-26 武汉斗鱼网络科技有限公司 Direct broadcast room recommendation strategy assessment method, user equipment, and server system
CN108574877B (en) * 2018-01-05 2021-01-29 北京金山云网络技术有限公司 Live broadcast method, anchor terminal, audience terminal, equipment, system and storage medium

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN109768978A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN109768978B (en) Method and related device for obfuscating data
US8712041B2 (en) Content protection apparatus and content encryption and decryption apparatus using white-box encryption table
JP2015517685A (en) Method, apparatus and system for implementing media data processing
US20140115321A1 (en) Encrypted statistical processing system, device, method, and program
JP2018502524A (en) Encryption control for information, information analysis method, system and terminal
KR101615137B1 (en) Data access method based on attributed
CN110025955B (en) Information processing method, terminal, computer-readable storage medium, and computer device
CN108197439A (en) A kind of file encrypting method, device and server
CN109067805B (en) Live broadcast room data anti-crawling method and device, terminal and readable medium
CN113239403A (en) Data sharing method and device
CN111052673B (en) Anonymous broadcasting method, key exchange method, anonymous broadcasting system, key exchange system, communication device, and program
CN108549824A (en) A kind of data desensitization method and device
CN106789008B (en) Method, device and system for decrypting sharable encrypted data
EP3041188B1 (en) Method, device and system for controlling presentation of application
CN111131127B (en) Communication method based on live broadcast platform and related device
CN108206961B (en) Method for calculating popularity of live broadcast platform and related equipment
CN113300999A (en) Information processing method, electronic device, and readable storage medium
US9473471B2 (en) Method, apparatus and system for performing proxy transformation
CN105721463B (en) File secure transmission method and device
KR101695361B1 (en) Terminology encryption method using paring calculation and secret key
CN109600631B (en) Video file encryption and publishing method and device
CN106487761B (en) Message transmission method and network equipment
KR20070062632A (en) Mobile message and file security implementation by cryptography
CN112699391B (en) Target data sending method and privacy computing platform
KR101812311B1 (en) User terminal and data sharing method of user terminal based on attributed re-encryption

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