Location data protection method and system based on searchable encryption

By using fully homomorphic encryption technology in location data protection, the problem of inefficiency of traditional encryption technology is solved, efficient query and data privacy protection are achieved, and the security and reliability of location data are ensured.

CN118643538AInactive Publication Date: 2024-09-13SHANDONG INSPUR SCI RES INST CO LTD

Patent Information

Application Number
CN202411109800.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure CN118643538A
    Figure CN118643538A
Patent Text Reader

Abstract

The invention provides a position data protection method and system based on searchable encryption, and belongs to the technical field of artificial intelligence, and the method comprises the steps: 1, initializing a system and a secret key, generating a fully homomorphic encryption secret key, and distributing the secret key to a client and a server; step 2, data encryption: the client encrypts the position data and sends the position data to the server; 3, generating an encrypted query, generating a query condition by the client, encrypting the query condition, and then distributing the query condition to the server; step 4, query processing: the server processes the encrypted query by using a homomorphic encryption technology and returns an encryption result; and step 5, result decryption: the client decrypts the result by using a private key, and obtains the original position data, so that the data security and reliability under the condition that the user uses the position data are ensured, the privacy of the position data is ensured, and efficient query operation can also be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence technology, and in particular relates to a location data protection method and system based on searchable encryption. Background Art

[0002] In the modern information society, the widespread use of location data has brought great convenience, but it has also caused privacy and security issues. With the popularization of positioning technology and mobile devices, user location information has become a valuable data resource and is widely used in various services such as navigation, social networks, and advertising push. However, unprotected location information may lead to user privacy leakage and even cause serious security risks. Therefore, how to effectively protect location data has become an urgent problem to be solved.

[0003] Research on location data protection technology mainly focuses on how to protect user privacy while ensuring data availability. Although traditional encryption methods can protect the confidentiality of data, they face many challenges when processing and querying encrypted data. Especially for dynamic and high-frequency data such as location data, if traditional encryption technology is used, it often leads to low query efficiency and cannot meet actual application needs.

[0004] The emergence of Searchable Encryption (SE) technology provides a new approach to solving this problem. Searchable encryption is an encryption method that allows users to search for keywords without decrypting data. Through this technology, users can efficiently query encrypted data while ensuring data privacy. This feature makes searchable encryption have broad application prospects in the field of location data protection. Summary of the invention

[0005] The present invention aims to solve the problems in the prior art and provides a method and system for protecting location data based on searchable encryption, namely, a method for protecting location data on the server side. The system uses searchable technology in a ciphertext state to ensure data security and reliability when users use location data.

[0006] In order to achieve the above purpose, the technical solution adopted in this application is: In a first aspect, the present invention provides a location data protection method based on searchable encryption, comprising: Step 1: Initialize the system and key, generate a fully homomorphic encryption key, and distribute the key to the client and server; Step 2: Encrypt data. The client encrypts the location data and sends it to the server. Step 3: Generate encrypted query. The client generates query conditions and encrypts them, then distributes them to the server. Step 4: Process the query. The server uses homomorphic encryption technology to process the encrypted query and returns the encrypted result. Step 5: Decryption result. The client uses the private key to decrypt the result and obtain the original location data.

[0007] Furthermore, the generation of fully homomorphic encryption keys: a trusted third party generates a fully homomorphic encryption public-private key pair; the client and server respectively generate their own public-private key pairs for identity authentication and secure communication.

[0008] Furthermore, the key distribution: a trusted third party securely distributes the fully homomorphically encrypted public key to the client and server, and the private key is only retained on the client.

[0009] Furthermore, the encrypted data includes location data encoding and encrypted location data. Location data encoding: the client performs appropriate encoding on the location data, such as block or grid processing, to generate a location tag. ; Encrypted location data: Using the public key of the fully homomorphic encryption algorithm, the client encrypts each location data to obtain the ciphertext.

[0010] Furthermore, the generation of encrypted queries includes query keyword generation and query ciphertext generation. Query keyword generation: the user inputs query conditions on the client; query ciphertext generation: the client encrypts the query conditions using a fully homomorphic encryption public key to generate a query ciphertext.

[0011] Furthermore, the query processing includes ciphertext matching and result return. Ciphertext matching: after receiving the query ciphertext, the server uses the homomorphic characteristics of fully homomorphic encryption to perform homomorphic calculations and matching operations on the stored encrypted indexes without decrypting the data to find the encrypted location data that meets the query conditions; result return: the server returns the matched encrypted location data to the client.

[0012] Furthermore, the decryption result: the client uses the fully homomorphic encryption private key to decrypt the encrypted location data of the wipe sweat search result returned by the server to obtain the original location data.

[0013] In a second aspect, the present invention provides a location data protection system based on searchable encryption, comprising: The acquisition module is configured to: initialize the system and key, generate fully homomorphic encryption keys, and distribute them to the client and server; The encryption module is configured to: the client encrypts the location data and sends it to the server; Generate an encrypted query module, which is configured as follows: the client generates query conditions and encrypts them, and then distributes the key to the server; The query processing module is configured as follows: the server processes the encrypted query using homomorphic encryption technology and returns the encrypted result; The decryption result module is configured as follows: the client uses the private key to decrypt the result and obtain the original location data.

