Data decryption method, device, equipment and storage medium capable of searching encryption field

By introducing neural networks into encryption and decryption technology, and using ciphertext neural networks and ciphertext mapping tables to predict and decrypt ciphertext data, the problem of high time complexity in the decryption process in the existing technology is solved, and rapid decryption and decryption are achieved. Low latency effect.

CN118157915BActive Publication Date: 2024-09-06BERGMEIS (SHENZHEN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410164416.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-05
Publication Date
2024-09-06
Estimated Expiration
2044-02-05

AI Technical Summary

Technical Problem

Existing encryption and decryption technologies have high time complexity and are difficult to complete the encryption or decryption process in polynomial time. In particular, the time complexity of the decryption process is high and cannot meet users' low-latency requirements.

Method used

The searchable encryption method based on neural network is used to predict and decrypt ciphertext data through ciphertext neural network and ciphertext mapping table, which reduces the time complexity of decryption and improves the decryption speed.

Benefits of technology

Predicting plaintext data through neural networks enables rapid decryption of ciphertext data without performing complex decryption operations, improves decryption speed, and reduces the time complexity of finding plaintext data in the ciphertext mapping table.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118157915B
    Figure CN118157915B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a data decryption method, device, equipment and storage medium in the field of searchable encryption, including: after the client initiates a write process and generates ciphertext data according to the acquired plaintext data, if it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not the correct plaintext data, the ciphertext data and its corresponding actual correct plaintext data are added to the ciphertext-plaintext mapping table; after ensuring that the total number of mapping records in the ciphertext-plaintext mapping table does not exceed a first threshold, the server saves the ciphertext data. The present invention can improve the speed of decryption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of encryption and decryption, and in particular to a data decryption method, device, equipment and storage medium in the field of searchable encryption. Background Art

[0002] Data encryption is a universal method of data protection. Sensitive data can be converted into unreadable data by using encryption keys and encryption algorithms. It can only be converted back to readable form by using decryption keys. The data before encryption is usually called plaintext data, and the data after encryption is usually called ciphertext data. Plaintext data encryption and ciphertext data decryption are mutually inverse processes. Under the premise that their respective keys are known, the computational complexity of decryption is close to the computational complexity of encryption. The computational complexity of encryption depends on the series of operations involved in the encryption process, including multiple rounds of processing of plaintext data, and each round of processing consists of operations such as randomization, replacement, logical operations or arithmetic operations.

[0003] Therefore, both encryption and decryption have high time complexity, and it is difficult to ensure that the encryption or decryption process can be completed in a polynomial time of the input plaintext size, let alone to ensure that these processes can be completed in a constant time that does not depend on the plaintext size.

[0004] Users' acceptance and tolerance for the time required for encryption are usually higher than their acceptance and tolerance for the time required for decryption. When encryption and decryption operations are complex and take a long time, how to speed up decryption has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] Based on this, it is necessary to propose a data decryption method, device, equipment and storage medium in the searchable encryption field to address the above problems.

[0006] A method for decrypting data in a searchable encrypted field, the method comprising:

[0007] After the client initiates the write process and generates ciphertext data based on the acquired plaintext data, it is determined whether there is a ciphertext neural network and a correct ciphertext table;

[0008] If it is determined that there is no ciphertext neural network and correct ciphertext table, adding the ciphertext data and the corresponding actual correct plaintext data to the ciphertext-plaintext mapping table;

[0009] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, the ciphertext data is added to the correct ciphertext table, and the server saves the ciphertext data;

[0010] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, the ciphertext data and the corresponding actual correct plaintext data are added to the ciphertext-plaintext mapping table;

[0011] When it is determined that the total number of mapping records in the ciphertext-plain text mapping table does not exceed a first threshold, the server saves the ciphertext data;

[0012] When it is determined that the total number of mapping records in the ciphertext-to-civiltext mapping table exceeds a first threshold, if it is determined that there is a ciphertext neural network and a correct ciphertext table, the client restores all known ciphertext-to-civiltext mapping records through the correct ciphertext table and the ciphertext neural network, otherwise the current ciphertext-to-civiltext mapping table is composed of all known ciphertext-to-civiltext mapping records;

[0013] Reconstruct the ciphertext neural network according to the ciphertext-civilized text mapping table containing all known ciphertext-civilized text mapping records;

[0014] Reconstruct the correct ciphertext table and the ciphertext-cleartext mapping table according to the reconstructed ciphertext neural network;

[0015] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table does not exceed the second threshold, the server saves the ciphertext data;

[0016] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table exceeds the second threshold, the ciphertext neural network is reconstructed by increasing the number of parameters of the neural network, and the ciphertext-plaintext mapping table and the correct ciphertext table are updated;

[0017] After the client initiates the read process and obtains the ciphertext data returned by the server, the ciphertext data is located according to the ciphertext-plaintext mapping table. If a corresponding mapping record exists, the plaintext data corresponding to the mapping record is obtained from the mapping record.

[0018] If there is no corresponding mapping record, the plaintext data corresponding to the mapping record is predicted through the ciphertext neural network.

[0019] In the above scheme, the correct ciphertext table and the ciphertext-cleartext mapping table are reconstructed according to the reconstructed ciphertext neural network, specifically including:

[0020] The ciphertext data is predicted according to the reconstructed ciphertext neural network, the correctly predicted ciphertext data is reconstructed into a correct ciphertext table, and the incorrectly predicted ciphertext data and its corresponding actual correct plaintext data are reconstructed into a ciphertext-plaintext mapping table.

[0021] In the above scheme, the prediction of the ciphertext data based on the reconstructed neural network specifically includes:

[0022] Input each ciphertext data in the ciphertext-plaintext mapping table into the ciphertext neural network to predict the plaintext data, and obtain the predicted plaintext data corresponding to each ciphertext data in the ciphertext-plaintext mapping table;

[0023] The correctly predicted ciphertext and the incorrectly predicted ciphertext are determined according to the predicted plaintext data corresponding to each ciphertext data in the ciphertext-plaintext mapping table.

[0024] In the above scheme, the correctly predicted ciphertext data is reconstructed into a correct ciphertext table, and the incorrectly predicted ciphertext data and its corresponding actual correct plaintext data are reconstructed into a ciphertext-plaintext mapping table, which specifically includes:

[0025] Obtain the predicted correct plaintext data and predicted incorrect plaintext data corresponding to each ciphertext data in the ciphertext-plaintext mapping table containing all known ciphertext-plaintext mapping records;

[0026] Deleting the mapping record corresponding to the predicted correct ciphertext data from the ciphertext-to-civilian text mapping table containing all known ciphertext-to-civilian text mapping records, and reconstructing the ciphertext-to-civilian text mapping table;

[0027] Clear the correct ciphertext table, add the ciphertext data corresponding to the predicted correct plaintext data to the correct ciphertext table, and reconstruct the correct ciphertext table.

[0028] In the above solution, the first threshold and the second threshold are both positive integers, and the second threshold is smaller than the first threshold.

[0029] In the above scheme, if the number of mapping records in the reconstructed ciphertext-to-civil text mapping table exceeds the second threshold, the ciphertext neural network is reconstructed by increasing the number of parameters of the neural network, and the ciphertext-to-civil text mapping table and the correct ciphertext table are updated, specifically including:

[0030] The client restores all known ciphertext-civil-text mapping records through the correct ciphertext table and the ciphertext neural network, and then reconstructs the ciphertext neural network according to the ciphertext-civil-text mapping table containing all known ciphertext-civil-text mapping records;

[0031] The ciphertext data is predicted according to the reconstructed ciphertext neural network, the correctly predicted ciphertext data is reconstructed into a correct ciphertext table, and the incorrectly predicted ciphertext data and its corresponding actual correct plaintext data are reconstructed into a ciphertext-plaintext mapping table;

[0032] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table still exceeds the second threshold, the ciphertext neural network is reconstructed again by increasing the number of parameters of the neural network, and the ciphertext-plaintext mapping table and the correct ciphertext table are updated.

[0033] An efficient data decryption device, comprising:

[0034] The data writing module is used to initiate the writing process on the client and generate ciphertext data based on the obtained plaintext data;

[0035] A plaintext prediction module is used to determine whether there is a ciphertext neural network and a correct ciphertext table during the writing process; specifically used to locate ciphertext data according to the ciphertext-plaintext mapping table, and if there is a corresponding mapping record, obtain the plaintext data corresponding to the mapping record from the mapping record, otherwise predict the plaintext data corresponding to the mapping record through the ciphertext neural network; specifically used to add the ciphertext data to the correct ciphertext table if it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, and save the ciphertext data to the server; if it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, add the ciphertext data and its corresponding correct plaintext data to the ciphertext-plaintext mapping table; when it is determined that the total number of mapping records in the ciphertext-plaintext mapping table does not exceed a first threshold, the The server saves the ciphertext data; when it is determined that the total number of mapping records in the ciphertext-plain text mapping table exceeds a first threshold, the client restores the mapping records of all known ciphertext-plain text mapping tables through the correct ciphertext table and the ciphertext neural network, and reconstructs the ciphertext neural network according to the restored ciphertext-plain text mapping table; reconstructs the correct ciphertext table and the ciphertext-plain text mapping table according to the reconstructed neural network; if the number of mapping records in the reconstructed ciphertext-plain text mapping table does not exceed a second threshold, the ciphertext data is saved to the server; if the number of mapping records in the reconstructed ciphertext-plain text mapping table exceeds the second threshold, the neural network is reconstructed by increasing the number of parameters of the neural network; it is also specifically used to locate the ciphertext data according to the ciphertext-plain text mapping table during the reading process, and if there is a corresponding mapping record, obtain the plaintext data corresponding to the mapping record from the mapping record, otherwise predict the plaintext data corresponding to the mapping record through the ciphertext neural network;

[0036] The data reading module is used to initiate the reading process on the client and obtain the ciphertext data returned by the server.

[0037] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:

[0038] After the client initiates the write process and generates ciphertext data based on the acquired plaintext data, it is determined whether there is a ciphertext neural network and a correct ciphertext table;

[0039] If it is determined that there is no ciphertext neural network and correct ciphertext table, adding the ciphertext data and the corresponding actual correct plaintext data to the ciphertext-plaintext mapping table;

[0040] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, the ciphertext data is added to the correct ciphertext table, and the server saves the ciphertext data;

[0041] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, the ciphertext data and the corresponding actual correct plaintext data are added to the ciphertext-plaintext mapping table;

[0042] When it is determined that the total number of mapping records in the ciphertext-plain text mapping table does not exceed a first threshold, the server saves the ciphertext data;

[0043] When it is determined that the total number of mapping records in the ciphertext-to-civiltext mapping table exceeds a first threshold, if it is determined that there is a ciphertext neural network and a correct ciphertext table, the client restores all known ciphertext-to-civiltext mapping records through the correct ciphertext table and the ciphertext neural network, otherwise the current ciphertext-to-civiltext mapping table is composed of all known ciphertext-to-civiltext mapping records;

[0044] Reconstruct the ciphertext neural network according to the ciphertext-civilized text mapping table containing all known ciphertext-civilized text mapping records;

[0045] Reconstruct the correct ciphertext table and the ciphertext-cleartext mapping table according to the reconstructed ciphertext neural network;

[0046] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table does not exceed the second threshold, the server saves the ciphertext data;

[0047] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table exceeds the second threshold, the ciphertext neural network is reconstructed by increasing the number of parameters of the neural network, and the ciphertext-plaintext mapping table and the correct ciphertext table are updated;

[0048] After the client initiates the read process and obtains the ciphertext data returned by the server, the ciphertext data is located according to the ciphertext-plaintext mapping table. If a corresponding mapping record exists, the plaintext data corresponding to the mapping record is obtained from the mapping record.

[0049] If there is no corresponding mapping record, the plaintext data corresponding to the mapping record is predicted through the ciphertext neural network.

[0050] A computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following steps:

[0051] After the client initiates the write process and generates ciphertext data based on the acquired plaintext data, it is determined whether there is a ciphertext neural network and a correct ciphertext table;

[0052] If it is determined that there is no ciphertext neural network and correct ciphertext table, adding the ciphertext data and the corresponding actual correct plaintext data to the ciphertext-plaintext mapping table;

[0053] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, the ciphertext data is added to the correct ciphertext table, and the server saves the ciphertext data;

[0054] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, the ciphertext data and the corresponding actual correct plaintext data are added to the ciphertext-plaintext mapping table;

[0055] When it is determined that the total number of mapping records in the ciphertext-plain text mapping table does not exceed a first threshold, the server saves the ciphertext data;

[0056] When it is determined that the total number of mapping records in the ciphertext-to-civiltext mapping table exceeds a first threshold, if it is determined that there is a ciphertext neural network and a correct ciphertext table, the client restores all known ciphertext-to-civiltext mapping records through the correct ciphertext table and the ciphertext neural network, otherwise the current ciphertext-to-civiltext mapping table is composed of all known ciphertext-to-civiltext mapping records;

[0057] Reconstruct the ciphertext neural network according to the ciphertext-civilized text mapping table containing all known ciphertext-civilized text mapping records;

[0058] Reconstruct the correct ciphertext table and the ciphertext-cleartext mapping table according to the reconstructed ciphertext neural network;

[0059] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table does not exceed the second threshold, the server saves the ciphertext data;

[0060] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table exceeds the second threshold, the ciphertext neural network is reconstructed by increasing the number of parameters of the neural network, and the ciphertext-plaintext mapping table and the correct ciphertext table are updated;

[0061] After the client initiates the read process and obtains the ciphertext data returned by the server, the ciphertext data is located according to the ciphertext-plaintext mapping table. If a corresponding mapping record exists, the plaintext data corresponding to the mapping record is obtained from the mapping record.

[0062] If there is no corresponding mapping record, the plaintext data corresponding to the mapping record is predicted through the ciphertext neural network.

[0063] The embodiments of the present invention have the following beneficial effects:

[0064] After obtaining the ciphertext data to be decrypted, the present invention searches for the ciphertext data in the ciphertext-plaintext mapping table. If the ciphertext data is not found in the ciphertext-plaintext data table, the ciphertext data is input into the ciphertext neural network to predict the plaintext data to obtain the plaintext data. The ciphertext data is determined by combining the ciphertext-plaintext mapping table and the ciphertext neural network to achieve decryption. The ciphertext data can be decrypted to obtain the plaintext data without performing complex decryption operations, which can improve the decryption speed. The number of mapping records between the ciphertext data and the plaintext data in the ciphertext-plaintext mapping table is less than a first threshold. When the plaintext data cannot be found, the ciphertext neural network is directly used to predict the plaintext data to determine the plaintext data. This can reduce the time complexity of searching for the plaintext in the ciphertext-plaintext mapping table and further improve the decryption speed. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0066] in:

