A product traceability management method and electronic equipment for global information processing

By storing and encrypting product traceability node data in the contracting database and generating verification keys and operation keys in the cloud database, the data security risks in the existing technology are solved, and efficient data protection and traceability verification are achieved.

CN119722112BActive Publication Date: 2025-06-06JIANGSU TIANHE CLOUD BUSINESS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510237596.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-06-06
Estimated Expiration
2045-03-03

AI Technical Summary

Technical Problem

The existing product traceability management methods rely on a single database storage and lack effective encryption technology, which leads to the risk of data leakage or tampering, and poses security risks.

Method used

By storing trace node data in the contracting database, encrypting iterative associations and syncing them to the cloud database, the cloud verification key and operation key are generated, and the keys are dynamically divided, stored and transmitted to the target user.

Benefits of technology

It effectively prevents the risk of data leakage or tampering, improves the security of traceability verification, ensures the transparency and credibility of data, and enhances the attack resistance of the entire traceability system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119722112B_ABST
    Figure CN119722112B_ABST
Patent Text Reader

Abstract

The present invention provides a product traceability management method and electronic device for global information processing, which relates to the technical field of product traceability management, including: after the traceability node of the target contracted fruit tree is completed, it is stored in the contracting database, and synchronized to the cloud database through iterative encryption, generating a cloud verification key and an operation key, dynamically segmenting the cloud operation key, generating and storing the verification segmentation key, sending the remaining key to the target user in a secure manner, packaging the ripe fruit and creating an associated traceability identification code, the target user scanning the identification code to obtain the verification key, combining the traceability segmentation key to verify the cloud verification key, if the verification passes, the cloud database provides a data verification result. The present invention solves the technical problem that the product traceability management method of the prior art often relies only on a single database storage, lacks effective encryption technology means, and the traceability information of the product is easily tampered with or forged, resulting in potential safety hazards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of product traceability management, and in particular to a product traceability management method and electronic equipment for global information processing. Background Art

[0002] In the agricultural field, information recording and traceability of each link such as fruit tree planting, ripening, picking, and transportation has become the key to ensuring the quality and safety of agricultural products. However, the existing traceability system has problems such as insecure data storage methods, high risk of information tampering, and cumbersome verification links. In particular, the technology development in information processing and security is relatively lagging behind.

[0003] In the existing technology, many product traceability systems use cloud storage to record data information of each link of the product, and read and verify the information through identifiers such as QR codes and bar codes. These technologies usually use scanning devices to allow consumers or relevant personnel to query the source and circulation of products by scanning identification codes. There are some problems with this type of technology. On the one hand, the data in many existing traceability systems often rely only on a single database storage and lack effective encryption technology. Once the database is attacked or the data is leaked, the traceability information of the product is easily tampered with or forged; on the other hand, some existing technologies use simple key or password protection systems, but these keys have not been segmented or encrypted, and are easily intercepted or cracked during transmission, resulting in a decrease in the security of the entire traceability process. Summary of the invention

[0004] The present application provides a product traceability management method and electronic device for global information processing, aiming to solve the technical problem that the product traceability management method in the prior art often relies only on a single database storage and lacks effective encryption technology. Once the database is attacked or the data is leaked, the product traceability information is easily tampered with or forged, resulting in security risks.

[0005] The first aspect disclosed in the present application provides a product traceability management method for global information processing, the method comprising: after P traceability nodes of a target contracted fruit tree are completed, the P traceability node data are respectively stored in P first storage areas of P independent storage units in a contracting database, and the P traceability node data are iteratively associated and encrypted and then synchronized to a cloud database to obtain P cloud verification keys and P cloud operation keys, where P is a positive integer; the P cloud operation keys are dynamically segmented, the obtained P verification segmentation keys are stored in P second storage areas of P independent storage units, and the obtained P traceability segmentation keys are sent to a target user; after the ripe fruits of the target contracted fruit tree are packed in a box, a traceability identification code associated with the contracting database is created; after receiving the transport box, the target user scans the traceability identification code to obtain the P verification segmentation keys, and verifies the P cloud verification keys in combination with the P traceability segmentation keys. If the verification passes, the cloud database is called to perform traceability verification on the data in the P first storage areas to obtain a traceability verification result.

[0006] The second aspect disclosed in the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of a product traceability management method with global information processing in the first aspect.

[0007] One or more technical solutions provided in this application have at least the following beneficial effects:

[0008] By storing the P traceability node data of the target contracted fruit trees in the contracting database and encrypting them and synchronizing them to the cloud database, the security and privacy protection of the data are ensured. Each traceability node data is iteratively encrypted, and a cloud verification key and an operation key are generated. This encryption method effectively prevents the risk of data leakage or tampering, and provides a reliable encryption basis for subsequent traceability verification. By dynamically dividing the P cloud operation keys and storing and transmitting the divided keys to the target users respectively, this method increases the security of the traceability verification process. By dividing the key into multiple parts, the risk of loss or leakage of a single key is avoided, and at the same time, it ensures that the key is difficult to be intercepted or cracked during transmission. When the target user receives the packaging box and scans the traceability identification code, they can verify the data in the cloud database by verifying the segmentation key and the traceability segmentation key. This mechanism ensures that users can obtain all the information from the planting process, packaging to the final transportation of the target fruit trees. Any link can be matched with the contract database through cloud verification, so as to achieve transparency and credibility of the whole process. After the target user receives the product and scans the traceability identification code, the cloud verification key is verified by combining the traceability segmentation key and the verification segmentation key, which further improves security. Since the key is distributed and segmented, the attacker needs to crack multiple parts to obtain the complete verification key, which makes the entire traceability system highly resistant to attacks.

