Query method, system and device, electronic equipment, storage medium and program product

By using salted hashing technology in private information retrieval, the first salt value is shared to process the query information, which solves the problem of concealment and accuracy in private information retrieval and ensures the protection of the query party's information and the correctness of the query results. .

CN118568115APending Publication Date: 2024-08-30CHINA UNIONPAY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410643997.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing private information retrieval solutions cannot effectively guarantee the anonymity of the query party's information and the accuracy of query results, especially when query information is obtained through credential stuffing at the data coordination end and query result errors caused by hash collisions.

Method used

By sharing the first salt value between the data query end and the data provider, the information to be queried for each query is salted and hashed, preventing the data coordination end from obtaining the information to be queried, and ensuring the uniqueness of the information to be queried, avoiding Incorrect query results caused by hash collisions.

Benefits of technology

Effectively protect the anonymity of the query party's information, while ensuring the accuracy of the query results, preventing the data coordination end from obtaining information through credential stuffing and avoiding errors caused by hash collisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568115A
    Figure CN118568115A
Patent Text Reader

Abstract

The embodiment of the invention provides a query method, system and device, electronic equipment, a storage medium and a program product, and relates to the technical field of computers. The method comprises the steps that a data coordination end receives fragment information and a first salting hash value which are sent by a data query end and correspond to information to be queried, the fragment information is sent to at least one data providing end, and the first salting hash value is generated based on the information to be queried and a predetermined first salting value; receiving first feedback information sent by a data providing end, wherein the first feedback information is generated according to the first salt value and first information which is stored in the data providing end and contains the fragment information; and according to the first salting hash value and the first feedback information, determining a query result corresponding to the to-be-queried information, and sending the query result to a data query end. According to the method, the technical problem that an existing privacy information retrieval scheme cannot ensure the confidentiality of information of a query party and the accuracy of a query result is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a query method, system, device, electronic device, storage medium and program product. Background Art

[0002] Private Information Retrieval (PIR), also known as anonymous query, is a technology used to protect the information of the query party. Its main purpose is to complete the query without leaking the query party's information when submitting a query request to the database on the server. That is, the server cannot know the query party's information and the retrieved data items based on the query process and results.

[0003] However, existing privacy information retrieval solutions may not be able to guarantee the confidentiality of the query party's information and the accuracy of the query results in actual application scenarios. Summary of the invention

[0004] The present application provides a query method, system, device, electronic device, storage medium and program product, which solve the technical problem that the existing privacy information retrieval scheme cannot guarantee the confidentiality of the query party's information and the accuracy of the query results.

[0005] In a first aspect, an embodiment of the present application provides a query method, which is applied to a data coordination terminal, and the method includes:

[0006] Receiving shard information and a first salted hash value corresponding to the information to be queried sent by the data query end, and sending the shard information to at least one data provider end; the first salted hash value is generated based on the information to be queried and a predetermined first salt value;

[0007] receiving first feedback information sent by the data provider; the first feedback information is generated according to the first salt value and first information containing the sharding information stored in the data provider;

[0008] Determine a query result corresponding to the information to be queried according to the first salted hash value and the first feedback information, and send the query result to the data query end.

[0009] In a possible implementation, the method further includes:

[0010] Receiving a session request sent by the data query end;

[0011] Obtaining a session identifier corresponding to the session request, and sending the session identifier to the data provider;

[0012] Receive second feedback information sent by the data provider, and send the second feedback information to the data query end; the second feedback information includes an encrypted ciphertext corresponding to the first salt value; the first salt value is generated according to the session identifier.

[0013] In a possible implementation manner, the first feedback information includes an interpolation polynomial; the interpolation polynomial is generated according to the first salt value and a plurality of the first information;

[0014] The determining, according to the first salted hash value and the first feedback information, a query result corresponding to the information to be queried includes:

[0015] The query result is determined according to the first salted hash value and the interpolation polynomial.

[0016] In a possible implementation, the interpolation polynomial is generated based on the coordinates of multiple reference points, and different reference points correspond to different first information; the horizontal coordinate of the reference point is the first information corresponding to the reference point generated by a salted hash operation using the first salt value, and the vertical coordinate of the reference point is the first index value of the first information corresponding to the reference point in the data provider.

[0017] In a possible implementation, the multiple first information include at least one valid information containing the fragmentation information, and / or at least one obfuscated information containing the fragmentation information; the business data corresponding to the first index value of the valid information in the data provider is not empty; the business data corresponding to the first index value of the obfuscated information in the data provider is empty.

[0018] In a possible implementation, determining the query result according to the first salted hash value and the interpolation polynomial includes:

[0019] Calculating a function value of the interpolation polynomial based on the first salted hash value;

[0020] Determining a first index value of the information to be queried in the data provider according to the function value;

[0021] Determine a query result corresponding to the information to be queried according to a first index value of the information to be queried in the data providing end.

[0022] In a possible implementation manner, determining, according to the function value, a first index value of the information to be queried in the data provider includes:

[0023] When the function value is an integer, determining that the function value is a first index value of the information to be queried in the data provider;

[0024] When the function value is a non-integer, it is determined that the first index value of the information to be queried in the data provider is a preset value.

[0025] In a possible implementation manner, determining the query result corresponding to the information to be queried according to the first index value of the information to be queried in the data provider includes:

[0026] Acquire, in the data provider, the business data corresponding to the first index value of the information to be queried in the data provider;

[0027] Determine the query result corresponding to the information to be queried based on the acquired business data.

[0028] In a possible implementation manner, the acquiring, in the data provider, the service data corresponding to the first index value of the information to be queried in the data provider includes:

[0029] Acquire the service data corresponding to the information to be queried from a service data list pre-established in the data provider and used for inadvertent transmission;

[0030] The service data list includes a plurality of service data, and an index value of each of the service data is the same as a first index value of the first information in the data provider.

[0031] In a possible implementation manner, acquiring the service data corresponding to the information to be queried from a service data list pre-established in the data provider and used for inadvertent transmission includes:

[0032] A preset anonymous query algorithm is used to obtain the business data corresponding to the information to be queried in the business data list.

[0033] In a possible implementation, determining, according to the acquired business data, a query result corresponding to the information to be queried includes:

[0034] The business data acquired from each of the data providers are added together to obtain the query result.

[0035] In a second aspect, an embodiment of the present application provides a query method, which is applied to a data query end, and the method includes:

[0036] Sending the shard information and the first salted hash value corresponding to the information to be queried to the data coordination terminal; the first salted hash value is generated based on the information to be queried and a predetermined first salt value;

[0037] Receive a query result corresponding to the information to be queried sent by the data coordination end; the query result is determined based on the first salted hash value and first feedback information, and the first feedback information is generated based on the first salt value and the first information containing the sharding information stored in the data provider end.

[0038] In a possible implementation, the method further includes:

[0039] Sending a session request to the data coordination terminal;

[0040] receiving second feedback information sent by the data coordination terminal; the second feedback information includes an encrypted ciphertext corresponding to the first salt value; the first salt value is generated according to the session identifier;

