A component model parameter encoding and decoding method and device

By mapping and encrypting component model parameters to generate encrypted data storage, the problem of easy leakage of component model parameters is solved, and safe and convenient data sharing is achieved.

CN114065230BActive Publication Date: 2025-10-21WUHAN JIASHENGHUA TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010785914.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-06
Publication Date
2025-10-21
Estimated Expiration
2040-08-06

AI Technical Summary

Technical Problem

In the prior art, component model parameters are not effectively protected during the circuit design process and are easily obtained by a third party.

Method used

The initial parameters of the component model are encoded and decoded through preset mapping rules and encryption algorithms, and encrypted data is generated and stored to ensure the security and shareability of the parameters.

Benefits of technology

It improves the security of component model parameters, prevents unauthorized access, and facilitates data sharing and use between clients and users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114065230B_ABST
    Figure CN114065230B_ABST
Patent Text Reader

Abstract

The application provides an element model parameter encoding and decoding method and device, relates to the technical field of circuit design, and comprises the following steps: obtaining initial parameters of an element model; mapping the initial parameters to generate mapping parameters according to a preset mapping rule; encrypting the mapping parameters to generate first encrypted data according to a first preset encryption algorithm; and storing the first encrypted data in a preset position. A corresponding decoding method and a device for executing the above steps are also provided. The encoding and decoding method can protect the initial parameters of the element model from being leaked, and can facilitate data sharing and use of the element model development client and the user end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit design, and in particular to a method and device for encoding and decoding component model parameters. Background Art

[0002] Before manufacturing the circuits of electrical equipment, it is necessary to first design the circuit using circuit design software. After the design is completed, the circuit diagram can be simulated using the circuit design software to complete the feasibility demonstration of the circuit during the design phase. When designing the circuit diagram, it is necessary to plan, position, and route the component characteristics and pins in the diagram so that during the circuit simulation, each component model can be simulated according to the parameters set by the designer.

[0003] The original designer of component model parameters needs to share these parameters with customers for viewing and use. Therefore, they usually list this data on the model card and make it available to customers. However, this method does not protect the component model parameters, making the data easily accessible to third parties. Summary of the Invention

[0004] The purpose of the present invention is to address the deficiencies in the above-mentioned prior art and provide a component model parameter encoding and decoding method and device to solve the problem that the existing component model parameters are not protected and can be easily obtained.