[0009] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A flowchart of a product traceability management method with global information processing is provided for an embodiment of the present application.

[0011] Figure 2 A schematic diagram of a process for obtaining P cloud verification keys and P cloud operation keys in a product traceability management method for global information processing is provided for an embodiment of the present application.

[0012] Figure 3 A schematic diagram of the structure of an exemplary electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0013] The present application provides a product traceability management method and electronic equipment for global information processing, thereby solving the technical problem that the product traceability management method in the prior art often relies only on a single database storage and lacks effective encryption technology. Once the database is attacked or the data is leaked, the product traceability information is easily tampered with or forged, resulting in security risks.

[0014] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application will be specifically described below in conjunction with the drawings in the specification.

[0015] Embodiment 1, as Figure 1 As shown, the embodiment of the present application provides a product traceability management method for global information processing, the method comprising:

[0016] After the P traceability nodes of the target contracted fruit trees are completed, the P traceability node data are respectively stored in the P first storage areas of the P independent storage units in the contracting database, and the P traceability node data are iteratively associated and encrypted and then synchronized to the cloud database to obtain P cloud verification keys and P cloud operation keys, where P is a positive integer.

[0017] During the planting process of the target contracted fruit trees, each key node (such as planting, watering, fertilizing, picking, etc.) is recorded as a traceability node. Whenever a traceability node is completed, the relevant information of the node is immediately collected and the data is stored. These node data contain detailed information on each growth stage of the fruit trees, such as watering time, watering amount, fertilization conditions, weather conditions, pesticide use, etc. This information is to support subsequent full-process traceability and ensure the authenticity of the data.

[0018] The contracting database is used to store all global information data of the target contracted fruit trees. This database is the core data storage center in the fruit tree management process, and contains all data from planting to final products. The data storage structure in the contracting database includes multiple independent storage units. After each traceability node is completed, its related data is stored in different storage units. These storage units have two main areas. Among them, the first storage area is used to store node data and operation records related to various stages of fruit tree growth. These data include but are not limited to data at each growth stage. These data record the actual operation and environmental conditions of the fruit trees at each stage; the second storage area is used to store verification and segmentation keys related to customer verification. These keys are stored for subsequent customer verification and anti-counterfeiting mechanisms, and support customers to conduct full-process traceability verification of fruit tree products. Before the fruit trees reach the final consumers, these segmentation keys will be used to ensure the reliability and tamper-proofing of traceability information.

[0019] After storing P traceability node data in the contract database, all these data are iteratively associated and encrypted. This encryption method is to encrypt the data node by node and process it in combination with the encryption result of the previous node to form an encryption chain, which increases the security of the data. The encrypted traceability node data is synchronized to the cloud database. By uploading the data to the cloud, redundant backup of the data can be ensured and the accessibility of the data can be improved. At the same time, the cloud database can provide efficient data management and query services. Compared with the contract database, the cloud database has greater advantages in data sharing and storage capacity.

[0020] In the process of uploading data to the cloud database, each encrypted data node is associated to generate an independent cloud verification key and cloud operation key. The cloud verification key is used to ensure the authenticity and integrity of the data and prevent data tampering in the subsequent traceability verification process; the cloud operation key is used to support cloud database operations, such as access control, data query and other functions, and is the basis for data interaction and operation.

[0021] Dynamically split the P cloud operation keys, store the obtained P verification split keys in P second storage areas of P independent storage units, and send the obtained P tracing split keys to the target user.

[0022] The generated P cloud operation keys are dynamically split. Dynamic splitting is to split each cloud operation key to generate a corresponding verification split key and a traceability split key. By splitting the operation key, it is ensured that even if a part of the key is leaked, the entire key system can still remain secure, because the complete verification and traceability process requires the cooperation of multiple split parts to operate effectively.

[0023] The obtained P verification split keys are stored in the second storage area of ​​P independent storage units. Each storage unit corresponds to a different split key. The traceability split key is sent to the target user so that the user can use these keys in the product traceability and anti-counterfeiting verification process to further enhance the traceability and verifiability of the product. After receiving these keys, the user can verify the verification information on the cloud in combination with the verification key.

[0024] After the ripe fruits of the target contracted fruit trees are packed and boxed, a traceability identification code is created that is linked to the contract database.