[0041] Generate the first salted hash value according to the first salt value and the information to be queried.

[0042] In a possible implementation, generating the first salted hash value according to the first salt value and the information to be queried includes:

[0043] When the first salt values ​​generated by the data providers are the same, the first salted hash value is generated according to the first salt value and the information to be queried.

[0044] In a possible implementation, the method further includes:

[0045] Obtaining query data input by a user, performing desensitization processing on the query data, and generating the information to be queried;

[0046] Part of the query information is obtained as the fragmentation information.

[0047] In a third aspect, an embodiment of the present application provides a query method, which is applied to a data provider, and the method includes:

[0048] Receive the shard information corresponding to the information to be queried sent by the data coordination end;

[0049] Determine first information containing the fragmentation information;

[0050] First feedback information is generated according to a predetermined first salt value and the first information, and the first feedback information is sent to the data coordination terminal; the first feedback information is used to determine a query result corresponding to the information to be queried.

[0051] In a possible implementation, the method further includes:

[0052] Receiving a session identifier sent by the data coordination terminal;

[0053] Generate the first salt value according to the session identifier and a preset shared seed;

[0054] Sending second feedback information to the data coordination terminal; the second feedback information includes the encrypted ciphertext corresponding to the first salt value.

[0055] In a possible implementation manner, the determining the first information containing the fragmentation information includes:

[0056] Filter out valid information containing the shard information in the database;

[0057] Determine at least one obfuscation information containing the fragmentation information; the service data corresponding to the first index value of the obfuscation information in the data provider is empty;

[0058] The valid information and the obfuscated information are randomly arranged to obtain at least one of the first information.

[0059] In a possible implementation manner, the first feedback information includes an interpolation polynomial; and the interpolation polynomial is generated according to the first salt value and a plurality of the first information.

[0060] In a possible implementation, the method further includes:

[0061] Using the first salt value, respectively perform a salted hash operation on each of the first information to obtain a second salted hash value corresponding to each of the first information;

[0062] Using the second salted hash value corresponding to each of the first information as a horizontal coordinate and the first index value of each of the first information in the data providing end as a vertical coordinate, determining multiple reference points;

[0063] The interpolation polynomial is generated according to the coordinates of the multiple reference points.

[0064] In a possible implementation, the method further includes:

[0065] A service data list for inadvertent transmission is established, wherein the service data list includes service data corresponding to each of the first information, and an index value of each of the service data is the same as a first index value of the first information in the data provider.

[0066] In a fourth aspect, an embodiment of the present application provides a query system, the query system comprising a data query end, a data coordination end, and at least one data providing end;

[0067] The data query end is used to send the shard information corresponding to the information to be queried and the first salted hash value to the data coordination end; the first salted hash value is generated based on the information to be queried and a predetermined first salt value;

[0068] The data coordination end is used to send the fragmentation information to at least one of the data providing ends;

[0069] The data providing end is used to generate first feedback information according to the first salt value and the stored first information containing the sharding information, and send the first feedback information to the data coordinating end;

[0070] The data coordination end is further used to determine a query result corresponding to the information to be queried according to the first salted hash value and the first feedback information, and send the query result to the data query end.

[0071] In a fifth aspect, an embodiment of the present application provides a data coordination device, which is applied to a data coordination terminal, and the device includes:

[0072] A communication module, used to: receive shard information and a first salted hash value corresponding to the information to be queried sent by a data query end, and send the shard information to at least one data provider end; the first salted hash value is generated based on the information to be queried and a predetermined first salt value; receive first feedback information sent by the data provider end; the first feedback information is generated based on the first salt value and the first information containing the shard information stored in the data provider end;

[0073] A determination module, configured to: determine a query result corresponding to the information to be queried according to the first salted hash value and the first feedback information;

[0074] The communication module is further used to: send the query result to the data query end.

[0075] In a sixth aspect, an embodiment of the present application provides a data query device, which is applied to a data query end, and the device includes:

[0076] A communication module is used to: send the shard information and a first salted hash value corresponding to the information to be queried to the data coordination terminal; the first salted hash value is generated based on the information to be queried and a predetermined first salt value;

[0077] Receive a query result corresponding to the information to be queried sent by the data coordination end; the query result is determined based on the first salted hash value and first feedback information, and the first feedback information is generated based on the first salt value and the first information containing the sharding information stored in the data provider end.

[0078] In a seventh aspect, an embodiment of the present application provides a data providing device, which is applied to a data providing end, and the device includes:

[0079] The communication module is used to: receive the fragmentation information corresponding to the information to be queried sent by the data coordination terminal;

[0080] A determination module, configured to determine first information containing the shard information; and generate first feedback information according to a predetermined first salt value and the first information;

[0081] The communication module is further used to: send the first feedback information to the data coordination terminal; the first feedback information is used to determine the query result corresponding to the information to be queried.

[0082] In an eighth aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0083] The memory stores computer-executable instructions;

[0084] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the query method provided in the first aspect, the second aspect, or the third aspect above.

[0085] In the ninth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the query method provided in the first aspect, the second aspect, or the third aspect above.

[0086] In a tenth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the query method provided in the first aspect, or the second aspect, or the third aspect above.

[0087] The query method, system, device, electronic device, storage medium and program product provided in the embodiments of the present application, the data query end can salt and hash the information to be queried each time by sharing the first salt value with the data provider end, thereby preventing the data coordination end from obtaining the above-mentioned information to be queried by means of database collision, and effectively ensuring the confidentiality of the query information of the data query end; at the same time, by salting and hashing the information to be queried each time, the uniqueness of the information to be queried can be guaranteed, and errors in the query results due to hash collisions can be avoided. Therefore, the accuracy of the query results can be guaranteed while protecting the confidentiality of the query party's information. BRIEF DESCRIPTION OF THE DRAWINGS

[0088] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0089] Figure 1 A schematic diagram of the structure of a query system provided in an embodiment of the present application;

[0090] Figure 2 A schematic diagram of the steps of a query method provided in an embodiment of the present application Figure 1 ;

[0091] Figure 3 A schematic diagram of the steps of a query method provided in an embodiment of the present application Figure 2 ;

[0092] Figure 4 A schematic diagram of a program module of a data coordination device provided in an embodiment of the present application;

[0093] Figure 5 A schematic diagram of a program module of a data query device provided in an embodiment of the present application;

[0094] Figure 6 A schematic diagram of a program module of a data providing device provided in an embodiment of the present application;

[0095] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0096] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0097] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.

[0098] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0099] The following is an explanation of some of the terms involved in the embodiments of the present application:

[0100] Salted hashing: A secure password storage method in which the original password and a randomly generated string (salt value) are hashed together. After the operation is completed, the storage system can save the hash result and the salt value without obtaining the original password. Even if an attacker obtains the hash result and the salt value, he cannot directly reverse the original password.