[0067] Figure 1 The read and write process of the database searchable encryption is shown;

[0068] Figure 2 A flowchart of a writing process in a method for decrypting data in a searchable encryption field provided in an embodiment of the present application;

[0069] Figure 3 A schematic diagram of a model structure of a ciphertext neural network provided in an embodiment of the present application;

[0070] Figure 4 A flowchart of a reading process in a data decryption method in a searchable encrypted field provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0072] The technical solution of the present invention can be applied to data encryption and decryption scenarios, wherein the data encryption and decryption scenarios refer to scenarios in which plaintext data is encrypted to obtain ciphertext data, and ciphertext data is decrypted to obtain plaintext data.

[0073] In the data encryption and decryption scenarios, users are much more tolerant of the time cost of plaintext encryption than the time cost of ciphertext decryption. Taking the database searchable encryption application scenario as an example, this scenario means that the database client is responsible for the two processes of plaintext encryption and ciphertext decryption, while the database server is responsible for the storage of ciphertext. The database server cannot see the plaintext, but supports the search of some operations (such as numerical comparison, numerical addition and multiplication) to maintain the precise results. That is, the result of the operation on the plaintext is equivalent to the result of the operation after the plaintext is encrypted and then decrypted into plaintext. In this application scenario, plaintext encryption is completed after the client initiates the write process. Users can submit data write requests in batches and obtain write status in batches. As long as the amount of data written in each batch is not large, the user's time overhead for plaintext encryption is tolerable. On the contrary, ciphertext decryption is completed after the client initiates the read process. After the server returns a large number of search answers, the client needs to decrypt these answers at one time to generate user-readable plaintext. However, users have extremely low tolerance for the high time overhead of ciphertext decryption, and generally require compliance with the "1-second rule" for big data processing, that is, the plaintext answer must be seen within a few seconds after submitting the search. Figure 1 The read and write process of the database searchable encryption is shown, in which the client uses the key to decrypt the answer during the reading process, which is a step where the time cost is likely to far exceed the user's waiting tolerance. Therefore, reducing the time cost of ciphertext decryption is a technical problem that needs to be solved urgently.