[0025] When the ripe fruits of the target contracted fruit trees are packed and boxed, a traceability identification code is generated for these fruits. The identification code is a unique identifier used to track the entire life cycle of the batch of fruits. The identification code is associated with the data in the contract database and can provide complete traceability information. Consumers or other parties in the supply chain can obtain detailed information on each link from fruit tree planting to fruit picking and transportation by scanning the identification code. The core function of the traceability identification code is to enable consumers and related personnel to quickly find detailed information about the product by scanning the identification code, which not only improves consumers' trust in product quality and origin, but also helps prevent counterfeiting and ensure food safety.

[0026] After receiving the transport box, the target user scans the traceability identification code to obtain P verification and segmentation keys, and verifies the P cloud verification keys in combination with the P traceability and segmentation keys. If the verification passes, the cloud database is called to perform traceability verification on the data in the P first storage areas to obtain the traceability verification result.

[0027] The target users are the users who contract the target fruit trees. When they receive the transport boxes, they scan the traceability identification code on the transport boxes and obtain P verification and segmentation keys related to the identification code.

[0028] The target user combines the received verification split key with the traceability split key he obtained, and verifies the P cloud verification keys generated by the cloud. This is the first level of verification, and its purpose is to confirm whether the goods in the transport box are consistent with the original plan. If the verification fails, it means that there may be a problem, such as the transport box may be replaced or forged. At this time, the user will be prompted that there is a potential risk. This verification step ensures the correctness and anti-counterfeiting of the product information in the transport box.

[0029] If the first verification is passed, the cloud database is further called to perform traceability verification on the data stored in the P first storage areas in the contracted database. This is the second verification, and its purpose is to confirm whether all traceability data of the product is accurate. If the data does not match the information in the cloud database, the fruit may have been replaced or mis-installed. Through traceability verification, users can ensure that the fruit they receive is original, has not been tampered with, and meets all quality requirements. If the verification fails, a warning will be given and the specific problem of data discrepancy will be identified.

[0030] If both verifications are passed, a traceability verification result is generated and provided, which indicates that the transported fruit is correct and authentic and meets the expected traceability information. Users can obtain full information about the fruit tree planting, growth, picking, transportation, etc. through the traceability verification results, thereby enhancing their trust in product quality and source.

[0031] Furthermore, if Figure 2As shown, the P traceability node data are iteratively associated and encrypted and then synchronized to the cloud database to obtain P cloud verification keys and P cloud operation keys, including:

[0032] According to the sequence of P traceability nodes, the data of the P traceability nodes are encrypted in turn using the RSA algorithm to obtain P initial encryption key pairs; the P initial encryption key pairs are combined in pairs to obtain an initial encryption key pair combination set; the initial encryption key pair combination set is traversed to perform similarity identification to obtain an initial similarity set; it is determined whether the number of initial similarities in the initial similarity set that is greater than or equal to a preset similarity threshold meets a preset number threshold, and if so, a key adjustment instruction is triggered, and the P initial encryption key pairs are iteratively associated and encrypted according to the key adjustment instruction to obtain P adjusted encryption key pairs; the P cloud verification keys and P cloud operation keys are obtained based on the P adjusted encryption key pairs.

[0033] The RSA algorithm is used to encrypt the data of P traceability nodes in turn. RSA is a commonly used public key encryption algorithm. By using the RSA algorithm, the data of each traceability node is encrypted to ensure the confidentiality and integrity of the data during transmission and storage. Specifically, the data of each traceability node is encrypted using the public key in the RSA algorithm. The encrypted data will generate a ciphertext, and an initial encryption key pair will correspond to each traceability node data. RSA encryption uses a pair of public and private keys. The public key is used for encryption, and the private key is used for decryption. Through this process, P initial encryption key pairs are finally obtained, where each key pair corresponds to a traceability node data.

[0034] P initial encryption key pairs are combined in pairs, that is, every two initial encryption key pairs are paired to generate a set of key pair combinations. By combining them in pairs, a set of initial encryption key pair combinations is obtained. This set contains all key pair combinations. Each combination represents an encryption key pair between two traceability node data, providing a basis for subsequent similarity identification.

[0035] The initial encryption key pair combination set is identified by similarity. The purpose of similarity identification is to determine the degree of similarity between each pair of encryption key pairs. The degree of similarity can be measured by comparing the encryption method, encryption result or the difference of the key itself. The similarity of each pair of combinations is calculated to obtain a set of initial similarity values. The similarity values ​​are expressed by metrics such as cosine similarity and hash similarity. If the encryption results of the two are similar or have the same encryption method, they are judged to have a high similarity. On the contrary, if the encryption method or result is greatly different, the similarity is low. In the final initial similarity set, each similarity value represents the degree of similarity between the key pair combinations.

[0036] The preset similarity threshold is a preset standard value used to measure the similarity between two key pairs. If the similarity between two key pairs is greater than or equal to the threshold, the pair of keys is determined to be similar and needs further processing. In addition to the similarity threshold, the system also sets a preset quantity threshold, which means that if the number of combinations that meet the similarity threshold in the initial similarity set reaches the preset quantity threshold, the key adjustment process is triggered, and the key adjustment instruction is triggered. This instruction will start the next step of iterative associated encryption to optimize or adjust the distribution and structure of the encryption key and improve the security of the encryption system. The specific iterative associated encryption process is expanded in detail in subsequent steps. Through iterative associated encryption, P adjusted encryption key pairs are obtained.

