Method, system and device for encrypting mold design data and storage medium

By establishing a tree structure framework and sequence value calculation of mold design data, the existing mold design data encryption methods are solved, and the data is efficient and reliable in the encryption and decryption process is achieved.

CN119848891AInactive Publication Date: 2025-04-18KEYITENG PRECISION MANUFACTURING (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411910563.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing mold design data encryption method is complex, and specific programs are required for decryption, which increases the risk of leakage; the encryption process lacks integrity, resulting in confusion in data logic, and manual comparison is required to restore the correct order, which reduces efficiency.

Method used

By obtaining the dimension characteristics of the mold design, a corresponding dimension characteristic database is established, and orderly sorted, and a tree-like structure framework is established. Then, data processing is performed based on the upper and lower levels of data, the upper and lower levels of sequence values ​​are calculated, and the mold clamping and mold output sequence value formulas are calculated, and finally the data is encrypted based on the mold clamping and mold output sequence values ​​to obtain the encrypted data set.

Benefits of technology

Optimize the encryption algorithm to enhance the logical correlation and accuracy of the data, ensure the security of mold design data during the encryption and decryption process, and at the same time improve the accuracy of the data, ensuring the efficiency and reliability of the decryption process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119848891A_ABST
    Figure CN119848891A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of mold design, and discloses a mold design data encryption method, system and device and a storage medium. The method comprises the steps of obtaining size features of mold design, establishing a size feature database according to the size features, performing ordered sorting according to the size feature database to obtain an upper level and a lower level, establishing a tree-shaped structure frame, performing data processing according to the upper level and the lower level to obtain an upper level sequence value and a lower level sequence value, and storing the upper level sequence value and the lower level sequence value in the tree-shaped structure frame. According to the upper-level sequence value and the lower-level sequence value, mold closing sequence value formula calculation is carried out, and a mold closing sequence value is obtained; performing mold stripping sequence value calculation according to the upper-level sequence value and the lower-level sequence value to obtain a mold stripping sequence value; and performing data encryption storage according to the mold closing sequence value and the mold stripping sequence value to obtain an encrypted data set. According to the method, the safety of the mold design data can be effectively improved, and the confidentiality of the data in the transmission and storage process is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mold design, and in particular to an encryption method, system, device and storage medium for mold design data. Background Art

[0002] In the field of mold design, molds are used as precision tools in many industries such as construction, transportation, and water conservancy. The core function of a mold is to mold materials into a final product through a specific shape, so the dimensional information in mold design is crucial. The accuracy of mold design directly affects the quality and performance of the finished product, especially during the mold closing and demolding process, when the size of the mold needs to be strictly controlled. However, in the actual mold design and manufacturing process, design data, especially dimensional data, often faces the risk of being stolen or leaked.

[0003] Most of the existing mold design data protection methods encrypt the design data and store it in a database, and use functional relationships to process the data. However, these methods have many shortcomings: first, the functional relationships used in data encryption are often complex, resulting in the need for specific programs to decrypt the encrypted data, increasing the possibility of leaks; second, the existing methods lack the overall correlation between data during the encryption and storage process, resulting in a chaotic logical relationship of the decrypted data, requiring manual comparison of the database to restore the correct order of the data, increasing time costs and affecting production efficiency.

[0004] In summary, the existing mold design data encryption method is complex and requires a specific procedure for decryption, which increases the risk of leakage. The encryption process lacks integrity, resulting in chaotic data logic, and manual comparison is required to restore the correct order, which reduces efficiency. Summary of the invention

[0005] The present invention provides a method, system, device and storage medium for encrypting mold design data, which effectively solves the problems in the prior art of overly complicated encryption process, logical confusion during data storage and decryption, and errors after decryption. By optimizing the encryption algorithm and enhancing the logical relevance and accuracy of the data, the security of the mold design data during the encryption and decryption process is ensured, while the accuracy of the data is improved, ensuring the efficiency and reliability of the decryption process.

[0006] In a first aspect, in order to solve the above technical problems, the present invention provides a method for encrypting mold design data, comprising:

[0007] Acquire the dimensional features of the mold design; wherein the dimensional features include the three-dimensional dimensional features of the mold, the contour dimensional features of the mold, and the positioning dimensional features of the mold;

[0008] According to the size feature, a corresponding size feature database is established;

[0009] According to the size feature database, orderly sorting is performed to obtain an upper level and a lower level, and a tree structure framework is established;

[0010] According to the upper level and the lower level, data processing is performed to obtain an upper level sequence value and a lower level sequence value;

[0011] According to the upper level sequence value and the lower level sequence value, a mold closing sequence value formula is calculated to obtain a mold closing sequence value;

[0012] According to the upper level sequence value and the lower level sequence value, a formula for calculating the out-of-module sequence value is performed to obtain an out-of-module sequence value;

[0013] Data is added according to the mold closing sequence value and the mold exiting sequence value to obtain an encrypted data set.

[0014] Preferably, the dimensional features of the mold design are obtained, including: length, width and height;

[0015] The outline size features include: vertex size, edge size and surface size;

[0016] The positioning dimension features include: reference feature dimensions and positioning feature dimensions.

[0017] Preferably, data is classified and sorted according to the size features to obtain a size feature database.

[0018] Preferably, the size feature database is sorted in order to obtain an upper level and a lower level, and a tree structure framework is established, including:

[0019] According to the size characteristics, the size is divided into upper and lower levels;

[0020] According to the upper level and the lower level, the levels are arranged in order to obtain a tree structure framework; wherein the tree structure framework includes an upper level and a lower level.

[0021] Preferably, the performing data processing according to the upper level and the lower level to obtain the upper level sequence value and the lower level sequence value includes:

[0022] Acquire the upper-level data and the lower-level data;

[0023] Calculate the average value according to the upper-level data to obtain the upper-level sequence value;

[0024] An average value is calculated based on the lower-level data to obtain a lower-level sequence value.

[0025] Preferably, the mold closing sequence value formula is performed according to the upper level sequence value and the lower level sequence value in the tree structure framework to obtain the mold closing sequence value;

[0026] The calculation formula of the closing mode sequence value is:

[0027]

[0028] Among them, S h is the mold sequence value, a1 is the upper level sequence value, a2 is the lower level sequence value, A is the difference between the maximum and minimum sizes of the upper level, and B is the difference between the maximum and minimum sizes of the lower level.

[0029] Preferably, the step of calculating the output sequence value formula according to the upper-level sequence value and the lower-level sequence value to obtain the output sequence value;

[0030] The calculation formula of the output sequence value is:

[0031]

[0032] Among them, S o is the demolding sequence value, a1 is the upper level sequence value, a2 is the lower level sequence value, A is the difference between the maximum and minimum sizes of the upper level, and B is the difference between the maximum and minimum sizes of the lower level.

[0033] Preferably, the step of encrypting data according to the mold closing sequence value and the mold exiting sequence value to obtain an encrypted data set comprises: performing an XOR operation according to the mold closing sequence value, the mold exiting sequence value and a preset key sequence to obtain an encrypted data sequence;

[0034] According to the encrypted data sequence, integration is performed to obtain an encrypted data set.

[0035] In a second aspect, the present invention provides a mold design data encryption method system, characterized in that it includes:

[0036] Data acquisition module, used to obtain the dimensional features of the mold design;

[0037] A database establishment module, used to establish a dimension feature database according to the dimension feature;

[0038] An ordered sorting module, used for performing ordered sorting according to the size feature database to obtain an upper level and a lower level;

[0039] A sequence value calculation module, used for performing data processing according to the upper level and the lower level to obtain an upper level sequence value and a lower level sequence value;

[0040] A mold closing sequence value calculation module, used to calculate the mold closing sequence value formula according to the upper-level sequence value and the lower-level sequence value to obtain the mold closing sequence value;

[0041] A module for calculating an out-of-module sequence value, configured to calculate an out-of-module sequence value formula according to the upper-level data and the lower-level data to obtain an out-of-module sequence value;

[0042] The data encryption storage module is used to encrypt data according to the mold closing sequence value and the mold exiting sequence value to obtain an encrypted data set.

[0043] In a third aspect, the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements any one of the above-mentioned methods for encrypting mold design data when executing the computer program.

[0044] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned methods for encrypting mold design data.

[0045] Compared with the prior art, the present invention has the following beneficial effects:

[0046] The present invention discloses a method for encrypting mold design data. The method can establish a corresponding size feature database according to size features, then perform orderly sorting according to the size feature database to obtain an upper level and a lower level, and establish a tree structure framework, then perform calculation according to the upper level data and the lower level data to obtain an upper level sequence value and a lower level sequence value, then perform a mold closing sequence value formula calculation according to the upper level sequence value and the lower level sequence value to obtain a mold closing sequence value, then perform a mold release sequence value according to the upper level sequence value and the lower level sequence value to obtain a mold release sequence value, and finally perform data encryption according to the mold closing sequence value and the mold release sequence value to obtain an encrypted data set, thereby ensuring the confidentiality of data during transmission and storage. The present invention ensures the security of mold design data during encryption and decryption by optimizing the encryption algorithm and enhancing the logical relevance and accuracy of data, while improving the accuracy of data and ensuring the efficiency and reliability of the decryption process. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic flow chart of a method for encrypting mold design data provided by a first embodiment of the present invention;

[0048] Figure 2It is a schematic diagram of the system structure of the mold design data encryption method provided by the second embodiment of the present invention. DETAILED DESCRIPTION

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

[0050] Reference Figure 1 The first embodiment of the present invention provides a method for encrypting mold design data, comprising the following steps:

[0051] S11, obtaining the dimensional features of the mold design;

[0052] S12, establishing a size feature database according to the size feature;

[0053] S13, performing orderly sorting according to the size feature database to obtain an upper level and a lower level, and establishing a tree structure framework;

[0054] S14, performing data processing according to the upper level and the lower level to obtain an upper level sequence value and a lower level sequence value;

[0055] S15, performing a mold closing sequence value formula calculation according to the upper level sequence value and the lower level sequence value to obtain a mold closing sequence value;

[0056] S16, performing a mold-out sequence value formula calculation according to the upper-level sequence value and the lower-level sequence value to obtain a mold-out sequence value;

[0057] S17, encrypting data according to the mold closing sequence value and the mold exiting sequence value to obtain an encrypted data set;

[0058] In step S11, the dimension characteristics of the mold design are obtained.

[0059] It is worth mentioning that the dimensional features include the three-dimensional dimensional features of the mold, the contour dimensional features of the mold, and the positioning dimensional features of the mold.

[0060] Three-dimensional dimensional features include length, width and height. The length of a mold refers to the extension of the mold in one dimension. It can be the outermost edge of the mold as a whole, or the distance from one end to the other inside the mold cavity. In complex molds, the length may also include the accumulation of different segments, especially in segmented molds or molds containing multiple cavities, the length of each segment or each cavity is crucial.

[0061] It is worth noting that the width of the mold refers to the spatial extension of the mold in a direction perpendicular to the length. This dimension determines the coverage of the mold in this direction and directly affects the plane profile of the mold. The width of the mold includes not only the width of the external contour, but also the width of each part inside the mold cavity. Especially in complex molds, the width determines the spacing between each part and the accuracy of the size. The width design of the mold needs to be very precise, especially when multiple combined processing is required. Slight differences in width may affect the overall matching accuracy of the mold and the consistency of the product.

[0062] It is worth noting that the height of the mold refers to the extension of the mold in the direction perpendicular to the length and width. This dimension is usually closely related to the thickness of the mold or the depth of the mold cavity. In many cases, the height of the mold determines the depth of the mold cavity, which affects the volume and appearance of the molded product. For example, in injection molding, the height design of the mold affects the wall thickness, volume and structural strength of the molded part. The accuracy of the mold height design is very important because it not only affects the service life of the mold, but is also directly related to the quality of the finished product.

[0063] Contour dimension features include: vertex dimensions, edge dimensions and face dimensions. The vertex dimensions of a mold refer to the angle features between different surfaces of the mold, and are usually used to describe the geometry of each corner on the mold. These angles can be acute, obtuse or right angles, depending on the design requirements. The accuracy of the vertex dimensions is critical, especially at the corners of the mold. The accuracy of the vertex angles determines whether the molded product has a clear outline. The smooth transition or sharpness of the vertex angles needs to be considered during the design process to ensure the quality of the molded product. For example, in a mold with a complex shape, the angle design of the vertex angles not only affects the molding accuracy of the mold, but also affects the durability and processing difficulty of the mold.

[0064] It is worth noting that the edge size of the mold refers to the length and shape of each edge on the mold. These edges may be located outside the mold or may be transition edges inside the mold cavity. The edge size not only affects the overall outline of the mold, but also determines the edge characteristics of the molded product, such as the straightness and sharpness of the edge line. In mold design, the treatment of edges needs to balance the appearance requirements of the product and the machinability of the mold. For example, edges that are too sharp will cause the mold to be fragile, while edges that are too smooth may not meet the requirements of the finished product. Therefore, designers need to determine the appropriate edge size based on the purpose and material characteristics of the product.

[0065] It is worth noting that the surface size of the mold refers to the area and dimensional characteristics of each surface of the mold. The design of the surface size directly determines the surface quality and shape of the molded product. The surface size can be flat or curved, depending on the structural requirements of the mold. The surface size not only affects the appearance of the mold, but also affects the functionality of the mold. For example, some surfaces may be used to support the molded part or to clamp the mold. For the molded product, the accuracy of the surface size has a direct impact on the surface finish and dimensional tolerance requirements.

[0066] Positioning dimension features include reference feature dimensions and positioning feature dimensions. Among them, the reference feature dimensions of the mold refer to the key dimensions that serve as reference points or benchmarks during the design and processing of the mold. These reference features are usually used to locate and align other parts of the mold to ensure the accuracy of the entire mold system. In all stages of mold production, the reference feature dimensions play a core role. They can be the dimensions of a specific location or a combination of multiple dimensions. The design of the reference feature dimensions is crucial, as it directly determines the installation accuracy of the mold on the production equipment and the dimensional consistency of the molded product.

[0067] It is worth mentioning that the positioning feature dimensions of the mold refer to the key dimensions that ensure that the mold can be properly fixed or aligned in the equipment during installation or operation. These dimensions usually include the dimensions of holes, notches, and positioning pins and their relative positions to ensure that the mold can be quickly and accurately positioned in the production equipment. The positioning feature dimensions also involve the coordination between the mold and the mold base, fixtures, robotic arms and other equipment to ensure that the mold is accurately positioned each time it is assembled or used to avoid problems such as misalignment or tilting.

[0068] In summary, dimensional features play a vital role in mold design. They not only determine the geometry and structure of the mold, but also directly affect the precision of the mold and the quality of the molded parts. The three-dimensional space dimensions ensure that the overall shape of the mold meets the design requirements, while the contour dimensions determine the appearance of the mold and the details of the edges, ensuring that the molded products have clear boundaries and good surface quality. The positioning dimensions ensure the accurate positioning of the mold during the production process, avoid error accumulation, and ensure the precise assembly of each component. In general, dimensional features run through all aspects of mold design, manufacturing and finished products, and are the core elements to ensure mold functionality and molded parts quality.

[0069] In step S12, a dimension feature database is established according to the dimension feature.

[0070] It is worth noting that the three-dimensional dimensional features are the basic geometric data of the mold, mainly including the length, width and height of the mold. When establishing a database, you first need to extract these data from the design drawings or CAD models. The length, width and height data can be entered into the database through the automatic extraction function of the software and stored in a unified format. Each dimensional data will be assigned a unique identifier to ensure accurate reference in subsequent processing.

[0071] It is worth noting that the contour dimension features describe the external and internal shape characteristics of the mold, mainly including vertex dimensions, edge dimensions and surface dimensions. These data usually need to be extracted from complex geometric forms, especially in curved and irregular shaped molds. The vertex dimensions need to record the angles between different geometric planes; the edge dimensions involve the edge length of the mold; and the surface dimensions correspond to the area or shape of different surfaces of the mold. Once these data are obtained, they will be stored in various levels of the database by category. In order to ensure the traceability and structured management of the data, the contour dimensions are usually stored in association with the three-dimensional space dimensions to form a complete geometric description.

[0072] It is worth mentioning that the positioning dimension features are key data used to ensure that the mold can be accurately positioned during the processing and assembly process, mainly including the reference feature dimensions and positioning feature dimensions. The reference feature dimensions are used to identify the reference points or reference surfaces in the mold, such as the center axis or symmetry plane of the mold. These data are usually stored as reference dimensions in the database. The positioning feature dimensions are the dimensions of important assembly positions or fixture positioning points in the mold, such as the diameter of the positioning hole or the surface size in contact with the fixture. In order to ensure the accuracy of positioning, these data must be strictly calibrated and entered into the database in a high-precision format.

[0073] Through this step, all dimensional features are systematically stored in the dimensional feature database, ensuring the integrity and accuracy of the data. The construction of the database not only provides a clear input source for the subsequent encryption algorithm, but also ensures that the original data can be quickly and accurately restored during the decryption process.

[0074] In step S13, the size feature database is sorted in an orderly manner to obtain an upper level and a lower level, and a tree structure framework is established.

[0075] It is worth noting that the step of orderly sorting the dimension feature database, obtaining the upper level and the lower level, and establishing a tree structure framework is a key link in organizing and structuring the dimension data in the database. First, the data in the database are arranged in order according to the type and size of the dimension feature. These dimension features include three-dimensional space dimensions, contour dimensions, and positioning dimensions. By sorting these data from small to large, not only can the logical order of the data be ensured, but also the foundation for subsequent hierarchical division can be laid.

[0076] After the sorting is completed, the data in the database needs to be divided into upper and lower levels. The upper level usually contains basic three-dimensional spatial dimension features. These data are the core geometric description of the mold and determine the overall shape and space occupancy of the mold. Therefore, they are usually considered to be more basic data and are located at the top level of the tree structure. The lower level contains contour dimension features and positioning dimension features. These data are related to the details and specific functions of the mold, are located in the lower layer, and are used to describe the fine structure of the mold.

[0077] On the basis of hierarchical division, a tree structure framework is constructed. The tree structure is a way of data organization. It forms a hierarchical framework by associating the upper and lower level data. In this framework, the upper level data is used as the root node and the lower level data is used as the branch node. The upper level data is connected to the lower level data through a predetermined functional relationship or logical rule. This relationship may be linear or nonlinear, depending on the complexity and requirements of the mold design. Through this hierarchical organization method, the structured management of the data in the database is ensured, so that the data at each layer can be effectively associated and have a clear logical order.

[0078] The establishment of the tree structure framework not only provides a basis for subsequent data encryption, but also makes the dependencies between data closer. This structure can protect the integrity of the data during the encryption process and ensure that the data can be restored in the original logical order during decryption, thereby ensuring the security and consistency of the mold design data.

[0079] In step S14, data processing is performed according to the upper level and the lower level to obtain an upper level sequence value and a lower level sequence value.

[0080] It is worth noting that, in order to calculate the average value based on the upper-level data and the lower-level data to obtain the upper-level sequence value and the lower-level sequence value, it is necessary to first obtain the upper-level and lower-level data from the database. The upper-level data usually includes the three-dimensional spatial dimension characteristics of the mold, which determine the overall geometric shape of the mold, such as basic dimensions such as length, width and height. These data are the basic information for mold design and are used to describe the macroscopic geometric structure of the mold. The system first extracts these upper-level data and processes them. Specifically, the system calculates the average value of all data points in the upper level, and generates an upper-level sequence value that can represent all data features of the upper level by integrating the values ​​of each data point. The calculation result of this upper-level sequence value is a simplification and generalization of the upper-level data, which enables complex geometric information to be expressed in a unified numerical value, which is convenient for subsequent encryption processing.

[0081] When processing lower-level data, the system also needs to extract lower-level data from the database first. Lower-level data usually includes detailed dimensional features of the mold, such as the mold's contour dimensions and positioning dimensions. These data are more specific and describe the local morphology and detailed structure of the mold. After obtaining the lower-level data, the system also calculates the average value. By processing the lower-level data, the system can generate a lower-level sequence value. This lower-level sequence value can effectively represent the detailed information of the mold by integrating and calculating each data point in the lower level, ensuring that the data of the local structure in the mold design can be accurately expressed in subsequent processing.

[0082] The entire data processing process simplifies complex data into upper-level and lower-level sequence values ​​by calculating the average value of the upper-level and lower-level data. In this way, the characteristics of the upper-level and lower-level data can be simplified into a unified numerical form, which is convenient for subsequent encryption and storage operations. This step not only makes the data structure more concise, but also ensures that the logical relationship between the upper-level and lower-level data is maintained, providing a basis for subsequent encryption and decryption operations.

[0083] In step S15, a closing mold sequence value formula is calculated according to the upper-level sequence value and the lower-level sequence value to obtain a closing mold sequence value.

[0084] The calculation formula of the closing mode sequence value is:

[0085]

[0086] Among them, S h is the mold sequence value, a1 is the upper level sequence value, a2 is the lower level sequence value, A is the difference between the maximum and minimum sizes of the upper level, and B is the difference between the maximum and minimum sizes of the lower level.

[0087] It is worth noting that the mold closing sequence value is a key concept in the mold design data encryption method. It is used to describe the encrypted calculation results of the dimensional features of the mold in the mold closing state. The mold closing refers to the state in which two or more parts of the mold are closed during the production process. The dimensional accuracy in this state directly affects the quality of the molded product. In order to ensure data security during the mold closing process, the mold closing sequence value is obtained by calculating the dimensional features of the upper and lower levels.

[0088] The calculation of the mold closing sequence value is based on the functional relationship between the upper-level and lower-level data, and usually uses a specific mathematical formula, such as a linear or nonlinear function, to generate a standardized value that can represent the mold closing state. Specifically, the mold closing sequence value calculates the difference, ratio, or other mathematical relationship between the upper-level data and the lower-level data to obtain the dimensional expression of the mold when the mold is closed. For example, during the mold closing process, the upper and lower molds of the mold need to be precisely aligned, and the mold closing sequence value can ensure that the two parts are closed within a precise size range.

[0089] This mold closing sequence value plays a core role in the encryption process because it standardizes the geometric features and operating status of the mold, so that after encryption, the data can accurately represent the dimensional characteristics of the mold when the mold is closed. This encryption method not only improves data security, but also ensures the consistency and accuracy of the mold during the production process, avoiding production errors caused by decryption errors. During decryption, the mold closing sequence value can also quickly and accurately restore the original data of the mold, thereby ensuring smooth production.

[0090] In step S16, the out-of-module sequence value formula is calculated according to the upper-level sequence value and the lower-level sequence value to obtain the out-of-module sequence value.

[0091] The calculation formula of the output sequence value is:

[0092]

[0093] Among them, S o is the demolding sequence value, a1 is the upper level sequence value, a2 is the lower level sequence value, A is the difference between the maximum and minimum sizes of the upper level, and B is the difference between the maximum and minimum sizes of the lower level.

[0094] It is worth noting that the demoulding sequence value is an important parameter in the mold design data encryption process. It is used to describe the encrypted results of the dimensional features of the mold in the demoulding state. Demolding refers to the process of separating the mold from the molded part after production is completed. The size and geometric accuracy of the mold in this process are crucial to the quality of the finished product. The demoulding sequence value is obtained by performing specific mathematical calculations on the upper and lower sequence values ​​of the mold, reflecting the dimensional relationship of the mold when it is demoulded.

[0095] During the encryption process, the demolding sequence value ensures that the dimensional features of the mold when it is demolded can be stored and transmitted in a secure manner to prevent data leakage or tampering. During decryption, the demolding sequence value can also help restore the mold's demolding dimensions to ensure that the expected accuracy and effect are achieved in production. This mechanism greatly improves the security and accuracy of mold data in the demolding process and ensures stable quality of finished products.

[0096] In step S17, data encryption is performed according to the mold closing sequence value and the mold exiting sequence value to obtain an encrypted data set, including:

[0097] According to the combination of the mold closing sequence value, the mold exiting sequence value and the preset key sequence, an XOR operation is performed to obtain an encrypted data sequence;

[0098] According to the encrypted data sequence, integration is performed to obtain an encrypted data set.

[0099] It is worth mentioning that the mold closing sequence value and the mold ejection sequence value. These two sequence values ​​are the core parts of the mold design data, representing the dimensional information of the mold during the mold closing and ejection process respectively. These two sequence values ​​are generated by calculating the dimensional characteristics of the mold to ensure the integrity and consistency of the data. In this process, the mold closing sequence value is generated by the dimensional data of the mold design in the mold closing state, while the ejection sequence value represents the key data of the mold during ejection. These two sequence values ​​are crucial for the subsequent encryption process.

[0100] Next, the combined and output sequence values ​​need to be combined with the preset key sequence. The key sequence is an independently generated random bit string that provides additional security for the encryption process. The length of the key sequence is the same as the combined and output sequence values, which ensures that every bit can participate in the encryption operation. The randomness and confidentiality of the key are important guarantees of encryption security. Any unauthorized person cannot obtain the key. Therefore, even if the encrypted data is obtained, the original information cannot be decrypted.

[0101] After the combined modulus sequence value, the output modulus sequence value and the key sequence are ready, the core XOR operation is performed. The XOR operation, also known as the exclusive OR operation or the modulo 2 addition operation, is used to compare each bit of two or more binary numbers to generate a new binary result. The rules of the XOR operation include: when the two comparison bits are the same, the result is 0; when the two comparison bits are different, the result is 1. This operation method allows the data to be operated bit by bit during the encryption process, thereby effectively improving the operation efficiency.

[0102] Specifically, the combined and output sequence values ​​need to be converted into binary format. Each sequence value will be decomposed into a string of binary numbers, which will be used as the input of the XOR operation. Then, the preset key sequence will also be converted into a binary format of the same length and XORed with the combined and output sequence values ​​bit by bit.

[0103] Assuming that a certain bit of the combined modulus sequence value is 1, the corresponding bit of the output modulus sequence value is 0, and the corresponding bit of the key sequence is 1, the detailed operation process is as follows: First, the combined modulus sequence value 1 and the output modulus sequence value 0 are XORed, and the result is 1; then, this result 1 is XORed with the key sequence 1, and the result is 0. This is because in the XOR operation, the XOR result of 1 and 0 is 1, while the XOR result of 1 and 1 is 0. Through this operation method, each bit of the combined modulus sequence value, the output modulus sequence value, and the key sequence will generate a new encryption result bit.

[0104] The entire XOR operation will be performed on all bits until all the combined and output sequence values ​​are XORed with the key sequence, and finally a new encrypted data sequence is obtained. This encrypted data sequence is generated by performing a bit-by-bit XOR operation on the combined and output sequence values ​​and the key sequence. Its length is the same as the original sequence, but its content has been completely encrypted and cannot be directly restored.

[0105] Next, the system will integrate the generated encrypted data sequences to form an encrypted data set. An encrypted data set is a collection of multiple encrypted data sequences stored in a specific order. At this stage, the encrypted data sequences will be stored in segments according to the storage rules. For example, the encrypted data of the mold sequence value may be stored in the front section of the database, while the encrypted data of the mold sequence value is stored in the middle section of the database. This segmented storage can further improve the security of the data, so that even if someone obtains part of the data, it is impossible to restore the complete information.

[0106] The generation of encrypted data sets not only ensures the security of data during storage and transmission, but also facilitates subsequent retrieval of data through operations such as segmentation and indexing. Each encrypted data sequence will establish an index relationship with its original data after generation, so that the corresponding data can be quickly found through the index during decryption.

[0107] Through the above detailed step description, we can see that the combination of the mold sequence value and the output sequence value with the key sequence realizes the effective encryption of data through XOR operation. The integrated encrypted data set not only ensures the security of data in storage and transmission, but also provides reliable protection for subsequent decryption operations.

[0108] It is worth noting that after the encryption step is completed and the encrypted data set is generated, a decryption step is performed on it.

[0109] Specifically, the first step of the decryption process is to accurately extract the encrypted mold-in sequence value and mold-out sequence value from the encrypted data set. The encrypted data set is generated in the encryption step, which contains the mold-in sequence value and mold-out sequence value that have been encrypted by the key. The decryption operation first needs to find and locate these encrypted data through preset index information. The index information is a unique identifier assigned to each piece of encrypted data during encryption, which is used to ensure that the corresponding encrypted data can be quickly found in the database or other storage system. Through this index information, the system can accurately extract the encrypted mold-in and mold-out sequence values, laying the foundation for subsequent decryption operations.

[0110] After the encrypted data is successfully extracted, the key step of decryption is to reverse the data using the same key sequence used in the encryption process. The key sequence is a randomly generated bit string with high security. During the decryption process, the key must be exactly the same as the key used during encryption. Due to the characteristics of the XOR operation, the decryption process is symmetrical with the encryption process, which means that if the encryption key is XORed, the same key must be used to perform an XOR operation during decryption to restore the original data. Any deviation or key error will cause decryption failure or generate erroneous data. Therefore, the secure management of keys and ensuring consistency are the most important links in the entire decryption process.

[0111] After confirming that the key is correct, the XOR operation in the decryption process officially begins. The XOR operation, also known as the exclusive OR operation, is a simple and efficient bit-level operation that compares two binary numbers bit by bit to generate a new result. Its decryption process is very similar to the encryption process. The rule of bit-by-bit operation is: if the two comparison bits are the same, the result is 0; if the two comparison bits are different, the result is 1. Since the XOR operation is symmetrical, performing the same XOR operation twice can restore the original value. This means that when encrypting, the key and the modulus sequence value are used to perform an XOR operation. When decrypting, the same key and the encrypted data are used to perform an XOR operation to restore the original modulus sequence value.

[0112] Specifically, when decrypting, the system extracts each bit of the encrypted data bit by bit and performs an XOR operation with the corresponding bit of the key sequence. For example, if a bit of the encrypted data is 1 and the corresponding bit of the key sequence is 0, the result of the XOR operation is 1, indicating that this bit of the original data is 1. Conversely, if this bit of the encrypted data is 0 and the corresponding bit of the key is 1, the result of the XOR operation is 1, indicating that this bit of the original data is 0. Through such bit-by-bit operations, each bit of the original data will be gradually restored.

[0113] Suppose we have an encrypted data bit sequence of 10101010 and a key sequence of 11001100. The system will perform XOR operations on these two sequences bit by bit. First, the first bit of the encrypted data is 1, and the first bit of the key is 1. The result of the XOR operation is 0, because the XOR operation result of the same bit is 0. Then, the second bit of the encrypted data is 0, and the second bit of the key is 1. The result of the XOR operation is 1, because the XOR operation result of different bits is 1. In this way, the system will gradually operate on each bit until all bits are calculated. After this process, the original combined and output sequence values ​​will be completely restored.

[0114] During the entire decryption process, each binary bit needs to be matched with the key. This process is not just a simple bit-level operation, but also requires ensuring that all calculations are completed smoothly without errors. The calculation of each bit will affect the subsequent bit processing, so during the decryption process, the system must ensure the accuracy and stability of data processing. Any data error or bit mismatch will cause incorrect decrypted data and affect the final result.

[0115] After completing the XOR operation of all bits, the system generates the original mold closing sequence value and mold release sequence value. These values ​​are completely consistent with the original dimensional characteristics of the mold design after decryption. These two sequence values ​​are the core parameters of mold design and represent the physical dimensions of the mold in the mold closing and mold release states. After decryption, these data will be reintegrated to form a complete decrypted data set.

[0116] The decrypted data can be used for subsequent operations of mold design, such as adjusting or checking the size of the mold during production. By decrypting and restoring the mold closing sequence value and mold opening sequence value, the system can accurately calculate the key dimensions in the mold design to ensure the accuracy and consistency of the mold. This decryption method ensures that the data will not be tampered with during storage and transmission, and the data can be accurately restored when needed.

[0117] In summary, the decryption process is the reverse operation of the encryption process, using the same key and XOR operation characteristics to restore the original data. Through strict bit-level operations and key management, the decryption process can ensure the integrity and accuracy of the data. The security of the key is crucial, which not only determines the strength of encryption, but also ensures that the data can be correctly restored when decrypted. If the key is inconsistent with the encryption, the decryption will fail. Therefore, key management and secure storage is one of the most important links in the entire encryption and decryption process.

[0118] Reference Figure 2 The second embodiment of the present invention provides a mold design data encryption method system, including:

[0119] Data acquisition module, used to obtain the dimensional features of the mold design;

[0120] A database establishment module, used to establish a dimension feature database according to the dimension feature;

[0121] An ordered sorting module, used for performing ordered sorting according to the size feature database to obtain an upper level and a lower level;

[0122] A sequence value calculation module, used for performing data processing according to the upper level and the lower level to obtain an upper level sequence value and a lower level sequence value;

[0123] A mold closing sequence value calculation module, used to calculate the mold closing sequence value formula according to the upper-level sequence value and the lower-level sequence value to obtain the mold closing sequence value;

[0124] The module for calculating the out-of-module sequence value is used to calculate the out-of-module sequence value formula according to the upper-level sequence value and the lower-level sequence value to obtain the out-of-module sequence value;

[0125] Data encryption module: used to encrypt data according to the mold closing sequence value and the mold exiting sequence value to obtain an encrypted data set.

[0126] It should be noted that the encryption method system for mold design data provided in an embodiment of the present invention is used to execute all the process steps of the method for mold design data in the above embodiment. The working principles and beneficial effects of the two correspond one to one, and thus will not be described in detail.

[0127] The embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a mold design data encryption method program. When the processor executes the computer program, the steps in the above-mentioned mold design data encryption method embodiments are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of each module / unit in the above-mentioned system embodiments are realized, such as the mold closing sequence value calculation module.

[0128] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.

[0129] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than the above components, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0130] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.

