A data anonymized query method and system

By using hash algorithms and symmetric cryptography algorithms during enterprise data querying, the authorization center anonymizes the data, solving privacy and compliance issues during data querying and achieving security and privacy in data querying.

CN114547648BActive Publication Date: 2026-11-24CHINA UNIONPAY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210150314.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2026-11-24
Estimated Expiration
2042-02-18

AI Technical Summary

Technical Problem

In the process of enterprise data query, how can we achieve secure integration of data and intelligence while meeting the requirements of data privacy protection, security and controllability, and regulatory requirements, so as to ensure the privacy and compliance of query results and prevent the data source party from obtaining the query party's information?

Method used

The data caller initiates a request to the authorization center carrying the target user's identifier hash value. The authorization center confirms the authorization and extracts a portion of the hash value, then sends a request to the data source carrying a portion of the hash value. The data source encrypts the dataset and returns it to the authorization center for decryption. Hash algorithms and symmetric cryptography algorithms are used to ensure the anonymity of the data.

Benefits of technology

It achieves information anonymity for the requester during data interaction, prevents information leakage to the data service provider, and ensures the privacy and compliance of user data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114547648B_ABST
    Figure CN114547648B_ABST
Patent Text Reader

Abstract

This invention provides a method and system for anonymous data querying. The method includes: a data requester initiating a first data request carrying a target user identifier hash value to an authorization center; the authorization center verifying the authorization of the first data request, and upon successful verification, extracting a portion of the target user identifier hash value and initiating a second data request carrying the portion hash value to a data source; the data source matching a dataset based on the portion hash value, wherein each element of the dataset includes: a user identifier hash value matching the portion hash value and the corresponding user data content; for each element in the dataset, encrypting the element using a key generated based on the user identifier hash value to obtain an encrypted dataset, which is then sent to the authorization center; and the authorization center decrypting each element in the encrypted dataset using the key generated based on the target user identifier hash value. Using this method, the anonymity of the data requester's information can be guaranteed during data interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of data, specifically relating to a method and system for data anonymity query. Background Technology

[0002] This section is intended to provide background or context for embodiments of the invention as set forth in the claims. The description herein is not an admission that it is prior art simply because it is included in this section.

[0003] How to achieve the secure integration of data and intelligence, enabling the secure monetization of data value and the compliant application of data intelligence, while meeting the requirements of data privacy protection, security and controllability and regulatory requirements, has become an important issue in the development of big data and artificial intelligence.

[0004] When businesses conduct data queries and interactions, the key industry pain points and challenges that need to be addressed are how to protect privacy, avoid data caching, ensure that the source party cannot know the queryer's query objectives, and still successfully return query results to the queryer while allowing businesses to verify user authorization. Summary of the Invention

[0005] To address the problems existing in the prior art, a data anonymity query method and system are proposed, which can solve the aforementioned problems.

[0006] The present invention provides the following solutions.

[0007] Firstly, a data anonymity query method is provided, comprising: a data caller initiating a first data request to an authorization center, the first data request carrying a target user identifier hash value; the authorization center verifying the authorization of the first data request from the data caller, and upon successful verification, extracting a portion of the target user identifier hash value and initiating a second data request carrying the portion hash value to the data source; the data source matching a dataset based on the portion hash value, each element of the dataset including: a user identifier hash value matching the portion hash value and the corresponding user data content; for each element in the dataset, encrypting the element using a key generated based on the user identifier hash value to obtain an encrypted dataset, and sending it to the authorization center; the authorization center decrypting each element in the encrypted dataset using a key generated based on the target user identifier hash value.

[0008] In one embodiment, before confirming rights, the method further includes: the data source party obtaining the user's first authorization information, signing the digest of the first authorization information using the user's private key, and sending the first authorization information carrying the signature to the authorization center; the authorization center using the user's public key to verify the signature of the first authorization information carrying the signature, and storing the verified first authorization information; wherein, the first authorization information is used to instruct the user to authorize the data source party to store user data content within the set authorization scope.