[0037] Based on P adjusted encryption key pairs, P cloud verification keys and P cloud operation keys are obtained, among which the cloud verification key is a public key, that is, it can be used publicly and does not need to be kept confidential. The public key is used to encrypt data or perform verification operations. The cloud verification key will be used in the verification process of product traceability. Users can use these public keys to verify the authenticity and integrity of the data; the cloud operation key is a private key, which is used to decrypt or operate on data. The private key needs to be strictly confidential and should not be made public. It will be distributed to the target user and stored in the contract database. The target user needs to combine these private keys with the public key to decrypt the data and verify the traceability information. Through this key pairing mechanism, the security of the data is ensured and unauthorized access and tampering are prevented.

[0038] Further, if yes, a key adjustment instruction is triggered, and P initial encryption key pairs are iteratively associated and encrypted according to the key adjustment instruction to obtain P adjusted encryption key pairs, including:

[0039] Extract the first initial encryption key pair and the second initial encryption key pair whose encryption order is located at the first and second positions from the P initial encryption key pairs; obtain the first encryption method of the first initial encryption key pair and the second encryption method of the second initial encryption key pair; adjust the direction of the second encryption method based on the first encryption method to obtain the second adjusted encryption method; extract the third initial encryption key pair whose encryption order is located at the third position from the P initial encryption key pairs again, obtain the third encryption method of the third initial encryption key pair, and adjust the direction of the third encryption method based on the first encryption method and the second adjusted encryption method to obtain the third encryption method. three adjusted encryption methods; and so on, until the Pth initial encryption key pair whose encryption order is at the Pth position is extracted from the P initial encryption key pairs, the Pth encryption method of the Pth initial encryption key pair is obtained, and the Pth encryption method is directionally adjusted based on the first encryption method, the second adjusted encryption method, the third adjusted encryption method up to the P-1th adjusted encryption method to obtain the Pth adjusted encryption method; based on the first encryption method, the second adjusted encryption method, the third adjusted encryption method up to the Pth adjusted encryption method, the corresponding initial encryption key pairs in the P initial encryption key pairs are re-encrypted respectively to obtain P adjusted encryption key pairs.

[0040] Extract the initial encryption key pairs ranked first and second in encryption order from the P initial encryption key pairs. Assume that the P initial encryption key pairs are arranged in order, for example, key pair 1, key pair 2, ..., key pair P. Select the key pairs ranked first and second to obtain the first initial encryption key pair and the second initial encryption key pair for subsequent encryption method analysis and adjustment.

[0041] The encryption methods of the first initial encryption key pair and the second initial encryption key pair are extracted respectively. For the first initial encryption key pair, the first encryption method is obtained, including the first initial prime number combination, the first public key index and the first private key index; for the second initial encryption key pair, the second encryption method, the second initial prime number combination, the second public key index and the second private key index are obtained. Through these elements, the encryption process can be more finely controlled and optimized.

[0042] Directional adjustment refers to adjusting the second encryption method based on the characteristics of the first encryption method to meet specific encryption requirements or adapt to new security standards. At this time, the adjustment of the second encryption method is directional, and the purpose is to ensure that the second encryption method becomes safer and more stable under certain specific conditions. The specific adjustment includes adjusting the public key index, the private key index, or changing the way the encryption prime numbers are combined, so that the second encryption method can be optimized in terms of encryption strength or performance. After the directional adjustment, the second adjusted encryption method is obtained, which is an encryption method optimized under the guidance of the first encryption method. The second adjusted encryption method has higher security, scalability or adaptability, and can be used in subsequent key encryption and decryption processes.

[0043] Extracting the third initial encryption key pair that is third in the encryption order from the P initial encryption key pairs is similar to the previous steps, but now we are focusing on the key pair that is third in the encryption order. After extracting the third initial encryption key pair, obtain its corresponding third encryption method. The third encryption method also includes elements such as the initial prime number combination, the public key exponent, and the private key exponent. Next, based on the first encryption method and the second adjusted encryption method, make a directional adjustment to the third encryption method. This adjustment is not a simple change, but ensures that the third encryption method develops in a direction away from the first encryption method and the second encryption method. The purpose of this adjustment is to avoid duplication or redundancy between similar encryption methods, thereby enhancing the diversity and security of the encryption system. By moving away from the first encryption method and the second encryption method, the third adjusted encryption method performs more independently and has stronger resistance to attacks during the encryption process.