[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows:

[0006] According to one aspect of an embodiment of the present invention, a method for encoding component model parameters is provided, comprising:

[0007] Get the initial parameters of the component model;

[0008] Mapping the initial parameters to generate mapping parameters according to the preset mapping rules;

[0009] Encrypting the mapping parameters according to a first preset encryption algorithm to generate first encrypted data;

[0010] The first encrypted data is stored in a preset location.

[0011] Optionally, mapping the initial parameters to generate mapping parameters according to a preset mapping rule includes:

[0012] Numbering the initial parameters to generate numbered parameters;

[0013] According to the numbering parameters, a mapping parameter is generated by using a pre-established mapping relationship between the initial parameters and the numbering parameters.

[0014] Optionally, the first preset encryption algorithm is a preset sorting method; encrypting the mapping parameters according to the first preset encryption algorithm to generate the first encrypted data includes:

[0015] The mapping parameters are sorted according to a preset sorting method to generate a sorting matrix to form the first encrypted data.

[0016] Optionally, the method further includes:

[0017] Get update parameters;

[0018] Generate transformation parameters based on update parameters and initial parameters;

[0019] Encrypting the conversion parameter according to a second preset encryption algorithm to generate second encrypted data;

[0020] The second encrypted data is stored in a preset location.

[0021] Optionally, based on the update parameters and initial parameters, the conversion parameters generated include:

[0022] Determine the original parameters corresponding to the updated parameters in the initial parameters;

[0023] Establish the transformation relationship between the original parameters and the updated parameters;

[0024] Generate conversion parameters based on the conversion relationship.

[0025] Optionally, storing the first encrypted data in a preset location includes:

[0026] The first encrypted data is stored in the component model development client; or the first encrypted data is stored in the component model card.

[0027] Another aspect of an embodiment of the present invention provides a component model parameter decoding method, comprising:

[0028] Obtaining first encrypted data from a preset location;

[0029] Decrypting the first encrypted data according to a first preset decryption algorithm to obtain a mapping parameter;

[0030] The mapping parameters are inversely mapped according to the preset inverse mapping rules to obtain the initial parameters of the component model.

[0031] Optionally, the method further includes:

[0032] obtaining second encrypted data from a preset location;

[0033] Decrypting the second encrypted data according to a second preset decryption algorithm to obtain a conversion parameter;

[0034] The updated parameters of the component model are obtained according to the initial parameters and the transformed parameters.

[0035] According to another aspect of the present invention, a device for encoding component model parameters is provided, comprising:

[0036] A code acquisition module is used to obtain the initial parameters of the component model;

[0037] A mapping module, configured to map initial parameters to generate mapping parameters according to preset mapping rules;

[0038] An encryption module, configured to encrypt the mapping parameters according to a first preset encryption algorithm to generate first encrypted data;

[0039] The storage module is used to store the first encrypted data in a preset location.

[0040] According to another aspect of the present invention, a device for decoding component model parameters is provided, comprising:

[0041] A decoding and obtaining module, configured to obtain first encrypted data from a preset location;

[0042] a decryption module, configured to decrypt the first encrypted data according to a first preset decryption algorithm to obtain a mapping parameter;

[0043] The inverse mapping module is used to inversely map the mapping parameters according to preset inverse mapping rules to obtain initial parameters of the component model.

[0044] The beneficial effects of the present invention include:

[0045] The present invention provides a component model parameter encoding method, which includes obtaining specific parameters of the component model as initial parameters, i.e., protected objects, after the component model parameters are determined. The initial parameters are mapped according to preset mapping rules to generate mapping parameters. After the initial parameters are converted into mapping parameters, the mapping parameters are encrypted by a first preset encryption algorithm to generate first encrypted data, thereby effectively increasing the difficulty of cracking the initial parameters, so that the initial parameters of the component model can be effectively protected. After the component model development client generates the first encrypted data by mapping and encrypting the above-mentioned component model initial parameters, it can store it in a preset location for the convenience of sending or being obtained by the user end. The above encoding method can not only protect the initial parameters of the component model from being leaked, but also facilitate the data sharing and use between the component model development client and the user end.

[0046] The present invention provides a component model parameter decoding method, including: when a user terminal needs to obtain initial parameters, the method can obtain first encrypted data from a preset location. To decrypt the first encrypted data, the method can decrypt the first encrypted data using a first preset decryption algorithm to obtain mapping parameters. Based on the corresponding relationship between the mapping and inverse mapping, the initial parameters of the component model obtained from the mapping parameters are reversely deduced to obtain the initial parameters of the component model. This enables the user terminal to obtain the initial parameters, facilitating its use of the parameters.

[0047] The present invention provides a component model parameter encoding device. An encoding acquisition module acquires initial parameters of a component model. A mapping module then maps the initial parameters to generate mapping parameters according to preset mapping rules. An encryption module encrypts the mapping parameters according to a first preset encryption algorithm to generate first encrypted data. To facilitate access by a user, the first encrypted data can also be stored in a preset location in a storage module. This achieves encryption of the component model initial parameters, thereby enhancing their security.

[0048] The present invention provides a component model parameter decoding device. A decoding acquisition module acquires first encrypted data from a preset location. A decryption module then decrypts the first encrypted data using a first preset decryption algorithm to obtain mapping parameters. An inverse mapping module inversely maps the mapping parameters according to preset inverse mapping rules to obtain initial parameters of the component model. This device facilitates decoding and acquisition of the initial parameters, improving data security while facilitating use. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0050] Figure 1 One of the flow charts of a component model parameter encoding method provided by an embodiment of the present invention;

[0051] Figure 2 A second flow chart of a component model parameter encoding method provided by an embodiment of the present invention;

[0052] Figure 3 A schematic flow chart of a component model parameter decoding method provided by an embodiment of the present invention;

[0053] Figure 4 One of the structural diagrams of a device for encoding component model parameters provided by an embodiment of the present invention;