[0131] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0132] Wherein, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or system capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0133] It should be noted that the system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the system embodiment provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0134] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for encrypting mold design data, characterized in that: include: Acquire the dimensional features of the mold design; wherein the dimensional features include the three-dimensional dimensional features of the mold, the contour dimensional features of the mold, and the positioning dimensional features of the mold; According to the dimensional features, a dimensional feature database is established; According to the size feature database, orderly sorting is performed to obtain an upper level and a lower level, and a tree structure framework is established; According to the upper level and the lower level, data processing is performed to obtain an upper level sequence value and a lower level sequence value; Calculating the mold closing sequence value according to the upper-level sequence value and the lower-level sequence value to obtain the mold closing sequence value; Calculate the out-of-module sequence value according to the upper-level sequence value and the lower-level sequence value to obtain the out-of-module sequence value; Data encryption is performed according to the mold closing sequence value and the mold exiting sequence value to obtain an encrypted data set.

2. The method for encrypting mold design data according to claim 1, characterized in that: The three-dimensional space size characteristics include: length, width and height; The outline size features include: vertex size, edge size and surface size; The positioning dimension features include: reference feature dimensions and positioning feature dimensions.

3. The method for encrypting mold design data according to claim 1, characterized in that: The dimension feature database is sorted in order to obtain the upper level and the lower level, and a tree structure framework is established, including: According to the size characteristics, the size is divided into upper and lower levels; Arrange the upper level and the lower level in order to obtain a tree structure framework; The tree structure framework includes an upper level and a lower level.