[0044] And so on, until the Pth initial encryption key pair with the Pth encryption order is extracted from the P initial encryption key pairs. This process is similar to the extraction operation in the previous step, until the last key pair, i.e., the Pth initial encryption key pair, is extracted, and the Pth encryption method corresponding to the Pth initial encryption key pair is obtained. Based on the first encryption method, the second adjusted encryption method, the third adjusted encryption method, and all the way to the P-1th adjusted encryption method, the Pth encryption method is directional adjusted. The purpose of this directional adjustment is to ensure that the Pth encryption method is different from the previous encryption method and develops in an independent and more secure direction. Finally, through the directional adjustment, the Pth adjusted encryption method is obtained. This encryption method is gradually optimized based on all the previously adjusted encryption methods. It has strong security and plays an important role in the entire encryption chain.

[0045] Based on the first encryption method, the second adjusted encryption method, the third adjusted encryption method, and so on to the Pth adjusted encryption method, each of the P initial encryption key pairs is re-encrypted respectively, and each initial encryption key pair will be encrypted according to its corresponding encryption method (including the first encryption method, the second adjusted encryption method, the third adjusted encryption method, etc.). Through the iteration and adjustment of this encryption method, a group of more secure and optimized P adjusted encryption key pairs are finally obtained. Compared with the initial key pairs, these keys are more secure and more adaptable, and can effectively deal with potential attacks and cracking attempts.

[0046] Furthermore, directionally adjusting the second encryption mode based on the first encryption mode to obtain a second adjusted encryption mode includes:

[0047] Calculate the similarity between the first encryption mode and the second encryption mode, compare the calculated result with a preset similarity threshold, and obtain a first adjustment bandwidth; perform multiple random adjustments on the second encryption mode according to the first adjustment bandwidth to obtain a second initial adjustment encryption mode set; traverse and calculate the similarity between the second initial adjustment encryption mode set and the first encryption mode to obtain an initial adjustment similarity set; use the second initial adjustment encryption mode corresponding to the minimum value in the initial adjustment similarity set as the directional second initial adjustment encryption mode; use the directional second initial adjustment encryption mode as the adjustment direction, and adjust the remaining second initial adjustment encryption modes in the second initial adjustment encryption mode set according to the first adjustment bandwidth to obtain a second iterative adjustment encryption mode set; calculate the iterative adjustment similarity set between the second iterative adjustment encryption mode set and the first encryption mode, and determine whether there is an initial adjustment similarity less than or equal to the directional second initial adjustment encryption mode in the iterative adjustment similarity set. If so, update the second iterative adjustment encryption mode corresponding to the minimum value in the iterative adjustment similarity set as the adjustment direction, and continue to perform directional adjustments on the remaining second iterative adjustment encryption modes in the second iterative adjustment encryption mode set until a preset maximum number of adjustments is met, and use the adjustment direction obtained by the last adjustment as the second adjustment encryption mode.

[0048] The similarity between the first encryption method and the second encryption method is calculated. The similarity calculation is to measure the similarity between the two encryption methods, and is measured by metrics such as cosine similarity and Euclidean distance. Specifically, the first encryption method and the second encryption method each contain elements such as a public key exponent, a private key exponent, and an initial prime number combination. When comparing, the similarity between the encryption methods is calculated based on the numerical difference of these elements. If the two encryption methods are very similar, a higher similarity value is given; conversely, if the two encryption methods are very different, the similarity value is lower.

[0049] The calculation result is compared with a preset similarity threshold. The preset similarity threshold is a defined standard used to determine whether two encryption methods are similar enough to require adjustment. If the calculation result is higher than or equal to the preset similarity threshold, it means that the two encryption methods are too similar and need to be adjusted to avoid redundancy or weaknesses in the encryption process. The ratio of the similarity calculation result to the preset similarity threshold is calculated, and the ratio is used as the first adjustment bandwidth. The first adjustment bandwidth represents the scale or amplitude of a single adjustment to the second encryption method, which determines the size of the adjustment. For example, the larger the bandwidth, the larger the adjustment amplitude, and vice versa.

[0050] The second encryption method is randomly adjusted multiple times according to the first adjusted bandwidth. These adjustments are not fixed, but randomly change certain parameters of the second encryption method according to the size of the bandwidth, such as the public key exponent, the private key exponent, or the selection method of the initial prime number combination. The purpose of the random adjustment is to increase the diversity of encryption methods while avoiding overly similar results in the encryption process, thereby improving the security of the encryption system. Through multiple random adjustments, multiple different encryption methods are generated, each encryption method will be different compared to the second encryption method, and these adjusted encryption methods are integrated into the second initial adjusted encryption method set.

[0051] The second initial adjustment encryption method set is traversed. For each encryption method in the set, a similar similarity calculation method similar to the previous one is used to calculate its similarity with the first encryption method. The calculation result reflects the difference between the second initial adjustment encryption method and the first encryption method. A lower similarity value indicates that the two encryption methods are more different, and a higher similarity value indicates that they are more similar. After traversal, each calculated similarity value is stored in the initial adjustment similarity set. This set contains all similarity values ​​between the second initial adjustment encryption method and the first encryption method.