[0054] Figure 5 A second structural diagram of a device for encoding component model parameters according to an embodiment of the present invention;

[0055] Figure 6 One of the structural diagrams of a component model parameter decoding device provided by an embodiment of the present invention;

[0056] Figure 7 This is a second structural diagram of a component model parameter decoding device provided by an embodiment of the present invention.

[0057] Icons: 50-encoding acquisition module; 51-mapping module; 52-encryption module; 53-saving module; 54-second encoding acquisition module; 55-conversion module; 56-second encryption module; 57-second saving module; 60-decoding acquisition module; 61-decryption module; 62-inverse mapping module; 63-second decoding acquisition module; 64-second decryption module; 65-second conversion module. DETAILED DESCRIPTION

[0058] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of 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. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.

[0059] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. It should be noted that, unless there is a conflict, the various features of the embodiments of the present invention may be combined with each other, and the combined embodiments are still within the scope of protection of the present invention.

[0060] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.

[0061] In the description of the present invention, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0062] In one aspect of an embodiment of the present invention, a component model parameter encoding method executed by a development client is provided, which obtains the initial parameters of the component model; maps the initial parameters to generate mapping parameters according to preset mapping rules; encrypts the mapping parameters to generate first encrypted data according to a first preset encryption algorithm; and stores the first encrypted data to a preset location, thereby encrypting the initial parameters of the component model.

[0063] For example, Figure 1 As shown, in order to encrypt the component model parameters to provide protection and prevent them from being obtained by a third party, this embodiment mainly encrypts them from the perspective of mapping and algorithm. The specific method is as follows:

[0064] S100: Acquire initial parameters of the component model.

[0065] The component model can be a model of an electronic component to be manufactured that the developer is involved in. In this method, the development client can receive the initial parameters of the component model input by the developer through the component development interface; it also reads data from the parameter file of the component model obtained in advance to obtain the initial parameters of the component model. After the initial parameters of the component model are obtained, the initial parameters are protected data objects. The initial parameters of the component model here can be one or more. Taking the model parameters in SPICE (simulation circuit simulator) as an example, the initial parameters can be parameters such as DC (static characteristics) and AC (frequency characteristics).

[0066] S200: Mapping initial parameters to generate mapping parameters according to preset mapping rules.

[0067] At the same time, the initial parameters in S100 are mapped according to a preset mapping rule to generate mapping parameters. Specifically, the initial parameters can be a non-empty set A. A mapping establishes a correspondence between the non-empty set A and the non-empty set B, i.e., the preset mapping rule. For each initial parameter a in A, there is always a unique mapping parameter b corresponding to it in B. This completes the conversion of the initial parameters, allowing them to be represented by mapping parameters, making it easier to obtain the initial parameters. The preset mapping rule can be injective, surjective, bijective, etc. Injective means that the initial parameter a and the mapping parameter b have a one-to-one correspondence, and the non-empty set B may contain redundant parameters. Surjective means that only the mapping parameters in the non-empty set B exist in the non-empty set B, and no redundant parameters are present. The initial parameter a and the mapping parameter b can have a one-to-one correspondence or a many-to-one correspondence. Bijective means that both injective and surjective conditions are met, i.e., the initial parameter a and the mapping parameter b have a one-to-one correspondence, and there are no redundant parameters in the non-empty set B. This is not limited in this embodiment.

[0068] S300: Encrypting the mapping parameters according to a first preset encryption algorithm to generate first encrypted data.

[0069] After the initial parameters are converted into mapping parameters, the mapping parameters are encrypted using a first preset encryption algorithm to generate first encrypted data, thereby effectively increasing the difficulty of cracking the initial parameters and effectively protecting the initial parameters of the component model. The specific form of the first preset encryption algorithm is not limited in this embodiment. For example, it can be the pre-sorting method described in subsequent embodiments, or it can be an AES (Advanced Encryption Standard) encryption algorithm, or it can be an RSA (public key encryption algorithm), etc. It can also be specified by a program through addressing or flags.

[0070] S400: Storing the first encrypted data in a preset location.