[0101] Interpolation Polynomial: A mathematical method used to find a functional relationship between a set of data points. Using known data points, a polynomial function is calculated so that the function value at the known data points is the same as the known function value.

[0102] Oblivious Transfer (OT): A security protocol in cryptography that allows the receiver to obtain certain information entered by the sender, but the sender does not know whether the receiver has obtained this information.

[0103] Hash collision: refers to the phenomenon that two different inputs produce the same hash value after being processed by the hash function.

[0104] Existing privacy information retrieval solutions may not guarantee the confidentiality of the query party's information and the accuracy of the query results in actual scenario applications. Specifically, when the data query end sends a query request, it usually sends the hash value of the query ID directly to the data coordination end, and the data coordination end may obtain the original value of the query ID by means of database collision, and obtain the risk information data corresponding to the query ID when aggregating the results, so that it can correspond to the actual queried object, resulting in the leakage of the query party's information; in addition, due to the existence of hash collision, it may also cause the following problems, making it difficult to guarantee the accuracy of the query results:

[0105] 1) False hit: There is no business data corresponding to the query ID in the data provider, but the business data corresponding to another query ID is mistakenly hit.

[0106] 2) Multiple hits: Multiple business data are hit simultaneously in the data provider.

[0107] 3) Inconsistent query results: For the same query ID, the query results obtained from two queries are inconsistent.

[0108] In view of the above technical problems, a query method is provided in an embodiment of the present application. The data query end can perform salted hashing on the information to be queried each time by sharing the first salt value with the data provider end, thereby preventing the data coordination end from obtaining the above information to be queried through database collision, and effectively ensuring the confidentiality of the query information of the data query end; at the same time, by performing salted hashing on the information to be queried each time, the uniqueness of the information to be queried can be guaranteed, and errors in the query results due to hash collisions can be avoided. Therefore, the accuracy of the query results can be guaranteed while protecting the confidentiality of the query party's information.

[0109] The technical solution shown in the present application is described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.

[0110] The above query method can be applied to query the privacy data of any customer in one or more financial institutions. Optionally, the privacy data may include account information, deposit amount, loan amount, transaction information, blacklist information, etc., which is not limited in the embodiments of the present application.

[0111] For example, when a lending institution receives a loan application from a user, the lending institution may initiate a blacklist query request to multiple financial institutions. Through the business data returned by each financial institution, the lending institution can know whether the user is on the lending institution's blacklist and use this as one of the criteria for determining whether to provide a loan to the user.

[0112] Reference Figure 1 , Figure 1 1 is a schematic diagram of a query system provided in an embodiment of the present application. In some embodiments of the present application, the query system includes a data query terminal 101, a data coordination terminal 102, and n data providing terminals. The n data providing terminals are respectively data providing terminal 1, data providing terminal 2, data providing terminal 3, ..., data providing terminal n.

[0113] In some implementations, the data query end 101 is communicatively connected to the data coordination end 102, and the data coordination end 102 is communicatively connected to each of the data providing ends.

[0114] In some implementations, the data query terminal 101 may provide a query interface to the user, and the user may initiate a data query request by inputting query data in the query interface.

[0115] In addition, the data query terminal 101 may also provide a display interface for the user. When the data query terminal 101 receives the query result fed back by the data coordination terminal 102, it may display it to the user through the above display interface.

[0116] In some implementations, the data coordination terminal 102 may serve as the hub of the query system and be responsible for coordinating the data query process, including:

[0117] Receive query: Receive query requests and conditions from the data query end.

[0118] Assign tasks: Assign query tasks to different data providers based on query conditions and data distribution.

[0119] Summarize results: Collect query results from various data providers and perform necessary aggregation or processing.

[0120] Return results: Send the processed query results back to the data query end.

[0121] In some implementations, each of the above data providers may be used to store and manage actual data resources and be responsible for completing the following tasks:

[0122] Receive query: Receive query tasks from the data coordination end.

[0123] Execute query: Execute query operations in local data resources according to query conditions.

[0124] Return result: Send the query result to the data coordination end.

[0125] Reference Figure 2 , Figure 2 A schematic diagram of the steps of a query method provided in an embodiment of the present application Figure 1 In some embodiments of the present application, the query method includes:

[0126] S201. The data query end sends the shard information corresponding to the information to be queried and the first salted hash value to the data coordination end.

[0127] In some implementations, the first salted hash value is generated based on the information to be queried and a predetermined first salt value.

[0128] In some implementations, before initiating a query request, the data query end may first send a session identifier (such as a session ID) of this query to the data coordination end, which is then forwarded to each data provider end.

[0129] Each data provider can perform salted hash operation on the session identifier according to the shared seed to generate a session hash value corresponding to the session identifier. The session hash value is then used as the first salt value and fed back to the data coordination end, which is then forwarded to the data query end.

[0130] It should be noted that before performing a query, each data provider may predetermine a shared seed. Optionally, the seed may be a random number used as a salt value in the above salted hash operation.

[0131] Optionally, the above-mentioned fragmentation information is a part of the information to be queried, for example, it can be the first n bits or the last n bits of the information to be queried, where n is a positive integer.

[0132] In some implementations, after determining the shard information and the first salted hash value corresponding to the information to be queried, the data query end may initiate this query request, which includes the shard information and the first salted hash value corresponding to the information to be queried.

[0133] Optionally, the information to be queried may be name, ID number, contact information, etc., which is not limited in the present embodiment. Exemplarily, the information to be queried may be the mobile phone number of the queried customer, and the fragment information may be the last 4 digits of the mobile phone number.

[0134] It can be understood that the data query end can initiate a query request in the above manner, thereby achieving the anonymity of the query information, preventing the data coordination end from obtaining the query information by means of database collision, and effectively protecting the anonymity of the query party's information.

[0135] S202. The data coordinator sends sharding information to at least one data provider.

[0136] In some implementations, the data coordination end may first determine the data provider that stores data of this type according to the type of data to be queried, and then send the above-mentioned sharding information to the determined data provider.

[0137] Exemplarily, assuming that the data to be queried this time is user deposit data, the above-mentioned sharding information is sent to the data provider storing the user deposit data.

[0138] S203. The data provider generates first feedback information according to the first salt value and the stored first information containing the fragmentation information.

[0139] In some embodiments, after receiving the above-mentioned sharding information, the data provider can search for the first information containing the above-mentioned sharding information in its own database, and then generate first feedback information based on the first information and the above-mentioned first salt value. The first feedback information can be used to determine the query result corresponding to the information to be queried.

[0140] In some implementations, the first feedback information includes an interpolation polynomial.

[0141] In some embodiments, the first salt value can be used to perform salted hash operations on each of the first information to obtain a second salted hash value corresponding to each of the first information; the second salted hash value corresponding to each of the first information is used as the horizontal coordinate, and the first index value of each of the first information in the data provider is used as the vertical coordinate to determine multiple reference points; and the interpolation polynomial is generated according to the coordinates of each reference point.

[0142] S204. The data provider sends the first feedback information to the data coordinator.