4. The method for encrypting mold design data according to claim 1, characterized in that: The performing data processing according to the upper level and the lower level to obtain an upper level sequence value and a lower level sequence value includes: Get upper-level data and lower-level data; Calculate the average value according to the upper-level data to obtain the upper-level sequence value; An average value is calculated based on the lower-level data to obtain a lower-level sequence value.

5. The method for encrypting mold design data according to claim 1, characterized in that: The step of calculating the mold closing sequence value according to the upper-level sequence value and the lower-level sequence value to obtain the mold closing sequence value includes: The closing sequence value is calculated by the following formula: Among them, S h is the mold sequence value, a1 is the upper level sequence value, a2 is the lower level sequence value, A is the difference between the maximum and minimum sizes of the upper level, and B is the difference between the maximum and minimum sizes of the lower level.

6. The method for encrypting mold design data according to claim 1, characterized in that: The step of calculating the out-of-module sequence value according to the upper-level sequence value and the lower-level sequence value to obtain the out-of-module sequence value; The output sequence value is calculated by the following formula: Among them, S o is the demolding sequence value, a1 is the upper level sequence value, a2 is the lower level sequence value, A is the difference between the maximum and minimum sizes of the upper level, and B is the difference between the maximum and minimum sizes of the lower level.

7. The method for encrypting mold design data according to claim 1, characterized in that: The step of encrypting data according to the mold closing sequence value and the mold exiting sequence value to obtain an encrypted data set includes: According to the combination of the mold closing sequence value, the mold exiting sequence value and the preset key sequence, an XOR operation is performed to obtain an encrypted data sequence; According to the encrypted data sequence, integration is performed to obtain an encrypted data set.

8. A mold design data encryption method system, characterized in that: include: Data acquisition module, used to obtain the dimensional features of the mold design; A database establishment module, used to establish a dimension feature database according to the dimension feature; An ordered sorting module, used for performing ordered sorting according to the size feature database to obtain an upper level and a lower level; A sequence value calculation module, used for performing data processing according to the upper level and the lower level to obtain an upper level sequence value and a lower level sequence value; A mold closing sequence value calculation module, used to calculate the mold closing sequence value formula according to the upper-level sequence value and the lower-level sequence value to obtain the mold closing sequence value; An out-of-module sequence value calculation module is used to calculate an out-of-module sequence value formula according to the upper-level sequence value and the lower-level sequence value to obtain an out-of-module sequence value; The data encryption module is used to encrypt and store data according to the mold closing sequence value and the mold exiting sequence value to obtain an encrypted data set.

9. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for encrypting mold design data according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for encrypting mold design data according to any one of claims 1 to 7.