[0009] In one embodiment, before confirming rights, the method further includes: the data caller obtains the user's second authorization information, signs the digest of the second authorization information using the user's private key, and sends the signed second authorization information to the authorization center; the authorization center uses the user's public key to verify the signature of the signed second authorization information and stores the verified second authorization information; wherein, the second authorization information is used to instruct the user to authorize the data caller to use the user data within the set data usage scope.

[0010] In one embodiment, the authorization center confirms the authorization of the first data request from the data caller, which further includes: the authorization center matching the target user identifier hash value, the data requester identifier, and the data source identifier carried in the first data request with the second authorization information in the authorization information database.

[0011] In one embodiment, the authorization center extracts a portion of the hash value of the target user identifier hash value, which further includes extracting the first 128 bits of the target user identifier hash value.

[0012] In one embodiment, decrypting each element in the encrypted dataset further includes: the authorization center generating a digest of the target user identifier hash value using a hash algorithm, using the digest as a key and encrypting the target user identifier hash value using a symmetric cryptographic algorithm to obtain a matching value, and matching the matching value with the data in the encrypted dataset; wherein, if a matching value is found in the encrypted dataset, the authorization center returns the decrypted target user data to the data caller; if no matching value is found in the encrypted dataset, the data source does not contain the target user data.

[0013] In one embodiment, the method further includes: after the query is completed, encrypting the query record using the public key of the data querying party and the public key of the data provider.

[0014] Secondly, a data anonymity query system is provided, comprising: a data caller, a data source, and an authorization center. The data caller is configured to: initiate a first data request to the authorization center, the first data request carrying a target user identifier hash value; the authorization center is configured to: verify the authority of the data caller's first data request, extract a portion of the target user identifier hash value, and initiate a second data request to the data source carrying the portion of the hash value; the data source is configured to: match a dataset based on the portion of the hash value, each element of the dataset including: a user identifier hash value matching the portion of the hash value and the corresponding user data content; for each element in the dataset, encrypt the element using a key generated based on the user identifier hash value to obtain an encrypted dataset, and send it to the authorization center; the authorization center is further configured to: decrypt each element in the encrypted dataset using a key generated based on the target user identifier hash value.

[0015] In one embodiment, the data source is configured to further: before authorization is established, obtain the user's first authorization information, sign the digest of the first authorization information using the user's private key, and send the first authorization information carrying the signature to the authorization center; wherein, the first authorization information is used to instruct the user to authorize the data source to store user data content within a set authorization scope; the authorization center is configured to further: use the user's public key to perform signature verification on the first authorization information carrying the signature, and store the verified first authorization information.

[0016] In one embodiment, the data caller is configured to further: obtain the user's second authorization information before authorization is established, sign the digest of the second authorization information using the user's private key, and send the signed second authorization information to the authorization center; wherein the second authorization information is used to instruct the user to authorize the data caller to use the user data within a set data usage scope; the authorization center is configured to further: verify the signature of the signed second authorization information using the user's public key, and store the verified second authorization information.

[0017] In one embodiment, confirming the authorization of the first data request from the data caller further includes: the authorization center matching the target user identifier hash value, the data requester identifier, and the data source identifier carried in the first data request with the second authorization information in the authorization information database.

[0018] In one embodiment, the authorization center extracts a portion of the hash value of the target user identifier hash value, which further includes extracting the first 128 bits of the target user identifier hash value.

[0019] In one embodiment, the authorization center is further configured to: generate a digest of the target user identifier hash value using a hash algorithm, use the digest as a key and encrypt the target user identifier hash value using a symmetric cryptographic algorithm to obtain a matching value, and match the matching value with data in the encrypted dataset; wherein, if a matching value is found in the encrypted dataset, the authorization center returns the target data to the data caller; if no matching value is found in the encrypted dataset, the data source does not contain the target data.

[0020] In one embodiment, the authorization center is also configured to: encrypt the query record using the public key of the data queryer and the public key of the data provider after the query is completed.

