User data protection method for secure computer
Through technologies such as multi-dimensional nonlinear transformation and consensus access verification tree, it solves the problem that traditional methods cannot detect and prevent data tampering in time, achieves efficient protection and privacy security of user data, and ensures the integrity of data during transmission and storage. and security.
Patent Information
- Application Number
- CN202410653082.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional secure computer user data protection methods cannot detect and prevent tampering in time during data transmission or storage. Especially in data sharing and data mining scenarios, user personal information is easily leaked.
Generate user transformation data blocks through multi-dimensional nonlinear transformation processing, calculate hash values for metadata index construction, establish consensus access verification trees, perform hidden identity association and encrypted encapsulation, and combine homomorphic index mapping and secure query processing to ensure data integrity sex, privacy and security.
It achieves efficient protection of user data, ensures the integrity and security of data during transmission and storage, prevents unauthorized access and tampering, while protecting user privacy and improving the credibility and reliability of data.
Smart Images

Figure CN118568130A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information security, and in particular to a user data protection method for a secure computer. Background Art
[0002] In the digital society, the collection, storage and processing of user data have become the core of business operations and services. With the rapid development of the Internet and digital technology, personal and corporate data are facing more and more serious threats of leakage. Therefore, the need for user data protection has become increasingly urgent. Highly confidential data, such as personal identity information and financial data, especially need to be effectively protected. However, the user data protection methods of traditional secure computers mainly rely on static user authentication, access control and other means, and use hash algorithms and digital signatures to ensure data integrity. Although these methods can protect the confidentiality of data to a certain extent, these methods often fail to detect and prevent data tampering during transmission or storage. In particular, in scenarios such as data sharing and data mining, users' personal information is indirectly or directly leaked. Summary of the invention
[0003] Based on this, the present invention provides a user data protection method for a secure computer to solve at least one of the above technical problems.
[0004] To achieve the above object, a user data protection method for a secure computer includes the following steps:
[0005] Step S1: acquiring user data; performing multi-dimensional nonlinear transformation processing on the user data to generate user transformation data segments; performing data segment reorganization processing according to the user transformation data segments to obtain user transformation data blocks;
[0006] Step S2: Calculate the hash value of the user transformation data block to obtain the data block hash value; construct the metadata index of the user transformation data block through the data block hash value to generate the index metadata block; perform storage strategy processing based on the index metadata block, and perform data migration on the user transformation data block to obtain data storage scheduling information; perform integrity access verification processing according to the data storage scheduling information to generate a consensus access verification tree;
[0007] Step S3: Perform hidden identity association processing on the user to generate user ciphertext association data; perform user access level index node binding on the user ciphertext association data through the consensus access verification tree to generate user zero-knowledge index data; perform consensus node joint signature processing based on the user zero-knowledge index data to generate threshold signature aggregation data;
[0008] Step S4: Encrypt and encapsulate the aggregated data according to the threshold signature to generate encrypted verification package data; perform homomorphic index mapping according to the user zero-knowledge index data to generate homomorphic index matrix data; obtain user query request data; use the homomorphic index matrix data to perform security query processing on the user query request data to generate preliminary query matching data; perform homomorphic aggregation processing on the preliminary query matching data to generate aggregated locked query result data; perform legal query verification on the aggregated locked query result data through the encrypted verification package data to obtain user query result data and user query warning data respectively.
[0009] The present invention helps to collect rich information and obtain target protection data by acquiring user data. The user data is subjected to multi-dimensional nonlinear transformation processing, and the original data is converted into a high-dimensional feature space to better capture the complex relationship between the data. The entire data set is divided into smaller parts so as to be processed and analyzed more flexibly. Data fragments are reorganized according to the user transformation data fragments. By recombining these data fragments, more representative and practical user transformation data blocks are generated. Hash value calculation is performed on the user transformation data block, and by generating a hash value, it can be quickly verified whether the data has been tampered with or damaged, thereby ensuring the integrity and security of the data. By constructing a metadata index for the data block hash value, the user transformation data block can be located and accessed more quickly, thereby improving the retrieval efficiency and access speed of the data. Through reasonable storage strategies and data migration, dynamic scheduling and management of data are realized, and the utilization rate and efficiency of data storage are improved. Integrity access verification processing is performed according to the data storage scheduling information, and by generating a consensus access verification tree, the authenticity and integrity of the data can be effectively verified, thereby ensuring the reliability and security of the data, and providing a guarantee for trusted access to the data. Hidden identity association processing is performed on the user, and the user's identity information can be converted into a ciphertext form, thereby ensuring the privacy and security of the user. By binding the user access-level index node to the user ciphertext-related data through the consensus access verification tree, the secure access and indexing of the data can be ensured while protecting the user's privacy. The consensus node joint signature processing is performed according to the user's zero-knowledge index data to realize the joint authentication and signature of the data, thereby ensuring the credibility and security of the data and providing a guarantee for the secure access of the data. The encryption and encapsulation processing of the aggregated data according to the threshold signature is to ensure the security and integrity of the data during the transmission process to prevent the data from being unauthorized access and tampering. Through homomorphic index mapping processing, the secure retrieval and matching of the user query request data can be realized while protecting the user's privacy. Through secure query processing, the privacy of the user query request and the security of the data are ensured. Through homomorphic aggregation processing, the result data can be securely aggregated without exposing the specific query results. Through legal query verification, the legitimacy of the query results can be verified, abnormal situations can be discovered in time, and the legitimacy and security of the query results can be ensured. Therefore, a user data protection method for a secure computer of the present invention generates a more representative and practical user transformation data block by performing multi-dimensional nonlinear transformation processing on the user data. Through the storage strategy, data blocks are migrated to achieve data security storage; at the same time, a consensus access verification tree is constructed to effectively verify the authenticity and integrity of the data. Through homomorphic index mapping processing, while protecting user privacy, anomalies can be discovered in a timely manner, and user query request data can be securely retrieved and matched, ensuring the accuracy and security of user queries.
[0010] Preferably, step S1 comprises the following steps:
[0011] Step S11: Obtain user data; perform Z-score normalization on the user data to generate user standard data;
[0012] Step S12: Generate an asymmetric key according to the user specification data to generate key pair data, wherein the key pair data includes public key data and private key data;
[0013] Step S13: using Gaussian radial basis function to perform high-dimensional expansion mapping processing on the user specification data to generate user high-dimensional mapping data;
[0014] Step S14: performing multi-dimensional nonlinear transformation processing on the user high-dimensional mapping data to generate user transformation data segments;
[0015] Step S15: using the public key data to perform data segment encryption processing on the user transformed data segment to generate an encrypted data segment;
[0016] Step S16: Generate a random sequence of equal length for the encrypted data fragment to obtain an obfuscated data fragment;
[0017] Step S17: using the private key data to perform data signing processing on the obfuscated data fragment to generate a signed obfuscated data fragment;
[0018] Step S18: reorganize the encrypted data segment, the obfuscated data segment and the signature obfuscated data segment, and perform Base64 encoding to obtain a user transformed data block.
[0019] The present invention performs Z-score normalization processing on user data to ensure that the user data is within a uniform numerical range and eliminates the influence of different data magnitudes. Asymmetric key generation is performed according to user specification data to ensure the confidentiality and integrity of the data, while allowing the secure transmission and storage of the data. Through high-dimensional mapping, the complex relationships and characteristics of the data can be better captured, and the characterization ability of the data is improved. Multidimensional nonlinear transformation processing is performed on the user's high-dimensional mapping data, and the multidimensional nonlinear transformation helps to convert the data from the original space to a space that is more conducive to analysis and processing, thereby improving the interpretability and classification performance of the data. The user's transformed data fragments are encrypted using public key data to ensure the confidentiality of the user data during transmission. Only users with corresponding private keys can decrypt and obtain the original data. Equal-length random sequences are generated for the encrypted data fragments, and the introduction of obfuscated data increases the randomness and security of the data, making it more difficult for the data to be cracked or the original information to be inferred. The obfuscated data fragments are signed using private key data to generate signed obfuscated data fragments. The data signature ensures the integrity and authenticity of the data, verifies whether the source and content of the data have been tampered with, and ensures the credibility and reliability of the data. Through data fragment reassembly and Base64 encoding, data security and transportability are integrated, allowing data blocks to be effectively transmitted and stored.
[0020] Preferably, step S14 comprises the following steps:
[0021] Step S141: Calculate the data volume of the user high-dimensional mapping data to generate user high-dimensional data volume data;
[0022] Step S142: Calculate the sharding value of the user's high-dimensional data volume using the preset sharding standard value to generate dynamic sharding value data;
[0023] Step S143: performing data sharding processing on the user high-dimensional mapping data by using the dynamic sharding value data to generate user high-dimensional sharding data;
[0024] Step S144: performing erasure redundant block coding processing on the user's high-dimensional shard data to obtain shard coded redundant blocks;
[0025] Step S145: inserting redundant blocks into the user's high-dimensional slice data through the slice coding redundant blocks to generate redundant high-dimensional slice data;
[0026] Step S146: Perform multidimensional nonlinear transformation processing according to the redundant high-dimensional slice data to generate user transformation data segments, wherein the multidimensional nonlinear transformation is processed by a nonlinear transformation function, and the nonlinear transformation function is as follows:
[0027] f(x)=sin(x)+x 3 ;
[0028] In the formula, f(x) represents the nonlinear transformation function, and x represents the eigenvalue of an element in the redundant high-dimensional slice data.
[0029] The present invention obtains specific information about the data scale through quantitative calculation of high-dimensional mapping data. The calculation of dynamic sharding value is based on the preset sharding standard, and the data sharding mode is dynamically adjusted according to the size of the actual data volume, so that data sharding is more flexible and efficient, and the efficiency and speed of data processing are improved. Data sharding divides large-scale data into multiple small blocks, which is conducive to improving the parallelism and scalability of data processing and reducing the burden of data processing. Through redundant block encoding, the fault tolerance and reliability of data can be improved, the integrity and recoverability of data during transmission and storage are guaranteed, and the risk of data loss or damage is reduced. The insertion of redundant blocks increases the redundant information of data, improves the anti-interference ability and stability of data, reduces the risk of data loss, and ensures the reliability and security of data. Through the processing of nonlinear transformation functions, the data has better representation ability and discrimination in multidimensional space, and the feature extraction and classification capabilities of data are enhanced.
[0030] Preferably, step S2 comprises the following steps:
[0031] Step S21: Calculate the hash value of the user transformed data block to obtain the data block hash value;
[0032] Step S22: constructing a metadata index based on the user-transformed data block using the data block hash value to generate an index metadata block, wherein the index metadata block includes the data block hash value, the data block size, and the original storage location;
[0033] Step S23: Perform storage strategy processing according to the index metadata block to generate a data block storage strategy;
[0034] Step S24: using the data block storage strategy to perform data migration processing on the user transformation data block, and generating data storage scheduling information;
[0035] Step S25: Perform integrity verification processing using the data block hash value based on the data storage scheduling information to generate data block verification token data;
[0036] Step S26: Perform access verification tree processing according to the data block verification token data to generate a consensus access verification tree.
[0037] The calculation of the hash value of the present invention maps the data block to a unique identifier of a fixed length, which effectively distinguishes different data blocks. By constructing a metadata index, efficient management and retrieval of data blocks are achieved, and the search speed and accuracy of data are improved. The formulation of the storage strategy effectively plans the storage location and management method of the data according to the specific index metadata information, making the data storage more reasonable and efficient, while meeting the security and reliability requirements of the data. Data migration schedules the storage location of the data block according to the storage strategy, realizes dynamic management and optimization of data, makes the data storage more balanced and stable, and improves the access efficiency and response speed of the data. The data block verification token verifies the hash value of the data block, ensures the integrity of the data during storage and transmission, and prevents the risk of data tampering or damage. Through the construction and maintenance of the verification tree, fast access and verification of the data block are achieved, while ensuring the consistency and security of the data.
[0038] Preferably, step S23 includes the following steps:
[0039] Step S231: Perform storage demand assessment according to the data block size to generate storage demand assessment data;
[0040] Step S232: Obtain storage node topology data;
[0041] Step S233: performing node storage capacity analysis according to the storage node topology data to generate node storage capacity data;
[0042] Step S234: Evaluate the scheduling cost of the original storage location by storing the node topology data to generate scheduling cost data;
[0043] Step S235: performing optimal storage node mapping through storage demand assessment data, node storage capacity data, and scheduling cost data to generate optimal storage node mapping data;
[0044] Step S236: Use the optimal storage node mapping data to perform node load balancing adjustment on the index metadata block, thereby obtaining a data block storage strategy.
[0045] The present invention can accurately estimate the storage space size required by the storage system by evaluating the size of the data block. The storage node topology data provides the physical structure information of the storage system, including the connection mode and network topology relationship between the nodes. The node storage capacity data reflects the storage capacity and available space of each storage node, which helps to determine the storage load and storage pressure of each node. The scheduling cost data evaluates the migration cost and scheduling overhead of data between different storage nodes, as well as the load of the storage node, providing a basis for selecting the optimal storage location, while reducing the overhead and time cost of data scheduling. The optimal storage node mapping takes into account multiple factors such as storage demand, node capacity and scheduling cost, selects the most suitable storage node for each data block, and realizes the optimal configuration and utilization of storage resources. Through node load balancing adjustment, the load distribution of the storage system is more balanced, the stability and reliability of the system are improved, and the load pressure of the storage node is reduced.
[0046] Preferably, step S3 comprises the following steps:
[0047] Step S31: Perform hidden identity association processing on the user to generate user ciphertext association data;
[0048] Step S32: performing hash mapping processing on leaf nodes according to the consensus access verification tree to generate hash mapping index data;
[0049] Step S33: using the user ciphertext associated data to bind the hash map index data to the user access level index node, generating user zero-knowledge index data;
[0050] Step S34: Perform verifiable random function indexing processing according to the user's zero-knowledge index data, and perform real-time timestamp embedding processing to generate real-time verifiable index data;
[0051] Step S35: Use the consensus access verification tree to perform consensus node joint signature processing on the real-time verifiable index data and the user zero-knowledge index data to generate threshold signature aggregation data.
[0052] The present invention protects the privacy of users by encrypting and processing the user's associated information, prevents the user's identity from being leaked or the associated information from being maliciously used, and can still maintain the relevance of the data. By generating hash mapping index data, a fast access index for data is established, which reduces the search time and complexity of data, and improves the data retrieval efficiency and the response speed of the system. The generation of user zero-knowledge index data combines user associated information with hash index data, realizes zero-knowledge proof of users in the data access process, ensures the privacy of users and the security of data, and realizes the personalized access requirements of data. The generation of real-time verifiable index data combines verifiable random functions and timestamp technology to realize real-time verification and update of index data, ensuring the consistency and security of index data. Threshold signature aggregation data combines consensus verification and threshold signature technology to ensure the integrity and credibility of data, while reducing the complexity and overhead of the signature process.
[0053] Preferably, step S31 includes the following steps:
[0054] Step S311: Generate a secret identity identifier for the user, generating a secret identity identifier for the user;
[0055] Step S312: Acquire user registration data according to the user's secret identity identifier to obtain user attribute data;
[0056] Step S313: extracting user access rights according to user attribute data to generate user access rights data;
[0057] Step S314: Perform encrypted digital vector mapping processing on the user attribute data to generate user attribute encrypted vector data;
[0058] Step S315: generating zero-knowledge attribute proof for the user attribute encryption vector data based on the user access right data, thereby generating zero-knowledge attribute proof data;
[0059] Step S316: Perform ciphertext identity association processing on the user's secret identity identifier and zero-knowledge attribute proof data to generate user ciphertext association data.
[0060] The present invention realizes the anonymization and privacy protection of user identity by generating a secret identity identifier, ensures the anonymity and security of the user in the data processing process, and provides a privacy protection mechanism for the user to prevent the leakage of the user identity information. The user registration data is obtained based on the secret identity identifier, and the user registration information is collected and stored. The user access right extraction determines the user's access right and operation right to the data according to the user attribute data, ensures the security and compliance of the data, and prevents the access and operation of unauthorized users. The encrypted digital vector mapping converts the user attribute data into encrypted vector data, and realizes the encryption protection of the user attribute information. The zero-knowledge attribute proof is based on the user access right data, proves the user's access right to specific attribute data, and realizes the security verification and authorization process of the user attribute data. The ciphertext identity association processing combines the user's secret identity identifier and the zero-knowledge attribute proof data, realizes the association between the user identity and the attribute data, and protects the user's privacy at the same time, ensuring the security and integrity of the data.
[0061] Preferably, step S4 comprises the following steps:
[0062] Step S41: performing homomorphic encryption environment initialization processing on the access terminal device to generate homomorphic encryption environment data;
[0063] Step S42: Encrypt and encapsulate the threshold signature aggregation data based on the homomorphic encryption environment data to generate encrypted verification package data;
[0064] Step S43: Perform homomorphic index mapping processing using user zero-knowledge index data to generate homomorphic index matrix data;
[0065] Step S44: obtaining user query request data by accessing the terminal device; extracting query parameters according to the user query request data to generate query parameter data;
[0066] Step S45: Perform homomorphic encryption on the query parameter data to generate ciphertext query vector data;
[0067] Step S46: Perform security query strategy processing through the encrypted query vector data and the homomorphic index matrix data to generate a security query strategy;
[0068] Step S47: applying a homomorphic search strategy according to the security query strategy to generate preliminary query matching data;
[0069] Step S48: performing homomorphic aggregation processing on the preliminary query matching data, and time-locking the homomorphic aggregate query result data through a preset time locking instruction to generate aggregate locked query result data;
[0070] Step S49: When the user decrypts the query item of the aggregated locked query result data, the query legitimacy is verified by encrypting the verification package data to generate query legitimacy verification data; when the query legitimacy verification data is legal, the aggregated locked query result data is decrypted and terminal visualization is performed to generate user query result data; when the query legitimacy verification data is illegal, the aggregated locked query result data is destroyed and user query warning data is generated.
[0071] The initialization of the homomorphic encryption environment of the present invention establishes a secure encryption environment for accessing terminal devices, realizes encryption calculation and processing of data, and protects the security and privacy of data during transmission and storage. The encryption encapsulation process encrypts the threshold signature aggregation data, protects the integrity and credibility of the data, and ensures the security of the data during transmission and storage. The homomorphic index mapping process maps the user's zero-knowledge index data to a homomorphic index matrix, realizes the secure mapping and encryption protection of the user's index information, and ensures the user's privacy and data security. By extracting the parameter information in the user's query request data, the user's query requirements and conditions are determined, and the user's personalized query requirements for data are realized. Through homomorphic encryption processing, the query parameter data is encrypted and protected, ensuring the privacy and security of the query parameters, and realizing data query and retrieval in an encrypted state, protecting the secure transmission and storage of data. The secure query strategy is based on the ciphertext query vector and the homomorphic index matrix, realizing a secure query process and data retrieval, and ensuring the security and credibility of the user's query operation in an encrypted environment.
[0072] Preferably, step S45 includes the following steps:
[0073] Step S451: performing high-frequency query adaptability analysis on the encrypted query vector data to generate high-frequency query adaptability data;
[0074] Step S452: performing query index heat matching on homomorphic index matrix data through high-frequency query adaptability data to generate a query item heat map;
[0075] Step S453: Based on the query item heat map, the ciphertext query vector data is subjected to an optimal path heuristic search using homomorphic index matrix data to obtain candidate query matching item data;
[0076] Step S454: screening the most relevant matching items according to the candidate query matching item data, and generating a query path to obtain matching item query path data;
[0077] Step S455: performing path security check on the matching query path data, and adjusting the security path index to generate secure query path data;
[0078] Step S456: Perform a security query according to the security query path data to obtain a security query strategy.
[0079] The present invention performs high-frequency query adaptability analysis on ciphertext query vector data, identifies query items that frequently appear in the data, and helps the system understand the user's common query patterns and preferences, thereby improving query efficiency and user experience. Based on high-frequency query adaptability data, query index heat matching assigns corresponding query weights to each query item, improves the matching accuracy and priority of the query item, optimizes the query index construction process, and uses a heuristic algorithm to find the optimal query path according to the query item heat map, thereby quickly locating the query matching item, improving query efficiency and retrieval speed, and reducing unnecessary computing overhead. According to the query matching degree and user preferences, the matching items most relevant to the user query are selected, and a query path that meets the user's needs is generated, thereby improving the accuracy of the query results and user satisfaction. Based on security rules and access rights, the legitimacy and security of the query path are ensured, and the security path index is adjusted at the same time to prevent data leakage and malicious access, and protect the privacy of the user and the security of the data. Based on secure query path data, the security and credibility of the query operation in an encrypted environment are ensured, while the privacy of the user and the security of the data are protected, providing users with a safe and reliable query service. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 A schematic flow chart of the steps of a method for protecting user data of a secure computer according to the present invention;
[0081] Figure 2 for Figure 1 Detailed implementation steps of step S2 in the flowchart;
[0082] Figure 3 for Figure 1 Detailed implementation steps of step S3 in FIG.
[0083] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0084] The following is a clear and complete description of the technical method of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are 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 technicians in this field without creative work are within the scope of protection of the present invention.
[0085] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0086] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0087] To achieve this, please refer to Figures 1 to 3 The present invention provides a user data protection method for a secure computer, comprising the following steps:
[0088] Step S1: acquiring user data; performing multi-dimensional nonlinear transformation processing on the user data to generate user transformation data segments; performing data segment reorganization processing according to the user transformation data segments to obtain user transformation data blocks;
[0089] Step S2: Calculate the hash value of the user transformation data block to obtain the data block hash value; construct the metadata index of the user transformation data block through the data block hash value to generate the index metadata block; perform storage strategy processing based on the index metadata block, and perform data migration on the user transformation data block to obtain data storage scheduling information; perform integrity access verification processing according to the data storage scheduling information to generate a consensus access verification tree;
[0090] Step S3: Perform hidden identity association processing on the user to generate user ciphertext association data; perform user access level index node binding on the user ciphertext association data through the consensus access verification tree to generate user zero-knowledge index data; perform consensus node joint signature processing based on the user zero-knowledge index data to generate threshold signature aggregation data;
[0091] Step S4: Encrypt and encapsulate the aggregated data according to the threshold signature to generate encrypted verification package data; perform homomorphic index mapping according to the user zero-knowledge index data to generate homomorphic index matrix data; obtain user query request data; use the homomorphic index matrix data to perform security query processing on the user query request data to generate preliminary query matching data; perform homomorphic aggregation processing on the preliminary query matching data to generate aggregated locked query result data; perform legal query verification on the aggregated locked query result data through the encrypted verification package data to obtain user query result data and user query warning data respectively.
[0092] The present invention helps to collect rich information and obtain target protection data by acquiring user data. The user data is subjected to multi-dimensional nonlinear transformation processing, and the original data is converted into a high-dimensional feature space to better capture the complex relationship between the data. The entire data set is divided into smaller parts so as to be processed and analyzed more flexibly. Data fragments are reorganized according to the user transformation data fragments. By recombining these data fragments, more representative and practical user transformation data blocks are generated. Hash value calculation is performed on the user transformation data block, and by generating a hash value, it can be quickly verified whether the data has been tampered with or damaged, thereby ensuring the integrity and security of the data. By constructing a metadata index for the data block hash value, the user transformation data block can be located and accessed more quickly, thereby improving the retrieval efficiency and access speed of the data. Through reasonable storage strategies and data migration, dynamic scheduling and management of data are realized, and the utilization rate and efficiency of data storage are improved. Integrity access verification processing is performed according to the data storage scheduling information, and by generating a consensus access verification tree, the authenticity and integrity of the data can be effectively verified, thereby ensuring the reliability and security of the data, and providing a guarantee for trusted access to the data. Hidden identity association processing is performed on the user, and the user's identity information can be converted into a ciphertext form, thereby ensuring the privacy and security of the user. By binding the user access-level index node to the user ciphertext-related data through the consensus access verification tree, the secure access and indexing of the data can be ensured while protecting the user's privacy. The consensus node joint signature processing is performed according to the user's zero-knowledge index data to realize the joint authentication and signature of the data, thereby ensuring the credibility and security of the data and providing a guarantee for the secure access of the data. The encryption and encapsulation processing of the aggregated data according to the threshold signature is to ensure the security and integrity of the data during the transmission process to prevent the data from being unauthorized access and tampering. Through homomorphic index mapping processing, the secure retrieval and matching of the user query request data can be realized while protecting the user's privacy. Through secure query processing, the privacy of the user query request and the security of the data are ensured. Through homomorphic aggregation processing, the result data can be securely aggregated without exposing the specific query results. Through legal query verification, the legitimacy of the query results can be verified, abnormal situations can be discovered in time, and the legitimacy and security of the query results can be ensured. Therefore, a user data protection method for a secure computer of the present invention generates a more representative and practical user transformation data block by performing multi-dimensional nonlinear transformation processing on the user data. Through the storage strategy, data blocks are migrated to achieve data security storage; at the same time, a consensus access verification tree is constructed to effectively verify the authenticity and integrity of the data. Through homomorphic index mapping processing, while protecting user privacy, anomalies can be discovered in a timely manner, and user query request data can be securely retrieved and matched, ensuring the accuracy and security of user queries.
[0093] In the embodiment of the present invention, reference Figure 1 The above is a schematic flow chart of the steps of a user data protection method for a secure computer according to the present invention. In this embodiment, the user data protection method for a secure computer comprises the following steps:
[0094] Step S1: acquiring user data; performing multi-dimensional nonlinear transformation processing on the user data to generate user transformation data segments; performing data segment reorganization processing according to the user transformation data segments to obtain user transformation data blocks;
[0095] In an embodiment of the present invention, user data including age, income, expenditure and other information is obtained from a database or user input. The mean and standard deviation are calculated for each feature. The public key (n, e) and private key (d) are generated using the RSA algorithm. The Gaussian radial basis function is selected for mapping to convert the user data into a high-dimensional feature representation. The user transformation data fragment is encrypted using the public key to ensure data security. At the same time, the data fragment is digitally signed using the private key to ensure the integrity and authenticity of the data. The encrypted data fragment, the obfuscated data fragment and the signed obfuscated data fragment are connected into a data block and converted into a Base64-encoded string to form a complete encrypted data block.
[0096] Step S2: Calculate the hash value of the user transformation data block to obtain the data block hash value; construct the metadata index of the user transformation data block through the data block hash value to generate the index metadata block; perform storage strategy processing based on the index metadata block, and perform data migration on the user transformation data block to obtain data storage scheduling information; perform integrity access verification processing according to the data storage scheduling information to generate a consensus access verification tree;
[0097] In an embodiment of the present invention, for user-transformed data blocks, a hash function such as MD5, SHA-1 or SHA-256 is used to calculate its hash value to ensure uniqueness and irreversibility. The hash value serves as a key identifier for index metadata and contains data block size and storage location information. Based on storage requirements, a storage strategy is designed, taking into account backup, storage media, and data migration. Data blocks are migrated according to the strategy, and the storage scheduling information records the migration details. The integrity of the data block is verified by hashing to ensure that the data has not been tampered with. After successful verification, a verification token is generated for access. An access verification tree is constructed, and the Merkle tree structure is used to organize the verification information of all data blocks into a tree structure. Each leaf node represents the verification information of the data block, and the non-leaf node is a combination of the hash values of its child nodes. The hash value of the root node is used as the consensus root hash value to ensure the security and consistency of the data.
[0098] Step S3: Perform hidden identity association processing on the user to generate user ciphertext association data; perform user access level index node binding on the user ciphertext association data through the consensus access verification tree to generate user zero-knowledge index data; perform consensus node joint signature processing based on the user zero-knowledge index data to generate threshold signature aggregation data;
[0099] In an embodiment of the present invention, user identity information and other data are separated, and the identity information is encrypted for protection. The encrypted identity information is associated with other data to ensure data relevance. The consensus access verification tree is used to build an index and map data block information. The encrypted identity information is extracted from the ciphertext data, and the corresponding data block is found through the hash mapping index. The encrypted identity information is bound to the hash value to generate user zero-knowledge index data. The index is processed using a verifiable random function and a timestamp is embedded to ensure index verifiability. A consensus access verification tree is built, and each node generates a personal signature, and the joint signature forms threshold signature aggregation data.
[0100] Step S4: Encrypt and encapsulate the aggregated data according to the threshold signature to generate encrypted verification package data; perform homomorphic index mapping according to the user zero-knowledge index data to generate homomorphic index matrix data; obtain user query request data; use the homomorphic index matrix data to perform security query processing on the user query request data to generate preliminary query matching data; perform homomorphic aggregation processing on the preliminary query matching data to generate aggregated locked query result data; perform legal query verification on the aggregated locked query result data through the encrypted verification package data to obtain user query result data and user query warning data respectively.
[0101] In an embodiment of the present invention, first, the user query request is encrypted and encapsulated using threshold signature aggregation data to generate a secure encryption verification package. Subsequently, the user zero-knowledge index data is converted into a homomorphic index matrix for subsequent secure query operations. Next, the system extracts relevant parameters from the user's query request, such as time period or filtering conditions, and then processes these parameters according to the pre-designed secure query strategy to generate preliminary query matching data. Further, the system aggregates the preliminary matching data using a homomorphic encryption algorithm to generate aggregated locked query result data to ensure the privacy and security of the data. On this basis, the system uses the encrypted verification package data to verify the legitimacy of the aggregated locked query result data to ensure that the query request complies with the secure query strategy. If the verification is successful, the system decrypts the aggregated result data according to the user request, and performs terminal visualization processing as needed to generate user query result data. If the query verification fails, the system generates corresponding user query warning data to notify the user that the query request is rejected.
[0102] Preferably, step S1 comprises the following steps:
[0103] Step S11: Obtain user data; perform Z-score normalization on the user data to generate user standard data;
[0104] Step S12: Generate an asymmetric key according to the user specification data to generate key pair data, wherein the key pair data includes public key data and private key data;
[0105] Step S13: using Gaussian radial basis function to perform high-dimensional expansion mapping processing on the user specification data to generate user high-dimensional mapping data;
[0106] Step S14: performing multi-dimensional nonlinear transformation processing on the user high-dimensional mapping data to generate user transformation data segments;
[0107] Step S15: using the public key data to perform data segment encryption processing on the user transformed data segment to generate an encrypted data segment;
[0108] Step S16: Generate a random sequence of equal length for the encrypted data fragment to obtain an obfuscated data fragment;
[0109] Step S17: using the private key data to perform data signing processing on the obfuscated data fragment to generate a signed obfuscated data fragment;
[0110] Step S18: reorganize the encrypted data segment, the obfuscated data segment and the signature obfuscated data segment, and perform Base64 encoding to obtain a user transformed data block.
[0111] In an embodiment of the present invention, for example, user data that needs to be kept confidential includes information such as age, income and expenditure, and these data are obtained from a database or user input. For each feature, its mean value and standard deviation are calculated. For example, for the age feature, the mean value and standard deviation of the ages of all users are calculated. The value of each feature is Z-score normalized. For example, for the age of a user, the average age is subtracted and divided by the standard deviation to obtain the normalized age value, and all features are normalized to generate standardized user data. The RSA algorithm is used as an asymmetric encryption algorithm. First, two large prime numbers p and q are selected, and their product n=pq and the Euler function φ(n)=(p-1)(q-1) are calculated. Then, an integer e is selected in the range (1, φ(n)) so that e and φ(n) are mutually prime. The modular inverse element d of e with respect to φ(n) is calculated using the extended Euclidean algorithm. The generated public key and private key data are combined into a key pair data. For example, the public key data is (n, e), and the private key data is (d), which are combined to form a key pair. The Gaussian radial basis function is selected as the mapping function, which can map data from a low-dimensional space to a high-dimensional space. Its formula is G(x) = exp(-γ*||x-μ||^2), where x is the input data, μ is the center of the basis function, and γ is a parameter that controls the width of the function. By calculating the value, the new feature representation of the user in the high-dimensional space can be obtained. These features will have a higher dimension. The user's high-dimensional mapping data is processed and converted into a new data representation. Using the RSA algorithm, the public key (n, e) is used to encrypt the user's transformed data fragment. The user's transformed data fragment is a set of numerical values. Each numerical value is encrypted separately to obtain an encrypted data fragment. For each encrypted data fragment, a random sequence equal to its length is generated, such as a set of random numbers or a random string. Using the RSA algorithm, the private key (d) is used to digitally sign the obfuscated data fragment. Each obfuscated data fragment will be signed to generate a signed obfuscated data fragment. The encrypted data fragment, the obfuscated data fragment and the signature obfuscated data fragment are sequentially connected to form a complete data block. After the data block is converted into Base64 encoding, a string of Base64 encoded strings can be obtained.
[0112] Preferably, step S14 comprises the following steps:
[0113] Step S141: Calculate the data volume of the user high-dimensional mapping data to generate user high-dimensional data volume data;
[0114] Step S142: Calculate the sharding value of the user's high-dimensional data volume using the preset sharding standard value to generate dynamic sharding value data;
[0115] Step S143: performing data sharding processing on the user high-dimensional mapping data by using the dynamic sharding value data to generate user high-dimensional sharding data;
[0116] Step S144: performing erasure redundant block coding processing on the user's high-dimensional shard data to obtain shard coded redundant blocks;
[0117] Step S145: inserting redundant blocks into the user's high-dimensional slice data through the slice coding redundant blocks to generate redundant high-dimensional slice data;
[0118] Step S146: Perform multidimensional nonlinear transformation processing according to the redundant high-dimensional slice data to generate user transformation data segments, wherein the multidimensional nonlinear transformation is processed by a nonlinear transformation function, and the nonlinear transformation function is as follows:
[0119] f(x)=sin(x)+x 3 ;
[0120] In the formula, f(x) represents the nonlinear transformation function, and x represents the eigenvalue of an element in the redundant high-dimensional slice data.
[0121] In an embodiment of the present invention, for example, for user A, the purchase history data includes 10 shopping records, the browsing record includes 20 access records, and the favorite tags include 30 tags, then the high-dimensional data volume data of user A can be expressed as (10, 20, 30). A sharding standard value is preset to determine how to shard the user's high-dimensional data. For example, the preset sharding standard value is 50, then for the high-dimensional data volume data (10, 20, 30) of user A, it can be sharded into (1, 1, 1), that is, divided into 1 piece according to the number of purchase history, browsing records, and favorite tags. In this way, dynamic sharding value data is generated. Each data table is sharded according to the corresponding number of shards to generate user high-dimensional sharding data. For example, the purchase history data is sharded into 10 purchase records as one piece, the browsing record data is sharded into 20 access records as one piece, and the favorite tag data is sharded into 30 tags as one piece. For each data fragment, two redundant blocks are generated using an erasure code algorithm. The two redundant blocks contain redundant information of the corresponding data fragments to ensure that the data fragments can be restored when they are damaged or lost. For each data fragment, the two redundant blocks are inserted into the appropriate positions in the data fragment in sequence. The choice of the specific insertion position can be adjusted according to the data structure and the size of the redundant block. A common strategy is to insert the redundant block at the beginning or end of the data fragment to make it easier to retrieve and manage during data transmission or storage. After inserting the redundant blocks, each data fragment contains two redundant blocks, thus forming redundant high-dimensional sharded data. This processing method can improve the fault tolerance of the data and enable effective recovery in the event of data loss or damage. For each element in each data fragment, it is transformed according to a given nonlinear transformation function. The nonlinear transformation function is f(x)=sin(x)+x 3 , where x represents the eigenvalue of an element in the redundant high-dimensional slice data. Substitute the eigenvalue of each element into the nonlinear transformation function to calculate the transformed value. For example, for an eigenvalue x, substitute it into the function f(x) = sin(x) + x 3 , the corresponding transformation value is calculated. The transformed values are combined into new data segments as the user's transformed data segments. In this way, each data segment is processed by nonlinear transformation to generate the user's transformed data segments.
[0122] Preferably, step S2 comprises the following steps:
[0123] Step S21: Calculate the hash value of the user transformed data block to obtain the data block hash value;
[0124] Step S22: constructing a metadata index based on the user-transformed data block using the data block hash value to generate an index metadata block, wherein the index metadata block includes the data block hash value, the data block size, and the original storage location;
[0125] Step S23: Perform storage strategy processing according to the index metadata block to generate a data block storage strategy;
[0126] Step S24: using the data block storage strategy to perform data migration processing on the user transformation data block, and generating data storage scheduling information;
[0127] Step S25: Perform integrity verification processing using the data block hash value based on the data storage scheduling information to generate data block verification token data;
[0128] Step S26: Perform access verification tree processing according to the data block verification token data to generate a consensus access verification tree.
[0129] As an example of the present invention, refer to Figure 2 As shown, Figure 1 Detailed implementation steps of step S2 in the embodiment are shown in the flowchart. In this embodiment, step S2 includes:
[0130] Step S21: Calculate the hash value of the user transformed data block to obtain the data block hash value;
[0131] In an embodiment of the present invention, a hash value is calculated for each data block. The hash value is usually calculated by a hash function, and the data block is used as input to obtain the corresponding hash value. The hash function maps the data block to a hash value of a fixed length. For example, common hash functions such as MD5, SHA-1 or SHA-256 can be used. The data block is used as input, and the selected hash function is applied to calculate the corresponding hash value. The calculation of the hash value is one-way, that is, the original data block cannot be deduced based on the hash value. The calculated hash value is used as the hash value of the data block. This hash value can be used to represent the unique identifier of the corresponding data block.
[0132] Step S22: constructing a metadata index based on the user-transformed data block using the data block hash value to generate an index metadata block, wherein the index metadata block includes the data block hash value, the data block size, and the original storage location;
[0133] In the embodiment of the present invention, the size of each data block is calculated in bytes. The size of the data block is one of the important information stored in the index metadata. The index metadata block also needs to include the original storage location information of the data block. This can be the path of the data block in the file system, the index location in the database, etc. The original storage location of the data block is obtained according to the specific situation. The calculated data block hash value, data block size and original storage location are combined into an index metadata block. This index metadata block contains all the key information of the corresponding data block.
[0134] Step S23: Perform storage strategy processing according to the index metadata block to generate a data block storage strategy;
[0135] In the embodiment of the present invention, for each index metadata block, its storage requirements are analyzed, and how to effectively store and manage these data blocks is considered. The storage requirements can be determined according to specific scenarios and applications, including factors such as the allocation of storage space, the frequency of data access, and the importance of data. According to the analyzed storage requirements, a corresponding storage strategy is formulated. The storage strategy may include data backup strategy, storage medium selection, data distribution strategy, and other content. The goal of formulating a storage strategy is to ensure the security, reliability, and efficiency of data.
[0136] Step S24: using the data block storage strategy to perform data migration processing on the user transformation data block, and generating data storage scheduling information;
[0137] In the embodiment of the present invention, storage strategy processing is performed on each index metadata block according to the formulated storage strategy. This includes operations such as storing the data block on a suitable storage medium, backing up the data according to the backup strategy, and distributing the data according to the distribution strategy. The data migration operation is recorded to generate data storage scheduling information. This information includes which data is migrated, the source location and target location of the migration, the time of the migration, etc.
[0138] Step S25: Perform integrity verification processing using the data block hash value based on the data storage scheduling information to generate data block verification token data;
[0139] In an embodiment of the present invention, for each data block that needs to be verified, the actual data block is first obtained from the corresponding storage location, and then the hash value of the data block is calculated by the same hash function. The calculated hash value of the data block is compared with the hash value recorded in the storage scheduling information. If the two are consistent, it means that the data block has not been tampered with and the integrity verification has passed; if they are inconsistent, it means that the data block has been tampered with or damaged, and the integrity verification has failed. For the data block that passes the integrity verification, the corresponding data block verification token data is generated according to the requirements. This token can be a digital signature, hash value or other form of verification information.
[0140] Step S26: Perform access verification tree processing according to the data block verification token data to generate a consensus access verification tree.
[0141] In an embodiment of the present invention, the verification information of all data blocks that need to be verified is constructed into an access verification tree according to certain rules. The access verification tree adopts a Merkle tree or a similar structure, in which each leaf node represents the verification information of a data block, and the non-leaf node is a combination of the hash values of the leaf nodes. For each non-leaf node, the combination of the hash values of its child nodes is calculated as the hash value of the node. In this way, a complete access verification tree is obtained, in which the hash value of the root node is called the consensus root hash value. Through the consensus root hash value, it is possible to quickly verify whether the data block is in the tree, thereby ensuring the security and consistency of the data.
[0142] Preferably, step S23 includes the following steps:
[0143] Step S231: Perform storage demand assessment according to the data block size to generate storage demand assessment data;
[0144] Step S232: Obtain storage node topology data;
[0145] Step S233: performing node storage capacity analysis according to the storage node topology data to generate node storage capacity data;
[0146] Step S234: Evaluate the scheduling cost of the original storage location by storing the node topology data to generate scheduling cost data;
[0147] Step S235: performing optimal storage node mapping through storage demand assessment data, node storage capacity data, and scheduling cost data to generate optimal storage node mapping data;
[0148] Step S236: Use the optimal storage node mapping data to perform node load balancing adjustment on the index metadata block, thereby obtaining a data block storage strategy.
[0149] In an embodiment of the present invention, the size of the data blocks to be stored is analyzed. This includes determining the size of each data block and counting the number of data blocks of different sizes. Based on the analysis results of the data block size, the storage demand is evaluated. Considering the number and size of the data blocks and the total amount of stored data, the required storage space size is determined. The topological structure information of the storage node is obtained from the storage system. According to the storage node topology data, the storage capacity of each storage node is analyzed. Considering factors such as the storage medium and available space of each node, the storage capacity of each node is determined. According to the storage node topology data and storage demand, the cost of scheduling the original storage location is evaluated. Considering factors such as network bandwidth, delay, and load between storage nodes, determine the best solution for scheduling data blocks to which nodes for storage. Based on the storage demand evaluation data, node storage capacity data, and scheduling cost data, the optimal storage node mapping solution is calculated. This solution should take into account factors such as storage demand, node storage capacity, and scheduling cost to maximize the resource utilization of the storage system and balance the storage load. For example, according to the storage demand assessment data, a total of 125MB of data needs to be stored, and the node storage capacity data shows that the remaining available space of node A is 300GB, and the remaining available space of node B is 200GB. The scheduling cost data analysis shows that the cost of storing data on node A is lower than that on node B. Based on this information, the optimal solution for mapping data blocks to node A is calculated. The optimal storage node mapping data is applied to the index metadata block, that is, the index metadata block is stored on the corresponding storage node according to the mapping relationship. The load of the storage node is adjusted to achieve load balancing. This includes evenly distributing the index metadata block to each storage node to avoid overloading a node. For example, according to the optimal storage node mapping data, the index metadata block is mapped to node A and node B, and then the node load is adjusted to ensure that the node load is balanced. The final data block storage strategy is to store the index metadata block on node A and node B.
[0150] Preferably, step S26 comprises the following steps:
[0151] Step S261: performing hash value sorting processing on the data block verification token data to generate verification token ordered list data;
[0152] Step S262: construct the Merkle tree child node with the verification token ordered list data to generate the underlying leaf node data;
[0153] Step S263: Based on the underlying leaf node data, two adjacent leaf nodes are hashed and calculated to generate non-leaf node data; recursive node merging hash calculation is performed according to the non-leaf node data until a root node hash value is generated, thereby constructing a Merkle tree structure;
[0154] Step S264: Perform node access path processing on the underlying leaf node data through the Merkle tree structure to generate leaf node access path data;
[0155] Step S265: Perform consensus node election processing according to the Merkle tree structure to generate consensus node data;
[0156] Step S266: performing root hash broadcast processing on the root node hash value through the consensus node data based on the leaf node access path data, and performing consensus node voting processing to obtain consensus verification status data;
[0157] Step S267: The Merkle tree structure is synchronized with the consensus status data to generate a consensus access verification tree.
[0158] In an embodiment of the present invention, the data block verification token data is sorted, and the verification tokens are sorted according to specific rules. Generally, the sorting can be performed according to the size of the hash value or other attributes. After the sorting is completed, the sorted verification token data is formed into an ordered list. This ordered list ensures the order of the verification token. Each verification token in the ordered list data is used as a leaf node to construct the bottom leaf node of the Merkle tree. The data of each leaf node is hashed to obtain the hash value of the leaf node. The hash values of two adjacent leaf nodes are merged and calculated to generate a new hash value as their parent node. The generated parent node is continued to be merged and calculated with other parent nodes until the hash value of the root node is generated to construct the structure of the Merkle tree. The hash value of the root node finally generated is the root node hash value of the Merkle tree, and the structure of the entire Merkle tree is also completed. Through the Merkle tree structure, the access path from each bottom leaf node to the root node is determined. This access path is usually composed of hash values from the bottom leaf node to the root node. Based on the Merkle tree structure, the consensus node is determined. For example, for each node, its weight is calculated based on its position, performance, resources and other factors in the network. Assume that the weight of node A is 100, the weight of node B is 90, and the weight of node C is 80. According to the weight of the node, the consensus node is elected. After calculation, node A has the highest weight and is therefore elected as the consensus node. After receiving the hash value of the root node, the consensus node votes on it. This includes verifying the validity and consistency of the hash value of the root node and ensuring that all consensus nodes reach a consistent consensus state. Based on the consensus verification state data, the Merkle tree structure is synchronized with the consensus state. This includes confirming the validity and consistency of the hash value of the root node and ensuring that the state of the Merkle tree is consistent among all consensus nodes. Based on the results of the consensus state synchronization process, a consensus access verification tree is generated.
[0159] Preferably, step S3 comprises the following steps:
[0160] Step S31: Perform hidden identity association processing on the user to generate user ciphertext association data;
[0161] Step S32: performing hash mapping processing on leaf nodes according to the consensus access verification tree to generate hash mapping index data;
[0162] Step S33: using the user ciphertext associated data to bind the hash map index data to the user access level index node, generating user zero-knowledge index data;
[0163] Step S34: Perform verifiable random function indexing processing according to the user's zero-knowledge index data, and perform real-time timestamp embedding processing to generate real-time verifiable index data;
[0164] Step S35: Use the consensus access verification tree to perform consensus node joint signature processing on the real-time verifiable index data and the user zero-knowledge index data to generate threshold signature aggregation data.
[0165] As an example of the present invention, refer to Figure 3 As shown, Figure 1 Detailed implementation steps of step S3 in the flowchart, in this example, step S3 includes:
[0166] Step S31: Perform hidden identity association processing on the user to generate user ciphertext association data;
[0167] In an embodiment of the present invention, the user's identity information and other related data are separated. The personal identity information may include name, ID number, mobile phone number, etc., while other data may include purchased goods, visited web pages, etc. The separated data is encrypted to protect the user's privacy information from being leaked. The encrypted user identity information is associated with other related data to ensure that the association between the data is not affected. The association process can be matched based on some common identifiers, such as user ID or encrypted identity information.
[0168] Step S32: performing hash mapping processing on leaf nodes according to the consensus access verification tree to generate hash mapping index data;
[0169] In an embodiment of the present invention, starting from the root node of the consensus access verification tree, the leaf nodes of the tree are traversed layer by layer. For the hash value of each leaf node, mapping processing is performed. For example, the hash value of each leaf node can be used as a key and associated with the index or storage location of the corresponding data block. The hash value of the leaf node after mapping processing is matched one by one with the data block information associated with it to form hash mapping index data. This index data can be used to quickly find the hash value of a specific data block and locate the corresponding data block or information.
[0170] Step S33: using the user ciphertext associated data to bind the hash map index data to the user access level index node, generating user zero-knowledge index data;
[0171] In an embodiment of the present invention, encrypted identity information is extracted from the user's ciphertext associated data. This encrypted identity information is the user's encrypted identifier or other privacy-sensitive information. Matching is performed in the hash map index data based on the user's encrypted identity information. In the hash map index data, each leaf node has a corresponding hash value, which is usually calculated by a hash function. Find the hash value of the leaf node that matches the user's encrypted identity information, and bind the user's encrypted identity information to the hash value of the found leaf node. This binding process forms a user access-level index node binding relationship, associates the user's identity information with the hash index of the data, and generates user zero-knowledge index data.
[0172] Step S34: Perform verifiable random function indexing processing according to the user's zero-knowledge index data, and perform real-time timestamp embedding processing to generate real-time verifiable index data;
[0173] In the embodiment of the present invention, these binding relationships are used to perform verifiable random function index processing. This process involves using a verifiable random function (VRF) algorithm to convert the user's encrypted identity information into a verifiable random function index value. The current real-time timestamp is obtained and embedded into the verifiable random function index value. This embedding process usually uses an encryption algorithm to ensure the security and verifiability of the timestamp.
[0174] Step S35: Use the consensus access verification tree to perform consensus node joint signature processing on the real-time verifiable index data and the user zero-knowledge index data to generate threshold signature aggregation data.
[0175] In an embodiment of the present invention, a consensus access verification tree structure is constructed based on the node information participating in the consensus. This tree structure contains the verification information and verification path of each node. For example, if there are three consensus nodes A, B, and C participating in the consensus, the system will build a tree based on their verification information, where the root node is the verification root hash of the entire system, and each leaf node corresponds to the verification information of a consensus node. Real-time verifiable index data and user zero-knowledge index data are associated with the consensus access verification tree. In this way, each consensus node can verify the legitimacy of the index data. Each consensus node signs the index data with its own private key to generate a personal signature of the node. Then, the consensus nodes perform joint signature processing. This process involves the threshold signature algorithm, which requires a certain number of consensus nodes to reach a consensus and sign to generate threshold signature aggregation data. For example, the threshold value is 2, that is, at least 2 consensus nodes need to reach a consensus and sign, and wait for nodes A and B to sign the data before generating threshold signature aggregation data.
[0176] Preferably, step S31 includes the following steps:
[0177] Step S311: Generate a secret identity identifier for the user, generating a secret identity identifier for the user;
[0178] Step S312: Acquire user registration data according to the user's secret identity identifier to obtain user attribute data;
[0179] Step S313: extracting user access rights according to user attribute data to generate user access rights data;
[0180] Step S314: Perform encrypted digital vector mapping processing on the user attribute data to generate user attribute encrypted vector data;
[0181] Step S315: generating zero-knowledge attribute proof for the user attribute encryption vector data based on the user access right data, thereby generating zero-knowledge attribute proof data;
[0182] Step S316: Perform ciphertext identity association processing on the user's secret identity identifier and zero-knowledge attribute proof data to generate user ciphertext association data.
[0183] In an embodiment of the present invention, an encryption algorithm is used to generate a secret identity identifier of a user. This identifier is usually a unique string or number, which is used to represent the identity information of the user, but does not directly expose the real identity of the user. The secret identity identifier of the user is used as an index to obtain registration data associated with the identifier from the user registration database. These registration data include basic information of the user (such as name, age, gender), account information (such as user name, password), contact information, etc. According to the attribute information in the user's registration data, access rights are extracted and judged. These attribute information may include the user's role, level, organizational affiliation, etc. Based on this information, the user is granted basic access rights, such as access to common functions and resources of the system. For example, an online medical platform needs to process the user's health data, but needs to protect the user's privacy. In this case, an encrypted digital vector mapping is used to process the user's health data. For example, the health data of user A includes information such as blood pressure, blood sugar, and weight. The website can encrypt these data according to certain rules to generate an encrypted vector to ensure the privacy of the user data. For example, blood pressure data can be represented by a digital vector [120,80], and the website can encrypt this vector to obtain encrypted vector data similar to "a1b2c3..." Based on the identity and permission settings of user A, the platform determines the range of health data that user A can access, such as blood pressure and blood sugar data. Using the zero-knowledge proof algorithm, user A generates a zero-knowledge attribute proof based on his access permission data and encrypted vector data. This proof shows that user A has the permission to access blood pressure and blood sugar data, but does not disclose the actual blood pressure and blood sugar values. The proof generation process ensures that user A's privacy is protected while proving that he has the right to access the corresponding health data. The encrypted secret identity identifier and the encrypted zero-knowledge attribute proof data are associated to generate the user's ciphertext associated data. This can be done simply by combining the two together, or by associating them in a more complex way to enhance security. Assume that the encrypted secret identity identifier and the encrypted proof data are spliced together to obtain a ciphertext associated data.
[0184] Preferably, step S4 comprises the following steps:
[0185] Step S41: performing homomorphic encryption environment initialization processing on the access terminal device to generate homomorphic encryption environment data;
[0186] Step S42: Encrypt and encapsulate the threshold signature aggregation data based on the homomorphic encryption environment data to generate encrypted verification package data;
[0187] Step S43: Perform homomorphic index mapping processing using user zero-knowledge index data to generate homomorphic index matrix data;
[0188] Step S44: obtaining user query request data by accessing the terminal device; extracting query parameters according to the user query request data to generate query parameter data;
[0189] Step S45: Perform homomorphic encryption on the query parameter data to generate ciphertext query vector data;
[0190] Step S46: Perform security query strategy processing through the encrypted query vector data and the homomorphic index matrix data to generate a security query strategy;
[0191] Step S47: applying a homomorphic search strategy according to the security query strategy to generate preliminary query matching data;
[0192] Step S48: performing homomorphic aggregation processing on the preliminary query matching data, and time-locking the homomorphic aggregate query result data through a preset time locking instruction to generate aggregate locked query result data;
[0193] Step S49: When the user decrypts the query item of the aggregated locked query result data, the query legitimacy is verified by encrypting the verification package data to generate query legitimacy verification data; when the query legitimacy verification data is legal, the aggregated locked query result data is decrypted and terminal visualization is performed to generate user query result data; when the query legitimacy verification data is illegal, the aggregated locked query result data is destroyed and user query warning data is generated.
[0194] In an embodiment of the present invention, for example, in a data privacy protection system, it is necessary to perform homomorphic encryption environment initialization processing on the access terminal device so that the homomorphic encryption algorithm can be used to protect data privacy during subsequent data transmission and processing. During the initialization process, the system generates homomorphic encryption environment data for subsequent data encryption and calculation. For example, the system can generate the public key and private key required for homomorphic encryption to ensure that the data can maintain privacy and security during transmission and calculation. The acquired threshold signature aggregation data is encrypted using the public key. In the RSA algorithm, the data is encrypted using the public key (n, e). The specific operation is to calculate the ciphertext C = M^emod n, where M is the original data and C is the encrypted ciphertext. Encapsulate the encrypted threshold signature aggregation data into encrypted verification package data. This process may include steps such as adding data signatures and appending data summaries to ensure data integrity and security. The zero-knowledge index data is encrypted using the public key of the homomorphic encryption environment. In the RSA algorithm, the data is encrypted using the public key (n, e) to generate encrypted index data. The specific operation is to calculate the ciphertext C = M^e mod n. Map the encrypted zero-knowledge index data to the homomorphic encryption environment to generate homomorphic index matrix data. This process can be achieved by mapping the encrypted index data to the matrix in the homomorphic environment according to certain rules. Extract relevant query parameters from the user query request data. For example, the user wants to query the sales data within a certain time period, so the start date and end date of the time period are extracted from the query request as query parameters. If the user wants to filter the data according to certain conditions, these conditions also need to be extracted as query parameters. Use the generated public key to encrypt the extracted query parameter data. For example, use the Paillier homomorphic encryption algorithm to encrypt the query parameter data to generate ciphertext query vector data. Design a secure query strategy based on system requirements and data structure. This strategy can include operations such as combination and operation of ciphertext query vector data and homomorphic index matrix data to achieve secure query functions. According to the designed secure query strategy, the ciphertext query vector data and homomorphic index matrix data are processed to generate a secure query strategy. For example, a homomorphic encryption algorithm can be used to operate on the ciphertext query vector data and homomorphic index matrix data to achieve secure data query operations. According to the security query strategy, the system uses a homomorphic encryption algorithm to apply the search strategy to the ciphertext query vector data and the homomorphic index matrix data to generate preliminary query matching data. For example, the system performs an encrypted search operation in a homomorphic encryption environment according to the security query strategy to find data items that match the query parameters. According to the preset time lock instruction, the system time locks the aggregate query result data. For example, the system sets a time lock instruction that requires that the aggregate query result data cannot be decrypted before a specific time point in the future. The user initiates a query request for the aggregate locked query result data.The system verifies the legitimacy of the user's query request based on the encrypted verification package data. For example, the system uses the encrypted verification package data to verify whether the query request complies with the preset security query policy. If the query request is legitimate, the system decrypts the aggregated locked query result data according to the user's request, performs terminal visualization processing, and generates user query result data. If the query legitimacy verification data is illegal, the system destroys the aggregated locked query result data and generates user query warning data to notify the user that the query request is rejected.
[0195] Preferably, step S45 includes the following steps:
[0196] Step S451: performing high-frequency query adaptability analysis on the encrypted query vector data to generate high-frequency query adaptability data;
[0197] Step S452: performing query index heat matching on homomorphic index matrix data through high-frequency query adaptability data to generate a query item heat map;
[0198] Step S453: Based on the query item heat map, the ciphertext query vector data is subjected to an optimal path heuristic search using homomorphic index matrix data to obtain candidate query matching item data;
[0199] Step S454: screening the most relevant matching items according to the candidate query matching item data, and generating a query path to obtain matching item query path data;
[0200] Step S455: performing path security check on the matching query path data, and adjusting the security path index to generate secure query path data;
[0201] Step S456: Perform a security query according to the security query path data to obtain a security query strategy.
[0202] In an embodiment of the present invention, a high-frequency query adaptability analysis is performed on the ciphertext query vector data to identify frequently occurring query items or query patterns. For example, by statistically analyzing the frequency of occurrence of query items in the ciphertext query vector data, it is determined which query items are frequently used by users, thereby generating high-frequency query adaptability data. According to the high-frequency query adaptability data, it is matched with the homomorphic index matrix data to identify index information related to the frequent query items in the high-frequency query adaptability data. This process can be achieved by comparing the query items in the high-frequency query adaptability data with the index items in the homomorphic index matrix data. Based on the matching results, a query item heat map is generated, which reflects the heat of each query item and the related index information. This map can help the system better understand user query behavior and data characteristics, thereby optimizing the query processing flow. Based on the query item heat map and the homomorphic index matrix data, the optimal path heuristic search algorithm is used to search for candidate query matching items in the ciphertext query vector data. This process involves determining the best search path based on the heat information and index information of the query item to find the matching item as quickly as possible.
[0203] The beneficial effect of the present application is that, through multi-dimensional nonlinear transformation, user data is converted into a high-dimensional feature space, the complex relationship between data is captured, and the data is made more representative and practical. Segmenting data sets and reorganizing data fragments improves the processing flexibility and analysis efficiency of data. Hash value calculation and metadata index construction ensure the integrity and rapid accessibility of data, and effectively deal with the risk of data tampering and damage. Dynamic scheduling and management of data storage improve storage utilization and efficiency, and ensure data credibility and security. Hidden identity association processing and user access level index node binding effectively protect user privacy while ensuring secure access and indexing of data. Consensus node joint signature processing and encryption encapsulation ensure the trusted authentication and secure transmission of data, avoiding the risk of unauthorized access and data tampering. Homomorphic index mapping processing and secure query realize privacy protection and data security of user query requests, and improve the security and privacy protection of query results. Through legal query verification, abnormal situations are discovered and resolved in a timely manner, ensuring the legitimacy and security of query results. Compared with traditional methods, these measures overcome the limitations of static authentication and access control, more effectively protect the confidentiality and integrity of user data, and effectively prevent the risk of personal information leakage.
[0204] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0205] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A method for protecting user data of a secure computer, characterized in that: The following steps are involved: Step S1: acquiring user data; performing multi-dimensional nonlinear transformation processing on the user data to generate user transformation data segments; performing data segment reorganization processing according to the user transformation data segments to obtain user transformation data blocks; Step S2: Calculate the hash value of the user transformed data block to obtain the data block hash value; Metadata indexing is constructed for user transformation data blocks through data block hash values to generate index metadata blocks; storage strategy processing is performed based on the index metadata blocks, and data migration is performed on user transformation data blocks to obtain data storage scheduling information; Perform integrity access verification processing based on data storage scheduling information and generate a consensus access verification tree; Step S3: Perform hidden identity association processing on the user to generate user ciphertext association data; perform user access level index node binding on the user ciphertext association data through the consensus access verification tree to generate user zero-knowledge index data; Perform consensus node joint signature processing based on user zero-knowledge index data to generate threshold signature aggregation data; Step S4: Encrypt and encapsulate the aggregated data according to the threshold signature to generate encrypted verification package data; perform homomorphic index mapping according to the user zero-knowledge index data to generate homomorphic index matrix data; Get user query request data; Use homomorphic index matrix data to perform secure query processing on user query request data and generate preliminary query matching data; The preliminary query matching data is homomorphically aggregated to generate aggregated locked query result data; the aggregated locked query result data is legally verified through encrypted verification package data to obtain user query result data and user query warning data respectively.
2. The user data protection method of a secure computer according to claim 1, characterized in that: Step S1 includes the following steps: Step S11: Obtain user data; perform Z-score normalization on the user data to generate user standard data; Step S12: Generate an asymmetric key according to the user specification data to generate key pair data, wherein the key pair data includes public key data and private key data; Step S13: using Gaussian radial basis function to perform high-dimensional expansion mapping processing on the user specification data to generate user high-dimensional mapping data; Step S14: performing multi-dimensional nonlinear transformation processing on the user high-dimensional mapping data to generate user transformation data segments; Step S15: using the public key data to perform data segment encryption processing on the user transformed data segment to generate an encrypted data segment; Step S16: Generate a random sequence of equal length for the encrypted data fragment to obtain an obfuscated data fragment; Step S17: using the private key data to perform data signing processing on the obfuscated data fragment to generate a signed obfuscated data fragment; Step S18: reorganize the encrypted data segment, the obfuscated data segment and the signature obfuscated data segment, and perform Base64 encoding to obtain a user transformed data block.
3. The user data protection method of a secure computer according to claim 2, characterized in that: Step S14 includes the following steps: Step S141: Calculate the data volume of the user high-dimensional mapping data to generate user high-dimensional data volume data; Step S142: Calculate the sharding value of the user's high-dimensional data volume using the preset sharding standard value to generate dynamic sharding value data; Step S143: performing data sharding processing on the user high-dimensional mapping data by using the dynamic sharding value data to generate user high-dimensional sharding data; Step S144: performing erasure redundant block coding processing on the user's high-dimensional shard data to obtain shard coded redundant blocks; Step S145: inserting redundant blocks into the user's high-dimensional slice data through the slice coding redundant blocks to generate redundant high-dimensional slice data; Step S146: Perform multidimensional nonlinear transformation processing according to the redundant high-dimensional slice data to generate user transformation data segments, wherein the multidimensional nonlinear transformation is processed by a nonlinear transformation function, and the nonlinear transformation function is as follows: f(x)=sin(x)+x 3 ; In the formula, f(x) represents the nonlinear transformation function, and x represents the eigenvalue of an element in the redundant high-dimensional slice data.
4. The user data protection method of a secure computer according to claim 1, characterized in that: Step S2 includes the following steps: Step S21: Calculate the hash value of the user transformed data block to obtain the data block hash value; Step S22: constructing a metadata index based on the user-transformed data block using the data block hash value to generate an index metadata block, wherein the index metadata block includes the data block hash value, the data block size, and the original storage location; Step S23: Perform storage strategy processing according to the index metadata block to generate a data block storage strategy; Step S24: using the data block storage strategy to perform data migration processing on the user transformation data block, and generating data storage scheduling information; Step S25: Perform integrity verification processing using the data block hash value based on the data storage scheduling information to generate data block verification token data; Step S26: Perform access verification tree processing according to the data block verification token data to generate a consensus access verification tree.
5. The user data protection method of a secure computer according to claim 4, characterized in that: Step S23 includes the following steps: Step S231: Perform storage demand assessment according to the data block size to generate storage demand assessment data; Step S232: Obtain storage node topology data; Step S233: performing node storage capacity analysis according to the storage node topology data to generate node storage capacity data; Step S234: Evaluate the scheduling cost of the original storage location by storing the node topology data to generate scheduling cost data; Step S235: performing optimal storage node mapping through storage demand assessment data, node storage capacity data, and scheduling cost data to generate optimal storage node mapping data; Step S236: Use the optimal storage node mapping data to perform node load balancing adjustment on the index metadata block, thereby obtaining a data block storage strategy.
6. The method for protecting user data of a secure computer according to claim 4, characterized in that: Step S26 includes the following steps: Step S261: performing hash value sorting processing on the data block verification token data to generate verification token ordered list data; Step S262: construct the Merkle tree child node with the verification token ordered list data to generate the underlying leaf node data; Step S263: Based on the underlying leaf node data, two adjacent leaf nodes are hashed and calculated to generate non-leaf node data; recursive node merging hash calculation is performed according to the non-leaf node data until a root node hash value is generated, thereby constructing a Merkle tree structure; Step S264: Perform node access path processing on the underlying leaf node data through the Merkle tree structure to generate leaf node access path data; Step S265: Perform consensus node election processing according to the Merkle tree structure to generate consensus node data; Step S266: performing root hash broadcast processing on the root node hash value through the consensus node data based on the leaf node access path data, and performing consensus node voting processing to obtain consensus verification status data; Step S267: The Merkle tree structure is synchronized with the consensus status data to generate a consensus access verification tree.
7. The user data protection method of a secure computer according to claim 1, characterized in that: Step S3 includes the following steps: Step S31: Perform hidden identity association processing on the user to generate user ciphertext association data; Step S32: performing hash mapping processing on leaf nodes according to the consensus access verification tree to generate hash mapping index data; Step S33: using the user ciphertext associated data to bind the hash map index data to the user access level index node, generating user zero-knowledge index data; Step S34: Perform verifiable random function indexing processing according to the user's zero-knowledge index data, and perform real-time timestamp embedding processing to generate real-time verifiable index data; Step S35: Use the consensus access verification tree to perform consensus node joint signature processing on the real-time verifiable index data and the user zero-knowledge index data to generate threshold signature aggregation data.
8. The method for protecting user data of a secure computer according to claim 7, characterized in that: Step S31 includes the following steps: Step S311: Generate a secret identity identifier for the user, generating a secret identity identifier for the user; Step S312: Acquire user registration data according to the user's secret identity identifier to obtain user attribute data; Step S313: extracting user access rights according to user attribute data to generate user access rights data; Step S314: Perform encrypted digital vector mapping processing on the user attribute data to generate user attribute encrypted vector data; Step S315: generating zero-knowledge attribute proof for the user attribute encryption vector data based on the user access right data, thereby generating zero-knowledge attribute proof data; Step S316: Perform ciphertext identity association processing on the user's secret identity identifier and zero-knowledge attribute proof data to generate user ciphertext association data.
9. The user data protection method of a secure computer according to claim 1, characterized in that: Step S4 includes the following steps: Step S41: performing homomorphic encryption environment initialization processing on the access terminal device to generate homomorphic encryption environment data; Step S42: Encrypt and encapsulate the threshold signature aggregation data based on the homomorphic encryption environment data to generate encrypted verification package data; Step S43: Perform homomorphic index mapping processing using user zero-knowledge index data to generate homomorphic index matrix data; Step S44: obtaining user query request data by accessing the terminal device; extracting query parameters according to the user query request data to generate query parameter data; Step S45: Perform homomorphic encryption on the query parameter data to generate ciphertext query vector data; Step S46: Perform security query strategy processing through the encrypted query vector data and the homomorphic index matrix data to generate a security query strategy; Step S47: applying a homomorphic search strategy according to the security query strategy to generate preliminary query matching data; Step S48: performing homomorphic aggregation processing on the preliminary query matching data, and time-locking the homomorphic aggregate query result data through a preset time locking instruction to generate aggregate locked query result data; Step S49: When the user decrypts the query item of the aggregated locked query result data, the query legitimacy is verified by encrypting the verification package data to generate query legitimacy verification data; when the query legitimacy verification data is legal, the aggregated locked query result data is decrypted and terminal visualization is performed to generate user query result data; when the query legitimacy verification data is illegal, the aggregated locked query result data is destroyed and user query warning data is generated.
10. The method for protecting user data of a secure computer according to claim 9, characterized in that: Step S45 includes the following steps: Step S451: performing high-frequency query adaptability analysis on the encrypted query vector data to generate high-frequency query adaptability data; Step S452: performing query index heat matching on homomorphic index matrix data through high-frequency query adaptability data to generate a query item heat map; Step S453: Based on the query item heat map, the ciphertext query vector data is subjected to an optimal path heuristic search using homomorphic index matrix data to obtain candidate query matching item data; Step S454: screening the most relevant matching items according to the candidate query matching item data, and generating a query path to obtain matching item query path data; Step S455: performing path security check on the matching query path data, and adjusting the security path index to generate secure query path data; Step S456: Perform a security query according to the security query path data to obtain a security query strategy.
Citation Information
Cited By
Data storage method and system for smart education platform
CN118760686A
A data storage method and system for a smart education platform
CN118760686B
Calculation method and system for information security
CN119691780A
Privacy protection method and system for hybrid encryption strategy
CN121000522A
A privacy protection method and system of hybrid encryption strategy
CN121000522B