[0071] After the component model development client generates the first encrypted data by mapping and encrypting the above-mentioned component model initial parameters, it can store it in a preset location for easy transmission or acquisition by the user end. The preset location can be a storage medium carried by the component model development client itself in subsequent embodiments, or it can be a component model card. This embodiment does not limit this. The above-mentioned encoding method can protect the initial parameters of the component model from being leaked, while also facilitating the sharing and use of the component model development client and the user end.

[0072] Optionally, mapping the initial parameters to generate mapping parameters according to preset mapping rules includes: numbering the initial parameters to generate numbered parameters; and generating the mapping parameters according to the numbered parameters using a pre-established mapping relationship between the initial parameters and the numbered parameters.

[0073] For example, when mapping the initial parameters to generate mapping parameters according to the preset mapping rules in S200, the mapping relationship can be predetermined, and then the initial parameters can be numbered so that the initial parameters can correspond to the numbered parameters through the predetermined mapping relationship. The converted numbered parameters and the mapping relationship are used to generate corresponding mapping parameters, that is, the mapping parameters are used to represent the corresponding initial parameters. Taking the SPICE model as an example, multiple DC parameters can be numbered, for example, DC1 is numbered 01, DC2 is numbered 02, DC3 is numbered 03, and so on. That is, DC1 and 01 have a mapping relationship, DC2 and 02 have a mapping relationship, and so on. The numbers 01, 02, 03 and their corresponding relationships with DC are used to generate mapping parameters.

[0074] Optionally, the first preset encryption algorithm is a preset sorting method; encrypting the mapping parameters according to the first preset encryption algorithm to generate the first encrypted data includes: sorting the mapping parameters according to the preset sorting method to generate a sorting matrix to form the first encrypted data.

[0075] For example, when encrypting the mapping parameters using a first preset encryption algorithm to generate the first encrypted data in S300, the mapping parameters may be sorted. The preset sorting method can be sorting from smallest to largest, from largest to smallest, or sorting by odd numbers first and then even numbers, among other methods. The sorted mapping parameters can be sequentially entered into a matrix to generate a sorting matrix. The sorting matrix can be appropriately configured based on the number of mapping parameters. For example, when there are 12 mapping parameters, the sorting matrix can be a 3x4 matrix, a 4x3 matrix, a 2x6 matrix, and other various forms. The mapping parameters are presented in the form of a matrix to form the first encrypted data. This method simplifies the encryption steps but is more difficult to crack, providing better protection for the initial parameters.

[0076] Optionally, the method further includes: obtaining update parameters; generating conversion parameters based on the update parameters and initial parameters; encrypting the conversion parameters according to a second preset encryption algorithm to generate second encrypted data; and storing the second encrypted data in a preset location.

[0077] For example, after the component model development client has sent encrypted initial parameters to the user, as the component model is improved, updated parameters with better performance will be obtained. Therefore, it is necessary to update all or part of the initial parameters that have been sent to the user so that the user can share the latest component model initial parameters. Figure 2 As shown, the specific method can be:

[0078] S500: Acquire update parameters.

[0079] After the update parameters are generated, the user develops a client to obtain the update parameters.

[0080] S600: Generate conversion parameters according to the updated parameters and the initial parameters.

[0081] By associating the updated parameters with the updated initial parameters, corresponding conversion parameters are generated. This allows the updated initial parameters to be extracted and subsequently encrypted separately, avoiding the inefficient encryption caused by re-encrypting all updated and unupdated parameters, and also avoiding inefficient decryption by clients.

[0082] S700: Encrypt the conversion parameter according to a second preset encryption algorithm to generate second encrypted data.

[0083] To ensure the confidentiality of the conversion parameters, the conversion parameters may be further encrypted using a second preset encryption algorithm to generate second encrypted data. The second preset encryption algorithm may be the same as the first preset encryption algorithm, such as a pre-sorting method, an AES (Advanced Encryption Standard) encryption algorithm, an RSA (public key) encryption algorithm, an addressing or flag encryption algorithm, or a new encryption algorithm, which is not limited in this embodiment.

[0084] S800: Storing the second encrypted data in a preset location.