[0074] A feasible technical solution is to set a ciphertext-plaintext mapping table in a data processing device (such as the aforementioned database client) that needs to be encrypted and decrypted. The ciphertext-plaintext mapping table stores the mapping record between ciphertext data and plaintext data. The data processing device generates ciphertext data corresponding to the plaintext data during encryption, and stores the plaintext data and the generated ciphertext data in the ciphertext-plaintext mapping table accordingly, forming a mapping record between the ciphertext data and the plaintext data. When the data processing device needs to decrypt the ciphertext data, it locates the ciphertext through binary search, thereby finding the corresponding plaintext from the ciphertext-plaintext mapping table. The time complexity of this scheme is log2(m1), where m1 is the number of mapping records in the ciphertext-plaintext mapping table. m1 will increase with the increase of encryption operations, making the time complexity increase continuously. m1 can exceed the exponential level of the ciphertext size, making the time complexity of this scheme at least linear in the ciphertext size, which is higher than the linear level of the plaintext size. Therefore, the time complexity is relatively high. In addition, since this scheme needs to store all ciphertext-plaintext mapping records, the space occupied by this scheme is exponential in the ciphertext size, and the required storage space is also relatively large. Obviously, the above technical problems cannot be effectively solved.

[0075] In view of this, an embodiment of the present invention provides a method for decrypting data in a searchable encrypted field, wherein the technical solution of the present invention can be applied to a data processing device capable of encryption and decryption. The data processing device can, for example, be a device with a database client installed. Of course, the data processing device can also be other computer devices, and the present invention is not limited thereto.