[0021] One of the advantages of the above embodiments is that it can ensure the anonymity of the data requester's information during the data interaction process and prevent the request information from being leaked to the data service provider.

[0022] Other advantages of the present invention will be explained in more detail below with reference to the accompanying drawings.

[0023] It should be understood that the above description is merely an overview of the technical solution of the present invention, so as to enable a clearer understanding of the technical means of the present invention, and thus enable its implementation in accordance with the contents of the specification. To make the above and other objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are illustrated below. Attached Figure Description

[0024] By reading the detailed description of the exemplary embodiments below, those skilled in the art will understand the advantages and benefits of this document, as well as other advantages and benefits. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0025] Figure 1 This is a flowchart illustrating a data anonymity query method according to an embodiment of the present invention;

[0026] Figure 2 This is another flowchart illustrating a data anonymity query method according to an embodiment of the present invention;

[0027] Figure 3 This is a schematic diagram of the structure of a data anonymity query system according to an embodiment of the present invention.

[0028] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts. Detailed Implementation

[0029] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0030] In the description of the embodiments of this application, it should be understood that terms such as “comprising” or “having” are intended to indicate the presence of features, numbers, steps, behaviors, components, portions or combinations thereof disclosed in this specification, and are not intended to exclude the possibility of the presence of one or more other features, numbers, steps, behaviors, components, portions or combinations thereof.

[0031] Unless otherwise stated, " / " means "or". For example, A / B can mean A or B. In this article, "and / or" is merely a way of describing the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.

[0032] The terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, unless otherwise stated, "a plurality of" means two or more.

[0033] All code in this application is exemplary, and those skilled in the art can conceive of various variations without departing from the spirit of this application, depending on factors such as the programming language used, specific needs, and personal habits.

[0034] It should also be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0035] Figure 1 This is a flowchart illustrating a data anonymity query method according to an embodiment of this application. In this process, from the perspective of the device, the executing entity can be one or more electronic devices; from the perspective of the program, the executing entity can be a program mounted on these electronic devices.

[0036] S102: The data requester initiates the first data request to the authorization center.

[0037] The first data request carries a hash value of the target user identifier. This can be understood as a request from the data caller to access the authorized user data of the target user. To prevent the leakage of user privacy information during data querying, this first data request may include a hash value of the target user identifier, for example, generating a 256-bit hash value from the target user identifier information for use in data querying.

[0038] S104. The authorization center confirms the authorization of the first data request of the data caller. After the authorization is approved, it intercepts part of the hash value of the target user identifier hash value and sends a second data request carrying part of the hash value to the data source.

[0039] For example, the first 128 bits of the target user identifier hash value, which is 256 bits long, can be extracted as this part of the hash value, thus confusing the target user.

[0040] In one embodiment, before authorization is established, the data source obtains the user's first authorization information. This first authorization information instructs the user to authorize the data source to store user data within a defined scope. The data source signs the digest of the first authorization information using the user's private key and sends the signed first authorization information to an authorization center. The authorization center verifies the signature of the signed first authorization information using the user's public key and stores the verified first authorization information. Thus, digital signature technology prevents the first authorization information from being tampered with, ensuring the authenticity of the user's authorization to the data source.

[0041] In one embodiment, before authorization is established, the data caller obtains the user's second authorization information. This second authorization information instructs the user to authorize the data caller to use user data within a defined scope. The user signs the digest of the second authorization information using their private key and sends the signed second authorization information to an authorization center. The authorization center then verifies the signature of the signed second authorization information using the user's public key and stores the verified second authorization information. Thus, digital signature technology prevents the second authorization information from being tampered with, ensuring the authenticity of the user's authorization to the data caller.

[0042] In one embodiment, the authorization center confirms the authorization of the first data request from the data caller, which further includes: the authorization center matching the target user identifier hash value, the data requester identifier, and the data source identifier carried in the first data request with second authorization information in the authorization information database. It can be understood that the above-mentioned authorization step is that the authorization center confirms whether there is second authorization information authorizing the data caller to access the target user's data.