[0085] In order to facilitate sending or obtaining by the user end, it can be stored in a preset location. The preset location can also be the storage medium carried by the component model development client itself in the subsequent embodiments, or it can be a component model card. This embodiment does not limit it. The above-mentioned method of encrypting the update parameters can not only make the update parameters of the component model encrypted and sent in the form of conversion parameters to improve security, but also effectively reduce the encrypted data part, and at the same time facilitate users to obtain the latest data of the component model parameters, thereby improving the performance of the component in actual manufacturing and use.

[0086] Optionally, generating the conversion parameters according to the updated parameters and the initial parameters includes: determining original parameters corresponding to the updated parameters in the initial parameters; establishing a conversion relationship between the original parameters and the updated parameters; and generating the conversion parameters according to the conversion relationship.

[0087] For example, when generating conversion parameters by corresponding the updated parameters to the initial parameters in S600, the portion corresponding to the updated parameters, i.e., the original parameters, may be first determined within the transmitted initial parameters. Furthermore, to improve the security of the updated parameters, a conversion relationship between the original parameters and the updated parameters may be established. For example, when the original parameter is 5 and the updated parameter is 8, the conversion relationship is 5, and a mathematical operation is performed to obtain a final result of 8. This mathematical operation is the conversion relationship when the original parameter is 5 and the updated parameter is 8. The conversion parameters are generated from this conversion relationship.

[0088] Optionally, storing the first encrypted data in a preset location includes: storing the first encrypted data in a component model development client; or storing the first encrypted data in a component model card.

[0089] For example, the preset location can be a component model development client, i.e., the entity that executes the encoding method. In this case, the interaction between the component model development client and the user terminal is as follows: after the component model development client selects a user terminal, it transmits the encrypted first encrypted data or second encrypted data to the designated user terminal via the data transmission module. If the preset location is a component model card, the component model development client stores the first encrypted data and the second encrypted data on the component model card, thereby making them freely accessible to the user terminal.

[0090] Another aspect of an embodiment of the present invention provides a component model parameter decoding method, including: obtaining first encrypted data from a preset position; decrypting the first encrypted data according to a first preset decryption algorithm to obtain mapping parameters; and inverse mapping the mapping parameters according to preset inverse mapping rules to obtain initial parameters of the component model.

[0091] For example, Figure 3 As shown, S11: obtaining first encrypted data from a preset location.

[0092] When the user terminal needs to obtain the initial parameters, it can obtain the first encrypted data from the preset location. The acquisition method varies depending on the preset location.

[0093] S22: Decrypt the first encrypted data according to a first preset decryption algorithm to obtain mapping parameters.

[0094] To decrypt the first encrypted data, the first encrypted data may be decrypted using a first preset decryption algorithm to obtain the mapping parameters. The first preset decryption algorithm may correspond to the first preset encryption algorithm. For example, when the first preset encryption algorithm is an AES (Advanced Encryption Standard) encryption algorithm, the corresponding first preset decryption algorithm is an AES decryption algorithm. When the first preset encryption algorithm is an RSA encryption algorithm, the corresponding first preset decryption algorithm is an RSA decryption algorithm, which is not limited in this embodiment.

[0095] S33: Inversely mapping the mapping parameters according to a preset inverse mapping rule to obtain initial parameters of the component model.

[0096] According to the corresponding relationship between mapping and inverse mapping, the initial parameters of the component model obtained by mapping parameters are reversely deduced to obtain the initial parameters of the component model. For example, according to the number and mapping relationship, the initial parameters corresponding to the number are obtained.

[0097] Optionally, the method further includes: obtaining second encrypted data from a preset location; decrypting the second encrypted data according to a second preset decryption algorithm to obtain conversion parameters; and obtaining updated parameters of the component model according to the initial parameters and the conversion parameters.

[0098] For example, the user terminal may also obtain second encrypted data from a preset location, decrypt the second encrypted data according to a second preset decryption algorithm, and then obtain conversion parameters. After determining the corresponding initial parameters, the update parameters are derived based on the conversion parameters.

[0099] According to another aspect of an embodiment of the present invention, a component model parameter encoding device is provided, including: a coding acquisition module 50, used to obtain the initial parameters of the component model; a mapping module 51, used to map the initial parameters to generate mapping parameters according to preset mapping rules; an encryption module 52, used to encrypt the mapping parameters to generate first encrypted data according to a first preset encryption algorithm; and a storage module 53, used to store the first encrypted data to a preset location.