[0076] like Figure 2 As shown, the method is implemented by the following steps:

[0077] Step 101: Initiate a write process on the client and generate ciphertext data based on the obtained plaintext data;

[0078] Specifically, the ciphertext data can be the ciphertext data in the searchable encryption application scenario of the aforementioned database. In this scenario, the ciphertext data is stored in the target database, and the data processing device can send a query request to the target database and receive the first ciphertext data sent by the target database; in this scenario, the target database can also store a ciphertext-civilized text mapping table and a ciphertext neural network, and the data processing device can also obtain the ciphertext-civilized text mapping table and the ciphertext neural network from the target database.

[0079] Encrypt the plaintext data to obtain the ciphertext data.

[0080] The encryption key in the encryption and decryption scenario can be used to encrypt the plaintext data using the encryption algorithm in the scenario to obtain the ciphertext data.

[0081] Step 102: Determine whether there is a ciphertext neural network and a correct ciphertext table;

[0082] Specifically, the encrypted neural network can be a prediction model based on a neural network. In a specific implementation, the encrypted neural network can be a prediction model based on a feed forward network (FNN), and the encrypted neural network is composed of an input layer, n hidden layers and an output layer in sequence, n>1, and each hidden layer contains multiple nodes, and the nodes represent neurons. The input of the input layer is the ciphertext data. The input layer is connected to the first hidden layer among the n hidden layers. The connection between the input layer and the first hidden layer represents the weight matrix between the input layer and the first hidden layer. The weight matrix between the input layer and the first hidden layer is an L1*1 weight matrix, that is, it contains L1*1 model parameters, and L1 represents the number of nodes contained in the first hidden layer. The i-th hidden layer among the n hidden layers is connected to the (i+1)-th hidden layer among the n hidden layers. The connection between the i-th hidden layer and the (i+1)-th hidden layer represents the weight matrix between the i-th hidden layer and the (i+1)-th hidden layer. The weight matrix between the i-th hidden layer and the (i+1)-th hidden layer is L i+1 *L i The weight matrix contains L i+1 *L i model parameters, L i represents the number of nodes contained in the i-th hidden layer, L i+1 represents the number of nodes contained in the (i+1)th hidden layer, 1≤i≤n; the last hidden layer among the n hidden layers is connected to the output layer, and the connection between the last hidden layer and the output layer represents the weight matrix between the last hidden layer and the output layer, and the weight matrix between the last hidden layer and the output layer is 1*L n The weight matrix contains 1*L n model parameters, L n represents the number of nodes contained in the last hidden layer; the output of the output layer is plaintext data. For example, the ciphertext neural network is as follows Figure 3 As shown, it contains 2 hidden layers.

[0083] The model structure of the encrypted neural network may also be other model structures, and the present invention does not limit this.

[0084] The model structure of the ciphertext neural network is different, and the process of predicting plaintext data by the ciphertext neural network will be different. Figure 2 Taking the figure as an example, the process of using the ciphertext neural network to predict the plaintext data and obtain the plaintext data is introduced.

[0085] After the ciphertext data is input into the ciphertext neural network, the output of the first hidden layer in the ciphertext neural network is represented as f1, f1=G1(W1*X+b1), W1 represents the weight matrix between the input layer and the first hidden layer, W1 is the L1*1 weight matrix, X represents the ciphertext data, b1 represents the bias parameter between the hidden layer and the input layer, b1 is the L1-dimensional column vector, G1 represents the activation function between the input layer and the first hidden layer, for example, it can be a sigmoid function, the activation function is used to introduce nonlinear characteristics to the node, and increase the representation and fitting ability of the neural network; the output of the second hidden layer in the ciphertext neural network is represented as f2, f2=G2(W2*f1+ b2), W2 represents the weight matrix between the first hidden layer and the second hidden layer, W2 is the weight matrix of L2*L1, b2 represents the bias parameter between the first hidden layer and the second hidden layer, b2 is the column vector of L2 dimension, G2 represents the activation function between the first hidden layer and the second hidden layer; the output of the output layer can be expressed as f3, f3=G3(W3*f2+b2), W3 represents the weight matrix between the second hidden layer and the output layer, W3 is the matrix of 1*L3, b3 represents the bias parameter between the output layer and the hidden layer, G3 represents the activation function between the output layer and the hidden layer, which is used to compress the data to the numerical range of the plaintext data, and f3 is the plaintext data.

[0086] The correct ciphertext table is used to store the ciphertext data predicted correctly by the ciphertext neural network, that is, the ciphertext data stored in the correct ciphertext table is input into the ciphertext neural network for plaintext data prediction. The ciphertext neural network can correctly predict and output the correct plaintext data.

[0087] If the data processing device is a device installed with a database client in a searchable encryption application scenario, after adding the ciphertext data to the correct ciphertext table, the data processing device may also send the ciphertext data to the target database.

[0088] When the ciphertext neural network can correctly predict the plaintext data of the ciphertext data, adding the ciphertext data to the correct ciphertext table instead of adding the ciphertext data to the ciphertext-plaintext mapping table can limit the number of mapping records in the ciphertext-plaintext mapping table.

[0089] If it is determined that there is no ciphertext neural network and a correct ciphertext table, it means that the ciphertext neural network has not been trained yet, and step 103 is executed;

[0090] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, execute step 104;

[0091] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, execute step 105;

[0092] Step 103: Add the ciphertext data and the corresponding correct plaintext data to the ciphertext-plaintext mapping table;