[0043] S106: The data source matches the dataset based on partial hash values, and for each element in the dataset, encrypts the element using a key generated based on the user identifier hash value to obtain an encrypted dataset, which is then sent to the authorization center.

[0044] Each element of the dataset includes: a user identifier hash that matches a partial hash value and the corresponding user data content.

[0045] It is understandable that the data source may have multiple matching data for this part of the hash value, so the target user data can be obfuscated in this dataset.

[0046] Based on symmetric encryption algorithms, the elements in the dataset are encrypted using a key generated from the hash value of the user identifier, which can prevent the data caller or authorization center from obtaining decrypted data from non-target users.

[0047] S108: The authorization center uses a key generated based on the hash value of the target user identifier to decrypt each element in the encrypted dataset.

[0048] In one embodiment, the authorization center can use a hash algorithm to generate a digest of the target user identifier hash value, and use the digest as a key to encrypt the target user identifier hash value using a symmetric cryptographic algorithm to obtain a matching value. The matching value is then matched with the encrypted user identifier hash value in the encrypted dataset. If a matching value is found in the encrypted dataset, the authorization center returns the decrypted target user data to the data caller. If no matching value is found in the encrypted dataset, the data source does not contain the target user data.

[0049] Understandably, based on symmetric encryption algorithms, an encrypted element can only be decrypted if the authorization center possesses the same key as a specific encrypted element in the aforementioned encrypted dataset. Therefore, by using a key generated from the target user identifier's hash value, the authorization center can decrypt each element in the encrypted dataset and thus obtain the element corresponding to the target user's data.

[0050] Through the above embodiments, when the data caller identifier and user identifier are transmitted from the authorization center to the data source, they are encrypted to be "unidentifiable" and "unrecoverable". This ensures that, under the premise of authorization verification, the information of the user and data caller is not obtained by the data source, and technically guarantees the legal requirement that personal information processing be "unidentifiable".

[0051] Figure 2 This is a flowchart illustrating a data anonymity query method according to another exemplary embodiment of the present invention. This embodiment further describes each process in detail based on the embodiment shown in Figure 1.

[0052] like Figure 2 As shown, the method provided in this embodiment may include the following steps:

[0053] S201: The data source P obtains the first authorization information M of user U and digitally signs the first authorization information.

[0054] The first authorization information may include, for example, user identifier, user authorization time, authorization period, authorized data content, and scope of use of authorized data, which is used to instruct user U to authorize data source P to store and analyze its user data within the above-defined scope.

[0055] The digital signature of the first authorization information by the data source P includes: the data source P performing a hash operation on the first authorization information M to obtain a digest H, and then using the user's private key K. prv Sign the message digest H to obtain the signature S = Sig(K) prv The first authorization information M of M is thus ensured to remain unaltered during transmission.

[0056] S202: The authorization center T obtains the first authorization information M carrying the signature S sent by the data source party P, and performs digital signature verification.

[0057] Specifically, after obtaining the first authorization information M carrying the signature S, the authorization center T uses the user's public key K. pub Decrypting the signature S yields the decrypted digest H′=D(K) pub Then, the original text of the first authorization information M is hashed to obtain the message digest H″, and compared with the message digest H′ obtained by decryption. If H″ = H′, it can be proved that the first authorization information M carrying the digital signature S was sent by the data source P and signed by the authorizing party. The received first authorization information M has not been tampered with, and the authorization center T stores the verified first authorization information.

[0058] Thus, through the above S201 and S202, the authorization information of the data source can be stored in the authorization center.

[0059] S203: The data caller S obtains the user's second authorization information N and digitally signs the second authorization information N.

[0060] The second authorization information N may include: user U identifier, data source P identifier, data caller S identifier, and data usage scope (time range, data content range, etc.). This second authorization information N is used to indicate to the data caller S that they have the right to query user U's data. More specifically, this second authorization information N is used to indicate to the data caller S that they have the right to query user U's data stored on data source P within the data usage scope.