[0143] S205. The data coordination end determines a query result corresponding to the information to be queried according to the first salted hash value and the first feedback information.

[0144] In some embodiments, the data coordination end can calculate the function value of the above-mentioned interpolation polynomial based on the above-mentioned first salted hash value; determine the first index value of the above-mentioned information to be queried in the data provider end according to the calculated function value; and determine the query result corresponding to the information to be queried according to the first index value of the information to be queried in the data provider end.

[0145] S206. The data coordination end sends the query result to the data query end.

[0146] In the query method provided in the embodiment of the present application, the data query end can perform salted hashing on the information to be queried each time by sharing the first salt value with the data provider end, thereby preventing the data coordination end from obtaining the above-mentioned information to be queried by database collision, and effectively ensuring the confidentiality of the query information of the data query end; at the same time, by performing salted hashing on the information to be queried each time, the uniqueness of the information to be queried can be guaranteed, and errors in the query results caused by hash collisions can be avoided. Therefore, the accuracy of the query results can be guaranteed while protecting the confidentiality of the query party's information.

[0147] Reference Figure 3 , Figure 3 A schematic diagram of the steps of a query method provided in an embodiment of the present application Figure 2 In some embodiments of the present application, the query method includes:

[0148] S301. The data query end sends a session request to the data coordination end.

[0149] In some implementations, before starting the query process, the data query end may first send a session request to the data coordination end to request to establish a new query session.

[0150] In some implementations, when the data query end needs to initiate a session request, a unique session identifier (or session ID) may be generated first. The session identifier may be used to identify the session request, ensuring that all related operations can be correctly associated with the same session during the entire query process.

[0151] Optionally, the session identifier may be generated based on a timestamp, a random number, a hash value or other algorithms to ensure its uniqueness and unpredictability.

[0152] In some implementations, the data query end may embed the generated session identifier into the session request message.

[0153] Optionally, the above session request message may also include some other necessary information, such as the identity authentication information of the querying party, the requested data range or format, etc.

[0154] Optionally, in order to ensure secure transmission of messages, the data query end may use encryption technology to encrypt the session request message.

[0155] S302. The data coordinator sends the session identifier corresponding to the above session request to the data provider.

[0156] In some implementations, after receiving a session request, the data coordinator may first extract a session identifier corresponding to the session request, and then distribute the session identifier corresponding to the session request to each data provider.

[0157] Optionally, before sending the session identifier to the data provider, the data coordinator may verify the legitimacy and integrity of the session request to ensure that the session request comes from a legitimate data query terminal and has not been tampered with.

[0158] In some implementations, the data coordinator may first determine which data providers have the required data based on information in the session request (such as data range, data type, etc.), and then distribute the session identifier corresponding to the session request to each determined data provider.

[0159] S303. The data provider generates second feedback information according to the session identifier.

[0160] In some implementations, after receiving the session identifier sent by the data coordinator, the data provider may use a salted hash algorithm to further protect the session identifier in order to increase the security of data processing.

[0161] In some implementations, after receiving the session identifier sent by the data coordination end, each data provider can generate a session hash value through a salted hash algorithm based on the session identifier and a preset shared seed to ensure consistency between the data query end and the data provider end.

[0162] In some implementations, each data provider may use the session hash value generated by it as the first salt value. Optionally, each data provider may encrypt the first salt value generated by it using the public key of the data query end to obtain an encrypted ciphertext of the first salt value.

[0163] In some implementations, after obtaining the encrypted ciphertext of the first salt value, the second feedback information may be generated, and the second feedback information carries the encrypted ciphertext.

[0164] S304. The data provider sends second feedback information to the data coordinator.

[0165] S305. The data coordination end sends second feedback information to the data query end.

[0166] In some implementations, the data coordination end may uniformly forward the second feedback information received from all data providers to the data query end.

[0167] S306. The data query end generates a first salted hash value corresponding to the information to be queried based on the first salt value and the information to be queried.

[0168] In some embodiments, the data query end may first decrypt the received encrypted ciphertext of the first salt value to obtain the first salt value generated in each data provider end; when the first salt values ​​generated in each data provider end are the same, the first salted hash value is generated based on the information to be queried and the first salt value.

[0169] In some implementations, the data query end may use its own private key to decrypt the received encrypted ciphertext of the first salt value to obtain the first salt value generated in each data provider. When it is determined that the first salt values ​​generated by each data provider are the same, the data query end may perform a salted hash operation on the query information based on the first salt value to generate the first salted hash value.

[0170] In some implementations, the target query data may be desensitized to generate the above-mentioned information to be queried.

[0171] Optionally, the target query data may be an ID number, telephone number, etc. of the user being queried.

[0172] Among them, data desensitization is a technical measure to protect sensitive information. It is used to reduce the sensitivity of data and reduce personal privacy risks without affecting the accuracy of data analysis results. For example, sensitive data can be shielded, randomly replaced, disordered and encrypted by using a certain desensitization algorithm, and sensitive data can be converted into fictitious data to anonymize personal information. Optionally, data desensitization can adopt a variety of technical methods, including rule-based desensitization, encryption desensitization, disguised desensitization, data perturbation desensitization and data shielding desensitization. For example, for a phone number, randomly deleting 3 digits can make the phone number no longer identifiable, thereby protecting personal privacy.

[0173] S307. The data query end sends the shard information corresponding to the information to be queried and the first salted hash value to the data coordination end.

[0174] In some implementations, part of the information to be queried may be intercepted as the fragment information.

[0175] S308. The data coordinator sends the above-mentioned fragmentation information to at least one data provider.

[0176] In some implementations, the data coordination end may first determine the data provider that stores data of this type according to the type of data to be queried, and then send the above-mentioned sharding information to the determined data provider.

[0177] S309. The data provider generates first feedback information according to the first salt value and the first information containing the fragmentation information.

[0178] In some implementations, after receiving the above-mentioned sharding information, the data provider may search its own database for valid information containing the above-mentioned sharding information, and add the valid information to a preset list to narrow the scope of the query and improve the query efficiency.

[0179] Furthermore, at least one obfuscated information containing the above-mentioned sharding information is added to the above-mentioned preset list, and the valid information and obfuscated information in the above-mentioned preset list are randomly arranged to obtain at least one first information to further conceal the query information. Wherein, the business data corresponding to the first index value of the above-mentioned obfuscated information in the data provider is empty.

[0180] In some implementations, first feedback information is generated based on the first information and the first salt value, and the first feedback information can be used to determine a query result corresponding to the information to be queried.

[0181] In some implementations, the first feedback information includes an interpolation polynomial.

[0182] In some embodiments, the first salt value can be used to perform salted hash operations on each of the first information to obtain a second salted hash value corresponding to each of the first information; the second salted hash value corresponding to each of the first information is used as the horizontal coordinate, and the first index value of each of the first information in the data provider is used as the vertical coordinate to determine multiple reference points; and the interpolation polynomial is generated according to the coordinates of each reference point.