[0093] Specifically, the ciphertext-plaintext mapping table refers to a mapping table that stores the correspondence between ciphertext data and plaintext data. The ciphertext-plaintext mapping table includes mapping records between ciphertext data and plaintext data. A mapping record represents the correspondence between one ciphertext data and one plaintext data. There is a unique correspondence between the ciphertext data and the plaintext data in the ciphertext-plaintext mapping table.

[0094] Exemplarily, the encrypted-plain text mapping table may be as shown in Table 1.

[0095] Table 1

[0096] Ciphertext data Plaintext data c1 m1 c2 m2 … …

[0097] From the above table 1, it can be seen that the plaintext data m1 and the ciphertext data c1 are a mapping record in the ciphertext-plaintext mapping table, and the plaintext data m1 is the plaintext data corresponding to the ciphertext data c1. The plaintext data m2 and the ciphertext data c2 are a mapping record in the ciphertext-plaintext mapping table, and the plaintext data m2 is the plaintext data corresponding to the ciphertext data c2. By searching the ciphertext-plaintext mapping table, the ciphertext data can be decrypted to obtain the plaintext data corresponding to the ciphertext data.

[0098] Step 104: Add the ciphertext data to the correct ciphertext table, and the server saves the ciphertext data;

[0099] Specifically, adding the ciphertext data to the correct ciphertext table instead of adding the ciphertext data to the ciphertext-cleartext mapping table can limit the number of mapping records in the ciphertext-cleartext mapping table.

[0100] Step 105: Add the ciphertext data and the corresponding correct plaintext data to the ciphertext-plaintext mapping table;

[0101] Specifically, when the ciphertext neural network cannot correctly predict the plaintext data of the ciphertext data, the ciphertext data and its corresponding actual correct plaintext data are added to the ciphertext-plaintext mapping table, which can ensure that the ciphertext data can be subsequently decrypted to obtain the plaintext data.

[0102] Step 106: Determine a comparison relationship between the total number of mapping records in the encrypted and clear text mapping table and a first threshold;

[0103] Specifically, when it is determined that the total number of mapping records in the encrypted and clear text mapping table does not exceed the first threshold, step 107 is executed;

[0104] For example, the first threshold may be 1024. Since the number of mapping records in the ciphertext mapping table is less than the first threshold, the time complexity of searching in the ciphertext mapping table is less than log2(m2), where m2 is the first threshold, which is a constant and does not increase with the increase of encryption operations.

[0105] When it is determined that the total number of mapping records in the ciphertext-plain text mapping table exceeds the first threshold, it means that the mapping records in the ciphertext-plain text mapping table are sufficient for training the ciphertext neural network, and step 108 is executed;

[0106] If the number of mapping records in the ciphertext-plaintext mapping table does not exceed the first threshold, execute step 107;

[0107] Step 107: The server saves the ciphertext data;

[0108] Step 108: If it is determined that there is a ciphertext neural network and a correct ciphertext table, the client restores all known ciphertext-civil-text mapping records through the correct ciphertext table and the ciphertext neural network, otherwise the current ciphertext-civil-text mapping table is composed of all known ciphertext-civil-text mapping records;

[0109] Step 109: Reconstruct the ciphertext neural network according to the ciphertext-civil-text mapping table containing all known ciphertext-civil-text mapping records;

[0110] Step 110: Reconstruct the correct ciphertext table and the ciphertext-cleartext mapping table according to the reconstructed ciphertext neural network;

[0111] Specifically, the ciphertext data is predicted according to the reconstructed ciphertext neural network, the correctly predicted ciphertext data is reconstructed into a correct ciphertext table, and the incorrectly predicted ciphertext data and its corresponding actual correct plaintext data are reconstructed into a ciphertext-plaintext mapping table.

[0112] Input each ciphertext data in the ciphertext-plaintext mapping table into the ciphertext neural network to predict the plaintext data, and obtain the predicted plaintext data corresponding to each ciphertext data in the ciphertext-plaintext mapping table;

[0113] The correctly predicted ciphertext and the incorrectly predicted ciphertext are determined according to the predicted plaintext data corresponding to each ciphertext data in the ciphertext-plaintext mapping table.

[0114] Obtain the predicted correct plaintext data and predicted incorrect plaintext data corresponding to each ciphertext data in the ciphertext-plaintext mapping table containing all known ciphertext-plaintext mapping records;

[0115] Deleting the mapping record corresponding to the predicted correct ciphertext data from the ciphertext-to-civilian text mapping table containing all known ciphertext-to-civilian text mapping records, and reconstructing the ciphertext-to-civilian text mapping table;

[0116] Clear the correct ciphertext table, add the ciphertext data corresponding to the predicted correct plaintext data to the correct ciphertext table, and reconstruct the correct ciphertext table.

[0117] Step 111: Determine a comparison relationship between the number of mapping records in the reconstructed ciphertext-plaintext mapping table and a second threshold;

[0118] Specifically, the second threshold is less than the first threshold. For example, the first threshold is 1024, and the second threshold may be 75% of the first threshold, that is, the second threshold is 768.

[0119] If the number of mapping records in the reconstructed ciphertext-plain text mapping table does not exceed the second threshold, it means that the number of mapping records in the ciphertext-plain text mapping table meets the quantity limit, and the training of the ciphertext neural network is terminated, and step 112 is executed;

[0120] If the number of mapping records in the reconstructed ciphertext-plain text mapping table exceeds the second threshold, it means that the number of mapping records in the ciphertext-plain text mapping table is large and the time complexity of searching the ciphertext-plain text mapping table is high, and step 113 is executed;

[0121] When the training of the ciphertext neural network is completed, the ciphertext-light text mapping table and the ciphertext neural network may be sent to a target database so that the target database saves the ciphertext-light text mapping table and the ciphertext neural network.

[0122] The ciphertext-plaintext mapping table and the ciphertext neural network are sent to a target database for storage, thereby saving storage space of a data processing device.

[0123] Step 112: The server saves the ciphertext data;

[0124] Step 113: Reconstruct the ciphertext neural network by increasing the number of parameters of the neural network, and update the ciphertext-cleartext mapping table and the correct ciphertext table;