[0061] Digitally signing the second authorization information includes: the data caller S performs a hash operation on the second authorization information N to obtain a digest, and then signs the digest H using the user's private key to obtain the second authorization information N carrying the signature. This ensures that the first authorization information N is not tampered with during transmission.

[0062] S204: The authorization center T obtains the second authorization information N carrying the signature sent by the data caller S and performs digital signature verification.

[0063] Specifically, after obtaining the second authorization information N carrying the signature, the authorization center T decrypts the signature using the user's public key to obtain a decrypted digest. Then, it performs a hash operation on the original second authorization information N to obtain a digest and compares it with the digest obtained from the decryption. If they match, it proves that the second authorization information N carrying the signature was sent by the data source P and signed by the authorizing party U, and that the received second authorization information N has not been tampered with. The authorization center T stores the verified second authorization information.

[0064] Thus, through the above steps S203 and S204, the authorization information of the data caller S can be stored in the authorization center.

[0065] After completing S201-S204 above, user authorization for both links (user U authorizes data source P to store its user data within the data scope, and user U authorizes data caller S to use its user data within the data usage scope) is completed.

[0066] S205: Data caller S initiates a first data request to authorization center T, which carries at least the target user identifier hash value.

[0067] This data request is used by data caller S to request user data from user U. Optionally, since a user may have different data content stored on multiple data sources, the data request may also carry a data source identifier, a data caller S identifier, a data content identifier, etc. In this case, the data request is used to instruct data caller S to request specific data content from user U's user data stored on data source P.

[0068] To obtain the hash value of the target user identifier, the data caller S can calculate the hash value id of the user identifier using a hash algorithm. encrypt The data length of this hash value is, for example, 256 bits.

[0069] S206: The authorization center T confirms the authorization of the first data request of the data caller S.

[0070] In one embodiment, the authorization center T matches the target user identifier hash value, data requester identifier, and data source identifier carried in the first data request with the second authorization information in the authorization information database. If the authorization information database contains the authorization information requested by the first data request, authorization can be confirmed.

[0071] S207: The authorization center T intercepts a portion of the hash value of the target user identifier hash value and sends a second data request carrying that portion of the hash value to the data source P.

[0072] Specifically, the authorization center T intercepts the target user's identifier hash value id. encrypt For example, extracting the first 128 bits of a 256-bit hash value and denoting it as id. encrypt ′, and then transmit the second data to the data source P for obfuscating the transaction content.

[0073] S208: Data source P obtains the dataset based on the hash value matching of this part. Each element of the dataset includes: the user identifier hash value that matches the hash value of the part and the corresponding user data content. For each element in the dataset, the element is encrypted using the key generated based on the user identifier hash value to obtain the encrypted dataset.

[0074] It is understandable that the data stored by data source P includes (user ID, user data content). Data source P can encrypt the user ID using a hash algorithm to obtain the user ID hash value, and then take the hash value at the same position and compare it with the aforementioned partial hash value id. encrypt The matching process is performed to obtain a dataset, which may contain multiple user data elements. For each user identifier α in the dataset Z, a digest H of the user identifier α is generated using a hash algorithm. α , using H α Using the key, elements in the dataset are encrypted using a symmetric cryptography algorithm to obtain the encrypted dataset Z. encrypt This data is then returned to the authorization center T. It's understandable that if the data source P stores the required target user data, this data will be obscured within the dataset Z. In this case, the data source P cannot know the actual data called by the data caller S, thus ensuring higher privacy.

[0075] S209: The data source P sends the encrypted dataset to the authorization center T.

[0076] S210: The authorization center T uses a key generated based on the hash value of the target user identifier to decrypt each element in the encrypted dataset.

[0077] Specifically, the authorization center T can use a hash algorithm to generate the target user identifier hash value id. encrypt Abstract H id, H id Used as the key and a symmetric cryptographic algorithm to hash the value id encrypt Encrypt to obtain ID H , will id H With Z encrypt The data in set Z is matched. Specifically, if the data in set Z... encrypt Matched ID H The authorization center T can also decrypt the target user data and return the result to the data caller S. Conversely, if in set Z... encrypt No match found for ID H If so, it means that the data source P does not contain the target user's data.