[0014] In a third aspect, the present invention provides a computer-readable storage medium, the computer-readable storage medium including a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the location data protection method based on searchable encryption described in the first aspect.

[0015] In a fourth aspect, the present invention provides an electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the location data protection method based on searchable encryption as described in the first aspect.

[0016] Compared with the prior art, the advantages and positive effects of the present invention are: The present invention provides a location data protection method and system based on searchable encryption. The system utilizes searchable technology in a ciphertext state to ensure data security and reliability when a user uses location data. In a location data protection scheme based on searchable encryption, the location data will first be encrypted and stored on a server. When a user needs to perform a location query, a corresponding query ciphertext can be generated and sent to a server for matching. The server returns the corresponding query result to the user by matching the query ciphertext and the encrypted location information without decrypting the data. This not only ensures the privacy of the location data, but also enables efficient query operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0018] Figure 1 A schematic diagram of the architecture of a location data protection method based on searchable encryption according to the present invention. DETAILED DESCRIPTION

[0019] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0020] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways than those described herein. Therefore, the present invention is not limited to the specific embodiments of the following disclosure.

[0021] Embodiment 1, as Figure 1 As shown, the present application provides a location data protection method based on searchable encryption, which mainly includes the following steps: Step 1: Initialize the system and key: Generate a fully homomorphic encryption key and distribute it to the client and server. Step 2: Encrypt data: The client encrypts the location data and sends it to the server. Step 3: Generate an encrypted query: The client generates query conditions and encrypts them, and then sends them to the server. Step 4: Process the query: The server uses homomorphic encryption technology to process the encrypted query and returns the encrypted result. Finally, decrypt the result: The client uses the private key to decrypt the result and obtain the original location data, A location data protection method based on searchable encryption, i.e., a location data protection method on the server side. The system uses searchable technology in a ciphertext state to ensure data security and reliability when users use location data. The following are the core steps of the present invention, which are specifically optimized and adapted for location data encryption: The main participants of the program are: Trusted third party: responsible for generating and managing the master key of fully homomorphic encryption, distributing the public key of fully homomorphic encryption to the client and server, and ensuring the security and credibility of the key.

[0022] Client: Responsible for generating and managing its own public and private key pairs, encrypting location data, generating encrypted query conditions, sending encrypted location data and queries to the server, and finally decrypting the results returned by the server.

[0023] Server: Receives and stores encrypted location data sent by the client, processes encrypted queries sent by the client, performs query operations using homomorphic encryption technology, and returns encrypted results to the client.

[0024] Detailed technical steps, the specific steps of this program are as follows: 1. System initialization, 1) Key generation: A trusted third party generates a public-private key pair for fully homomorphic encryption (e.g. BGV, BFV, etc.) PK FHE , SK FHE ). The client and server generate their own public and private key pairs for identity authentication and secure communication.

[0025] 2) Key distribution: A trusted third party sends the fully homomorphically encrypted public key to PK FHE Securely distributed to clients and servers. Private key SK FHE Only kept on the client side.

[0026] 2. Data Encryption,1) Location Data Encoding: The client encodes the location data,Loc,appropriately, such as block or grid processing (e.g., location data block method and map gridding method), and generates a location tag,T,.

[0027] 2) Encrypt location data: Using the public key PKFHE of the fully homomorphic encryption algorithm, the client encrypts each location data Loc to obtain the ciphertext .

[0028] At the same time, in order to support efficient query, it is necessary to generate an encrypted index IndexT corresponding to the location data. The index here can be a location label, such as restaurant, hospital, amusement park, etc. Encryption obtains the corresponding ciphertext ; Data storage: The client sends the encrypted location data Cloc and the encrypted index Cind to the server to ensure transmission security.

[0029] 3. Query generation, query keyword generation: The user enters the query condition Q (such as a specific geographic location or range) on the client.

[0030] Query ciphertext generation: The client uses the fully homomorphic encryption public key PK FHE Encrypt the query condition Q to generate the query ciphertext C Q =Enc PK FHE (Q).

[0031] 4. Query processing, 1) Ciphertext matching: The server receives the query ciphertext C Q Then, using the homomorphic characteristics of fully homomorphic encryption, the stored encrypted index C is encrypted without decrypting the data. ind Perform homomorphic calculation and matching operations to find the encrypted location data C that meets the query conditions res .

[0032] 2) Result return: The server will match the encrypted location data C res Return to the client.

[0033] 5. Result decryption: The client uses the fully homomorphic encryption private key SK FHE Encrypted location data for query results returned by the server C res Decrypt to get the original location data Loc = Dec SK FHE ( C res ).