[0125] Specifically, the client restores all known ciphertext-civil-text mapping records through the correct ciphertext table and the ciphertext neural network, and then reconstructs the ciphertext neural network according to the ciphertext-civil-text mapping table containing all known ciphertext-civil-text mapping records;

[0126] The ciphertext data is predicted according to the reconstructed ciphertext neural network, the correctly predicted ciphertext data is reconstructed into a correct ciphertext table, and the incorrectly predicted ciphertext data and its corresponding actual correct plaintext data are reconstructed into a ciphertext-plaintext mapping table;

[0127] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table still exceeds the second threshold, the ciphertext neural network is reconstructed again by increasing the number of parameters of the neural network, and the ciphertext-plaintext mapping table and the correct ciphertext table are updated.

[0128] Here, the model structure of the encrypted neural network is different, and the method of increasing the model parameters of the encrypted neural network is different. If the encrypted neural network is a prediction model based on a neural network, the model parameters of the encrypted neural network can be increased by increasing the number of nodes in the hidden layer. Increasing the number of nodes in the hidden layer can expand the size of the weight matrix corresponding to the hidden layer, thereby achieving the purpose of increasing the model parameters.

[0129] There are a large number of mapping records in the ciphertext-civilized text mapping table, indicating that the number of mapping records that the ciphertext neural network can fit is small. By increasing the model parameters of the ciphertext neural network, the ciphertext neural network can have a stronger fitting ability.

[0130] After obtaining the plaintext data to be encrypted, the ciphertext data is obtained by encrypting the plaintext data, and then the ciphertext neural network is trained based on the plaintext data and the ciphertext data. The time-consuming training process of the ciphertext neural network is placed in the data encryption process, so that the data decryption process can use the ciphertext neural network for fast decryption, reducing the time for data decryption.

[0131] At this point, the writing process is completed.

[0132] Initiate the read process, such as Figure 4 As shown, the following steps are included:

[0133] Step 201: After the client initiates a read process and obtains the ciphertext data returned by the server, the ciphertext data is located according to the ciphertext-civil text mapping table to determine whether there is a corresponding mapping record;

[0134] Specifically, the ciphertext neural network is a model that can predict plaintext data for ciphertext data and output plaintext data, that is, the ciphertext neural network is used to decrypt the ciphertext data to obtain the plaintext data.

[0135] The plaintext data is the plaintext data obtained by decrypting the ciphertext data by the ciphertext neural network, that is, the ciphertext data is encrypted by the plaintext data.

[0136] If there is a corresponding mapping record, execute step 202;

[0137] If there is no corresponding mapping record, execute step 203.

[0138] Step 202: Obtain the plaintext data corresponding to the mapping record from the mapping record;

[0139] Step 203: Use the ciphertext neural network to predict the plaintext data corresponding to the mapping record.

[0140] After obtaining the ciphertext data to be decrypted, the present invention searches for the ciphertext data in the ciphertext-plaintext mapping table. If the ciphertext data is not found in the ciphertext-plaintext data table, the ciphertext data is input into the ciphertext neural network to predict the plaintext data to obtain the plaintext data. The ciphertext data is determined by combining the ciphertext-plaintext mapping table and the ciphertext neural network to achieve decryption. The ciphertext data can be decrypted to obtain the plaintext data without performing complex decryption operations, which can improve the decryption speed. The number of mapping records between the ciphertext data and the plaintext data in the ciphertext-plaintext mapping table is less than a first threshold. When the plaintext data cannot be found, the ciphertext neural network is directly used to predict the plaintext data to determine the plaintext data. This can reduce the time complexity of searching for the plaintext in the ciphertext-plaintext mapping table and further improve the decryption speed.

[0141] The embodiment of the present invention further provides an efficient data decryption device, the device comprising:

[0142] The data writing module is used to initiate the writing process on the client and generate ciphertext data based on the obtained plaintext data;

[0143] The plaintext prediction module is used to determine whether there is a ciphertext neural network and a correct ciphertext table during the writing process; specifically, it is used to locate the ciphertext data according to the ciphertext-plaintext mapping table, and if there is a corresponding mapping record, obtain the plaintext data corresponding to the mapping record from the mapping record, otherwise predict the plaintext data corresponding to the mapping record through the ciphertext neural network; specifically, if it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, add the ciphertext data to the correct ciphertext table, and save the ciphertext data to the server; if it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, add the ciphertext data and its corresponding correct plaintext data to the ciphertext-plaintext mapping table; when it is determined that the total number of mapping records in the ciphertext-plaintext mapping table does not exceed a first threshold, the server The server saves the ciphertext data; when it is determined that the total number of mapping records in the ciphertext-plain text mapping table exceeds a first threshold, the client restores the mapping records of all known ciphertext-plain text mapping tables through the correct ciphertext table and the ciphertext neural network, and reconstructs the ciphertext neural network according to the restored ciphertext-plain text mapping table; reconstructs the correct ciphertext table and the ciphertext-plain text mapping table according to the reconstructed neural network; if the number of mapping records in the reconstructed ciphertext-plain text mapping table does not exceed a second threshold, the ciphertext data is saved to the server; if the number of mapping records in the reconstructed ciphertext-plain text mapping table exceeds the second threshold, the neural network is reconstructed by increasing the number of parameters of the neural network; it is also specifically used to locate the ciphertext data according to the ciphertext-plain text mapping table during the reading process, and if there is a corresponding mapping record, obtain the plaintext data corresponding to the mapping record from the mapping record, otherwise predict the plaintext data corresponding to the mapping record through the ciphertext neural network;

[0144] The data reading module is used to initiate the reading process on the client and obtain the ciphertext data returned by the server.