[0052] Traverse the initial adjustment similarity set and find the minimum value. The minimum value represents the second initial adjustment encryption method that is most different from the first encryption method. The second initial adjustment encryption method corresponding to the minimum similarity value is selected as the directional second initial adjustment encryption method. This encryption method is the choice with the greatest difference between the current encryption method and the first encryption method. Therefore, it will serve as a directional reference for subsequent encryption adjustments. The selection of this encryption method means that in the subsequent encryption process, adjustments will be made in a direction that is more different from the first encryption method, further increasing the complexity and security of the system.

[0053] The second initial adjustment encryption method is used as the reference direction in the subsequent adjustment process, which means that other encryption methods will be adjusted according to the characteristics of this encryption method, so that the similarity between these encryption methods and the first encryption method is further reduced. Based on the second initial adjustment encryption method and the first adjustment bandwidth, the remaining encryption methods in the second initial adjustment encryption method set are adjusted. The adjustment process involves changing the public key index, the private key index, or adjusting the initial prime number combination, etc. Through the iterative method, the security and independence of these encryption methods can be gradually optimized. After multiple adjustments, a new set is obtained, which is the second iterative adjustment encryption method set. This set contains all the adjusted encryption methods, which are less similar to the first encryption method, thereby improving the security of the system.

[0054] A similar similarity calculation method is used to calculate the similarity between each encryption method in the second iteratively adjusted encryption method set and the first encryption method, and an iteratively adjusted similarity set is obtained. The iteratively adjusted similarity set contains the similarity values ​​between all these encryption methods and the first encryption method for subsequent selection and adjustment.

[0055] Check all similarity values ​​in the iteratively adjusted similarity set to determine whether there is a value less than or equal to the initial adjusted similarity corresponding to the second initial adjusted encryption method in the direction. The initial adjusted similarity is the minimum similarity value selected in the previous step. The encryption method with a similarity value less than or equal to this value will be further optimized as a target. If this situation exists, it means that some encryption methods have been sufficiently different from the first encryption method, and can continue to be adjusted to further enhance the independence of the encryption methods.

[0056] If a value less than or equal to the above initial adjustment similarity is found in the iterative adjustment similarity set, the encryption key pair corresponding to the encryption method will be selected as the new adjustment direction and updated to the adjustment direction of the second iterative adjustment encryption method. The remaining encryption methods in the second iterative adjustment encryption method set will continue to be directional adjusted with this adjustment direction. This process will continue until all encryption methods are adjusted in the target direction. This adjustment process is iterative, that is, adjustments will be made repeatedly until a preset maximum number of adjustments is met. The adjustment number limit ensures that the encryption system will not cause too low computational efficiency due to too many adjustments while ensuring security. Finally, after multiple adjustments, the adjustment direction obtained in the final adjustment is selected and used as the second adjusted encryption method. This encryption method has a greater difference from the first encryption method, ensuring the diversity and anti-attack ability of the encryption key.

[0057] Furthermore, if there is an initial adjustment similarity greater than the initial adjustment similarity corresponding to the second initial adjustment encryption method in the iterative adjustment similarity set, the second encryption method is randomly adjusted multiple times according to the first adjustment bandwidth, and the second initial adjustment encryption method set is updated according to the adjustment result.

[0058] Check all similarity values ​​in the iteratively adjusted similarity set to determine whether there is a value greater than the initial adjustment similarity corresponding to the second initial adjustment encryption method in the direction. If so, make multiple random adjustments to the second encryption method based on the first adjustment bandwidth calculated previously. This means re-adjusting the second encryption method and trying to modify its parameters in different ways to make it develop in a more secure or independent direction. The random adjustment process means that each adjustment to the second encryption method is uncertain, so multiple different encryption methods may be obtained. After multiple random adjustments, update the second initial adjustment encryption method set based on the adjusted encryption method results. The updated set contains more encryption methods with different characteristics, providing the system with greater flexibility and security options.

[0059] Furthermore, the first encryption method includes a first initial prime number combination, a first public key exponent and a first private key exponent.

[0060] The first encryption method includes a first initial prime number combination, a first public key exponent and a first private key exponent, and these elements together determine the working principle and encryption strength of the RSA encryption system.

[0061] In the RSA encryption algorithm, the initial prime number combination refers to two large prime numbers (usually called p and q), which are the basis for generating public and private keys. Through these two prime numbers, the RSA algorithm can calculate the modulus n (that is, n=p×q) and other related key parameters. The prime number combination directly affects the security of the encryption algorithm. The initial prime number combination is the core element in the RSA encryption system, which determines the strength of the encryption key pair. If the selected prime numbers are small or easier to decompose, it may lead to the cracking of the encryption process.

[0062] The public key exponent is part of the public key and is usually represented by an integer e (usually a common number such as 65537). It is a positive integer less than φ(n) and is coprime with φ(n) to ensure that the encryption and decryption processes work properly. In the RSA algorithm, the role of the public key exponent is to encrypt messages during the encryption process.

[0063] The private key exponent is part of the private key, usually represented as d. In the RSA algorithm, the private key is used to decrypt encrypted messages. The private key exponent d is the modular inverse of the public key exponent e and φ(n). During the decryption process, the private key exponent d is used to restore the original plaintext.