[0034] Embodiment 2, the present invention provides a location data protection system based on searchable encryption, comprising: The acquisition module is configured to: initialize the system and key, generate fully homomorphic encryption keys, and distribute them to the client and server; The encryption module is configured to: the client encrypts the location data and sends it to the server; Generate an encrypted query module, which is configured as follows: the client generates query conditions and encrypts them, and then distributes the key to the server; The query processing module is configured as follows: the server processes the encrypted query using homomorphic encryption technology and returns the encrypted result; The decryption result module is configured as follows: the client uses the private key to decrypt the result and obtain the original location data.

[0035] In embodiment 3, the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the location data protection method based on searchable encryption in embodiment 1.

[0036] Embodiment 4, the present invention provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the location data protection method based on searchable encryption of embodiment 1 The electronic device may include: a processor, a memory and a communication unit. These components communicate via one or more buses. Those skilled in the art will appreciate that the structure of the electronic device does not limit the embodiments of the present invention, and it may be a bus structure or a star structure, or a combination of certain components, or different component arrangements.

[0037] The communication unit is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.

[0038] The processor is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs and / or modules stored in the memory, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor can only include a central processing unit (CPU). In an embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0039] The memory is used to store the execution instructions of the processor. The memory can be implemented by any type of volatile or non-volatile storage device or a combination of them, 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.

[0040] When the execution instructions in the memory are executed by the processor, the electronic device is enabled to execute part or all of the steps of Embodiment 1.

[0041] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A location data protection method based on searchable encryption, characterized in that: include: Step 1: Initialize the system and key, generate a fully homomorphic encryption key, and distribute the key to the client and server; Generating a fully homomorphic encryption key: A trusted third party generates a fully homomorphic encryption public-private key pair; The client and server generate their own public and private key pairs for identity authentication and secure communication; Step 2: Encrypt data. The client encrypts the location data and sends it to the server. Step 3: Generate encrypted query. The client generates query conditions and encrypts them, then distributes them to the server. Step 4: Process the query. The server uses homomorphic encryption technology to process the encrypted query and returns the encrypted result. Step 5: Decryption result. The client uses the private key to decrypt the result and obtain the original location data.

2. A method for protecting location data based on searchable encryption according to claim 1, characterized in that: The key distribution: A trusted third party securely distributes the fully homomorphically encrypted public key to the client and server, and the private key is only retained on the client.

3. A method for protecting location data based on searchable encryption according to claim 1, characterized in that: The encrypted data includes location data encoding and encrypted location data. Location data encoding: The client performs appropriate encoding on the location data, such as block or grid processing, to generate a location tag. ; Encrypted location data: Using the public key of the fully homomorphic encryption algorithm, the client encrypts each location data to obtain the ciphertext.

4. A method for protecting location data based on searchable encryption according to claim 1, characterized in that: Generating the encrypted query includes query keyword generation and query ciphertext generation. Query keyword generation: the user enters the query condition on the client; Query ciphertext generation: The client uses the fully homomorphic encryption public key to encrypt the query conditions and generate the query ciphertext.

5. The method for protecting location data based on searchable encryption according to claim 1, characterized in that: The query processing includes ciphertext matching and result return. Ciphertext matching: after receiving the query ciphertext, the server uses the homomorphic characteristics of fully homomorphic encryption to perform homomorphic calculation and matching operations on the stored encrypted index without decrypting the data to find the encrypted location data that meets the query conditions; Result return: The server returns the matching encrypted location data to the client.

6. A method for protecting location data based on searchable encryption according to claim 1, characterized in that: The decryption result: the client uses the fully homomorphic encryption private key to decrypt the encrypted location data of the wipe-sweat search result returned by the server to obtain the original location data.

7. A location data protection system based on searchable encryption, characterized in that: include: The acquisition module is configured to: initialize the system and key, generate fully homomorphic encryption keys, and distribute them to the client and server; Generating a fully homomorphic encryption key: A trusted third party generates a fully homomorphic encryption public-private key pair; The client and server generate their own public and private key pairs for identity authentication and secure communication; The encryption module is configured to: the client encrypts the location data and sends it to the server; Generate an encrypted query module, which is configured as follows: the client generates query conditions and encrypts them, and then distributes the key to the server; The query processing module is configured as follows: the server processes the encrypted query using homomorphic encryption technology and returns the encrypted result; The decryption result module is configured as follows: the client uses the private key to decrypt the result and obtain the original location data.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the location data protection method based on searchable encryption as described in any one of claims 1 to 6.

9. An electronic device, characterized in that: It comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the location data protection method based on searchable encryption as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Confidential information retrieval method and system

    CN105468986A

  • Homomorphic encryption-based position privacy querying method

    CN107749865A

  • Searchable encryption method and encrypted data searching method

    KR1020140050477A

  • Privacy-preserving search using homomorphic encryption

    US20240104224A1

  • Searchable encrypted data sharing method and system based on blockchain and homomorphic encryption

    WO2022007889A1

Cited By

  • Data transmission method and device based on homomorphic encryption, equipment and storage medium

    CN119382863A

  • Data transmission method, device, equipment and storage medium based on homomorphic encryption

    CN119382863B

  • Location privacy protection method and system based on homomorphic encryption

    CN120433975A

  • A homomorphic encryption-based location privacy protection method and system

    CN120433975B