[0145] After obtaining the ciphertext data to be decrypted, the above-mentioned device searches for the ciphertext data in the ciphertext-plaintext mapping table. If the ciphertext data is not found in the ciphertext-plaintext data table, the ciphertext data is input into the ciphertext neural network to predict the plaintext data to obtain the plaintext data. The ciphertext data is determined by combining the ciphertext-plaintext mapping table and the ciphertext neural network to achieve decryption. The ciphertext data can be decrypted to obtain the plaintext data without performing complex decryption operations, which can improve the decryption speed. The number of mapping records between the ciphertext data and the plaintext data in the ciphertext-plaintext mapping table is less than a first threshold. When the plaintext data cannot be found, the ciphertext neural network is directly used to predict the plaintext data to determine the plaintext data. This can reduce the time complexity of searching for the plaintext in the ciphertext-plaintext mapping table and further improve the decryption speed.

[0146] An embodiment of the present invention further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:

[0147] After the client initiates the write process and generates ciphertext data based on the acquired plaintext data, it is determined whether there is a ciphertext neural network and a correct ciphertext table;

[0148] If it is determined that there is no ciphertext neural network and correct ciphertext table, adding the ciphertext data and the corresponding actual correct plaintext data to the ciphertext-plaintext mapping table;

[0149] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, the ciphertext data is added to the correct ciphertext table, and the server saves the ciphertext data;

[0150] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, the ciphertext data and the corresponding actual correct plaintext data are added to the ciphertext-plaintext mapping table;

[0151] When it is determined that the total number of mapping records in the ciphertext-plain text mapping table does not exceed a first threshold, the server saves the ciphertext data;

[0152] When it is determined that the total number of mapping records in the ciphertext-to-civiltext mapping table exceeds a first threshold, if it is determined that there is a ciphertext neural network and a correct ciphertext table, the client restores all known ciphertext-to-civiltext mapping records through the correct ciphertext table and the ciphertext neural network, otherwise the current ciphertext-to-civiltext mapping table is composed of all known ciphertext-to-civiltext mapping records;

[0153] Reconstruct the ciphertext neural network according to the ciphertext-civilized text mapping table containing all known ciphertext-civilized text mapping records;

[0154] Reconstruct the correct ciphertext table and the ciphertext-cleartext mapping table according to the reconstructed ciphertext neural network;

[0155] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table does not exceed the second threshold, the server saves the ciphertext data;

[0156] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table exceeds the second threshold, the ciphertext neural network is reconstructed by increasing the number of parameters of the neural network, and the ciphertext-plaintext mapping table and the correct ciphertext table are updated;

[0157] After the client initiates the read process and obtains the ciphertext data returned by the server, the ciphertext data is located according to the ciphertext-plaintext mapping table. If a corresponding mapping record exists, the plaintext data corresponding to the mapping record is obtained from the mapping record.

[0158] If there is no corresponding mapping record, the plaintext data corresponding to the mapping record is predicted through the ciphertext neural network.

[0159] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:

[0160] After the client initiates the write process and generates ciphertext data based on the acquired plaintext data, it is determined whether there is a ciphertext neural network and a correct ciphertext table;

[0161] If it is determined that there is no ciphertext neural network and correct ciphertext table, adding the ciphertext data and the corresponding actual correct plaintext data to the ciphertext-plaintext mapping table;

[0162] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, the ciphertext data is added to the correct ciphertext table, and the server saves the ciphertext data;

[0163] If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, the ciphertext data and the corresponding actual correct plaintext data are added to the ciphertext-plaintext mapping table;

[0164] When it is determined that the total number of mapping records in the ciphertext-plain text mapping table does not exceed a first threshold, the server saves the ciphertext data;

[0165] When it is determined that the total number of mapping records in the ciphertext-to-civiltext mapping table exceeds a first threshold, if it is determined that there is a ciphertext neural network and a correct ciphertext table, the client restores all known ciphertext-to-civiltext mapping records through the correct ciphertext table and the ciphertext neural network, otherwise the current ciphertext-to-civiltext mapping table is composed of all known ciphertext-to-civiltext mapping records;

[0166] Reconstruct the ciphertext neural network according to the ciphertext-civilized text mapping table containing all known ciphertext-civilized text mapping records;

[0167] Reconstruct the correct ciphertext table and the ciphertext-cleartext mapping table according to the reconstructed ciphertext neural network;

[0168] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table does not exceed the second threshold, the server saves the ciphertext data;

[0169] If the number of mapping records in the reconstructed ciphertext-plaintext mapping table exceeds the second threshold, the ciphertext neural network is reconstructed by increasing the number of parameters of the neural network, and the ciphertext-plaintext mapping table and the correct ciphertext table are updated;

[0170] After the client initiates the read process and obtains the ciphertext data returned by the server, the ciphertext data is located according to the ciphertext-plaintext mapping table. If a corresponding mapping record exists, the plaintext data corresponding to the mapping record is obtained from the mapping record.

[0171] If there is no corresponding mapping record, the plaintext data corresponding to the mapping record is predicted through the ciphertext neural network.

[0172] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0173] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0174] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for decrypting data in a searchable encrypted field, characterized in that: The method comprises: After the client initiates the write process and generates ciphertext data based on the acquired plaintext data, it is determined whether there is a ciphertext neural network and a correct ciphertext table; If it is determined that there is no ciphertext neural network and correct ciphertext table, adding the ciphertext data and the corresponding actual correct plaintext data to the ciphertext-plaintext mapping table; If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, the ciphertext data is added to the correct ciphertext table, and the server saves the ciphertext data; If it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, the ciphertext data and the corresponding actual correct plaintext data are added to the ciphertext-plaintext mapping table; When it is determined that the total number of mapping records in the ciphertext-plain text mapping table does not exceed a first threshold, the server saves the ciphertext data; When it is determined that the total number of mapping records in the ciphertext-to-civiltext mapping table exceeds a first threshold, if it is determined that there is a ciphertext neural network and a correct ciphertext table, the client restores all known ciphertext-to-civiltext mapping records through the correct ciphertext table and the ciphertext neural network, otherwise the current ciphertext-to-civiltext mapping table is composed of all known ciphertext-to-civiltext mapping records; Reconstruct the ciphertext neural network according to the ciphertext-civilized text mapping table containing all known ciphertext-civilized text mapping records; Reconstruct the correct ciphertext table and the ciphertext-cleartext mapping table according to the reconstructed ciphertext neural network; If the number of mapping records in the reconstructed ciphertext-plaintext mapping table does not exceed the second threshold, the server saves the ciphertext data; If the number of mapping records in the reconstructed ciphertext-plaintext mapping table exceeds the second threshold, the ciphertext neural network is reconstructed by increasing the number of parameters of the neural network, and the ciphertext-plaintext mapping table and the correct ciphertext table are updated; After the client initiates the read process and obtains the ciphertext data returned by the server, the ciphertext data is located according to the ciphertext-plaintext mapping table. If a corresponding mapping record exists, the plaintext data corresponding to the mapping record is obtained from the mapping record. If there is no corresponding mapping record, the plaintext data corresponding to the mapping record is predicted through the ciphertext neural network.