[0078] S211: The authorization center T sends the decrypted target user data to the data caller S.

[0079] In one embodiment, after the query is completed, the query record can be encrypted using the public keys of the data querying party and the data providing party. This ensures the privacy of the transaction data storage; the original transaction information can only be obtained through the secret keys of both parties during transactions such as reconciliation.

[0080] In the description of this specification, the references to terms such as "some possible implementations," "some embodiments," "examples," "specific examples," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples, without contradiction.

[0081] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0082] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0083] Regarding the method flowcharts of embodiments of this application, certain operations are described as different steps performed in a certain order. Such flowcharts are illustrative and not restrictive. Some steps described herein may be grouped together and performed in a single operation, some steps may be divided into multiple sub-steps, and some steps may be performed in an order different from that shown herein. The various steps shown in the flowcharts may be implemented in any way by any circuit structure and / or tangible mechanism (e.g., software running on a computer device, hardware (e.g., logic functions implemented by a processor or chip), and / or any combination thereof).

[0084] Based on the same technical concept, embodiments of the present invention also provide a data anonymity query system for executing the methods provided in any of the above embodiments. Figure 3 This is a schematic diagram of the structure of a data anonymity query system provided in an embodiment of the present invention.

[0085] like Figure 3 As shown, the device 300 includes: a data caller 301, a data source 302, and an authorization center 303.

[0086] Data caller 301 is configured to: initiate a first data request to authorization center 303, the first data request carrying the target user identifier hash value;

[0087] Authorization center 303 is configured to: verify the authorization of the first data request from data caller 301, intercept a portion of the hash value of the target user identifier hash value, and send a second data request carrying the portion of the hash value to data source 302; data source 302 is configured to: match the dataset based on the portion of the hash value, each element of the dataset including: the user identifier hash value matching the portion of the hash value and the corresponding user data content, encrypt each element in the dataset using a key generated based on the user identifier hash value to obtain an encrypted dataset, and send it to authorization center 303; authorization center 303 is also configured to: decrypt each element in the encrypted dataset using a key generated based on the target user identifier hash value.

[0088] In one embodiment, the data source 302 is configured to further: before authorization is established, obtain the user's first authorization information, sign the digest of the first authorization information using the user's private key, and send the first authorization information carrying the signature to the authorization center 303; wherein, the first authorization information is used to instruct the user to authorize the data source 302 to store user data content within a set authorization scope; the authorization center 303 is configured to further: use the user's public key to perform signature verification on the first authorization information carrying the signature, and store the verified first authorization information.

[0089] In one embodiment, the data caller 301 is configured to further: obtain the user's second authorization information before authorization is established, sign the digest of the second authorization information using the user's private key, and send the signed second authorization information to the authorization center 303; wherein the second authorization information is used to instruct the user to authorize the data caller 301 to use the user data within a set data usage scope; the authorization center 303 is configured to further: verify the signature of the signed second authorization information using the user's public key, and store the verified second authorization information.

[0090] In one embodiment, confirming the authorization of the first data request of the data caller 301 further includes: the authorization center 303 matching the second authorization information in the authorization information database based on the target user identifier hash value, the data requester identifier and the data source 302 identifier carried in the first data request.

[0091] In one embodiment, the authorization center 303 extracts a portion of the hash value of the target user identifier hash value, and further includes extracting the first 128 bits of the target user identifier hash value.

[0092] In one embodiment, the authorization center 303 is configured to further: generate a digest of the target user identifier hash value using a hash algorithm, use the digest as a key and encrypt the target user identifier hash value using a symmetric cryptographic algorithm to obtain a matching value, and match the matching value with data in the encrypted dataset; wherein, if a matching value is found in the encrypted dataset, the authorization center 303 returns the target data to the data caller 301; if no matching value is found in the encrypted dataset, the data source 302 does not contain the target data.