[0183] In some embodiments, the data provider can establish a business data list for inadvertent transmission, which includes business data corresponding to each first information in the above preset list, and the index value of each business data is the same as the first index value of the above first information in the data provider.

[0184] It can be understood that by constructing an interpolation polynomial to transmit the index value used for the inadvertent transmission query instead of directly transmitting the business data, this method can protect the privacy of the query information while ensuring that the data coordination end can correctly obtain the index value corresponding to the information to be queried.

[0185] S310. The data provider sends the first feedback information to the data coordinator.

[0186] S311. The data coordination end determines a query result corresponding to the information to be queried according to the first salted hash value and the first feedback information.

[0187] In some embodiments, the data coordination end can calculate the function value of the above-mentioned interpolation polynomial based on the above-mentioned first salted hash value; determine the first index value of the above-mentioned information to be queried in the data provider end according to the calculated function value; and determine the query result corresponding to the information to be queried according to the first index value of the information to be queried in the data provider end.

[0188] In some embodiments, when the function value of the above interpolation polynomial is an integer, the function value is determined to be the first index value of the information to be queried in the data provider end; when it is a non-integer, the first index value of the information to be queried in the data provider end is determined to be a preset value (such as 0).

[0189] In some implementations, determining the query result corresponding to the information to be queried according to the first index value of the information to be queried in the data provider includes:

[0190] The business data corresponding to the first index value of the information to be queried in the data provider is obtained in the data provider; and the query result corresponding to the information to be queried is determined according to the obtained business data.

[0191] In some implementations, the business data corresponding to the information to be queried may be obtained from the business data list pre-established in the data provider.

[0192] In some implementations, a preset anonymous query algorithm may be used to obtain the business data corresponding to the information to be queried in the above business data list.

[0193] It is understandable that the final business data is delivered through inadvertent transmission, which can ensure that the data coordination end can only obtain a single business data corresponding to the information to be queried without exposing redundant information, thereby effectively protecting the privacy of the data party's data.

[0194] In some implementations, the business data obtained from various data providers may be added together to obtain the above query result.

[0195] S312. The data coordination end sends the query result to the data query end.

[0196] In the query method provided in the embodiment of the present application, the data query end can perform salted hashing on the information to be queried each time by sharing the first salt value with the data provider end, thereby preventing the data coordination end from obtaining the above-mentioned information to be queried by database collision, and effectively ensuring the confidentiality of the query information of the data query end; at the same time, by performing salted hashing on the information to be queried each time, the uniqueness of the information to be queried can be guaranteed, and errors in the query results caused by hash collisions can be avoided. Therefore, the accuracy of the query results can be guaranteed while protecting the confidentiality of the query party's information.

[0197] In order to better understand the embodiments of the present application, the following embodiments are illustrated by taking the query of whether user A is in the account opening blacklist of multiple banks as an example. The multiple banks mentioned above can be regarded as multiple data providers.

[0198] In some implementations, when the data query end initiates a session request, a unique session identifier (or session ID), such as "12345678" may be generated first.

[0199] After starting the query process, the data query end can first send a session request to the data coordination end to request to establish a new query session. After receiving the session request, the data coordination end can forward the session ID (such as "12345678") of the session request to each data provider, for example, to data provider D1, data provider D2, and data provider D3.

[0200] In some implementations, after receiving the session ID, each data provider uses a salted hash algorithm to generate session hash values ​​based on the session ID and the seed (such as "1000") shared by all parties. For example, data provider D1, data provider D2, and data provider D3 can use a salted hash algorithm to generate session hash values ​​S1, S2, and S3 in sequence based on the received session ID and the shared seed.

[0201] In some implementations, each data provider may use the public key of the data query end to encrypt the generated session hash value to obtain session hash value encrypted ciphertexts [S1], [S2], [S3], and send them to the data coordination end.

[0202] In some implementations, the data coordination end may aggregate the encrypted ciphertexts [S1], [S2], and [S3] of the session hash values ​​received from the various data providers and return the aggregated encrypted ciphertexts to the data query end.

[0203] In some implementations, the data query end may use its own private key to decrypt the received session hash value encrypted ciphertexts [S1], [S2], [S3] to obtain plaintext session hash values ​​S1, S2, S3.

[0204] In some embodiments, if the data query end determines that the session hash values ​​S1, S2, and S3 are equal (assuming they are equal to the first salt value S), it can be determined that the salt values ​​used for this query are consistent among all parties. Therefore, for the information to be queried this time, that is, the desensitized ID of user A (such as the ID number of user A encrypted by the encryption algorithm, assuming it is 100), the first salt value S is added to generate the first salted hash value of this query (such as 200), and at the same time, the first few digits of the desensitized ID are intercepted (assuming the first two digits are taken, it is 10) as the fragmentation information of the above-mentioned information to be queried.

[0205] In some implementations, the data query end may send the shard information (10) and the first salted hash value (200) to the data coordination end.

[0206] In some implementations, the data coordination end may forward the received fragment information (10) to each data provider. Each data provider screens out the corresponding ID fragment (i.e., the above-mentioned valid information) from its own database according to the received information to be queried (10). For example, the ID fragment list L1 screened out by the data provider D1 = [100, 101, 102]. This process helps to narrow the scope of the query and improve the query efficiency.

[0207] After the data provider filters out the corresponding ID fragment list, it adds the obfuscated ID containing the above fragment information (that is, the above obfuscated information, such as 103, 104) to this ID fragment list, and shuffles the ID fragment list to obtain a new ID fragment list L2, such as L2 = [102, 104, 100, 103, 101].

[0208] In some implementations, the data provider may use the first salt value S to perform a salted hash operation on each shard ID in the ID shard list L2 to obtain a new list L2'=[202, 204, 200, 203, 201].

[0209] In some implementations, the data provider uses each shard ID in the list L2' as the horizontal coordinate x, and the index value corresponding to each shard ID as the vertical coordinate y, that is, based on the set of passing points {(202,1), (204,2), (200,3), (203,4), (201,5)}, to construct an interpolation polynomial P1(x), such as:

[0210] P1(x)=-1.042x 4 +841.8x 3 -2.551e+05x 2 +3.435e+07x-1.735e+09.

[0211] In some implementations, each data provider sends the constructed interpolation polynomial to the data coordination end respectively.

[0212] In addition, each data provider can construct a service data list for subsequent oblivious transmission. For example, the service data list constructed by the data provider D1 can be M1 = [0, 1, 0, 1, 1, 0]. Assuming that the index starts from 0, the indexes corresponding to the service data [0, 1, 0, 1, 1, 0] in M1 are 0, 1, 2, 3, 4, 5, respectively.

[0213] In some embodiments, the data coordination end may first substitute the first salted hash value (200) corresponding to the desensitized ID (100) into each interpolation polynomial for calculation. If the calculated function value is an integer, then it can be determined that the function value is the index value corresponding to the above-mentioned desensitized ID (100); if the calculation result is a non-integer, then it can be determined that the above-mentioned desensitized ID (100) is not in the list screened by the data provider, and the index value corresponding to the above-mentioned desensitized ID (100) is determined to be 0.