[0100] For example, Figure 4 As shown, the initial parameters of the component model can be acquired by the encoding acquisition module 50. The initial parameters are then mapped to mapping parameters by the mapping module 51 according to a preset mapping rule. The mapping parameters are encrypted by the encryption module 52 according to a first preset encryption algorithm to generate first encrypted data. To facilitate access by the user, the first encrypted data can also be stored in a preset location in the storage module 53.

[0101] Optionally, the mapping module 51 may also be configured to number the initial parameters to generate numbered parameters; and generate mapping parameters based on the numbered parameters using a pre-established mapping relationship between the initial parameters and the numbered parameters.

[0102] Optionally, the encryption module 52 may also be configured to sort the mapping parameters according to a preset sorting method to generate a sorting matrix to form the first encrypted data.

[0103] Optional, such as Figure 5 As shown, the component model parameter encoding device can also include a second encoding acquisition module 54 for acquiring update parameters; a conversion module 55 for generating conversion parameters based on the update parameters and initial parameters; a second encryption module 56 encrypts the conversion parameters according to a second preset encryption algorithm to generate second encrypted data; and a second storage module 57 is used to store the second encrypted data to a preset location.

[0104] Optionally, the conversion module 55 may also be configured to determine original parameters corresponding to the updated parameters in the initial parameters; establish a conversion relationship between the original parameters and the updated parameters; and generate conversion parameters according to the conversion relationship.

[0105] Another aspect of an embodiment of the present invention provides a component model parameter decoding device, including: a decoding acquisition module 60, used to obtain first encrypted data from a preset position; a decryption module 61, used to decrypt the first encrypted data according to a first preset decryption algorithm to obtain mapping parameters; and an inverse mapping module 62, used to inversely map the mapping parameters according to preset inverse mapping rules to obtain initial parameters of the component model.

[0106] For example, Figure 6As shown, the first encrypted data is obtained from a preset position through the decoding acquisition module 60; the first encrypted data is decrypted by the decryption module 61 according to the first preset decryption algorithm to obtain the mapping parameters; the mapping parameters are inversely mapped by the inverse mapping module 62 according to the preset inverse mapping rules to obtain the initial parameters of the component model.

[0107] Optional, such as Figure 7 As shown, the component model parameter decoding device also includes a second decoding acquisition module 63 for obtaining second encrypted data from a preset position; a second decryption module 64 is used to decrypt the second encrypted data according to a second preset decryption algorithm to obtain conversion parameters; and a second conversion module 65 is used to obtain updated parameters of the component model based on the initial parameters and the conversion parameters.

[0108] Optionally, a component model development client includes: a processor, a storage medium and a bus, the storage medium stores machine-readable instructions executable by the processor, when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the above-mentioned encoding method during execution.

[0109] Optionally, a user terminal includes: a processor, a storage medium and a bus, the storage medium stores machine-readable instructions executable by the processor, when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the above-mentioned decoding method.

[0110] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process of the method in the aforementioned method embodiment, and will not be repeated in the present invention.

[0111] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.

Claims

1. A component model parameter encoding method, characterized in that: include: Get the initial parameters of the component model; Mapping the initial parameters to generate mapping parameters according to preset mapping rules; Encrypting the mapping parameters according to a first preset encryption algorithm to generate first encrypted data; storing the first encrypted data in a preset location; The initial parameters are a non-empty set A, and mapping the initial parameters to generate mapping parameters according to a preset mapping rule includes: According to a preset mapping rule, the non-empty set A is mapped to the non-empty set B to generate the mapping parameters; the preset mapping rule is injection, surjection, or bijection; The first preset encryption algorithm is a preset sorting method; and encrypting the mapping parameters according to the first preset encryption algorithm to generate first encrypted data includes: Sorting the mapping parameters according to the preset sorting method to generate a sorting matrix to form the first encrypted data; The method further comprises: Get update parameters; Generate a conversion parameter according to the update parameter and the initial parameter; the conversion parameter is a parameter obtained by extracting the update parameter according to the initial parameter; Encrypting the conversion parameter according to a second preset encryption algorithm to generate second encrypted data; The second encrypted data is stored in the preset location.