[0093] In one embodiment, the authorization center 303 is configured to further encrypt the query record using the public key of the data queryer and the public key of the data provider after the query is completed.

[0094] It should be noted that the system in this application embodiment can implement the various processes of the aforementioned method embodiments and achieve the same effects and functions, which will not be repeated here.

[0095] According to some embodiments of this application, a non-volatile computer storage medium is provided for the above-described methods, having stored thereon computer-executable instructions configured to execute the methods of the above embodiments when run by a processor.

[0096] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the descriptions of the apparatus, device, and computer-readable storage medium embodiments are simplified because they are substantially similar to the method embodiments; relevant details can be found in the descriptions of the method embodiments.

[0097] The apparatus, device, and computer-readable storage medium provided in the embodiments of this application are one-to-one corresponding to the method. Therefore, the apparatus, device, and computer-readable storage medium also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the apparatus, device, and computer-readable storage medium will not be repeated here.

[0098] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0099] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0100] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0101] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0102] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0103] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0104] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device. Furthermore, although the operations of the method of the invention are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0105] While the spirit and principles of the invention have been described with reference to several specific embodiments, it should be understood that the invention is not limited to the disclosed specific embodiments, and the division of aspects does not imply that features in these aspects cannot be combined for benefit; such division is merely for ease of description. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims

1. A method for anonymous data query, characterized in that, include: The authorization center receives and stores first authorization information and second authorization information verified by the user's digital signature in advance; wherein, the first authorization information is used to authorize the data source to store user data content, and the second authorization information is used to authorize the data caller to query user data; The data requester initiates a first data request to the authorization center, and the first data request carries the target user identifier hash value; The authorization center matches the stored second authorization information with the target user identifier hash value, data requester identifier and data source identifier carried in the first data request to confirm the authorization of the first data request of the data caller. When the authorization is confirmed, a portion of the hash value of the target user identifier hash value is extracted and a second data request carrying the portion of the hash value is sent to the data source. The data source matches the dataset based on the partial hash value. Each element of the dataset includes: a user identifier hash value that matches the partial hash value and the corresponding user data content. For each element in the dataset, a hash algorithm is used to generate a digest of the user identifier hash value corresponding to the element, and the digest is used as a key to encrypt the element to obtain an encrypted dataset, which is then sent to the authorization center. The authorization center uses a hash algorithm to generate a digest of the target user identifier hash value as a key, and uses this key to encrypt the target user identifier hash value to obtain a matching value. By comparing the matching value with the data in the encrypted dataset, each element in the encrypted dataset is decrypted. Specifically, based on a symmetric encryption algorithm, the encrypted element can only be decrypted when the authorization center holds the same key as a certain encrypted element in the encrypted dataset, thereby preventing the authorization center from obtaining decrypted data from non-target users.

2. The method according to claim 1, characterized in that, Prior to the confirmation of rights, the method further includes: The data source obtains the user's first authorization information, signs the digest of the first authorization information using the user's private key, and sends the first authorization information carrying the signature to the authorization center; The authorization center uses the user's public key to verify the signature of the first authorization information carrying the signature, and stores the verified first authorization information; wherein, the first authorization information is used to instruct the user to authorize the data source to store user data content within a set authorization scope.

3. The method according to claim 1, characterized in that, Prior to the confirmation of rights, the method further includes: The data caller obtains the user's second authorization information, signs the digest of the second authorization information using the user's private key, and sends the second authorization information carrying the signature to the authorization center; The authorization center uses the user's public key to verify the signature of the second authorization information carrying the signature, and stores the verified second authorization information; wherein, the second authorization information is used to instruct the user to authorize the data caller to use the user data within the set data usage scope.

4. The method according to claim 1, characterized in that, The authorization center extracts a portion of the hash value of the target user identifier hash value, including: Extract the first 128 bits of the target user identifier hash value.