[0214] In some implementations, if the calculated function value is an integer, a hidden query algorithm can be used to obtain the business data corresponding to the index value in the above business data list; if the calculation result is a non-integer, then based on the index value 0, empty business data "0" is obtained.

[0215] Exemplarily, the index value of the desensitized ID (100) in the data provider D1 is 3. According to the index value, the business data corresponding to the index value can be obtained as "1" in the business data list.

[0216] In some implementations, the data coordination end may add up the business data obtained from each data provider to obtain a final summary result. For example, assuming that the business data obtained from data provider D1 is "1", the business data obtained from data provider D2 is "1", and the business data obtained from data provider D3 is "0", the summary result is "2", which means that user A is on the account opening blacklist of two banks.

[0217] The query method provided in the embodiment of the present application can have the following beneficial effects:

[0218] 1) The query purpose of the querying party can be hidden: the query ID is salted and hashed according to each session ID, thereby preventing the data coordination end from obtaining the original ID through database collision. Compared with the solution that only uses hash operation in the prior art, the embodiment of the present application introduces polynomial power operation, which greatly increases the difficulty of brute force cracking to obtain the query ID even when the data coordination end and the data provider end collude.

[0219] 2) It can solve the problem of false hits: only the query ID owned by the data party can return business data in the query result list, and the data coordination end can also correctly obtain the index of the query ID.

[0220] 3) It can solve the problem of multiple hits: in the business data list provided by the data provider, each index corresponds to only one business data.

[0221] 4) The consistency of query results can be achieved: Since the actual query ID is the salted hash value calculated from the real ID, the salted hash value of the desensitized ID corresponding to the data query end and the data provider end is the same each time the query is made, thus ensuring the consistency of the query results.

[0222] Based on the contents described in the above embodiments, the present application further provides a query system, which includes a data query end, a data coordination end, and at least one data providing end; wherein:

[0223] The above-mentioned data query end is used to send the fragmentation information corresponding to the information to be queried and the first salted hash value to the data coordination end; the first salted hash value is generated based on the information to be queried and a predetermined first salt value.

[0224] The data coordination end is used to send the fragmentation information to at least one data providing end.

[0225] The data provider is used to generate first feedback information according to the first salt value and the stored first information containing the sharding information, and send the first feedback information to the data coordination end;

[0226] The data coordination end is further used to determine a query result corresponding to the information to be queried according to the first salted hash value and the first feedback information, and send the query result to the data query end.

[0227] It should be noted that the specific functions that can be achieved by the above-mentioned data query end, data coordination end, and data provider end can refer to the functions that can be achieved by the data query end, data coordination end, and data provider end described in the query method provided in the above-mentioned embodiments, and will not be repeated here.

[0228] Based on the contents described in the above embodiments, the present application also provides a data coordination device, which is applied to the above data coordination terminal. Figure 4 , Figure 4 Schematic diagram of a program module of a data coordination device provided in an embodiment of the present application. The data coordination device 40 includes:

[0229] The communication module 401 is used to: receive the shard information and the first salted hash value corresponding to the information to be queried sent by the data query end, and send the shard information to at least one data provider end; the above-mentioned first salted hash value is generated based on the information to be queried and a predetermined first salt value; receive the first feedback information sent by the data provider end; the first feedback information is generated based on the above-mentioned first salt value and the first information containing the above-mentioned shard information stored in the data provider end.

[0230] The determination module 402 is used to determine the query result corresponding to the information to be queried according to the first salted hash value and the first feedback information.

[0231] The communication module 401 is further used to send the above query result to the data query end.

[0232] In a possible implementation, the communication module 401 is further configured to:

[0233] Receive a session request sent by the data query end; obtain a session identifier corresponding to the session request, and send the session identifier to the data provider end; receive second feedback information sent by the data provider end, and send the second feedback information to the data query end; the second feedback information includes an encrypted ciphertext corresponding to the above-mentioned first salt value; the above-mentioned first salt value is generated according to the above-mentioned session identifier.

[0234] In a possible implementation manner, the first feedback information includes an interpolation polynomial; the interpolation polynomial is generated according to the first salt value and a plurality of first information.

[0235] The determination module 402 is used to determine the query result according to the first salted hash value and the interpolation polynomial.

[0236] In a possible implementation, the interpolation polynomial is generated based on the coordinates of multiple reference points, and different reference points correspond to different first information; the horizontal coordinate of the reference point is the first information corresponding to the reference point generated by salted hash operation using the first salt value, and the vertical coordinate of the reference point is the first index value of the first information corresponding to the reference point in the data provider.

[0237] In a possible implementation, the first information includes at least one valid information containing the fragmentation information, and / or at least one obfuscated information containing the fragmentation information; the business data corresponding to the first index value of the valid information in the data provider is not empty; the business data corresponding to the first index value of the obfuscated information in the data provider is empty.

[0238] In a possible implementation, the determining module 402 is configured to:

[0239] Calculating a function value of the interpolation polynomial based on the first salted hash value;

[0240] Determining a first index value of the information to be queried in the data provider according to the function value;

[0241] Determine a query result corresponding to the information to be queried according to a first index value of the information to be queried in the data providing end.

[0242] In a possible implementation, the determining module 402 is configured to:

[0243] When the function value is an integer, determining that the function value is a first index value of the information to be queried in the data provider;

[0244] When the function value is a non-integer, it is determined that the first index value of the information to be queried in the data provider is a preset value.

[0245] In a possible implementation, the determining module 402 is configured to:

[0246] Acquire, in the data provider, the business data corresponding to the first index value of the information to be queried in the data provider;

[0247] Determine the query result corresponding to the information to be queried based on the acquired business data.

[0248] In a possible implementation, the determining module 402 is configured to:

[0249] Acquire the service data corresponding to the information to be queried from a service data list pre-established in the data provider and used for inadvertent transmission;

[0250] The service data list includes a plurality of service data, and an index value of each of the service data is the same as a first index value of the first information in the data provider.

[0251] In a possible implementation, the determining module 402 is configured to:

[0252] A preset anonymous query algorithm is used to obtain the business data corresponding to the information to be queried in the business data list.

[0253] In a possible implementation, the determining module 402 is configured to:

[0254] The business data acquired from each of the data providers are added together to obtain the query result.

[0255] The data coordination device provided in this embodiment can execute the various functions of the data coordination terminal described in the embodiments corresponding to the above query method. Its implementation principle and technical effects are similar, and will not be described in detail in this embodiment.

[0256] Based on the contents described in the above embodiments, the present application also provides a data query device, which is applied to the above data query terminal. Figure 5 , Figure 5 Schematic diagram of a program module of a data query device provided in an embodiment of the present application. The data query device 50 includes:

[0257] The sending module 501 is used to: send the shard information and the first salted hash value corresponding to the information to be queried to the data coordination terminal; the first salted hash value is generated based on the information to be queried and a predetermined first salt value;

