一种基于分布式图数据库的加解密方法和装置
By using pages as the basic encryption unit in a distributed graph database, obtaining encryption keys through data key derivation factors, symmetrically encrypting data, and rationally managing the encryption of adjacency index data, the data security problem of distributed graph databases is solved, and the security and performance of the system are improved.
Patent Information
- Application Number
- CN202411937089.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-12-26
AI Technical Summary
In existing technologies, distributed graph databases have low data security, are easily cracked by brute force, and lack multi-dimensional encryption methods.
Using pages in the graph database as the basic encryption unit, the data encryption key is obtained through data key derivation factors and stored in the page header for symmetric encryption and decryption operations. At the same time, the adjacent index data is reasonably encrypted and managed to reduce unnecessary encryption operations.
It improves the data security of distributed graph databases, reduces the risk of brute-force attacks, and enhances the overall performance and data security of the system.
Smart Images

Figure CN119808127B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data security technology for graph databases, and in particular to an encryption and decryption method and apparatus based on a distributed graph database. Background Technology
[0002] Graph databases are a type of NoSQL database that primarily uses graph theory to store information about relationships between entities. Distributed graph databases use an attribute graph model, where vertices with the same attribute belong to the same label table, edges with the same attribute belong to the same relation table, and both the label and relation tables must belong to the same graph. A graph can have multiple labels and relations. Multiple graphs can exist in the system, and the data logic of each graph is isolated from each other.
[0003] Distributed graph data has many dimensions (including graph, shards, edges, labels, and the smallest storage unit). In current graph database engineering practices, multi-dimensional encryption is rarely achieved, mainly due to engineering issues. At the same time, graph databases are relatively new databases, so they are also at greater risk of being brute-force cracked.
[0004] Therefore, overcoming the shortcomings of the existing technology is an urgent problem to be solved in this technical field. Summary of the Invention
[0005] The technical problem this invention aims to solve is how to improve the data security of distributed graph databases in order to reduce the risk of brute-force attacks.
[0006] The present invention adopts the following technical solution:
[0007] Firstly, an encryption / decryption method based on a distributed graph database is provided, including:
[0008] Using pages in the graph database as the basic encryption unit, when encrypting a page, the data encryption key is obtained according to the data key derivation factor, and the key ID corresponding to the data encryption key is stored in the header of the corresponding page.
[0009] The page data in the graph database is symmetrically encrypted using the data encryption key, and the encrypted ciphertext is stored.
[0010] When it is necessary to decrypt encrypted page data, the storage node reads the key ID stored in the header of the page to be decrypted;
[0011] Obtain the corresponding data encryption key based on the read key ID, and use the obtained data encryption key to perform symmetric decryption on the encrypted page data to restore the original page data.
[0012] Preferably, the step of obtaining the data encryption key based on the data key derivation factor and storing the key ID corresponding to the data encryption key in the header of the corresponding page includes:
[0013] Obtain the data key derivation factor;
[0014] Query the key cache and match it with the data key derivation factor. If a match is found, obtain the corresponding data encryption key.
[0015] If no match is found, a request is sent to the metadata management node. The metadata management node searches for or generates a data encryption key based on the data key derivation factor, and returns the obtained data encryption key to the storage node through an encryption channel. After receiving the data encryption key, the storage node stores it in the key cache.
[0016] Extract the key ID of the data encryption key and store it in plaintext in the header of the corresponding page according to the page header format specification.
[0017] Preferably, when encrypting adjacency index data in a graph database, the method further includes:
[0018] When new adjacency information is added to a node, the adjacency information of the corresponding node is judged. If the total amount of newly added adjacency information is less than one page, no encryption operation is performed, and the adjacency information is stored according to the normal data storage process.
[0019] When the adjacency information of the corresponding node is accumulated and stored to fill a page, the data encryption key is obtained through the data key derivation factor, and the key ID corresponding to the data encryption key is stored in the header of the corresponding page.
[0020] The entire page is symmetrically encrypted using a data encryption key, and the encrypted ciphertext is stored to complete the encryption of the adjacent index data.
[0021] Preferably, when decrypting adjacency index data in a graph database, the method further includes:
[0022] When it is necessary to obtain the adjacency information of the corresponding node, a query operation is initiated to retrieve the adjacency information of the corresponding node;
[0023] Based on the required adjacency information of the corresponding nodes, determine the relevant index or storage location mapping relationship, determine the location of the page containing the adjacency index data to be read, and read the entire page.
[0024] Extract the key ID from the header of the read page, obtain the corresponding data encryption key based on the key ID, and use the obtained data encryption key to symmetrically decrypt the encrypted adjacency index data to restore the original adjacency index data.
[0025] Preferably, obtaining the data encryption key based on the data key derivation factor further includes:
[0026] Obtain the root key and the permission key derivation factor, and obtain the permission key through the root key and the permission key derivation factor;
[0027] The data encryption key is obtained based on the permission key and the data key derivation factor.
[0028] Preferably, the encryption / decryption method based on the distributed graph database further includes: initializing and loading the permission key during the database startup phase;
[0029] The initialization of the permission key includes:
[0030] Generate an RSA (Rivest-Shamir-Adleman) public-private key pair as the root key, input the service password, symmetrically encrypt the root key using the service password, and store the root key ciphertext.
[0031] Obtain the permission key derivation factor, obtain the permission key through the root key and the permission key derivation factor, and symmetrically encrypt the permission key through the root key to obtain the permission key ciphertext.
[0032] Loading the permission key includes:
[0033] Enter the service password, use the service password to perform symmetric decryption of the root key ciphertext, and verify the MD5 (Message-Digest Algorithm 5) value of the decrypted root key to obtain the root key plaintext;
[0034] The root key plaintext is used to decrypt the permission key ciphertext to obtain the permission key plaintext, and the permission key plaintext is obtained by performing MD5 verification on the permission key plaintext.
[0035] Preferably, obtaining the data encryption key based on the permission key and the data key derivation factor includes:
[0036] The permission key and the data key derivation factor are concatenated to obtain a concatenation result. Then, the concatenation result is processed by a mathematical function to obtain a unique data encryption key corresponding to the data key derivation factor.
[0037] Preferably, the encryption / decryption method based on a distributed graph database further includes: obtaining the data key derivation factor based on the database name, user attributes, data type, and real-time rotation factor; and obtaining the permission key derivation factor based on the user's identity identifier, role information, and department.
[0038] Secondly, an encryption / decryption device based on a distributed graph database is provided, the encryption / decryption device based on a distributed graph database comprising: a processor and a memory for storing processor-executable instructions;
[0039] The processor is configured to execute the encryption / decryption method based on a distributed graph database as described in the first aspect.
[0040] Thirdly, a non-volatile computer storage medium is provided, the computer storage medium storing computer-executable instructions, the computer-executable instructions being executed by one or more processors to perform the encryption and decryption method based on a distributed graph database as described in the first aspect.
[0041] Fourthly, a chip is provided, comprising: a processor and an interface for calling and running a computer program stored in memory, performing the encryption / decryption method based on a distributed graph database as described in the first aspect.
[0042] Fifthly, a computer program product containing instructions is provided that, when executed on a computer or processor, causes the computer or processor to perform the encryption / decryption method based on a distributed graph database as described in the first to fourth aspects and any one of them.
[0043] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0044] This invention uses pages in a graph database as the basic encryption unit. Storage nodes obtain data encryption keys based on data key derivation factors. The characteristics of both the data key derivation factors and the data encryption keys greatly increase the cost of brute-force attacks on the graph database, thereby reducing the risk of brute-force attacks and improving the data security of the distributed graph database. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1This is a flowchart illustrating an encryption / decryption method based on a distributed graph database provided in an embodiment of the present invention;
[0047] Figure 2 This invention provides a data structure for storing graph data, adjacency index data, and WAL data in the smallest storage unit.
[0048] Figure 3 This is a schematic diagram of a process for obtaining a data encryption key provided by an embodiment of the present invention;
[0049] Figure 4 This is a schematic diagram of a process for encrypting adjacency index data in a graph database, provided by an embodiment of the present invention.
[0050] Figure 5 This is a schematic diagram of a process for decrypting adjacency index data in a graph database, provided by an embodiment of the present invention.
[0051] Figure 6 This is a schematic diagram of a data encryption key management process provided by an embodiment of the present invention;
[0052] Figure 7 This is a schematic diagram of the startup process of a multi-level key management system provided in an embodiment of the present invention;
[0053] Figure 8 This is a schematic diagram of a data encryption key generation process provided by an embodiment of the present invention;
[0054] Figure 9 This is a schematic diagram of a process for generating an authorization key provided by an embodiment of the present invention;
[0055] Figure 10 This is a schematic diagram of a data structure for storing root key ciphertext provided in an embodiment of the present invention;
[0056] Figure 11 This is a flowchart illustrating a data encryption key initialization operation and a data encryption key loading operation provided in an embodiment of the present invention;
[0057] Figure 12 This is a schematic diagram of a data structure for storing encrypted data encryption keys according to an embodiment of the present invention;
[0058] Figure 13 This is a schematic diagram of an encryption / decryption device based on a distributed graph database provided in an embodiment of the present invention. Detailed Implementation
[0059] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0060] Unless the context otherwise requires, throughout the specification and claims, the term "comprising" is interpreted as openly inclusive, meaning "including, but not limited to." In the description of the specification, terms such as "one embodiment," "some embodiments," "exemplary embodiment," "example," "specific example," or "some examples" are intended to indicate that a particular feature, structure, material, or characteristic associated with that embodiment or example is included in at least one embodiment or example of this disclosure. The illustrative representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics mentioned may be included in any suitable manner in any one or more embodiments or examples; that is, although they may be incorporated into embodiments or examples using the above terms for reasons such as order and position, it does not limit them to be incorporated in combination by a single embodiment or example.
[0061] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this disclosure, unless otherwise stated, "a plurality of" means two or more. Furthermore, for example, the description may use the prefix "A" or "B" to describe the same type of nouns as two independent entities. In this case, the corresponding features defined with "A" and "B" are used only to distinguish between similar entities and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features.
[0062] In describing some embodiments, the terms "coupled," "coupled," and "connected," and their derivative expressions, may be used. For example, the term "connected" may be used in describing some embodiments to indicate that two or more components have direct physical or electrical contact with each other. Similarly, the term "coupled" may be used in describing some embodiments to indicate that two or more components have direct physical or electrical contact. However, the terms "connected" or "coupled" may also refer to two or more components that do not have direct contact with each other but still cooperate or interact with each other, such as "optical coupling," "wireless connection," etc. The embodiments disclosed herein are not necessarily limited to the scope of this invention.
[0063] Furthermore, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0064] Example 1:
[0065] To reduce the risk of brute-force attacks on distributed graph databases and ensure data security, this invention provides an encryption / decryption method based on distributed graph databases, such as... Figure 1 As shown, it includes:
[0066] Step 101: Using the page in the graph database as the basic encryption unit, when encrypting a page, obtain the data encryption key according to the data key derivation factor, and store the key ID corresponding to the data encryption key in the header of the corresponding page.
[0067] Among them, such as Figure 2 The diagram shows the data structure of the smallest storage unit of page data in a graph database. The storage unit is a page, which is the basic organizational form for storing data in a graph database. Using it as the basic encryption unit helps the system to perform unified management and operation.
[0068] Step 102: Use the data encryption key to perform symmetric encryption on the page data in the graph database, and store the encrypted ciphertext.
[0069] Page data includes graph data and Write-Ahead Logging (WAL) data, with graph data being the core of the graph database. In a graph database, data is organized and stored in the form of a graph. A graph consists of nodes and edges. Nodes can represent various entities; for example, in a social network, nodes can be users; in a knowledge graph, nodes can be concepts or entities (such as people, places, events, etc.). Edges are used to describe the relationships between nodes. For example, in a social network, edges can represent friendship or kinship relationships between users; in a knowledge graph, edges may represent semantic relationships between entities, such as "belongs to," "located in," or "invented." Taking a social network graph as an example, suppose there is a social platform with users A, B, and C as nodes. If user A and user B are friends, and user B and user C are colleagues, then there will be two edges: one connecting A and B, labeled as a "friend" relationship, and the other connecting B and C, labeled as a "colleague" relationship. The information of nodes and edges, including node attributes (such as user A's name, age, etc.) and edge attributes (such as the time when the friendship was established, etc.), together constitute graph data.
[0070] Write-Ahead Log (WAL) data is log data in a database system. In graph databases, WAL data records detailed information about all write operations (such as insert, update, and delete) performed on the database, and these records are written to the log before the actual data modification operations. Its primary purpose is for database fault recovery and data consistency maintenance. Suppose a new user node D is inserted into the graph database, along with its relationships with other nodes. During this operation, the WAL data first records detailed information about the insertion operation, including the inserted node information and relationship information. If the database system suddenly crashes after the insertion operation is completed, then upon restarting the database, the records in the WAL data can be read to re-execute the write operations, thereby restoring the database to its pre-crash state and ensuring data consistency.
[0071] After obtaining the data encryption key, the storage node uses it to perform symmetric encryption on the page data in the graph database. Symmetric encryption means that encryption and decryption use the same key. Using the data encryption key obtained in the previous steps, all data within a page is encrypted according to a predetermined symmetric encryption algorithm, converting the original plaintext page data into ciphertext. After completing the symmetric encryption of the page data, the storage node stores the encrypted ciphertext according to the graph database's storage rules. Typically, the ciphertext is stored in a specific location on a suitable storage medium (such as a disk) so that it can be read and decrypted later when needed. During storage, it is crucial to ensure the integrity and accuracy of the ciphertext data while also considering the security of the storage medium to prevent tampering or loss of the ciphertext data.
[0072] Step 103: When it is necessary to decrypt encrypted page data, the storage node reads the key ID stored in the header of the page to be decrypted.
[0073] The page to be decrypted contains page data. When there is a need to decrypt encrypted page data, the corresponding page to be decrypted must first be accurately located in the storage medium of the distributed graph database. The specific location of the page to be decrypted is determined based on the user's query request, data index information, or other relevant positioning mechanisms. After determining the location of the page to be decrypted, the storage node reads the data of that page from the storage medium. Since the key ID of the data encryption key was stored in the page header during encryption, the storage node will then read the stored key ID from the page header according to the pre-set page data reading rules and format.
[0074] Step 104: Obtain the corresponding data encryption key based on the read key ID, and use the obtained data encryption key to perform symmetric decryption on the encrypted page data to restore the original page data.
[0075] Based on the key ID read in step 103, the storage node retrieves the corresponding data encryption key. The storage node interacts with the key management system or key cache to find and obtain the complete data encryption key that matches the key ID. After obtaining the data encryption key, the storage node uses it to perform a symmetric decryption operation on the encrypted page data using the same symmetric decryption algorithm as during encryption. By performing corresponding operations on the ciphertext data and the data encryption key, the ciphertext is restored to the original page data, thus satisfying the user's need to retrieve the original data.
[0076] In summary, this embodiment implements encryption and decryption operations on distributed graph database data using pages as the basic encryption unit. This approach helps improve data security, reduces the risk of data being brute-forced, and ensures the data security of the graph database.
[0077] In one embodiment, such as Figure 3 As shown, step 101 specifically includes:
[0078] Step 1011: Obtain the data key derivation factor.
[0079] In one embodiment, the data key derivation factor is obtained based on the graph database name, user attributes, data type, and real-time rotation factor.
[0080] When encrypting a page, the storage node obtains the data encryption key based on the data key derivation factor. The data key derivation factor typically contains various data-related information, such as the database name, user attributes, and data type. The data key derivation factor is the key basis for generating the data encryption key, integrating multiple aspects of information, such as the database name, user attributes (e.g., user ID, role, organization), data type (distinguishing between graph data, WAL data, and adjacency index data), and a real-time rotation factor. For example, the database name can serve as a basic identifier, combined with the user's role information. Users with different roles may generate different key parts based on the same database name. Adding the real-time rotation factor (based on timestamps or random changes within the system) ensures that the resulting data encryption key changes at different times or in different operational scenarios, increasing the security and difficulty of cracking the data encryption key.
[0081] Step 1012: Query the key cache and match it with the data key derivation factor. If a match is found, obtain the corresponding data encryption key.
[0082] In one embodiment, if a data encryption key for the same requirement has already been obtained and cached, it can be retrieved directly from the key cache, thereby improving the efficiency of data encryption key retrieval. Specifically, when a storage node needs a data encryption key, it first searches the key cache for a data encryption key that matches the current data key's derivation factor. If a corresponding data encryption key is found in the key cache, it can be used directly without a complex interaction process with the metadata management node, thus greatly saving the time overhead of key retrieval. However, if a suitable key is not found in the key cache, the storage node will obtain the data encryption key according to the interaction process with the metadata management node in step 1013 below, and store the obtained data encryption key in the key cache after successful retrieval so that it can be quickly retrieved for subsequent identical or similar requirements.
[0083] Step 1013: If no match is found, a request is sent to the metadata management node. The metadata management node searches for or generates a data encryption key based on the data key derivation factor, and returns the obtained data encryption key to the storage node through an encryption channel. After receiving the data encryption key, the storage node stores it in the key cache.
[0084] In one embodiment, the metadata management node typically centrally manages various key resources. Specifically, after the storage node transmits data key derivation factors to the metadata management node, the metadata management node processes them according to its complex internal key management logic. Based on the received data key derivation factors, it uses a pre-defined key generation algorithm or searches for a matching key in a stored key repository. If a new data encryption key needs to be generated, it calculates and generates it by combining various factors; if an existing data encryption key needs to be found, it locates the corresponding data encryption key in the key repository based on key information such as the database name, user attributes, and data type. The metadata management node then securely returns the found or generated data encryption key to the storage node.
[0085] Step 1014: Extract the key ID of the data encryption key and store it in plaintext in the header of the corresponding page according to the header format specification.
[0086] After obtaining the data encryption key, the storage node stores the key ID corresponding to the obtained data encryption key in the header of the corresponding page. The page header is an area used to store metadata information related to that page. Storing the key ID here facilitates quick location and retrieval of the corresponding data encryption key during subsequent decryption. In one embodiment, it is important to note that the page header is stored in plaintext and cannot be encrypted. This is because subsequent decryption processes and some data management operations require the ability to directly read the key ID in the page header to obtain the corresponding data encryption key for decryption. Encrypting the page header might prevent the successful retrieval of the information required for decryption.
[0087] In one embodiment, adjacency index data is a data structure used to improve the query efficiency of graph databases. Similar to a book's table of contents, it extracts and organizes key information from the graph data, enabling the database system to locate and access the required data more quickly. In graph databases, indexes can be built based on node attributes, edge attributes, or the relationships between nodes and edges. Taking a social network as an example, if it's frequently necessary to query users in a specific city, an index based on the user's city attribute can be built. This index might be a hash table-like or tree-like data structure, where the key is the city name and the value is a pointer to the storage location of all user nodes in that city within the graph data. Thus, when querying "users in Beijing," the database can quickly locate the relevant user node using the index without traversing the entire graph data.
[0088] Based on the characteristics of the adjacency index data described above, it can be concluded that encryption and decryption operations on the adjacency index data in graph databases are very frequent, significantly impacting the performance of the system's Central Processing Unit (CPU) and I / O (In / Out) performance. To ensure stable I / O and CPU performance in the distributed graph database, in one embodiment, such as... Figure 4 As shown, when encrypting adjacency index data in a graph database, the method further includes:
[0089] Step 201: When new adjacency information is added to a node, the adjacency information of the corresponding node is judged. If the total amount of newly added adjacency information is less than one page, no encryption operation is performed, and the adjacency information is stored according to the normal data storage process.
[0090] The adjacency index data is a data structure used to store and organize adjacency information. Adjacency information is the specific content about the connections between nodes in a graph, while the adjacency index data organizes and indexes this information to enable more efficient querying and use. For example, in a social network graph database, adjacency information might include specific relationships such as user A and user B being friends, or user A and user C being relatives. The adjacency index data stores this adjacency information in the database according to certain rules (such as sorting by node ID) and creates an index, so that when querying all adjacency relationships of user A, the relevant information can be quickly located.
[0091] In graph databases, a page is the basic unit of data storage with a specific capacity. When new adjacency information is added to a node, the system calculates the total amount of new information. For example, in a social network graph database, nodes represent users, and adjacency information represents connections such as friend relationships between users. If a user continuously adds new friends, each addition generates related adjacency information (such as the friend's identifier and addition time), and this adjacency information is accumulated and calculated. If the total amount of newly added adjacency information is less than the capacity of one page, it indicates that performing encryption operations at this time might waste system resources, as encryption and decryption operations themselves consume computational resources. Therefore, in this case, the system chooses not to perform encryption operations, but instead directly stores the adjacency information into the corresponding page according to the conventional data storage process. This avoids unnecessary encryption overhead and improves the overall performance of the system.
[0092] Traditional methods may encrypt data frequently regardless of its volume. For example, some early database encryption schemes encrypt even minor changes to every data record, resulting in a large number of encryption operations. This embodiment determines whether to encrypt by checking if the adjacency information fills a page, significantly reducing the number of encryption operations. In large-scale graph database applications, such as social networking platforms with massive user bases and complex interpersonal networks, traditional frequent encryption methods would consume a large amount of the system's CPU and I / O resources in encryption and decryption, leading to slow system response or even system freezes. Step 201 effectively avoids this situation, making the system more efficient in processing adjacency index data.
[0093] Step 202: When the adjacency information of the corresponding node is accumulated and stored to fill a page, obtain the data encryption key through the data key derivation factor, and store the key ID corresponding to the data encryption key in the header of the corresponding page.
[0094] When the adjacency information of a corresponding node accumulates and fills a page, that page needs to be encrypted. The system obtains the data encryption key through a data key derivation factor. The data key derivation factor contains various elements, such as the database name, user attributes, data type (specifically adjacency index data here), and possible real-time rotation factors. The specific implementation process is similar to step 101 and can be easily derived; it will not be explained in detail here.
[0095] Step 203: Perform symmetric encryption on the entire page using the data encryption key, and store the encrypted ciphertext to complete the encryption of the adjacent index data.
[0096] The data encryption key obtained in step 202 is used to perform a symmetric encryption on the entire page. For example, the common AES (Advanced Encryption Standard) symmetric encryption algorithm is used to encrypt all adjacent index data in the page as a whole, converting the original plaintext data into ciphertext data.
[0097] After encryption, the encrypted ciphertext is stored in the appropriate storage medium (such as a disk array) according to the storage rules of the graph database. During storage, the integrity and accuracy of the ciphertext data must be ensured, and the security of the storage medium must also be considered.
[0098] In one embodiment, such as Figure 5 As shown, when decrypting adjacency index data in a graph database, the method further includes:
[0099] Step 301: When it is necessary to obtain the adjacency information of the corresponding node, initiate a query operation to query the adjacency information of the corresponding node.
[0100] When it's necessary to delve into the connectivity of a node in a graph database—that is, to obtain the adjacency information of that node—a query operation is initiated first. For example, in a social network graph database, if you want to know all of user A's friends (i.e., adjacent nodes) and their specific relationships, you need to initiate a query for user A's adjacency information. This query operation is initiated by the user through the database's query interface. For instance, in the background of a social network application, when a user views their friends list, the application automatically initiates a query for the adjacency information of the currently logged-in user's nodes to accurately display the user's friend list and related information.
[0101] Step 302: Determine the relevant index or storage location mapping relationship based on the adjacency information of the corresponding node obtained from the query, determine the location of the page containing the adjacency index data to be read based on the relevant index or storage location mapping relationship, and read the entire page.
[0102] To quickly and accurately locate the required data, graph databases establish a series of indexes and storage location mappings. When a query for the adjacency information of a corresponding node is initiated, the system determines the location of the page containing the adjacency index data to be read based on the query requirements, using pre-established indexes (such as node-identifier-based indexes, relationship-type-based indexes, etc.) and storage location mappings (which record information such as the approximate storage areas where different types of data are located). For example, in an enterprise organizational chart database, if you want to query the adjacency information of a department head node, the system will first quickly locate the approximate storage area of the relevant data for that department head node using the node-identifier-based index, and then determine the specific page containing its adjacency information to be read based on a more refined storage location mapping.
[0103] In one embodiment, once the location of the page containing the adjacency index data to be read is determined, the system reads the entire page's data from storage media (such as a disk). Because the encryption of the adjacency index data involves the entire page, the entire page also needs to be read for subsequent decryption. During the reading process, it is crucial to ensure the accuracy and completeness of the read operation, avoiding incomplete or erroneous page data readings due to hardware failures, software errors, or other reasons, which could affect subsequent decryption.
[0104] Step 303: Extract the key ID from the page header of the read page, obtain the corresponding data encryption key based on the read key ID, and use the obtained data encryption key to symmetrically decrypt the encrypted adjacency index data to restore the original adjacency index data.
[0105] After successfully reading the page data, the key ID is extracted from the page header. This is because a unique identifier (key ID) used to encrypt the page data is stored in the page header during the initial encryption of the adjacency index data. The key ID is extracted from the page header according to the page data format and layout. Based on the extracted key ID, the system retrieves the corresponding data encryption key. This is typically done by interacting with a key management system or key cache to find and obtain the complete data encryption key that matches the key ID. After obtaining the data encryption key, it is used to perform a symmetric decryption operation on the encrypted adjacency index data. Because the same key is used for encryption and decryption (i.e., symmetric encryption), the encrypted adjacency index data is processed using the same symmetric decryption algorithm (the same algorithm used for encryption) to restore the ciphertext to the original adjacency index data. This accurately retrieves the adjacency information of the queried node, fulfilling the initial purpose of the query operation.
[0106] In summary, encrypting the adjacency list in the adjacency index data as a separate data block and then decrypting it reduces the number of encryption and decryption operations, improves encryption and decryption efficiency, and enhances the CPU and I / O performance and stability of the graph database. Simultaneously, encrypting all types of data stored in the graph database (including graph data, adjacency index data, and WAL data) ensures comprehensive data security for the distributed graph database.
[0107] In one embodiment, such as Figure 6 As shown, the management process of the data encryption key includes:
[0108] Step 401: Start the distributed graph database, metadata management node, and key management system.
[0109] Starting a distributed graph database involves initializing its core components, such as the database engine, storage management module, and network communication module. The database engine is responsible for handling data storage, querying, and updating operations; the storage management module manages the distribution and storage methods of data across various storage nodes; and the network communication module ensures effective data transmission and communication between different nodes.
[0110] The metadata management node is responsible for managing and maintaining the metadata information of the entire database in the distributed graph database. When the metadata management node starts, it loads its configuration file, which contains settings such as the node's identifier, connection parameters with other nodes, and storage location. Simultaneously, it initializes related system services, such as network services for communicating with other nodes and storage services for managing metadata, ensuring the metadata management node can function properly and interact with other components in the distributed graph database.
[0111] A key management system is a crucial component for ensuring data security, responsible for managing data encryption keys. Upon startup, the key management system undergoes a series of initialization operations, such as loading previously stored key-related information (if any), including key identifiers, generation algorithms, and storage locations. Simultaneously, it sets access permissions for the key management system itself according to pre-defined security policies, ensuring that only authorized users or system components can access and manipulate the key resources within the system.
[0112] Step 402: Start the storage node and synchronize the data encryption key managed in the metadata management node. Synchronize the data encryption key and ensure that the data encryption key is not stored on disk.
[0113] Storage nodes are primarily responsible for storing the actual data in the distributed graph database. Upon startup, they load their own configuration file, which contains settings such as storage path, node identifier, and connection parameters with other nodes. Simultaneously, they initialize their own storage services, network services, and other system services to ensure they can properly receive and store data, and communicate with other nodes.
[0114] After the storage node starts up, it immediately interacts with the metadata management node to synchronize the data encryption keys managed by the metadata management node. The synchronization process is conducted through a secure communication channel to ensure that the data encryption keys are not stolen or tampered with during transmission. The synchronization operation follows certain rules and formats, such as accurate matching and transmission based on key identifiers and types, ensuring that the storage node obtains the correct data encryption key. Although the data encryption key is synchronized, it cannot be directly written to disk (i.e., it cannot be directly stored on hard drives or other storage media) on the storage node. To prevent the data encryption key from being lost or damaged due to storage media failure or other unforeseen circumstances before the storage node is fully ready, the synchronized data encryption key is typically temporarily stored in a specific area of memory, awaiting further processing and operations.
[0115] Step 403: After the distributed graph database starts successfully, it sends a request to the metadata management node to add a new data encryption key. After the request is successful, the data encryption key is synchronized to the storage node. The storage node obtains the latest data encryption key and performs encryption and decryption operations.
[0116] After the distributed graph database starts successfully, when a new data encryption key is needed due to business requirements (such as adding a new type of data that requires a specific encryption key), the relevant system components or users will send a request to the metadata management node to add a new data encryption key. The request will contain some necessary information, such as the purpose of the new key and the factors on which it is generated (such as specific data types, user attributes, etc.), so that the metadata management node can accurately generate a suitable data encryption key based on this information.
[0117] Upon receiving a request to add a new data encryption key, the metadata management node processes it according to its own key generation and management logic. If the addition is successful, a new data encryption key is generated, and its related information (such as key identifier, generation algorithm, usage instructions, etc.) is stored in its own key management system. Simultaneously, the newly generated data encryption key is immediately synchronized to the storage nodes. During the synchronization process, a secure communication channel is used to ensure that the key data is not stolen or tampered with during transmission from the metadata management node to the storage nodes, and it is transmitted according to certain rules and formats to ensure that the storage nodes can accurately receive and use the newly generated data encryption key.
[0118] The storage node continuously monitors the key updates from the metadata management node. When a new data encryption key is synchronized, the storage node promptly retrieves the latest key data. During the retrieval process, an integrity check is performed on the key data, such as by calculating the checksum or hash value of the data and comparing it with the corresponding value sent by the metadata management node, ensuring that the retrieved key data is complete. Once the storage node obtains the latest data encryption key, it can use it for encryption and decryption operations. The specific encryption and decryption process is detailed in the above embodiment and will not be repeated here.
[0119] To ensure fine-grained access control and key security in distributed graph databases, a multi-level key management system is employed. In one embodiment, such as... Figure 7As shown, data encryption keys are managed through a multi-level key management system. The startup process of the multi-level key management system includes: determining whether the graph database has already started encryption; if encryption has already started, performing an initialization of the service password or inputting the service password; if it is the first startup or a re-initialization of the service password, performing an initialization of the service password; after initializing the service password, performing multi-level permission key initialization and data encryption key initialization to complete the key management system startup process; if the service password has already been set, performing an input of the service password, followed by verification; if verification fails, the process ends; if verification succeeds, performing multi-level permission key loading and data encryption key loading to complete the key management system startup process.
[0120] In one embodiment, it can be determined whether the graph database has encryption enabled by checking relevant database configuration files, system parameters, or specific runtime status flags. If it is determined that the graph database has encryption enabled, the next step is to initialize the service password or enter the service password.
[0121] The service password initialization process includes: When starting the multi-level key management system for the first time and no service password has been set previously, service password initialization is required. The system administrator or authorized personnel will generate the service password according to pre-defined password strength requirements. The service password input process includes: If a service password has been set previously, but the graph database is not currently encrypted, the correct service password must be entered.
[0122] In one embodiment, such as Figure 8 As shown, the specific process for obtaining the data encryption key includes:
[0123] Step 501: Obtain the root key and the permission key derivation factor, and obtain the permission key through the root key and the permission key derivation factor.
[0124] The permission key derivation factor can be obtained based on the user's identity identifier, role information, and department.
[0125] In one embodiment, permission keys are initialized and loaded during the database startup phase; for example... Figure 9 As shown, the initialization of the permission key includes steps 5011 and 5012; the loading of the permission key includes steps 5013 and 5014.
[0126] Step 5011: Generate an RSA public-private key pair as the root key, input the service password, symmetrically encrypt the root key using the service password, and store the root key ciphertext.
[0127] RSA is a common asymmetric encryption algorithm. In the process of generating RSA public and private key pairs, operations such as selecting a suitable large prime number are performed to calculate the public and private keys according to a specific mathematical formula. In one embodiment, the generated RSA private key is selected as the root key (in some special designs, the public key may also be selected as the root key, depending on the system requirements).
[0128] After the service password is entered, the root key is encrypted using a symmetric encryption algorithm (such as the common AES algorithm). The characteristic of symmetric encryption is that the same key is used for both encryption and decryption; in this case, the entered service password is used as this same key to convert the root key into ciphertext. In this way, even if the root key storage medium is illegally accessed, the plaintext content of the root key cannot be recovered without the correct service password, thus greatly improving the security of the root key. After completing the symmetric encryption operation on the root key, the generated root key ciphertext is stored in the corresponding storage location. In one embodiment, the data structure for storing the root key ciphertext is as follows: Figure 10 As shown.
[0129] Step 5012: Obtain the permission key derivation factor, obtain the permission key through the root key and the permission key derivation factor, and symmetrically encrypt the permission key through the root key to obtain the permission key ciphertext.
[0130] The permission key derivation factor typically contains various user-related attribute information, such as the user's identity identifier (e.g., username, user ID), role information (e.g., administrator, regular user, read-only user), and department. This information serves as a crucial basis for generating permission keys. By combining the attributes of different users, permission keys matching the permissions of each user can be generated, thereby achieving fine-grained permission management.
[0131] Combining the root key generated and encrypted in step 501 with the obtained permission key derivation factors, a specific key generation algorithm is used to generate permission keys. The generation process may involve various mathematical operations; for example, the root key and permission key derivation factors may be concatenated in some form, and then the concatenated result may be hashed or processed using other specific functions to ultimately obtain permission keys corresponding to different user permissions. The permission keys generated in this way accurately reflect the user's permission status in the system, enabling subsequent access control of data based on user permissions.
[0132] After generating the permission key, the root key is used again to encrypt the newly generated permission key using a symmetric encryption algorithm (such as AES). Since the root key holds a fundamental and trusted position in the entire key system, using it as the encryption key to encrypt the permission key ensures its security during storage and transmission. After encrypting the permission key into ciphertext, the ciphertext is stored in a secure storage location. This completes the multi-level permission key initialization operation, successfully constructing a multi-level permission key system based on the root key and permission key derivation factors, providing strong support for subsequent permission management and data access control.
[0133] Step 5013: Enter the service password, use the service password to perform symmetric decryption of the root key ciphertext, and verify the MD5 value of the decrypted root key to obtain the root key plaintext.
[0134] When performing a multi-level access key loading operation, the service password must first be entered. The entered service password is then used as the symmetric decryption key to decrypt the previously stored root key ciphertext. For example, if the root key ciphertext was previously encrypted using the AES algorithm, then the AES algorithm is used again here, with the service password as the decryption key, to restore the root key ciphertext to plaintext form.
[0135] After decrypting the root key plaintext, to ensure the root key has not been tampered with during storage and transmission, its MD5 hash needs to be calculated and verified against a pre-stored MD5 hash. MD5 is a hash function that performs specific mathematical operations on data to obtain a fixed-length digest. If the calculated MD5 value matches the stored MD5 value, the root key is considered intact and tamper-proof, and the resulting plaintext root key is reliable and can be used for subsequent operations.
[0136] The verified root key plaintext is stored in memory. It's important to note that the root key plaintext generally cannot be stored on disk (i.e., it cannot be directly stored on a hard drive or other storage medium). This is to prevent accidental leakage or malicious acquisition of the root key plaintext. If the root key plaintext is stored on disk, and the disk is stolen or attacked, the root key will be leaked, thus threatening the security of the entire system. In one embodiment, the data structure for storing the root key plaintext is as follows: Figure 10 As shown.
[0137] Step 5014: Decrypt the ciphertext of the permission key using the plaintext of the root key to obtain the plaintext of the permission key, and then perform MD5 verification on the plaintext of the permission key to obtain the permission key.
[0138] In the aforementioned steps, the root key ciphertext has been symmetrically decrypted by inputting the service password, and the reliable root key plaintext has been verified and stored in memory.
[0139] Since the root key was used to symmetrically encrypt the permission key during the multi-level permission key initialization operation, and the ciphertext of the permission key was stored, the obtained plaintext root key can now be used to decrypt the ciphertext of the permission key. Specifically, based on the symmetric encryption algorithm used during encryption (such as the common AES symmetric encryption algorithm, where encryption and decryption follow the same algorithm rules), the plaintext root key is used as the decryption key to perform corresponding operations on the stored ciphertext of the permission key, thereby restoring the ciphertext of the permission key to its plaintext form. This successfully obtains the plaintext content of the permission key in its original encrypted state. After obtaining the plaintext permission key, to ensure that the permission key has not been tampered with during storage and transmission, it needs to be subjected to MD5 verification (the specific operation will not be explained in detail here). If the calculated MD5 value is the same as the pre-stored MD5 value, it indicates that the plaintext authorization key is intact and has not been tampered with during the entire storage and transmission process, and is reliable and can be safely used for subsequent operations. Conversely, if the two are different, it means that the plaintext authorization key may have encountered a problem at some stage, such as data corruption caused by storage media failure or malicious tampering during transmission. In this case, further investigation is needed, and the plaintext authorization key cannot be used directly for subsequent operations.
[0140] After MD5 verification confirms the plaintext permission key is reliable, it is saved. This completes the multi-level permission key loading operation and yields the permission key. The system can then use the loaded permission key for subsequent data access control and permission management operations. For example, it can determine whether a user has permission to access or modify specific data based on their corresponding permission key, thereby ensuring the data security and access legitimacy of the distributed graph database.
[0141] In one embodiment, it is worth noting that the service password is the same during the initialization and loading phases; that is, a service password needs to be set when initializing the key system (the service password set for both data verifications must be the same). When the database restarts, the service password must be entered. Only after successful service password verification can the user enter the database, load the key system, complete data decryption, and then load the entire database. When the database is in encrypted mode, the service password must be entered first; otherwise, the entire database cannot start normally and provide services.
[0142] Step 502: Obtain the data encryption key based on the permission key and the data key derivation factor.
[0143] Specifically, the permission key and the data key derivation factor are concatenated to obtain a concatenation result, and then the concatenation result is processed by a mathematical function to obtain a unique data encryption key corresponding to the data key derivation factor.
[0144] In one embodiment, such as Figure 11 As shown, the specific processes for data encryption key initialization and data encryption key loading include:
[0145] Step 601: Generate a data encryption key based on the corresponding permission key and data key derivation factor in memory.
[0146] The corresponding permission key in memory has been processed and stored in memory during previous multi-level permission key related operations. It is associated with the user's permission level, with different permission levels corresponding to different permission keys. Data key derivation factors typically contain a wealth of information related to the characteristics of the data itself, such as the database name, user attributes, data type (e.g., graph data, indexed data), and possible real-time rotation factors. These factors combined provide the foundation for generating specific data encryption keys that meet data security requirements.
[0147] A specific key generation algorithm is used, taking the access key and data key derivation factors in memory as input parameters for computation. For example, the access key and data key derivation factors might first be concatenated in some form, and then the concatenated result is hashed or processed by other specific mathematical functions to obtain a unique data encryption key. The generated data encryption key is both related to the user's permissions (reflected in the access key) and closely integrated with the characteristics of the data itself (reflected in the data key derivation factors), better meeting the needs of encrypting different types of data in a distributed graph database environment.
[0148] Step 602: Use the permission key to perform symmetric encryption on the data encryption key to obtain the ciphertext of the data encryption key, thereby completing the data encryption key initialization operation.
[0149] The process involves using a permission key to perform symmetric encryption on the data encryption key. A specific symmetric encryption algorithm (such as the common AES algorithm) is used to process the data encryption key according to the algorithm's rules, converting it into ciphertext. After this symmetric encryption operation, the resulting ciphertext completes the crucial part of the data encryption key initialization process. At this point, the ciphertext is securely stored in a safe storage location (e.g., a hardware security module or a specific encrypted storage area) for later loading and use when needed. This initialization design ensures that the data encryption key is encrypted from the moment it is generated, increasing its security and preventing unauthorized access and use. In one embodiment, the data structure for storing the ciphertext is as follows: Figure 12 As shown.
[0150] Step 603: Decrypt the ciphertext of the data encryption key using the corresponding permission key in memory to obtain the plaintext of the data encryption key, and save the plaintext of the data encryption key in memory to complete the data encryption key loading operation.
[0151] When loading the data encryption key, the first step is to decrypt the stored ciphertext using the corresponding access key in memory. Since the access key was used for symmetric encryption during initialization, this process also follows the principle of symmetric encryption. Using the access key as the decryption key, the same symmetric encryption algorithm (such as AES) is applied to the ciphertext to restore it to its plaintext form.
[0152] After obtaining the plaintext encryption key, it is stored in a specific area of memory. It's crucial to avoid storing the plaintext encryption key on disk (i.e., not directly on hard drives or other storage media). This is to prevent the plaintext encryption key from being leaked in the event of problems with the storage medium (such as theft or attack), which could threaten the data security of the entire distributed graph database. By storing the plaintext encryption key in memory and setting appropriate protection mechanisms (such as restricting access permissions), the security of the encryption key can be maximized while ensuring its timely availability. The system can then use the loaded plaintext encryption key for subsequent data encryption and decryption, thereby ensuring the security of data in the distributed graph database during storage and transmission.
[0153] Example 2:
[0154] In Embodiment 1, an encryption / decryption method based on a distributed graph database was provided. In this embodiment, an encryption / decryption device based on a distributed graph database will be proposed. The encryption / decryption device based on a distributed graph database includes: a processor and a memory for storing processor-executable instructions; wherein, the processor is configured to execute the encryption / decryption method based on a distributed graph database described in Embodiment 1.
[0155] like Figure 13 As shown, the encryption / decryption device based on a distributed graph database includes a processor 21 and a memory 22, wherein the processor 21 and the memory 22 can be connected via a bus or other means.
[0156] Processor 21 can be a Central Processing Unit (CPU). Processor 21 can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips.
[0157] The memory 22, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the encryption / decryption method based on a distributed graph database in Embodiment 1 of this invention. The processor executes various functional applications and training processes by running the non-transitory software programs, instructions, and modules stored in the memory.
[0158] The memory 22 may include a program storage area and a training storage area. The program storage area may store the operating system and applications required for at least one function; the training storage area may store training data created by the processor. Furthermore, the memory may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory, or other non-transitory solid-state storage device. In some embodiments, the memory 22 may optionally include memory remotely located relative to the processor, which can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof. The one or more modules stored in the memory 22, when executed by the processor 21, perform functions such as... Figure 1The encryption / decryption method based on a distributed graph database shown in Example 1. For specific details of the above encryption / decryption method based on a distributed graph database, please refer to the relevant documentation. Figure 1 , Figure 2 and Figure 3 The relevant descriptions and effects in the embodiments shown are for reference only and will not be repeated here.
[0159] This embodiment also provides a computer storage medium storing a computer program that can be executed by a processor to perform the encryption and decryption method based on a distributed graph database as described in Embodiment 1.
[0160] The computer storage medium stores computer-executable instructions, which can execute the encryption and decryption methods based on distributed graph databases in any of the above method embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium can also include combinations of the above types of memory. The specific steps of the encryption and decryption method based on distributed graph databases are described in Embodiment 1, and will not be repeated in this embodiment.
[0161] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. An encryption / decryption method based on a distributed graph database, characterized in that, include: Using a page in the graph database as the basic encryption unit, when encrypting a page, a data encryption key is obtained based on the data key derivation factor, and the key ID corresponding to the data encryption key is stored in the header of the corresponding page. The process of obtaining the data encryption key based on the data key derivation factor includes: obtaining the root key and the permission key derivation factor; obtaining the permission key through the root key and the permission key derivation factor; concatenating the permission key and the data key derivation factor to obtain the concatenation result; and then processing the concatenation result using a mathematical function to obtain the unique data encryption key corresponding to the data key derivation factor; obtaining the data key derivation factor based on the database name, user attributes, data type, and real-time rotation factor; wherein the real-time rotation factor is a dynamically changing value generated based on a timestamp or a random change sequence within the system; and obtaining the permission key derivation factor based on the user's identity identifier, role information, and department. The page data in the graph database is symmetrically encrypted using the data encryption key, and the encrypted ciphertext is stored. When it is necessary to decrypt encrypted page data, the storage node reads the key ID stored in the header of the page to be decrypted; Obtain the corresponding data encryption key based on the read key ID, and use the obtained data encryption key to perform symmetric decryption on the encrypted page data to restore the original page data; When encrypting adjacency index data in a graph database, the method further includes: When new adjacency information is added to a node, the adjacency information of the corresponding node is judged. If the total amount of newly added adjacency information is less than one page, no encryption operation is performed, and the adjacency information is stored according to the normal data storage process. When the adjacency information of the corresponding node is accumulated and stored to fill a page, the data encryption key is obtained through the data key derivation factor, and the key ID corresponding to the data encryption key is stored in the header of the corresponding page. The entire page is symmetrically encrypted using a data encryption key, and the encrypted ciphertext is stored to complete the encryption of the adjacent index data.
2. The encryption / decryption method based on a distributed graph database according to claim 1, characterized in that, The step of obtaining the data encryption key based on the data key derivation factor and storing the key ID corresponding to the data encryption key in the header of the corresponding page includes: Obtain the data key derivation factor; Query the key cache and match it with the data key derivation factor. If a match is found, obtain the corresponding data encryption key. If no match is found, a request is sent to the metadata management node. The metadata management node searches for or generates a data encryption key based on the data key derivation factor, and returns the obtained data encryption key to the storage node through an encryption channel. After receiving the data encryption key, the storage node stores it in the key cache. Extract the key ID of the data encryption key and store it in plaintext in the header of the corresponding page according to the page header format specification.
3. The encryption / decryption method based on a distributed graph database according to claim 1, characterized in that, When decrypting adjacency index data in a graph database, the method further includes: When it is necessary to obtain the adjacency information of the corresponding node, a query operation is initiated to retrieve the adjacency information of the corresponding node; Based on the required adjacency information of the corresponding nodes, determine the relevant index or storage location mapping relationship, determine the location of the page containing the adjacency index data to be read, and read the entire page. Extract the key ID from the header of the read page, obtain the corresponding data encryption key based on the key ID, and use the obtained data encryption key to symmetrically decrypt the encrypted adjacency index data to restore the original adjacency index data.
4. The encryption / decryption method based on a distributed graph database according to claim 1, characterized in that, The encryption / decryption method based on the distributed graph database further includes: initializing and loading the permission key during the database startup phase; The initialization of the permission key includes: Generate an RSA public-private key pair as the root key, input the service password, symmetrically encrypt the root key using the service password, and store the root key ciphertext. Obtain the permission key derivation factor, obtain the permission key through the root key and the permission key derivation factor, and symmetrically encrypt the permission key through the root key to obtain the permission key ciphertext. Loading the permission key includes: Enter the service password, use the service password to perform symmetric decryption of the root key ciphertext, and verify the MD5 value of the decrypted root key to obtain the root key plaintext; The root key plaintext is used to decrypt the permission key ciphertext to obtain the permission key plaintext, and the permission key plaintext is obtained by performing MD5 verification on the permission key plaintext.
5. An encryption / decryption device based on a distributed graph database, characterized in that, The encryption / decryption device based on a distributed graph database includes: a processor and a memory for storing processor-executable instructions; The processor is configured to execute the encryption / decryption method based on a distributed graph database as described in any one of claims 1-4.
6. A non-volatile computer storage medium, characterized in that, The computer storage medium stores computer-executable instructions, which are executed by one or more processors to perform the encryption / decryption method based on a distributed graph database as described in any one of claims 1-4.
Citation Information
Patent Citations
Security data item level database encryption system
CN102236766A
Use of non-interactive identity based key agreement derived secret keys with authenticated encryption
CN103636161A
