An encryptable search method for authorized information privacy protection
By combining unintentional data transmission with hash functions, the problems of privacy leakage and low retrieval efficiency in database searches are solved, achieving privacy protection and efficient retrieval in multi-user scenarios.
Patent Information
- Application Number
- CN202411183031.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-08-27
AI Technical Summary
Existing technologies pose a risk of data privacy leakage in database retrieval, and have low retrieval efficiency in multi-user scenarios, failing to meet the needs of encrypted data retrieval for multiple users.
It employs an unintentional transmission method to synchronize permissions between the user and the data owner, ensures privacy protection through encrypted query tokens and hash functions, performs encrypted data retrieval on the server side, and optimizes the retrieval process using Cuckoo Hash and Simple Hash methods.
It achieves privacy protection for user search permissions in multi-user scenarios, while improving the overall efficiency of the search process and ensuring data security and the accuracy of search results.
Smart Images

Figure CN119025577B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of privacy computing and information retrieval technology, and relates to an encrypted search method for protecting the privacy of authorized information. Background Technology
[0002] Against the backdrop of rapid development of big data technology and the increasing emphasis on the value of data applications, and with the promulgation of relevant laws and regulations such as the "Personal Information Protection Law of the People's Republic of China," data privacy issues for enterprises and individuals have become a key research focus in data security utilization. Databases remain the primary carrier of data storage, and conditional retrieval and batch extraction from databases remain the primary steps in data integration and sharing. However, during data retrieval and extraction, the conditions used can be known to all data owners, allowing them to infer the retrieval intent and data application direction, leading to privacy breaches for data requesters. Furthermore, the integrity of data provided by all parties is difficult for data requesters to verify under privacy and security conditions, resulting in a failure to achieve mutual trust between two or more parties in actual data circulation scenarios, thus hindering the achievement of data sharing and application goals.
[0003] With the development of data security technologies, privacy-preserving computation technologies aimed at ensuring secure data flow and computation have been widely applied in data sharing. Among these, privacy-preserving dataset intersection methods based on inadvertent transmission technology have played a crucial role in scenarios such as secure multi-party computation and privacy-preserving data retrieval. However, existing technologies still have shortcomings in applying these technologies to the traditional field of database retrieval. This patent proposes a database retrieval method with privacy protection capabilities using privacy intersection technology, specifically for data retrieval scenarios where databases are used as storage facilities.
[0004] The oblivious cross tags (OXT) technique proposed by Cash et al. is the first multi-keyword joint query protocol for document-oriented query retrieval needs in single-user retrieval and single-user write scenarios. By setting up an encrypted keyword index table, cross-index table, and user-side query token on the server side, and statistically analyzing the frequency of keywords in the query dataset, it improves retrieval response capabilities under multi-keyword joint query requirements, achieving both security and efficiency in multi-keyword joint retrieval under an adaptive adversarial model. This protocol is primarily suitable for Boolean-type retrieval and document-type retrieval access needs within a single-read, single-write framework. In practical applications, it mainly addresses the needs of multi-user reads and single-user writes. Providing an independent data retrieval service environment for each user is costly and cannot meet the requirements for encrypted multi-user data retrieval.
[0005] Faber et al. proposed a searchable encryption protocol that supports multi-user retrieval and various data retrieval schemes, including numerical range retrieval, substring retrieval, and wildcard retrieval. This technical solution primarily overcomes the single-user access limitation by employing unintentional pseudo-random functions and homomorphic signatures. While the unintentional pseudo-random functions and homomorphic signatures used in this method enable secure access in multi-user environments, the transmission efficiency between the client and server remains relatively low.
[0006] In summary, existing security technologies for database information retrieval mainly involve encrypting the stored information and retrieval requests, and then comparing the encrypted data. Alternatively, they may use methods such as unintentional polynomials or unintentional pseudo-random number construction to perform intersection operations between the data in the database and the retrieval request. However, these methods have the following drawbacks: high computational costs for batch encryption of stored data, complex data retrieval processes after encryption, and issues such as multiple key generation and transmission for large-scale data retrieval needs, making it difficult to apply these technologies and solutions to practical online data service scenarios.
[0007] In scenarios involving multi-field data retrieval, existing technical solutions do not provide specific technical implementation methods. They mainly rely on combining and splicing data items to form a single field for data comparison and retrieval, resulting in low data retrieval efficiency. Summary of the Invention
[0008] To address the problems existing in the prior art, the purpose of this invention is to provide an encrypted search method for protecting the privacy of authorized information. It utilizes an unintentional transmission method to provide a privacy protection mechanism for the user's permission synchronization process, preventing the leakage of private information during synchronization. This invention, while ensuring security, improves the overall efficiency of request synchronization and search result synchronization processes by employing a multi-user unintentional transmission method.
[0009] The technical solution of this invention is as follows:
[0010] An encrypted search method for protecting the privacy of authorized information includes the following steps:
[0011] 1) The user terminal and the data owner use an unintentional transmission method to find the intersection of the user's required query keyword list W and the authorized searchable keyword list G, so that the data owner and the user terminal simultaneously obtain the set of keywords that the user terminal needs to query and that have been authorized.
[0012] 2) The user requests a key from the data owner and sends an encrypted query token to the server. The server then uses the search keywords in the encrypted query token to query the corresponding set of encrypted document identifiers from the encrypted data storage database. The encrypted data storage database stores an encrypted index based on the encrypted document identifiers and the encrypted query keywords.
[0013] 3) The server sends the retrieved set of encrypted document identifiers to the client.
[0014] Furthermore, the method for synchronizing the user's list of search keywords and the list of authorized searchable keywords between the user and the data owner using an unintentional transmission method is as follows:
[0015] 11) The client calculates the required list of query keywords W = (w1, w2, ..., w...). l The hash value of ) is used to generate a vector S of length l, and length l is sent to the data owner; where w i For the i-th query keyword, the i-th component in vector S is s. i s i ∈{0,1} * , i = 1 ~ l;
[0016] 12) The data owner sets the authorized search keywords for this client and calculates their hash values;
[0017] 13) The data owner generates a list of authorized search keywords for the user based on the user's authorized search keywords, G = (g1, g2, g3..., g...). m ), g i ∈{0,1} * And generate a matrix T of size m×l. 0 Matrix T 0 All elements in the middle are randomly generated; among them, let be For matrix T 0 The row vector of the v-th row in the middle, For matrix T 0 The column vector of the u-th column in the array, g i Authorize the data owner to retrieve the i-th keyword from the keyword list, g i =1 means that the data owner authorizes the client to retrieve the i-th keyword from the keyword list, g i =0 means that the i-th keyword in the list of authorized search keywords by the data owner has not been authorized to this client;
[0018] 14) The data owner uses matrix T 0 Based on the hash value of the list G of authorized search keywords for the user, the system utilizes... Calculate matrix T 1 Among them, record For matrix T 1 The row vector of the v-th row in the middle, For matrix T 1 The column vector in column u, where key C is a symmetric encryption key shared by the data owner and the user terminal, is used to encrypt g. v After encryption, the authorized data C(g) is obtained. v );
[0019] 15) The user and the data owner conduct l unintentional transmissions; wherein, during each unintentional transmission, the data owner will... As the selected vector, the user terminal makes a selection using vector S as the selection vector. Each time there is an unintentional transmission, the user terminal obtains a vector of length m.
[0020] 16) The user terminal constructs a matrix Q from the received l vectors of length m, where the v-th column vector of matrix Q is denoted as q. v Let the u-th row vector be denoted as q. u ;
[0021] 17) The user-side calculation yields... in, g j To retrieve the j-th element in the keyword permission list G, w j To retrieve the j-th keyword from the keyword list W;
[0022] 18) When querying the v-th keyword w in the keyword list W v =g v At that time, calculate If F(w) v If the value is 1, the user client has the keyword w. v Search permissions are required; otherwise, search permissions for that keyword are not available. v To retrieve the v-th element in the keyword permission list G;
[0023] 19) Based on the calculation results of step 18), obtain the set of keywords that the user needs to query and that have been authorized.
[0024] Furthermore, the data owner uses the Cuckoo Hash method to calculate the hash value of the authorized search keywords on the user's end, and the user's end uses a simple hash method to calculate the required list of query keywords W = (w1, w2, ..., w l The hash value of ), the data owner and the user terminal have the same set of hash functions H.
[0025] Furthermore, in the Cuckoo Hash method, when a hash collision occurs, the hash functions in the hash function set H are executed sequentially; in the Simple Hash method, each hash function in the hash function set H is executed for each piece of data.
[0026] Furthermore, the method for constructing the encrypted query token is as follows:
[0027] 21) The data owner publishes a document count list Cnt containing all searchable keywords; the document count list Cnt includes multiple key-value pairs, wherein the keyword is the key and the number of documents containing the keyword is the key value;
[0028] 22) Data owner generates key K T K X K Y K Z Among them, the key K is generated based on the security parameter λ. T ∈(0,1) λ K X K Y K Z for The random number selected above;
[0029] 23) The user requests the retrieval key K from the data owner. X K Z ;
[0030] 24) The user client sets the keyword for the minimum number of associated documents to w1, and uses w as the keyword. i The number of associated documents is K, which is used for each search keyword. X K Z Generate an encrypted query token.
[0031] Furthermore, an asymmetric encryption method is used between the server and the user. The server uses its public key to encrypt the file index after the data owner uploads the index information of the file to be retrieved. The server then sends the retrieved encrypted file index back to the user. The user uses the private key between itself and the server to decrypt the index and request the relevant documents from the data owner.
[0032] The advantages of this invention are as follows:
[0033] This method optimizes searchable encryption in multi-user scenarios using an inadvertent transmission approach. This protects user privacy regarding search permissions during user permission synchronization while simultaneously improving the overall efficiency of the search process. Attached Figure Description
[0034] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation
[0035] The present invention will now be described in further detail with reference to the accompanying drawings. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.
[0036] Figure 1 This is a flowchart of the technical method for implementing the present invention, which includes the following steps:
[0037] (1) The user terminal and the data owner use an unintentional transmission method to find the intersection of the user's query keyword list W and the authorized searchable keyword list G, so that the data owner and the user terminal can simultaneously obtain the set of keywords that the user terminal needs to query and has been authorized, and complete the information synchronization operation of the search keywords and authorized searchable keywords, thereby improving the synchronization efficiency in the case of multiple query search keywords.
[0038] (2) The client requests a key from the data owner and constructs an encrypted query token and sends it to the server. The server can securely retrieve the required query data using the encrypted query token.
[0039] (3) The encrypted data storage database of the server stores encrypted document identifiers and encrypted query keywords, forming an encrypted index. After the server receives the query token, it queries the corresponding set of encrypted document identifiers in the encrypted index according to the search keywords in the token.
[0040] (4) The server sends the retrieved set of encrypted document identifiers to the client.
[0041] Step 1 includes the following steps:
[0042] Step 1.1: Let the list of query keywords required by the user be W = (w1, w2, ..., w...). l Its length is l, where w i To search for keywords, i = 1 to l, the client generates a vector S of length l, where s is the search term. i Let be the i-th component in vector S, and s i ∈{0,1} * Send the length l to the data owner.
[0043] Step 1.2: The data owner calculates the hash value of the authorized search keywords on the user's end using the Cuckoo Hash method. On the user's end, the desired search keywords are calculated using the Simple Hash method. The hash function set contains 3 hash functions, denoted as H = {h1, h2, h3}. The data owner and the user have the same hash function set. In the Cuckoo Hash method, when a hash collision occurs, the hash functions h1 to h3 are executed in that order, placing the data into a hash bucket. In the Simple Hash method, all 3 hash functions h1 to h3 are executed for each piece of data, and each hash bucket can hold more than one piece of data.
[0044] Step 1.3: Let G be the list of search keyword permissions authorized by the data owner for this user terminal, with a length of m, where G = (g1, g2, g3..., g...). m ), g i ∈{0,1} * And generate matrix T 0 T 0 All elements in T are randomly generated, and T 0 The size is m×l, T 0 Elements in For matrix T 0 The row vector of the v-th row in the middle, For matrix T 0 The column vector of the u-th column.
[0045] Step 1.4, the data owner uses matrix T 0 The hash function value of the list of search keywords authorized to the user is used as the basis for calculating matrix T. 1 The calculation process is as follows: For matrix T 1 The row vector of the v-th row in the middle, For matrix T 1 The column vector of column u is encrypted using a symmetric encryption algorithm. The data owner and one user terminal share the same key C, while different user terminals use different keys. The encrypted access control data C(g) is calculated using key C. v ), and through C(g v ) and t 0 The XOR operation on the corresponding row vectors yields t. 1 Row vector, i.e. Where g v The v-th element in the list G of search keyword permissions granted to this user terminal by the data owner.
[0046] Step 1.5: The user and the data owner conduct one unintentional transmission. The data owner will... As the selected vector, the user terminal makes a selection using vector S as the selection vector. Each time there is an unintentional transmission, the user terminal obtains a vector of length m.
[0047] Step 1.6: The user receives l vectors of length m through the process in Step 1.5, and uses the obtained vectors as column vectors to form a new matrix, denoted as Q, where the v-th column vector of Q is denoted as q. v Let the u-th row vector be denoted as q. u It can be known that... And can be launched
[0048] Step 1.7: The user-side calculation yields...
[0049] Step 1.8: When querying the v-th keyword w in the keyword list W... v =g v At that time, calculate If F(w) v If the value is 1, the user client has the keyword w. v You must have search privileges; otherwise, you will not have search privileges for that keyword.
[0050] Step 2 includes the following steps:
[0051] Step 2.1: The data owner publishes a list of document counts (Cnt) for all searchable keywords. The list is stored in a key-value pair format, with the keywords and the number of documents containing those keywords forming the key-value pair storage structure.
[0052] Step 2.2: The data owner generates the key K. T K X K Y K Z The key K is generated based on the security parameter λ. T ∈(0,1) λ K X K Y K Z for The random number selected above.
[0053] Step 2.2: The user requests the retrieval key K from the data owner. X K Z .
[0054] Step 2.3: On the user side, set the keyword that associates with the minimum number of documents as w1, and use w... i The number of associated documents is K, which is used for each search keyword. X K Z Generate encrypted query token And send all encrypted query tokens to the server, where F p This is an encryption function.
[0055] Step 3 includes the following steps:
[0056] Step 3.1: After receiving the query token, the server retrieves the index address and blinding factor based on the index in the encrypted database TSet. The encrypted database TSet stores encrypted index information consisting of encrypted document identifiers and encrypted query keywords. After the data owner uploads the index information of the file to be retrieved to the server, the server processes it and stores it in the encrypted database TSet.
[0057] Step 3.2: The server compares the xtoken with the encrypted index xtag stored in the encrypted database TSet. If they are completely identical, the server determines that the user's required search keywords are in the index stored on the server.
[0058] Step 4 includes the following steps:
[0059] Step 4.1: The server and the user end use an asymmetric encryption method. The server uses a public key to encrypt the file index after the data owner uploads the index information of the file to be retrieved. The server then sends the retrieved encrypted file index back to the user end.
[0060] Step 4.2: The user terminal uses the private key between itself and the server to decrypt the index and requests relevant documents from the data owner.
[0061] Although specific embodiments of the invention have been disclosed for illustrative purposes to aid in understanding and implementing the invention, those skilled in the art will understand that various substitutions, variations, and modifications are possible without departing from the spirit and scope of the invention and the appended claims. Therefore, the invention should not be limited to the content disclosed in the preferred embodiments, and the scope of protection claimed by the invention is defined by the claims.
Claims
1. An encrypted search method for protecting the privacy of authorized information, comprising the following steps: 1) The user terminal and the data owner use an unintentional transmission method to find the intersection of the user's required query keyword list W and the authorized searchable keyword list G, so that the data owner and the user terminal simultaneously obtain the set of keywords that the user terminal needs to query and that have been authorized; 2) The user requests a key from the data owner and sends an encrypted query token to the server. The server then uses the search keywords in the encrypted query token to query the corresponding set of encrypted document identifiers from the encrypted data storage database. The encrypted data storage database stores an encrypted index based on the encrypted document identifiers and the encrypted query keywords. 3) The server sends the retrieved set of encrypted document identifiers to the client; The method for synchronizing the user's list of search keywords and the list of authorized searchable keywords between the user and the data owner through unintentional transmission is as follows: 11) The client calculates the required list of query keywords. The hash value is used to generate a string of length . vector S and length Send to the data owner; among which, For the i-th query keyword, the vector S The first in i Each component is s i , , i =1~ l ; 12) The data owner sets the authorized search keywords for this user terminal and calculates their hash values; 13) The data owner generates a list of authorized search keywords for the user based on the user's authorized search keywords. , and generate a size of matrix ,matrix All elements in the middle are randomly generated; among them, let be For matrix The row vector of the v-th row in the middle, For matrix The column vector of the u-th column in the array, g i Authorize the data owner to retrieve the i-th keyword from the keyword list, g i =1 indicates that the data owner has authorized the user to use the i-th keyword in the keyword list for retrieval. i =0 means that the i-th keyword in the list of authorized search keywords by the data owner has not been authorized to this user client; 14) Data owners using matrices List of search keyword permissions granted to the user client Based on the hash value, use Calculate the matrix Among them, record For matrix The row vector of the v-th row in the middle, For matrix The column vector in column u, where key C is a symmetric encryption key shared by the data owner and the user terminal, is used to encrypt g. v Encrypted data to obtain authorized data ; 15) User terminals and data owners conduct Each unintentional transmission; in each unintentional transmission, the data owner will... As the selected vector, the user terminal makes a selection using vector S as the selection vector. Each time there is an unintentional transmission, the user terminal obtains a vector of length m. 16) The client receives the... l A matrix is formed by vectors of length m. , where the matrix The v-th column vector is denoted as The u-th row vector is denoted as ; 17) The user-side calculation yields... ;in, , g j To retrieve the j-th element in the keyword permission list G, w j To retrieve the j-th keyword from the keyword list W; 18) When querying the v-th keyword in the keyword list W At that time, calculate ,if A value of 1 indicates that the user client has the keyword. You must have search privileges; otherwise, you will not have search privileges for that keyword. To retrieve the keyword permission list The v-th element in; 19) Based on the calculation results of step 18), obtain the set of keywords that the user needs to query and that have been authorized.
2. The method according to claim 1, characterized in that, The data owner uses the Cuckoo Hash method to calculate the hash value of the authorized search keywords on the user's end, and the user's end uses a simple hash method to calculate the required list of query keywords. The hash value; the data owner and the user terminal have the same set of hash functions H.
3. The method according to claim 2, characterized in that, In the Cuckoo Hash method, when a hash collision occurs, the hash functions in the hash function set H are executed sequentially; in the Simple Hash method, each hash function in the hash function set H is executed for each piece of data.
4. The method according to claim 1, characterized in that, The method for constructing an encrypted query token is as follows: 21) The data owner publishes a document count list Cnt containing all searchable keywords; the document count list Cnt includes multiple key-value pairs, wherein the keyword is the key and the number of documents containing the keyword is the key-value pair. 22) Data owner generates key , , , Among them, according to safety parameters λ Generate key , , , for The random number selected above; 23) The user requests a retrieval key from the data owner. , ; 24) The user client sets the keywords that associate with the minimum number of documents. and with The number of associated documents is determined by the search key used for each search keyword. , Generate an encrypted query token.
5. The method according to claim 1, characterized in that, The server and the client use an asymmetric encryption method. The server uses its public key to encrypt the file index after the data owner uploads the index information of the file to be retrieved. The server then sends the retrieved encrypted file index back to the client. The client uses its private key with the server to decrypt the index and requests the relevant documents from the data owner.
Citation Information
Patent Citations
Searchable encryption method for hiding search mode and access mode in e-commerce platform
CN112270006A
Privacy-preserving publish-subscribe protocol in a cloud-assisted model
US20130227274A1