[0258] The receiving module 502 is used to: receive the query result corresponding to the information to be queried sent by the data coordination end; the query result is determined based on the first salted hash value and the first feedback information, and the first feedback information is generated based on the first salt value and the first information containing the sharding information stored in the data provider end.

[0259] In a possible implementation, the sending module 501 is further configured to: send a session request to the data coordination terminal.

[0260] The receiving module 502 is further used to: receive second feedback information sent by the data coordination terminal; the second feedback information includes the encrypted ciphertext corresponding to the first salt value; the first salt value is generated according to the session identifier.

[0261] In a possible implementation, the data query device further includes a processing module, configured to generate the first salted hash value according to the first salt value and the information to be queried.

[0262] In a possible implementation, the processing module is used to: generate the first salted hash value according to the first salt value and the information to be queried when the first salt values ​​generated by the data providers are the same.

[0263] In a possible implementation, the processing module is further configured to:

[0264] Obtaining query data input by a user, performing desensitization processing on the query data, and generating the information to be queried;

[0265] Part of the query information is obtained as the fragmentation information.

[0266] The query device provided in this embodiment can execute the various functions of the data coordination terminal described in the above query method corresponding to each embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0267] The data query device provided in this embodiment can execute the various functions of the data query end described in the above query method corresponding to each embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0268] Based on the contents described in the above embodiments, the present application also provides a data providing device, which is applied to the above data providing terminal. Figure 6 , Figure 6 Schematic diagram of a program module of a data providing device provided in an embodiment of the present application. The data providing device 60 includes:

[0269] The receiving module 601 is used to: receive the fragmentation information corresponding to the information to be queried sent by the data coordination terminal;

[0270] A determination module 602 is used to determine first information containing the shard information; and generate first feedback information according to a predetermined first salt value and the first information;

[0271] The sending module 603 is further used to: send the first feedback information to the data coordination terminal; the first feedback information is used to determine the query result corresponding to the information to be queried.

[0272] In a possible implementation, the receiving module 601 is further configured to: receive a session identifier sent by the data coordination terminal.

[0273] The determination module 602 is further configured to generate the first salt value according to the session identifier and a preset shared seed.

[0274] The sending module 603 is further used to: send second feedback information to the data coordination terminal; the second feedback information includes the encrypted ciphertext corresponding to the first salt value.

[0275] In a possible implementation, the determining module 602 is configured to:

[0276] Filter out valid information containing the shard information in the database, and add the valid information to a preset list;

[0277] Add at least one obfuscated information containing the fragmentation information to the preset list; the service data corresponding to the first index value of the obfuscated information in the data provider is empty;

[0278] The valid information and the obfuscated information in the preset list are randomly arranged to obtain at least one first information.

[0279] In a possible implementation manner, the first feedback information includes an interpolation polynomial; and the interpolation polynomial is generated according to the first salt value and a plurality of the first information.

[0280] In a possible implementation, the determining module 602 is further configured to:

[0281] Using the first salt value, respectively perform a salted hash operation on each of the first information to obtain a second salted hash value corresponding to each of the first information;

[0282] Using the second salted hash value corresponding to each of the first information as a horizontal coordinate and the first index value of each of the first information in the data providing end as a vertical coordinate, determining multiple reference points;

[0283] The interpolation polynomial is generated according to the coordinates of the multiple reference points.

[0284] In a possible implementation, the determining module 602 is further configured to:

[0285] A service data list for inadvertent transmission is established, wherein the service data list includes service data corresponding to each of the first information in the preset list, and the index value of each of the service data is the same as the first index value of the first information in the data provider.

[0286] The data providing device provided in this embodiment can execute the various functions of the data providing end described in the above query method corresponding to each embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0287] Figure 7 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 70 provided in this embodiment includes: at least one processor 701 and a memory 702. Optionally, the electronic device 70 also includes a communication interface 703. The processor 701, the memory 702 and the communication interface 703 are connected via a bus 704.

[0288] In a specific implementation process, at least one processor 701 executes the computer execution instructions stored in the memory 702, so that at least one processor 701 executes the above query method.

[0289] The specific implementation process of the processor 701 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0290] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0291] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0292] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0293] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0294] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0295] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0296] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0297] In addition, each functional unit in each embodiment of the present application 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.

[0298] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0299] Finally, it should be noted that the embodiments of the present application are intended to cover any modifications, uses or adaptive changes of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the technical field that are not disclosed in the present application, are not limited to the precise structure described above and shown in the accompanying drawings, and can be variously modified and changed without departing from the scope thereof.

Claims

1. A query method, characterized in that: Applied to the data coordination end, the method includes: Receiving shard information and a first salted hash value corresponding to the information to be queried sent by the data query end, and sending the shard information to at least one data provider end; the first salted hash value is generated based on the information to be queried and a predetermined first salt value; receiving first feedback information sent by the data provider; the first feedback information is generated according to the first salt value and first information containing the sharding information stored in the data provider; Determine a query result corresponding to the information to be queried according to the first salted hash value and the first feedback information, and send the query result to the data query end.

2. The method according to claim 1, characterized in that The method further comprises: Receiving a session request sent by the data query end; Obtaining a session identifier corresponding to the session request, and sending the session identifier to the data provider; Receive second feedback information sent by the data provider, and send the second feedback information to the data query end; the second feedback information includes an encrypted ciphertext corresponding to the first salt value; the first salt value is generated according to the session identifier.

3. The method according to claim 1, characterized in that The first feedback information includes an interpolation polynomial; the interpolation polynomial is generated according to the first salt value and a plurality of the first information; The determining, according to the first salted hash value and the first feedback information, a query result corresponding to the information to be queried includes: The query result is determined according to the first salted hash value and the interpolation polynomial.

4. The method according to claim 3, characterized in that The interpolation polynomial is generated based on the coordinates of multiple reference points, and different reference points correspond to different first information; the horizontal coordinate of the reference point is the first information corresponding to the reference point generated by salted hash operation using the first salt value, and the vertical coordinate of the reference point is the first index value of the first information corresponding to the reference point in the data provider.

5. The method according to claim 4, characterized in that The plurality of first information include at least one valid information containing the fragment information, and / or at least one obfuscated information containing the fragment information; the business data corresponding to the first index value of the valid information in the data provider is not empty; The business data corresponding to the first index value of the obfuscation information in the data provider is empty.

6. The method according to claim 4, characterized in that The determining the query result according to the first salted hash value and the interpolation polynomial includes: Calculating a function value of the interpolation polynomial based on the first salted hash value; Determining a first index value of the information to be queried in the data provider according to the function value; Determine a query result corresponding to the information to be queried according to a first index value of the information to be queried in the data providing end.

7. The method according to claim 6, characterized in that The determining, according to the function value, a first index value of the information to be queried in the data provider includes: When the function value is an integer, determining that the function value is a first index value of the information to be queried in the data provider; When the function value is a non-integer, it is determined that the first index value of the information to be queried in the data provider is a preset value.