2. The component model parameter encoding method according to claim 1, wherein: Mapping the initial parameters to generate mapping parameters according to preset mapping rules includes: Numbering the initial parameters to generate numbered parameters; According to the numbering parameters, the mapping parameters are generated by using a pre-established mapping relationship between the initial parameters and the numbering parameters.

3. The component model parameter encoding method according to claim 1, wherein: Generating the conversion parameters according to the update parameters and the initial parameters includes: Determining original parameters corresponding to the updated parameters from the initial parameters; Establishing a conversion relationship between the original parameters and the updated parameters; The conversion parameter is generated according to the conversion relationship.

4. The component model parameter encoding method according to claim 1, wherein: Storing the first encrypted data in a preset location includes: The first encrypted data is stored in a component model development client; or the first encrypted data is stored in a component model card.

5. A component model parameter decoding method, characterized in that: include: Obtaining first encrypted data from a preset location; Decrypting the first encrypted data according to a first preset decryption algorithm to obtain a mapping parameter; Inverse mapping the mapping parameters according to a preset inverse mapping rule to obtain initial parameters of the component model; The initial parameter is a non-empty set A, and the mapping parameter is a parameter generated by mapping the non-empty set A to a non-empty set B according to a preset mapping rule; The first encrypted data is data formed by sorting the mapping parameters according to a preset sorting method to generate a sorting matrix; The method further comprises: Acquire second encrypted data from the preset location; Decrypting the second encrypted data according to a second preset decryption algorithm to obtain a conversion parameter; the conversion parameter is a parameter obtained by extracting an update parameter according to the initial parameter; The updated parameters of the component model are obtained according to the initial parameters and the transformed parameters.

6. A component model parameter encoding device, characterized in that: include: A code acquisition module is used to obtain the initial parameters of the component model; A mapping module, configured to map the initial parameters to generate mapping parameters according to preset mapping rules; an encryption module, configured to encrypt the mapping parameters according to a first preset encryption algorithm to generate first encrypted data; A saving module, configured to store the first encrypted data in a preset location; The initial parameter is a non-empty set A, and the encryption module is further used to map the non-empty set A to a non-empty set B according to a preset mapping rule to generate the mapping parameter; the preset mapping rule is injection, surjection, or bijection; The first preset encryption algorithm is a preset sorting method; the encryption module is further configured to sort the mapping parameters according to the preset sorting method to generate a sorting matrix to form the first encrypted data; The device further includes a second encoding acquisition module for acquiring an update parameter; a conversion module for generating a conversion parameter based on the update parameter and the initial parameter; the conversion parameter is a parameter obtained by extracting the update parameter based on the initial parameter; A second encryption module, configured to encrypt the conversion parameter according to a second preset encryption algorithm to generate second encrypted data; The second saving module is configured to store the second encrypted data in the preset location.

7. A component model parameter decoding device, characterized in that: include: A decoding and obtaining module, configured to obtain first encrypted data from a preset location; a decryption module, configured to decrypt the first encrypted data according to a first preset decryption algorithm to obtain mapping parameters; an inverse mapping module, configured to inversely map the mapping parameters according to a preset inverse mapping rule to obtain initial parameters of the component model; The initial parameter is a non-empty set A, and the mapping parameter is a parameter generated by mapping the non-empty set A to a non-empty set B according to a preset mapping rule; The first encrypted data is data formed by sorting the mapping parameters according to a preset sorting method to generate a sorting matrix; The device also includes a second decoding acquisition module, which is used to obtain second encrypted data from the preset position; a second decryption module, which is used to decrypt the second encrypted data according to a second preset decryption algorithm to obtain conversion parameters; and a second conversion module, which is used to obtain updated parameters of the component model based on the initial parameters and the conversion parameters.

Citation Information

Patent Citations

  • Method and system for encryption and decryption of encoding files

    CN103313097A

  • Video secret communication method for high-dimensional chaotic mapping

    CN104135669A

  • Application data obtaining method and device

    CN108848051A