5. The method according to claim 1, characterized in that, Decrypting each element in the encrypted dataset also includes: The authorization center uses a hash algorithm to generate a digest of the target user identifier hash value, and uses this digest as a key to encrypt the target user identifier hash value using a symmetric cryptographic algorithm to obtain a matching value. The matching value is then matched against data in the encrypted dataset. If the matching value is found in the encrypted dataset, the authorization center returns the decrypted target user data to the data caller. If no matching value is found in the encrypted dataset, then the data source does not contain the target user data.

6. The method according to claim 1, characterized in that, Also includes: Once the query is complete, the query record is encrypted using the public keys of both the data queryer and the data provider.

7. A data anonymity query system, characterized in that, include: Data consumer, data source provider, and authorization center, among which, The authorization center is configured to: receive and store first authorization information and second authorization information verified by the user's digital signature in advance; wherein, the first authorization information is used to authorize the data source to store user data content, and the second authorization information is used to authorize the data caller to query user data; The data caller is configured to: initiate a first data request to the authorization center, the first data request carrying a target user identifier hash value; The authorization center is configured to: match the stored second authorization information according to the target user identifier hash value, data requester identifier and data source identifier carried in the first data request to confirm the authorization of the first data request of the data caller, extract a part of the hash value of the target user identifier hash value, and send a second data request carrying the part of the hash value to the data source. The data source is configured to: match a dataset based on the partial hash value, wherein each element of the dataset includes: a user identifier hash value that matches the partial hash value and the corresponding user data content; for each element in the dataset, generate a digest of the user identifier hash value corresponding to the element using a hash algorithm, and use the digest as a key to encrypt the element to obtain an encrypted dataset, and send it to the authorization center; The authorization center is further configured to: generate a digest of the target user identifier hash value using a hash algorithm as a key, encrypt the target user identifier hash value using the key to obtain a matching value, and decrypt each element in the encrypted dataset by comparing the matching value with the data in the encrypted dataset; wherein, based on a symmetric encryption algorithm, the encrypted element can only be decrypted when the authorization center holds the same key as a certain encrypted element in the encrypted dataset, thereby preventing the authorization center from obtaining decrypted data from non-target users.

8. The system according to claim 7, characterized in that, The data source is configured to further: before the confirmation of rights, obtain the user's first authorization information, sign the digest of the first authorization information using the user's private key, and send the first authorization information carrying the signature to the authorization center; wherein, the first authorization information is used to instruct the user to authorize the data source to store user data content within a set authorization scope; The authorization center is further configured to: use the user's public key to perform signature verification on the first authorization information carrying the signature, and store the verified first authorization information.

9. The system according to claim 7, characterized in that, The data caller is further configured to: obtain the user's second authorization information before the confirmation of rights, sign the digest of the second authorization information using the user's private key, and send the signed second authorization information to the authorization center; wherein the second authorization information is used to instruct the user to authorize the data caller to use user data within a set data usage scope; The authorization center is further configured to: use the user's public key to verify the signature of the second authorization information carrying the signature, and store the verified second authorization information.

10. The system according to claim 7, characterized in that, The authorization center extracts a portion of the hash value of the target user identifier hash value, including extracting the first 128 bits of the target user identifier hash value.

11. The system according to claim 7, characterized in that, The authorization center is also configured to: A hash algorithm is used to generate a digest of the target user identifier's hash value. This digest is then used as a key to encrypt the target user identifier's hash value using a symmetric cryptographic algorithm, yielding a matching value. This matching value is then matched against data in the encrypted dataset. If the matching value is found in the encrypted dataset, the authorization center returns the target data to the data caller; If no matching value is found in the encrypted dataset, then the data source does not contain the target data.

12. The system according to claim 7, characterized in that, The authorization center is also configured to: Once the query is complete, the query record is encrypted using the public keys of both the data queryer and the data provider.

Citation Information

Patent Citations

  • System and method for realizing hidden trace query function based on data confusion

    CN110210249A

  • Trusted data transmission method, device and equipment

    CN111741036A