[0064] Further, dynamically splitting the P cloud operation keys, storing the obtained P verification split keys in P second storage areas of P independent storage units, and sending the obtained P traceability split keys to the target user, includes:

[0065] A random number generator is used to generate P random number combinations, wherein each random number combination includes a first random number and a second random number, and each random number combination corresponds to a cloud operation key; the first random number in any random number combination of the P random number combinations is divided by the sum of the first random number and the second random number in the random number combination to obtain P dynamic split ratios; the P cloud operation keys are split using the P dynamic split ratios to obtain P verification split keys and P traceability split keys.

[0066] A random number generator, such as the rand function, is used to generate P random number combinations. Each random number combination consists of two random numbers, called the first random number and the second random number. These random number combinations are used in the subsequent key splitting process. Each random number combination corresponds to a cloud operation key. These keys are used for operation verification between the cloud and the user.

[0067] The dynamic split ratio is calculated based on the first random number and the second random number. The specific calculation method is that for any random number combination, the ratio of the first random number to the sum of the first random number and the second random number in the random number combination is calculated, and the obtained ratio is used as a dynamic split ratio. This ratio will determine the subsequent splitting method of the cloud operation key, ensuring that the size and distribution of each key part are dynamically changed based on the generated random number. The calculation of the dynamic split ratio ensures that each cloud operation key is split into multiple parts, and the size of these parts will change with the change of the random number, making the key splitting more flexible and unpredictable, thereby increasing the security of the key system.

[0068] Each cloud operation key is split using the calculated P dynamic split ratios. Each cloud operation key will be divided into two parts according to the corresponding dynamic split ratio, one is the verification split key, and the other is the traceability split key. Specifically, the dynamic split ratio determines the split ratio of the cloud operation key. For example, if a split ratio is 0.7, then 70% of the cloud operation key will be used as a verification key and 30% as a traceability key, and vice versa. After each cloud operation key is split, P verification split keys and P traceability split keys are obtained. The verification split key is used in the subsequent verification process, while the traceability split key helps ensure that the product can confirm its source and authenticity during the traceability process.

[0069] In summary, the product traceability management method for global information processing provided by the embodiment of the present application has the following technical effects:

[0070] By storing the P traceability node data of the target contracted fruit trees in the contracting database and encrypting them and synchronizing them to the cloud database, the security and privacy protection of the data are ensured. Each traceability node data is iteratively encrypted, and a cloud verification key and an operation key are generated. This encryption method effectively prevents the risk of data leakage or tampering, and provides a reliable encryption basis for subsequent traceability verification. By dynamically dividing the P cloud operation keys and storing and transmitting the divided keys to the target users respectively, this method increases the security of the traceability verification process. By dividing the key into multiple parts, the risk of loss or leakage of a single key is avoided, and at the same time, it ensures that the key is difficult to be intercepted or cracked during transmission. When the target user receives the packaging box and scans the traceability identification code, they can verify the data in the cloud database by verifying the segmentation key and the traceability segmentation key. This mechanism ensures that users can obtain all the information from the planting process, packaging to the final transportation of the target fruit trees. Any link can be matched with the contract database through cloud verification, so as to achieve transparency and credibility of the whole process. After the target user receives the product and scans the traceability identification code, the cloud verification key is verified by combining the traceability segmentation key and the verification segmentation key, which further improves security. Since the key is distributed and segmented, the attacker needs to crack multiple parts to obtain the complete verification key, which makes the entire traceability system highly resistant to attacks.

[0071] Embodiment 2, as Figure 3 The figure is a schematic diagram of the structure of an exemplary electronic device of the present application. Figure 3 In the embodiment, the bus architecture is represented by bus 300, which may include any number of interconnected buses and bridges, and bus 300 connects various circuits including one or more processors represented by processor 302 and memory represented by memory 304. Bus 300 may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 305 provides an interface between bus 300 and receiver 301 and transmitter 303. Receiver 301 and transmitter 303 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 302 is responsible for managing bus 300 and general processing, while memory 304 may be used to store data used by processor 302 when performing operations.

[0072] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. 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 application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A product traceability management method for global information processing, characterized in that: The method comprises: After the P traceability nodes of the target contracted fruit trees are completed, the P traceability node data are respectively stored in the P first storage areas of the P independent storage units in the contracting database, and the P traceability node data are iteratively associated and encrypted and then synchronized to the cloud database to obtain P cloud verification keys and P cloud operation keys, where P is a positive integer; Dynamically splitting P cloud operation keys, storing the obtained P verification split keys in P second storage areas of P independent storage units, and sending the obtained P traceability split keys to target users, including: Generate P random number combinations using a random number generator, wherein each random number combination includes a first random number and a second random number, and each random number combination corresponds to a cloud operation key; The first random number in any random number combination of the P random number combinations is respectively divided by the sum of the first random number and the second random number in the random number combination to obtain P dynamic split ratios; The P cloud operation keys are respectively divided using the P dynamic division ratios to obtain P verification division keys and P tracing division keys; After the ripe fruits of the target contracted fruit trees are packed and boxed, a traceability identification code is created that is linked to the contracting database; After receiving the transport box, the target user scans the traceability identification code to obtain P verification and segmentation keys, and verifies the P cloud verification keys in combination with the P traceability and segmentation keys. If the verification passes, the cloud database is called to perform traceability verification on the data in the P first storage areas to obtain the traceability verification result.