2. The method for decrypting data in a searchable encrypted field according to claim 1, characterized in that: The reconstructing the correct ciphertext table and the ciphertext-cleartext mapping table according to the reconstructed ciphertext neural network specifically includes: The ciphertext data is predicted according to the reconstructed ciphertext neural network, the correctly predicted ciphertext data is reconstructed into a correct ciphertext table, and the incorrectly predicted ciphertext data and its corresponding actual correct plaintext data are reconstructed into a ciphertext-plaintext mapping table.

3. The method for decrypting data in a searchable encrypted field according to claim 2, characterized in that: The prediction of the ciphertext data according to the reconstructed neural network specifically includes: Input each ciphertext data in the ciphertext-plaintext mapping table into the ciphertext neural network to predict the plaintext data, and obtain the predicted plaintext data corresponding to each ciphertext data in the ciphertext-plaintext mapping table; The correctly predicted ciphertext and the incorrectly predicted ciphertext are determined according to the predicted plaintext data corresponding to each ciphertext data in the ciphertext-plaintext mapping table.

4. The method for decrypting data in a searchable encrypted field according to claim 2, further characterized in that: The correctly predicted ciphertext data is reconstructed into a correct ciphertext table, and the incorrectly predicted ciphertext data and its corresponding actual correct plaintext data are reconstructed into a ciphertext-plaintext mapping table, specifically including: Obtain the predicted correct plaintext data and predicted incorrect plaintext data corresponding to each ciphertext data in the ciphertext-plaintext mapping table containing all known ciphertext-plaintext mapping records; Deleting the mapping record corresponding to the predicted correct ciphertext data from the ciphertext-to-civilian text mapping table containing all known ciphertext-to-civilian text mapping records, and reconstructing the ciphertext-to-civilian text mapping table; Clear the correct ciphertext table, add the ciphertext data corresponding to the predicted correct plaintext data to the correct ciphertext table, and reconstruct the correct ciphertext table.

5. The method for decrypting data in a searchable encrypted field according to claim 1, further characterized in that: The first threshold and the second threshold are both positive integers, and the second threshold is smaller than the first threshold.

6. The method for decrypting data in a searchable encrypted field according to claim 1, further characterized in that: If the number of mapping records in the reconstructed ciphertext-to-civil text mapping table exceeds the second threshold, the ciphertext neural network is reconstructed by increasing the number of parameters of the neural network, and the ciphertext-to-civil text mapping table and the correct ciphertext table are updated, specifically including: The client restores all known ciphertext-civil-text mapping records through the correct ciphertext table and the ciphertext neural network, and then reconstructs the ciphertext neural network according to the ciphertext-civil-text mapping table containing all known ciphertext-civil-text mapping records; The ciphertext data is predicted according to the reconstructed ciphertext neural network, the correctly predicted ciphertext data is reconstructed into a correct ciphertext table, and the incorrectly predicted ciphertext data and its corresponding actual correct plaintext data are reconstructed into a ciphertext-plaintext mapping table; If the number of mapping records in the reconstructed ciphertext-plaintext mapping table still exceeds the second threshold, the ciphertext neural network is reconstructed again by increasing the number of parameters of the neural network, and the ciphertext-plaintext mapping table and the correct ciphertext table are updated.

7. An efficient data decryption device, characterized in that: The device comprises: The data writing module is used to initiate the writing process on the client and generate ciphertext data based on the obtained plaintext data; A plaintext prediction module is used to determine whether there is a ciphertext neural network and a correct ciphertext table during the writing process; specifically used to locate ciphertext data according to the ciphertext-plaintext mapping table, and if there is a corresponding mapping record, obtain the plaintext data corresponding to the mapping record from the mapping record, otherwise predict the plaintext data corresponding to the mapping record through the ciphertext neural network; specifically used to add the ciphertext data to the correct ciphertext table if it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is correct plaintext data, and save the ciphertext data to the server; if it is determined that there is a ciphertext neural network and a correct ciphertext table, and the prediction result of the ciphertext neural network for the ciphertext data is not correct plaintext data, add the ciphertext data and its corresponding correct plaintext data to the ciphertext-plaintext mapping table; when it is determined that the total number of mapping records in the ciphertext-plaintext mapping table does not exceed a first threshold, the The server saves the ciphertext data; when it is determined that the total number of mapping records in the ciphertext-plain text mapping table exceeds a first threshold, the client restores the mapping records of all known ciphertext-plain text mapping tables through the correct ciphertext table and the ciphertext neural network, and reconstructs the ciphertext neural network according to the restored ciphertext-plain text mapping table; reconstructs the correct ciphertext table and the ciphertext-plain text mapping table according to the reconstructed neural network; if the number of mapping records in the reconstructed ciphertext-plain text mapping table does not exceed a second threshold, the ciphertext data is saved to the server; if the number of mapping records in the reconstructed ciphertext-plain text mapping table exceeds the second threshold, the neural network is reconstructed by increasing the number of parameters of the neural network; it is also specifically used to locate the ciphertext data according to the ciphertext-plain text mapping table during the reading process, and if there is a corresponding mapping record, obtain the plaintext data corresponding to the mapping record from the mapping record, otherwise predict the plaintext data corresponding to the mapping record through the ciphertext neural network; The data reading module is used to initiate the reading process on the client and obtain the ciphertext data returned by the server.

8. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory is connected to the processor, and the processor is used to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the computer device implements the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 6.