8. The method according to claim 6, characterized in that The determining, according to the first index value of the information to be queried in the data provider, a query result corresponding to the information to be queried, includes: Acquire, in the data provider, the business data corresponding to the first index value of the information to be queried in the data provider; Determine the query result corresponding to the information to be queried based on the acquired business data.

9. The method according to claim 8, characterized in that The acquiring, in the data provider, the business data corresponding to the first index value of the information to be queried in the data provider, comprises: The business data corresponding to the information to be queried is obtained from a business data list pre-established in the data provider for inadvertent transmission; the business data list includes multiple business data, and the index value of each business data is the same as the first index value of the first information in the data provider.

10. The method according to claim 9, characterized in that The acquiring of the service data corresponding to the information to be queried from the service data list pre-established in the data provider and used for inadvertent transmission comprises: A preset anonymous query algorithm is used to obtain the business data corresponding to the information to be queried in the business data list.

11. The method according to any one of claims 8 to 10, characterized in that: Determining the query result corresponding to the information to be queried according to the acquired business data includes: The business data acquired from each of the data providers are added together to obtain the query result.

12. A query method, characterized in that: Applied to the data query end, the method includes: Sending the shard information and the first salted hash value corresponding to the information to be queried to the data coordination terminal; the first salted hash value is generated based on the information to be queried and a predetermined first salt value; Receive a query result corresponding to the information to be queried sent by the data coordination end; the query result is determined based on the first salted hash value and first feedback information, and the first feedback information is generated based on the first salt value and the first information containing the sharding information stored in the data provider end.

13. The method according to claim 12, characterized in that The method further comprises: Sending a session request to the data coordination terminal; receiving second feedback information sent by the data coordination terminal; the second feedback information includes an encrypted ciphertext corresponding to the first salt value; the first salt value is generated according to the session identifier; Generate the first salted hash value according to the first salt value and the information to be queried.

14. The method according to claim 13, characterized in that The generating the first salted hash value according to the first salt value and the information to be queried includes: When the first salt values ​​generated by the data providers are the same, the first salted hash value is generated according to the first salt value and the information to be queried.

15. The method according to any one of claims 12 to 14, characterized in that The method further comprises: Obtaining query data input by a user, performing desensitization processing on the query data, and generating the information to be queried; Part of the query information is obtained as the fragmentation information.

16. A query method, characterized in that: Applied to a data provider, the method comprises: Receive the shard information corresponding to the information to be queried sent by the data coordination end; Determine first information containing the fragmentation information; First feedback information is generated according to a predetermined first salt value and the first information, and the first feedback information is sent to the data coordination terminal; the first feedback information is used to determine a query result corresponding to the information to be queried.

17. The method according to claim 16, characterized in that The method further comprises: Receiving a session identifier sent by the data coordination terminal; Generate the first salt value according to the session identifier and a preset shared seed; Sending second feedback information to the data coordination terminal; the second feedback information includes the encrypted ciphertext corresponding to the first salt value.

18. The method according to claim 16, characterized in that The determining of the first information containing the fragmentation information includes: Filter out valid information containing the shard information in the database; Determine at least one obfuscation information containing the fragmentation information; the service data corresponding to the first index value of the obfuscation information in the data provider is empty; The valid information and the obfuscated information are randomly arranged to obtain at least one of the first information.

19. The method according to claim 16, characterized in that The first feedback information includes an interpolation polynomial; the interpolation polynomial is generated according to the first salt value and a plurality of the first information.

20. The method according to claim 19, characterized in that The method further comprises: Using the first salt value, respectively perform a salted hash operation on each of the first information to obtain a second salted hash value corresponding to each of the first information; Using the second salted hash value corresponding to each of the first information as a horizontal coordinate and the first index value of each of the first information in the data providing end as a vertical coordinate, determining multiple reference points; The interpolation polynomial is generated according to the coordinates of the multiple reference points.

21. The method according to claim 18, characterized in that The method further comprises: A service data list for inadvertent transmission is established, wherein the service data list includes service data corresponding to each of the first information, and an index value of each of the service data is the same as a first index value of the first information in the data provider.

22. A query system, characterized in that: The query system includes a data query terminal, a data coordination terminal, and at least one data providing terminal; The data query end is used to send the shard information and the first salted hash value corresponding to the information to be queried to the data coordination end; The first salted hash value is generated based on the information to be queried and a predetermined first salt value; The data coordination end is used to send the fragmentation information to at least one of the data providing ends; The data providing end is used to generate first feedback information according to the first salt value and the stored first information containing the sharding information, and send the first feedback information to the data coordinating end; The data coordination end is further used to determine a query result corresponding to the information to be queried according to the first salted hash value and the first feedback information, and send the query result to the data query end.

23. A data coordination device, characterized in that: Applied to a data coordination terminal, the device comprises: A communication module, used to: receive shard information and a first salted hash value corresponding to the information to be queried sent by a data query end, and send the shard information to at least one data provider end; the first salted hash value is generated based on the information to be queried and a predetermined first salt value; receive first feedback information sent by the data provider end; the first feedback information is generated based on the first salt value and the first information containing the shard information stored in the data provider end; A determination module, configured to: determine a query result corresponding to the information to be queried according to the first salted hash value and the first feedback information; The communication module is further used to: send the query result to the data query end.

24. A data query device, characterized in that: Applied to a data query end, the device comprises: A communication module is used to: send the shard information and a first salted hash value corresponding to the information to be queried to the data coordination terminal; the first salted hash value is generated based on the information to be queried and a predetermined first salt value; Receive a query result corresponding to the information to be queried sent by the data coordination end; the query result is determined based on the first salted hash value and first feedback information, and the first feedback information is generated based on the first salt value and the first information containing the sharding information stored in the data provider end.

25. A data providing device, characterized in that: Applied to a data provider, the device comprises: The communication module is used to: receive the fragmentation information corresponding to the information to be queried sent by the data coordination terminal; A determination module, configured to determine first information containing the shard information; and generate first feedback information according to a predetermined first salt value and the first information; The communication module is further used to: send the first feedback information to the data coordination terminal; the first feedback information is used to determine the query result corresponding to the information to be queried.

26. An electronic device, characterized in that: include: A processor, and a memory and a communication interface communicatively connected to the processor; The communication interface is used to communicate with other communication devices; The memory is used to store computer-executable instructions; The processor is used to execute the computer-executable instructions stored in the memory to implement the query method according to any one of claims 1-21.

27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the query method according to any one of claims 1 to 21 is implemented.

28. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the query method according to any one of claims 1 to 21 is implemented.

Citation Information

Patent Citations

  • Data-fragment-based method and system for protecting privacy of participatory perception system

    CN103326822A

  • Private data query method and device and electronic equipment

    CN113536379A

  • Batch privacy information acquisition method based on oblivious pseudo-random function and hash function

    CN116541868A

  • Concealed query method, system and device based on trusted third party and storage medium

    CN116821056A

  • Privacy-Preserving Domain Name Service (DNS)

    US20220140996A1