2. A product traceability management method for global information processing as claimed in claim 1, characterized in that: The P traceability node data are iteratively associated and encrypted and then synchronized to the cloud database to obtain P cloud verification keys and P cloud operation keys, including: According to the order of the P traceability nodes, the data of the P traceability nodes are encrypted in sequence using the RSA algorithm to obtain P initial encryption key pairs; Combining the P initial encryption key pairs in pairs to obtain a combination set of initial encryption key pairs; Traversing the initial encryption key pair combination set to perform similarity identification to obtain an initial similarity set; Determine whether the number of initial similarities in the initial similarity set that is greater than or equal to a preset similarity threshold meets a preset number threshold, and if so, trigger a key adjustment instruction, and iteratively associate and encrypt the P initial encryption key pairs according to the key adjustment instruction to obtain P adjusted encryption key pairs; The P cloud authentication keys and the P cloud operation keys are obtained based on the P adjusted encryption key pairs.

3. A product traceability management method for global information processing as claimed in claim 2, characterized in that: If yes, a key adjustment instruction is triggered, and P initial encryption key pairs are iteratively associated and encrypted according to the key adjustment instruction to obtain P adjusted encryption key pairs, including: Extracting a first initial encryption key pair and a second initial encryption key pair located at the first and second positions in encryption order from the P initial encryption key pairs; Obtain a first encryption method for a first initial encryption key pair and a second encryption method for a second initial encryption key pair; Directionally adjusting the second encryption method based on the first encryption method to obtain a second adjusted encryption method; Extracting a third initial encryption key pair whose encryption order is third from the P initial encryption key pairs again, obtaining a third encryption mode of the third initial encryption key pair, and directionally adjusting the third encryption mode based on the first encryption mode and the second adjusted encryption mode to obtain a third adjusted encryption mode; The same process is repeated until a Pth initial encryption key pair whose encryption order is at the Pth position is extracted from the P initial encryption key pairs, a Pth encryption mode of the Pth initial encryption key pair is obtained, and a direction adjustment is performed on the Pth encryption mode based on the first encryption mode, the second adjusted encryption mode, the third adjusted encryption mode, and finally the P-1th adjusted encryption mode to obtain a Pth adjusted encryption mode; Based on the first encryption method, the second adjusted encryption method, the third adjusted encryption method, and finally the Pth adjusted encryption method, the corresponding initial encryption key pairs among the P initial encryption key pairs are re-encrypted to obtain P adjusted encryption key pairs.

4. A product traceability management method for global information processing as claimed in claim 3, characterized in that: Directionally adjusting the second encryption method based on the first encryption method to obtain a second adjusted encryption method includes: Calculating the similarity between the first encryption method and the second encryption method, and comparing the calculated result with a preset similarity threshold to obtain a first adjusted bandwidth; Randomly adjusting the second encryption mode multiple times according to the first adjustment bandwidth to obtain a second initial adjustment encryption mode set; Traversing and calculating the similarity between the second initial adjusted encryption mode set and the first encryption mode to obtain an initial adjusted similarity set; The second initial adjustment encryption mode corresponding to the minimum value in the initial adjustment similarity set is used as the second initial adjustment encryption mode in the direction; Taking the second initial adjustment encryption mode in the direction as the adjustment direction, adjusting the remaining second initial adjustment encryption modes in the second initial adjustment encryption mode set according to the first adjustment bandwidth, to obtain a second iterative adjustment encryption mode set; Calculate the iterative adjustment similarity set between the second iterative adjustment encryption method set and the first encryption method, and determine whether there is an initial adjustment similarity less than or equal to the directional second initial adjustment encryption method in the iterative adjustment similarity set; if so, update the second iterative adjustment encryption method corresponding to the minimum value in the iterative adjustment similarity set to the adjustment direction, and continue to perform directional adjustment on the remaining second iterative adjustment encryption methods in the second iterative adjustment encryption method set until the preset maximum number of adjustments is met, and use the adjustment direction obtained from the last adjustment as the second adjustment encryption method.

5. A product traceability management method for global information processing as claimed in claim 4, characterized in that: If there is an initial adjustment similarity greater than the initial adjustment similarity corresponding to the second initial adjustment encryption method in the iterative adjustment similarity set, the second encryption method is randomly adjusted multiple times according to the first adjustment bandwidth again, and the second initial adjustment encryption method set is updated according to the adjustment result.

6. The product traceability management method of global information processing as claimed in claim 3 is characterized in that: The first encryption method includes a first initial prime number combination, a first public key exponent and a first private key exponent.

7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: The processor executes the computer program to implement the steps of a product traceability management method for global information processing according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Anti-counterfeiting tracing method for steel pipe and anti-counterfeiting steel pipe

    CN118246934A