Data query method, device, non-volatile storage medium and electronic device
By using the preset query condition table in data query to determine the query conditions of the target field and the noise field, and returning the target data, the problem of being unable to protect the privacy of the queryer in the existing technology is solved, and the privacy protection of the queryer is realized.
Patent Information
- Application Number
- CN202311776600.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-12-22
AI Technical Summary
Existing data query methods cannot effectively protect the privacy of the queryer, making it difficult to determine the legitimacy of the queryer and query behavior, which may lead to the leakage of private information.
By obtaining the query request from the user terminal, using the preset query condition table to determine the query conditions of the target field and noise field, query the target data and noise data from the Internet platform, and return the target data to the user terminal to avoid revealing the query intention of the queryer , to achieve privacy protection.
It effectively protects the privacy of the inquirer, avoids the risk of the platform actively leaking information related to the inquiry process, and ensures that the inquirer's private information is not illegally obtained.
Smart Images

Figure CN117910031B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a data query method, device, non-volatile storage medium and electronic device. Background Art
[0002] As data is increasingly valued as an important means of social production, the discovery and application of data value has become an increasingly important direction for data mining. In the past, data mining often focused on the discovery and application of the value of existing data by data holders, and was restricted by factors such as information systems and Internet technologies, so large-scale data interaction and transactions could not become a reality. However, with the development of modern information technology and the advent of the mobile Internet era, the production and circulation of data have undergone revolutionary changes. The discovery and application of data value are more focused on the discovery and application of value between multiple data sources, and now people are more concerned about bringing together multi-source heterogeneous data and further exploring data value from a higher data concept and level. Therefore, the application of data value and role has truly entered the "data asset era". In the "data asset era", everyone, as a producer and consumer of data, not only needs to benefit from the times, but also better protect personal privacy, thus forming a difficult problem of privacy protection.
[0003] The same problem exists for corporate users. Once a company becomes a user of an Internet platform, it will inevitably leave traces on the Internet through its business operations and production behaviors, just like individual users. Some of this data is also private information for the company and involves different business secrets. For their own economic interests, the company does not want the platform to use this data outside the legal framework, and even less does it want the platform to resell such data to others.
[0004] In particular, with the establishment and operation of large Internet platform companies, personal privacy information has been continuously deposited in these large platforms, such as personal ID numbers, mobile phone numbers, bank accounts and card numbers, etc. These large platforms often rely on their own advantages of convenient services, low prices, and a full range of services to occupy an advantageous ecological niche in the process of obtaining personal traffic, which has led to the number of users on each large platform reaching hundreds of millions or even tens of billions. The amount of personal privacy information deposited on these platforms has reached a huge level. Once hacked or maliciously leaked, it is easy to cause incalculable losses and cause multiple potential harms to the users themselves.
[0005] In response to these threats, large platform companies are generally more cautious when providing functions such as user privacy information query, requiring multiple submissions of verification information to ensure the legitimacy of the inquirer and the query behavior, and to minimize the time and amount of privacy information queries.
[0006] However, due to the lag of the existing regulatory framework and privacy query technology, large platforms may not be able to fully identify the legality of the inquirer and the query behavior when providing privacy information query, resulting in illegal query and leakage of privacy information. It is also possible that for commercial interests, they will actively ignore the risks in privacy query and cause unnecessary leakage of user information.
[0007] Therefore, the existing regulatory framework and privacy query technology have the following defects:
[0008] 1) The content that needs to be queried is often visible to the platform, and the risk of the platform actively leaking information related to the query process cannot be avoided;
[0009] 2) The queryer cannot protect his own query logic, which belongs to the queryer's private information. If it is disclosed to the platform or a third party, this private information cannot be effectively protected.
[0010] With respect to the problem that the above-mentioned existing data query methods cannot protect the privacy of the inquirer, no effective solution has been proposed so far. Summary of the invention
[0011] The embodiments of the present invention provide a data query method, device, non-volatile storage medium and electronic device to at least solve the technical problem that the existing data query method cannot protect the privacy of the inquirer.
[0012] According to one aspect of an embodiment of the present invention, a data query method is provided, comprising: obtaining a query request sent by a user terminal, wherein the query request carries at least one target field; determining a target query condition table for the target field according to a preset query condition table, wherein the preset query condition table comprises a plurality of preset query conditions, each of the preset query conditions being used to query a corresponding preset field in an Internet platform, the target query condition table comprising: a target query condition for querying the target field, and a noise query condition for querying a noise field, wherein the preset field comprises: the target field and the noise field, wherein the target field and the noise field are different; receiving a query result returned by the Internet platform according to the target query condition table, wherein a plurality of the preset data are pre-stored in the Internet platform, each of the preset data corresponds to the preset field, the query result comprises: target data and noise data, the target data being the preset data corresponding to the target field, and the noise data being the preset data corresponding to the noise data; and sending the target data to the user terminal.
[0013] Optionally, before determining the target query condition table of the target field according to the preset query condition table, the method also includes: obtaining a first login request from the Internet platform, wherein the first login request carries a login account and a login password; when the login account and the login password are verified, establishing communication with the Internet platform to obtain the preset query condition table of the Internet platform.
[0014] Optionally, obtaining the preset query condition table of the Internet platform includes: receiving a preset field table of the Internet platform, wherein the preset field table is used to record multiple preset fields stored in the Internet platform; calculating the hash value of each of the preset fields through a hash algorithm to determine the preset query condition corresponding to each of the preset fields; and storing the preset query conditions corresponding to multiple preset fields into the preset query condition table.
[0015] Optionally, obtaining the preset query condition table of the Internet platform includes: receiving the preset query condition table of the Internet platform, wherein the Internet platform calculates hash values of multiple preset fields in a preset field table through a hash algorithm to obtain the preset query condition table, the preset query condition table includes multiple preset query conditions, and each preset query condition is a hash value corresponding to the preset field.
[0016] Optionally, obtaining the query request sent by the user terminal includes: obtaining a second login request from the user terminal, wherein the second login request carries identity information of the user terminal; authenticating the identity information; and when the identity information passes the authentication, receiving the query request sent by the user terminal.
[0017] Optionally, according to the preset query condition table, determining the target query condition table for the target field includes: determining in the preset query condition table that the preset query condition corresponding to the target field is the target query condition; determining a noise query condition among multiple preset query conditions in the preset query condition table; and determining the target query condition table according to the target query condition and the noise query condition.
[0018] Optionally, among the multiple preset query conditions in the preset query condition table, determining the noise query condition includes: determining an extraction point in the preset query condition table, wherein the multiple preset query conditions in the preset query condition table are arranged sequentially; in the preset query condition table, taking the extraction point as the starting point, sequentially acquiring a preset number of the preset query conditions as the noise query condition.
[0019] According to another aspect of an embodiment of the present invention, a data query device is further provided, comprising: an acquisition module, configured to acquire a query request sent by a user terminal, wherein the query request carries at least one target field; a determination module, configured to determine a target query condition table for the target field according to a preset query condition table, wherein the preset query condition table comprises a plurality of preset query conditions, each of which is used to query a corresponding preset field in an Internet platform, wherein the target query condition table comprises: a target query condition for querying the target field, and a noise query condition for querying a noise field, wherein the preset field comprises: the target field and the noise field, wherein the target field and the noise field are different; a receiving module, configured to receive a query result returned by the Internet platform according to the target query condition table, wherein a plurality of the preset data are pre-stored in the Internet platform, each of which corresponds to the preset field, and the query result comprises: target data and noise data, wherein the target data is the preset data corresponding to the target field, and the noise data is the preset data corresponding to the noise data; and a sending module, configured to send the target data to the user terminal.
[0020] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, wherein the non-volatile storage medium is used to store a program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the above-mentioned data query methods.
[0021] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including: a memory and a processor, wherein the processor is configured to run a program stored in the processor, wherein the above-mentioned data query method is executed when the program is run.
[0022] In an embodiment of the present invention, a query request sent by a user terminal is obtained, wherein the query request carries at least one target field; a target query condition table of the target field is determined according to a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, each preset query condition corresponds to a preset field stored in an Internet platform, and the target query condition table includes: a target query condition corresponding to the target field, and a noise query condition corresponding to the noise field, and the preset field includes a target field and a noise field, and the target field and the noise field are different; a query result returned by the Internet platform according to the preset query condition table is received, wherein the query result includes: target data based on a target field query and noise data based on a noise field query; the target data is sent to the user terminal, so that in the process of querying the target data on the Internet platform, the target field and the noise field can be provided to the Internet platform for query, thereby achieving the purpose of avoiding disclosure of the query intention of the inquirer, and realizing the technical effect of protecting the privacy of the inquirer, thereby solving the technical problem that the existing data query method cannot protect the privacy of the inquirer. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0024] Figure 1 is a flow chart of a data query method according to an embodiment of the present invention;
[0025] Figure 2 is a schematic diagram of a privacy query process based on a hash algorithm according to an embodiment of the present invention;
[0026] Figure 3 is a schematic diagram of a data query device according to an embodiment of the present invention;
[0027] Figure 4 It is a structural block diagram of a computer terminal according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] According to an embodiment of the present invention, a data query method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] Figure 1 is a flow chart of a data query method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0032] Step S102, obtaining a query request sent by a user terminal, wherein the query request carries at least one target field;
[0033] Step S104, determining a target query condition table of a target field according to a preset query condition table, wherein the preset query condition table includes a plurality of preset query conditions, each preset query condition is used to query a corresponding preset field in an Internet platform, the target query condition table includes: a target query condition for querying a target field, and a noise query condition for querying a noise field, the preset fields include: a target field and a noise field, and the target field and the noise field are different;
[0034] Step S106, receiving the query result returned by the Internet platform according to the target query condition table, wherein a plurality of preset data are pre-stored in the Internet platform, each preset data corresponds to a preset field, and the query result includes: target data and noise data, the target data is the preset data corresponding to the target field, and the noise data is the preset data corresponding to the noise data;
[0035] Step S108: Send target data to the user terminal.
[0036] In an embodiment of the present invention, a query request sent by a user terminal is obtained, wherein the query request carries at least one target field; a target query condition table of the target field is determined according to a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, each preset query condition corresponds to a preset field stored in an Internet platform, and the target query condition table includes: a target query condition corresponding to the target field, and a noise query condition corresponding to the noise field, and the preset field includes a target field and a noise field, and the target field and the noise field are different; a query result returned by the Internet platform according to the preset query condition table is received, wherein the query result includes: target data based on a target field query and noise data based on a noise field query; the target data is sent to the user terminal, so that in the process of querying the target data on the Internet platform, the target field and the noise field can be provided to the Internet platform for query, thereby achieving the purpose of avoiding disclosure of the query intention of the inquirer, and realizing the technical effect of protecting the privacy of the inquirer, thereby solving the technical problem that the existing data query method cannot protect the privacy of the inquirer.
[0037] Optionally, the above data query method can be executed in a privacy query system, which is used to connect a user terminal and an Internet platform, so that a privacy information inquirer can access the privacy query system through the user terminal and perform data query on the privacy information recorded in the Internet platform.
[0038] In the above step S102, the user terminal may be a smart terminal such as a mobile phone or a computer, and the privacy information inquirer may send a query request to the privacy query system through the user terminal.
[0039] In the above step S102, the target field in the query request indicates that the user terminal requests to query the target data in the Internet platform. The privacy query system can determine the query conditions of the target data based on the target field in the query request, so that the privacy query system can obtain the target data from the Internet platform according to the target query conditions.
[0040] In the above step S104, the privacy query system can pre-acquire the preset fields corresponding to the preset data stored in the Internet platform, and use the preset fields as the query conditions corresponding to the preset data to establish a preset query condition table, so that the preset query condition table can record the preset query conditions of multiple preset data.
[0041] In the above step S104, a plurality of preset data and a preset field corresponding to each preset data are pre-stored in the Internet platform, and the preset data may be privacy information recorded by the Internet platform.
[0042] In the above step S104, the privacy query system can record preset query conditions of multiple preset data through a preset query condition table. Each preset query condition is determined according to the preset field corresponding to each preset data. Then, when a query request is received, the target query condition corresponding to the target field can be queried in the preset query condition table according to the target field carried in the query request, and the target data can be queried in the Internet platform based on the target query condition.
[0043] In the above step S104, the preset query condition table records the preset query conditions and corresponding preset fields. After determining the target query condition corresponding to the target field from the preset query condition table, the noise field and the noise query condition corresponding to the noise field can also be obtained from the preset query condition table.
[0044] In the above step S104, the target query condition table includes both the target query condition and the noise query condition. The target data can be queried based on the target query condition, and the noise data can be queried based on the noise query condition. The target query condition is then hidden through the noise query condition to prevent the Internet platform from knowing the real query intention of the user terminal, thereby achieving the technical effect of protecting the privacy of the inquirer.
[0045] In the above step S106, the query results received by the privacy query system include both the target data queried based on the target query conditions and the noise data queried based on the noise query conditions, but the query request of the user terminal only requests to obtain the target data of the target field. Therefore, the privacy query system can separate the target data and the noise data, send the target data to the user terminal, and delete the noise data.
[0046] In the above step S106, the Internet platform cannot distinguish between the target query conditions and the noise query conditions in the target query condition table, and both are used as conditions to be queried for data query. Then, during the query process, the preset fields recorded in the Internet platform can be matched with the conditions to be queried, and the preset data corresponding to the matched preset fields can be used as the query results based on the conditions to be queried.
[0047] As an optional embodiment, before determining the target query condition table of the target field according to the preset query condition table, the method also includes: obtaining a first login request from the Internet platform, wherein the first login request carries a login account and a login password; when the login account and the login password are verified, establishing communication with the Internet platform to obtain the preset query condition table of the Internet platform.
[0048] In the above-mentioned embodiment of the present invention, the Internet platform can obtain the connection permission to establish a communication connection with the privacy query system through the login account and login password, and then the Internet platform can send a first login request carrying the login account and login password to the privacy query system, and when the login account and login password in the first login request are verified, the privacy query system and the Internet platform establish communication and obtain the preset query condition table of the Internet platform.
[0049] It should be noted that, when determining the preset query condition corresponding to each preset field, the hash value of each preset field may be calculated by a hash algorithm, and the hash value may be used as the preset query condition corresponding to the preset field to establish a preset query condition table.
[0050] It should be noted that the hash algorithm is also called a hash function. A hash function (also called a digest algorithm) is a function that changes an input message string of any length into an output string of fixed length. This output string is called the hash value of the message. It is generally used to generate message digests, key encryption, etc.
[0051] It should be noted that the characteristics of hash algorithms include:
[0052] ① No matter how long the input message is, the length of the calculated message digest is always fixed.
[0053] ②The message digest looks "random". The bits appear to be randomly jumbled together.
[0054] ③ Generally speaking, as long as the input message is different, the summary message generated after summarizing it will also be different; but the same input will produce the same output.
[0055] ④ The message digest function is a one-way function without a trap, that is, it can only perform forward information summary, and no message can be recovered from the summary, and even no information related to the original message can be found at all.
[0056] For example, MD5 (Message-Digest Algorithm 5) is a widely used cryptographic hash function that can generate a 128-bit (16-byte) hash value (also known as a hash value) to ensure that information transmission is complete and consistent. The hash algorithm will generate a fixed-length 128-bit string (e4b0190b2fadc0adbe54471ffd79a729), which is also called a hash value and is basically unique.
[0057] For example, the hash value (also called hash value) of "Message Digest Algorithm" is: e4b0190b2fadc0adbe54471ffd79a729.
[0058] As an optional example, the following is the MD5 calculation of the string "Hello":
[0059] Enter text: Hello.
[0060] Step 1: Convert the input text into a byte string.
[0061] Convert the input text "Hello" into a byte string: 0x68 0x65 0x6C 0x6C 0x6F.
[0062] Step 2: Hash the byte string.
[0063] Use the MD5 algorithm to hash the byte string. The result is: 0x23 0x8F 0x4A 0x9E 0x4D0x32 0x45 0x8D 0xSB 0x28 0x43 0x4D 0x4E 0x3A 0x4B 0x3D.
[0064] Step 3: Convert the hash result into a hexadecimal string.
[0065] Convert each byte of the hash result to hexadecimal, and you get the hexadecimal string: 238F4A9E4D32458D5B28434D4E3A4B3D.
[0066] Step 4: Output the results.
[0067] The output MD5 calculation result is: 238F4A9E4D32458D5B28434D4E3A4B3D.
[0068] The SHA hash algorithm is a more secure hash algorithm that can convert data of any length into a hash value of fixed length. The hash value length of the SHA algorithm can be 160 bits, 256 bits, 384 bits, or 512 bits, of which SHA-256 and SHA-512 are the two most widely used algorithms.
[0069] The above-mentioned embodiment of the present application protects the content of the data queried by the querying user and the query behavior logic by calculating the hash value of the data to be queried and then matching it with the hash value of the data provided by the data provider, and adding obfuscation item data.
[0070] Optionally, the process of calculating the hash value of each preset field through a hash algorithm and determining the preset query condition corresponding to each preset field can be performed both in the privacy query system and on the Internet platform.
[0071] As an optional embodiment, obtaining a preset query condition table of an Internet platform includes: receiving a preset field table of the Internet platform, wherein the preset field table is used to record multiple preset fields stored in the Internet platform; calculating a hash value of each preset field through a hash algorithm to determine the preset query condition corresponding to each preset field; and storing the preset query conditions corresponding to multiple preset fields in the preset query condition table.
[0072] In the above embodiment of the present invention, the privacy query system can receive the preset field table of the Internet platform, perform hash algorithm calculation in the privacy query system, and calculate the hash value of each preset field to complete the construction of the preset query condition table.
[0073] As an optional embodiment, obtaining a preset query condition table of an Internet platform includes: receiving the preset query condition table of the Internet platform, wherein the Internet platform calculates hash values of multiple preset fields in a preset field table through a hash algorithm to obtain a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, and each preset query condition is a hash value of a corresponding preset field.
[0074] The above-mentioned embodiment of the present invention can perform hash algorithm calculation on the Internet platform, calculate the hash value of each preset field, complete the construction of the preset query condition table, and then send the constructed preset query condition table to the privacy query system.
[0075] As an optional embodiment, obtaining the query request sent by the user terminal includes: obtaining a second login request from the user terminal, wherein the second login request carries identity information of the user terminal; authenticating the identity information; and when the identity information passes the authentication, receiving the query request sent by the user terminal.
[0076] In the above-mentioned embodiment of the present invention, the user terminal can be a smart terminal such as a mobile phone. Considering the portability of the solution, the query object can use any user terminal to apply for access to the privacy query system; in order to ensure the security of the query process, when the query object accesses the privacy query system through the user terminal, the identity information of the query object can be carried in the second login request issued by the user terminal, and the identity information can be authenticated by the privacy query system. After the identity information of the user terminal is authenticated, the privacy query system will receive the query request sent by the user terminal and query the target data.
[0077] Optionally, different privacy objects have different query permissions. Therefore, in the process of authenticating identity information, the query permission corresponding to each identity information can be determined, and the query request sent by the user terminal using the identity information is executed according to the query permission.
[0078] As an optional embodiment, determining a target query condition table for a target field according to a preset query condition table includes: determining in the preset query condition table that a preset query condition corresponding to the target field is a target query condition; determining a noise query condition among multiple preset query conditions in the preset query condition table; and determining a target query condition table according to the target query condition and the noise query condition.
[0079] In the above embodiment of the present invention, after determining the target query condition from the preset query condition table, the noise query condition can also be obtained from the preset query condition table, and the target query condition can be hidden by the noise query condition, thereby achieving the technical effect of protecting the privacy of the inquirer.
[0080] Optionally, the noise query condition may be randomly selected from a preset query condition table.
[0081] As an optional embodiment, among multiple preset query conditions in a preset query condition table, determining a noise query condition includes: determining an extraction point in the preset query condition table, wherein multiple preset query conditions in the preset query condition table are arranged sequentially; in the preset query condition table, taking the extraction point as a starting point, sequentially obtaining a preset number of preset query conditions as noise query conditions.
[0082] In the above-mentioned embodiment of the present invention, the preset query condition table stores multiple preset query conditions arranged in sequence. When determining the noise query condition from the preset query condition table, the preset query condition of the extraction point can be first determined as the starting point among the multiple preset query conditions arranged in sequence, and a preset number of noise query conditions can be obtained to achieve the determination of the noise query condition.
[0083] The present invention also provides an optional embodiment, which provides a privacy query system based on a hash algorithm. The privacy query system can be based on an open platform that can be distributed, centralized, or cloud-based, and is divided into a system end and a client end. The system end can be deployed to various Internet platforms for the Internet platforms to input privacy information that needs to be queried, and the client end can be deployed to the user's personal mobile phone or desktop computer to conveniently use the various privacy query functions provided by the privacy query system pointed to by this application.
[0084] Optionally, the privacy query process system based on the hash algorithm includes: an Internet platform P (such as an online shopping mall) for providing privacy information, a privacy query system S based on the hash algorithm, and a privacy information inquirer I.
[0085] Optionally, the privacy information inquirer can be an individual user of the online mall or a regulatory agency.
[0086] Figure 2 is a schematic diagram of a privacy query process based on a hash algorithm according to an embodiment of the present invention, such as Figure 2 As shown, the steps include:
[0087] S21, perform hash operation on all fields of platform P.
[0088] Optionally, the Internet platform P logs in to the privacy query system S using the system user account and password, and calculates the hash values corresponding to all fields of the Internet platform P through a hash algorithm (for the hash algorithm itself, it makes no difference whether it is built into the privacy query system S or this part of the operation module is deployed to the Internet platform P). Since most fields exist in the form of keys, the result after the hash operation can be replaced by a preset query condition table H-key, where H represents a hash operation on the entire field table, and the preset query condition table H-key includes multiple preset query conditions.
[0089] S22, backup of H-key.
[0090] Optionally, the preset query condition table H-key includes multiple preset query conditions.
[0091] Optionally, if the hash algorithm is deployed in the Internet platform P, the Internet platform P will push the preset query condition table H-key to the privacy query system S. If the hash algorithm is built into the privacy query system S, the privacy query system S can directly store the preset query condition table H-key for backup and use it as a condition table for privacy information query.
[0092] S23, the inquirer logs in and authenticates.
[0093] Optionally, the inquirer I logs in to the privacy query system S through the client, and the privacy query system S completes the authentication of his identity to ensure the compliance of the subject conducting the privacy information query and ensure that the query is completed within the compliance framework, including the queried privacy information, the query logic, etc., all comply with relevant regulations.
[0094] S24, query conditions are generated.
[0095] Optionally, the privacy information inquirer I submits a query request to the privacy query system S, including the query fields, which must be consistent with the fields of the Internet platform P, otherwise it will result in an invalid query or null values will be returned after the query. The target query condition F may include multiple ones, which can be expressed as: F = F1 (key1, key2, key3, ..., keyn), where key represents each target field to be queried, that is, the target query condition, and keyn represents the nth target field to be queried.
[0096] Optionally, the value range of n is not greater than the number of preset field keys in the preset query condition table H-key, otherwise an invalid query is formed.
[0097] S25, adding noise to the query condition.
[0098] Optionally, the privacy query system S selects different numbers of noise query condition keys from the preset query condition table H-key by a random method to form noise query conditions F′ as a supplement to the target query conditions F, forming a target query condition table FF′, so as to confuse the target query conditions F, so that no matter which deployment method is adopted, the Internet platform P cannot determine the true target query conditions F. The target query condition table FF′ can be expressed as FF′=F2(F, (rand(key-point, num))), where the query conditions in the target query condition table are formed by F superimposed with noise F′, and the noise is extracted from the preset query condition table H-key by a random algorithm. Two parameters need to be set during extraction, namely the extraction point key-point and the extraction number num (that is, the preset number), where key-point indicates the key from which the noise query conditions are extracted, and num indicates the number of noise query condition keys extracted from this point onwards.
[0099] It should be noted that the number of extractions num is not greater than the number of preset query condition keys after the extraction point key-point in the preset query condition table H-key.
[0100] Optionally, if it is considered that the noise is too large and may easily lead to a decrease in transmission efficiency, it can be regulated by limiting the extraction number num. For example, if the condition num≤3 is set, it means that after the extraction point, at most 3 noise query condition keys are selected, and the target query condition table FF′ can be transformed into: FF′=F2(F, (rand(key-point, num:≤3))).
[0101] S26, query conditions and privacy information upload.
[0102] Optionally, the privacy query system S sends the target query condition table FF′ to the Internet platform P, and the Internet platform P extracts the corresponding data set HH′ (ie, the query result) from the database and uploads it to the privacy query system S.
[0103] It should be noted that for the privacy query system S, the privacy information uploaded by the Internet platform P is based on compliance requirements and relevant agreement provisions. As a privacy protection technology provider, the privacy query system S is a neutral third party and must meet the compliance requirements for the information transmitted by the Internet platform P.
[0104] S27, privacy information push and noise data destruction.
[0105] Optionally, the privacy query system S delivers the target data H to the privacy information inquirer I, who then performs relevant information query and destroys the noise data H′.
[0106] Optionally, the privacy information inquirer I may only be able to use the queried privacy information in the privacy query system S, and must comply with relevant compliance requirements. However, if the privacy information inquirer I is the owner of the privacy information on the Internet platform, or the relevant regulator, it is possible to obtain the privacy information data itself under the compliance framework.
[0107] As an optional embodiment, the privacy query process based on the hash algorithm includes the following steps:
[0108] Step S31, performing hash operation on all fields of platform P.
[0109] Optionally, the hash values corresponding to all keys of P are calculated using the MD5 hash algorithm.
[0110] For example, the result of calculating "Zhang San" through the MD5 hash algorithm is a hash value: 615DB57AA314529AAA0FBE95B3E95BD3. After calculating all the data through the MD5 hash algorithm, a table H-key of the original data and its corresponding hash value is established.
[0111] Step S32, backup of H-key.
[0112] Optionally, if the hash algorithm is deployed in P, P will push the hash value table H-key to the privacy query system S. If the hash algorithm is built into S, S can directly store H-key for backup and use it as a condition table for privacy information query.
[0113] S33, the inquirer logs in and authenticates.
[0114] Optionally, the inquirer I logs in to S through the client, and S completes the authentication of his identity to ensure the compliance of the subject conducting the privacy information query and ensure that the query is completed within the compliance framework, including the queried privacy information, the query logic, etc., all comply with relevant regulations.
[0115] S34, query conditions are generated.
[0116] Optionally, the inquirer I makes a query request to S, the content of which includes the query fields such as {"Zhang San", "Li Si", "Wang Wu"}.
[0117] S35, adding noise to the query condition.
[0118] Optionally, the privacy query system S selects different numbers of keys from H-key as supplements to the F function by a random method.
[0119] For example, starting from the 5th key in H-key (i.e. key-point=5), the average random algorithm is used to randomly select 3 keys (i.e. num=3): {"Zhao Liu", "Sun Qi", "Zhou Ba"} to form the FF′ query condition table, i.e. {"Zhang San", "Li Si", "Wang Wu", "Zhao Liu", "Sun Qi", "Zhou Ba"}, to achieve the purpose of confusing F, so that no matter which deployment method is used, P cannot determine the true F. This process is implemented by formula (1).
[0120] Formula (1) is: FF′=F2(F, (rand(key-point, num))).
[0121] Obviously, the number of num must be less than or equal to the number of keys after the key-point extraction point.
[0122] Optionally, if it is considered that the noise is too large and may easily lead to reduced transmission efficiency, it can be regulated by limiting num. For example, if the condition num≤3 is set, it means that after the extraction point, at most 3 keys are selected as noise to be added to the query condition, then formula (1) can be transformed into formula (2).
[0123] Formula (2) is: FF′=F2(F, (rand(key-point, num:≤3))).
[0124] S36, query conditions and upload of privacy information.
[0125] Optionally, the privacy query system S calculates the hash value corresponding to the content to be queried FF′{“Zhang San”, “Li Si”, “Wang Wu”, “Zhao Liu”, “Sun Qi”, “Zhou Ba”}{“615DB57AA314529AAA0FBE95B3E95BD3”, “36c942351ec9cc3ad124e288a5c9cf0b”, “3228f322c9c98a125554a24f875f0f7e”, “b43536d0468a4ab0ccc538b975623cd9”, “52a48bb45a786677e0f4fb28064 c148f", "0cf67fa426103e1c3aecdb93d91be7ab"} is sent to the Internet platform P, and P extracts the data set {13312345678, 35, 123...} consisting of the mobile phone numbers or years or electricity meter data corresponding to '{"Zhang San", "Li Si", "Wang Wu", "Zhao Liu", "Sun Qi", "Zhou Ba"} from the database, and uploads it to S. It should be noted that for S, the privacy information uploaded by P is based on compliance requirements and relevant agreement provisions. As a privacy protection technology provider, S is a neutral third party and must meet the compliance requirements for the information transmitted by P.
[0126] S37, private information push and noise data destruction.
[0127] Optionally, the privacy query system S delivers the data set {13312345678, 35, 123, ...} corresponding to {"Zhang San", "Li Si", "Wang Wu"} to I, who then queries the relevant information and destroys the data set {189987654328, 47, 879, ...} corresponding to {"Zhao Liu", "Sun Qi", "Zhou Ba"}. Generally speaking, as a queryer, I may only be able to use the queried privacy information in S and must comply with relevant compliance requirements. However, if I is the owner of the privacy information on the Internet platform or the relevant regulator, it is possible to obtain the privacy information data itself under the compliance framework.
[0128] Or for example: the online shopping platform is the Internet platform P that provides privacy information, and the individual user is the privacy information inquirer I.
[0129] Optionally, if an individual user I conducts a privacy data query in the shopping Internet platform P through the privacy query system S, the individual user needs to query his or her own purchase records, including: purchased goods, purchase date, and time. The Internet platform related data is randomly supplemented, and the supplemented fields include: purchased goods, purchase date, time, delivery address, purchaser, contact information, and delivery address. In this way, user I submits an application F=F1 (product name, purchase date, purchase time).
[0130] The above embodiment of the present invention uses a hash algorithm to calculate and encrypt the hash value of the private information field to be queried and add noise, and then matches it with the hash value of the data provided by the data provider to protect the content of the data queried by the querying user and the query behavior logic, making it invisible to the Internet platform that owns the original information.
[0131] It should be noted that the privacy data query method provided by this application is to protect the privacy of both the querying party and the data party, rather than just protecting the privacy of the data party alone.
[0132] The above-mentioned embodiment of the present invention encrypts the output query content by performing hash algorithm processing on the query content; and compares the MD5 codes of different parts of the plain text and the decrypted file to sample and check the consistency of all codes; and encrypts the query logic of the inquirer; so as to achieve the purpose of encrypting and protecting the user's query content and making it invisible to the platform or a third party, thereby avoiding the risk of the platform actively leaking information related to the query process, and realizes the technical effect of making the query logic privacy information of the inquirer invisible to the platform or a third party and protecting the query logic privacy information of the inquirer, and solves the technical problem that the risk of the platform actively leaking information related to the query process cannot be avoided due to the fact that the existing technology does not encrypt the user's query content, making the query content of the query user visible to the platform, and solving the technical problem that the inquirer cannot protect the privacy information of his own query logic.
[0133] According to an embodiment of the present invention, a data query device embodiment is also provided. It should be noted that the data query device can be used to execute the data query method in the embodiment of the present invention, and the data query method in the embodiment of the present invention can be executed in the data query device.
[0134] Figure 3 is a schematic diagram of a data query device according to an embodiment of the present invention. Figure 3As shown, the device may include: an acquisition module 32, used to acquire a query request sent by a user terminal, wherein the query request carries at least one target field; a determination module 34, used to determine a target query condition table of the target field according to a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, each preset query condition is used to query a corresponding preset field in an Internet platform, and the target query condition table includes: a target query condition for querying the target field, and a noise query condition for querying the noise field, and the preset fields include: a target field and a noise field, and the target field and the noise field are different; a receiving module 36, used to receive a query result returned by the Internet platform according to the target query condition table, wherein a plurality of preset data are pre-stored in the Internet platform, each preset data corresponds to a preset field, and the query result includes: target data and noise data, the target data is preset data corresponding to the target field, and the noise data is preset data corresponding to the noise data; a sending module 38, used to send the target data to the user terminal.
[0135] It should be noted that the acquisition module 32 in this embodiment can be used to execute step S102 in the embodiment of the present application, the determination module 34 in this embodiment can be used to execute step S104 in the embodiment of the present application, the receiving module 36 in this embodiment can be used to execute step S106 in the embodiment of the present application, and the sending module 38 in this embodiment can be used to execute step S108 in the embodiment of the present application. The examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.
[0136] In an embodiment of the present invention, a query request sent by a user terminal is obtained, wherein the query request carries at least one target field; a target query condition table of the target field is determined according to a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, each preset query condition corresponds to a preset field stored in an Internet platform, and the target query condition table includes: a target query condition corresponding to the target field, and a noise query condition corresponding to the noise field, and the preset field includes a target field and a noise field, and the target field and the noise field are different; a query result returned by the Internet platform according to the preset query condition table is received, wherein the query result includes: target data based on a target field query and noise data based on a noise field query; the target data is sent to the user terminal, so that in the process of querying the target data on the Internet platform, the target field and the noise field can be provided to the Internet platform for query, thereby achieving the purpose of avoiding disclosure of the query intention of the inquirer, and realizing the technical effect of protecting the privacy of the inquirer, thereby solving the technical problem that the existing data query method cannot protect the privacy of the inquirer.
[0137] As an optional embodiment, the device also includes: a first acquisition sub-module, used to obtain a first login request from the Internet platform before determining the target query condition table of the target field according to the preset query condition table, wherein the first login request carries a login account and a login password; a second acquisition sub-module, used to establish communication with the Internet platform and obtain the preset query condition table of the Internet platform when the login account and the login password are verified.
[0138] As an optional embodiment, the second acquisition submodule includes: a first receiving unit, used to receive a preset field table of an Internet platform, wherein the preset field table is used to record multiple preset fields stored in the Internet platform; a first determination unit, used to calculate the hash value of each preset field through a hash algorithm, and determine the preset query condition corresponding to each preset field; a storage unit, used to store the preset query conditions corresponding to multiple preset fields into the preset query condition table.
[0139] As an optional embodiment, the second acquisition submodule includes: a second receiving unit, used to receive a preset query condition table of the Internet platform, wherein the Internet platform calculates hash values of multiple preset fields in the preset field table through a hash algorithm to obtain a preset query condition table, the preset query condition table includes multiple preset query conditions, and each preset query condition is a hash value of a corresponding preset field.
[0140] As an optional embodiment, the acquisition module includes: an acquisition unit, used to obtain a second login request from a user terminal, wherein the second login request carries identity information of the user terminal; an authentication unit, used to authenticate the identity information; and a third receiving unit, used to receive a query request sent by the user terminal when the identity information is authenticated.
[0141] As an optional embodiment, the determination module includes: a second determination unit, used to determine that the preset query condition corresponding to the target field in the preset query condition table is the target query condition; a third determination unit, used to determine the noise query condition among multiple preset query conditions in the preset query condition table; and a fourth determination unit, used to determine the target query condition table based on the target query condition and the noise query condition.
[0142] As an optional embodiment, the third determination unit includes: a first determination subunit, used to determine an extraction point in a preset query condition table, wherein multiple preset query conditions in the preset query condition table are arranged sequentially; a second determination subunit, used to obtain a preset number of preset query conditions in the preset query condition table, starting from the extraction point, in sequence as noise query conditions.
[0143] The embodiment of the present invention can provide a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal can also be replaced by a terminal device such as a mobile terminal.
[0144] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0145] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the data query method: obtain a query request sent by a user terminal, wherein the query request carries at least one target field; determine a target query condition table for the target field according to a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, each preset query condition is used to query the corresponding preset field in the Internet platform, and the target query condition table includes: a target query condition for querying the target field, and a noise query condition for querying the noise field, and the preset fields include: a target field and a noise field, and the target field and the noise field are different; receive a query result returned by the Internet platform according to the target query condition table, wherein a plurality of preset data are pre-stored in the Internet platform, each preset data corresponds to a preset field, and the query result includes: target data and noise data, the target data is the preset data corresponding to the target field, and the noise data is the preset data corresponding to the noise data; send the target data to the user terminal.
[0146] Optionally, Figure 4 is a structural block diagram of a computer terminal according to an embodiment of the present invention. Figure 4 As shown, the computer terminal 40 may include: one or more (only one is shown in the figure) processors 42 , and a memory 44 .
[0147] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the data query method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned data query method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal 40 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0148] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain a query request sent by the user terminal, wherein the query request carries at least one target field; determine a target query condition table for the target field according to a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, each preset query condition is used to query the corresponding preset field in the Internet platform, and the target query condition table includes: a target query condition for querying the target field, and a noise query condition for querying the noise field, and the preset fields include: a target field and a noise field, and the target field and the noise field are different; receive a query result returned by the Internet platform according to the target query condition table, wherein multiple preset data are pre-stored in the Internet platform, each preset data corresponds to a preset field, and the query result includes: target data and noise data, the target data is the preset data corresponding to the target field, and the noise data is the preset data corresponding to the noise data; send the target data to the user terminal.
[0149] Optionally, the processor may also execute the program code of the following steps: before determining the target query condition table of the target field according to the preset query condition table, obtaining a first login request from the Internet platform, wherein the first login request carries a login account and a login password; when the login account and the login password are verified, establishing communication with the Internet platform to obtain the preset query condition table of the Internet platform.
[0150] Optionally, the processor may also execute the program code of the following steps: receiving a preset field table of an Internet platform, wherein the preset field table is used to record multiple preset fields stored in the Internet platform; calculating a hash value of each preset field through a hash algorithm to determine a preset query condition corresponding to each preset field; and storing the preset query conditions corresponding to multiple preset fields into the preset query condition table.
[0151] Optionally, the processor may also execute the program code of the following steps: receiving a preset query condition table of an Internet platform, wherein the Internet platform calculates hash values of multiple preset fields in a preset field table through a hash algorithm to obtain a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, and each preset query condition is a hash value of a corresponding preset field.
[0152] Optionally, the processor may also execute program code of the following steps: obtaining a second login request from the user terminal, wherein the second login request carries identity information of the user terminal; authenticating the identity information; and receiving a query request sent by the user terminal when the identity information passes the authentication.
[0153] Optionally, the processor may also execute the program code of the following steps: determining the preset query condition corresponding to the target field in the preset query condition table as the target query condition; determining the noise query condition among multiple preset query conditions in the preset query condition table; and determining the target query condition table based on the target query condition and the noise query condition.
[0154] Optionally, the processor may also execute the following program code: determining an extraction point in a preset query condition table, wherein a plurality of preset query conditions in the preset query condition table are arranged sequentially; and in the preset query condition table, taking the extraction point as a starting point, sequentially obtaining a preset number of preset query conditions as noise query conditions.
[0155] An embodiment of the present invention is adopted to provide a data query scheme. In the embodiment of the present invention, a query request sent by a user terminal is obtained, wherein the query request carries at least one target field; a target query condition table of the target field is determined according to a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, each preset query condition corresponds to a preset field stored in an Internet platform, and the target query condition table includes: a target query condition corresponding to the target field, and a noise query condition corresponding to the noise field, and the preset field includes a target field and a noise field, and the target field and the noise field are different; a query result returned by the Internet platform according to the preset query condition table is received, wherein the query result includes: target data queried based on the target field and noise data queried based on the noise field; the target data is sent to the user terminal, so that in the process of querying the target data on the Internet platform, the target field and the noise field can be provided to the Internet platform for querying, thereby achieving the purpose of avoiding the disclosure of the query intention of the queryer, and realizing the technical effect of protecting the privacy of the queryer, thereby solving the technical problem that the existing data query method cannot protect the privacy of the queryer.
[0156] It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 4 The structure of the electronic device is not limited. For example, the computer terminal 40 may also include Figure 4 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 4 Different configurations are shown.
[0157] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile medium. The non-volatile storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0158] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the data query method provided in the above embodiment.
[0159] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0160] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining a query request sent by a user terminal, wherein the query request carries at least one target field; determining a target query condition table for the target field according to a preset query condition table, wherein the preset query condition table includes multiple preset query conditions, each preset query condition is used to query a corresponding preset field in an Internet platform, and the target query condition table includes: a target query condition for querying the target field, and a noise query condition for querying the noise field, and the preset fields include: a target field and a noise field, and the target field and the noise field are different; receiving a query result returned by the Internet platform according to the target query condition table, wherein multiple preset data are pre-stored in the Internet platform, each preset data corresponds to a preset field, and the query result includes: target data and noise data, the target data is preset data corresponding to the target field, and the noise data is preset data corresponding to the noise data; sending the target data to the user terminal.
[0161] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: before determining the target query condition table of the target field according to the preset query condition table, obtaining a first login request from the Internet platform, wherein the first login request carries a login account and a login password; when the login account and the login password are verified, establishing communication with the Internet platform to obtain the preset query condition table of the Internet platform.
[0162] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: receiving a preset field table of an Internet platform, wherein the preset field table is used to record multiple preset fields stored in the Internet platform; calculating a hash value of each preset field through a hash algorithm to determine a preset query condition corresponding to each preset field; and storing the preset query conditions corresponding to multiple preset fields in the preset query condition table.
[0163] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: receiving a preset query condition table of an Internet platform, wherein the Internet platform calculates hash values of multiple preset fields in a preset field table through a hash algorithm to obtain a preset query condition table, the preset query condition table including multiple preset query conditions, each preset query condition being a hash value of a corresponding preset field.
[0164] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining a second login request from the user terminal, wherein the second login request carries identity information of the user terminal; authenticating the identity information; and when the identity information passes the authentication, receiving a query request sent by the user terminal.
[0165] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: determining a preset query condition corresponding to a target field in a preset query condition table as a target query condition; determining a noise query condition among multiple preset query conditions in the preset query condition table; and determining a target query condition table based on the target query condition and the noise query condition.
[0166] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: determining an extraction point in a preset query condition table, wherein multiple preset query conditions in the preset query condition table are arranged sequentially; in the preset query condition table, taking the extraction point as a starting point, sequentially obtaining a preset number of preset query conditions as noise query conditions.
[0167] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0168] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0169] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0171] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0172] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a non-volatile storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned non-volatile storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0173] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data query method, characterized in that: include: Acquire a query request sent by a user terminal, wherein the query request carries at least one target field; Determine a target query condition table for the target field according to a preset query condition table, wherein the preset query condition table includes a plurality of preset query conditions, each of the preset query conditions corresponds to a preset field stored in an Internet platform, and the target query condition table includes: a target query condition corresponding to the target field, and a noise query condition corresponding to a noise field, the preset field includes the target field and the noise field, and the target field and the noise field are different; Receiving a query result returned by the Internet platform according to the preset query condition table, wherein the query result includes: target data queried based on the target field and noise data based on the noise field; sending the target data to the user terminal; Wherein, according to the preset query condition table, determining the target query condition table of the target field includes: Determining in the preset query condition table that the preset query condition corresponding to the target field is the target query condition; Determine a noise query condition among the plurality of preset query conditions in the preset query condition table; The target query condition table is determined according to the target query condition and the noise query condition.
2. The method according to claim 1, characterized in that Before determining the target query condition table of the target field according to the preset query condition table, the method further includes: Obtaining a first login request from an Internet platform, wherein the first login request carries a login account and a login password; When the login account and the login password are verified, communication is established with the Internet platform to obtain a preset query condition table of the Internet platform.
3. The method according to claim 2, characterized in that Obtaining the preset query condition table of the Internet platform includes: Receiving a preset field table of the Internet platform, wherein the preset field table is used to record a plurality of preset fields stored in the Internet platform; Calculate the hash value of each of the preset fields by using a hash algorithm to determine the preset query condition corresponding to each of the preset fields; The preset query conditions corresponding to the plurality of preset fields are stored in the preset query condition table.
4. The method according to claim 2, characterized in that: Obtaining the preset query condition table of the Internet platform includes: Receive the preset query condition table of the Internet platform, wherein the Internet platform calculates hash values of multiple preset fields in the preset field table through a hash algorithm to obtain the preset query condition table, and the preset query condition table includes multiple preset query conditions, and each preset query condition is a hash value corresponding to the preset field.
5. The method according to claim 1, characterized in that Obtaining the query request sent by the user terminal includes: Obtaining a second login request from a user terminal, wherein the second login request carries identity information of the user terminal; authenticating the identity information; When the identity information passes the authentication, the query request sent by the user terminal is received.
6. The method according to claim 1, characterized in that Among the plurality of preset query conditions in the preset query condition table, determining a noise query condition comprises: Determine an extraction point in the preset query condition table, wherein a plurality of the preset query conditions in the preset query condition table are arranged in sequence; In the preset query condition table, taking the extraction point as a starting point, a preset number of the preset query conditions are sequentially acquired as the noise query condition.
7. A data query device, characterized in that: include: An acquisition module, configured to acquire a query request sent by a user terminal, wherein the query request carries at least one target field; A determination module, configured to determine a target query condition table of the target field according to a preset query condition table, wherein the preset query condition table includes a plurality of preset query conditions, each of the preset query conditions corresponds to a preset field stored in an Internet platform, and the target query condition table includes: a target query condition corresponding to the target field, and a noise query condition corresponding to a noise field, the preset field includes the target field and the noise field, and the target field and the noise field are different; A receiving module, configured to receive a query result returned by the Internet platform according to the preset query condition table, wherein the query result includes: target data queried based on the target field and noise data based on the noise field; A sending module, used for sending the target data to the user terminal; Wherein, the determination module includes: A second determining unit, configured to determine in the preset query condition table that the preset query condition corresponding to the target field is the target query condition; A third determining unit, configured to determine a noise query condition from among the plurality of preset query conditions in the preset query condition table; A fourth determining unit is used to determine the target query condition table according to the target query condition and the noise query condition.
8. A non-volatile storage medium, characterized in that: The non-volatile storage medium is used to store a program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the data query method described in any one of claims 1 to 6.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the processor, wherein the program executes the data query method according to any one of claims 1 to 6 when running.
