Identification data generation method and device, equipment and storage medium
By selecting and performing Lagrangian interpolation calculation from the segmented identification share data, the target identification data is generated, and the problem of volatile device identification and lack of fault tolerance mechanism is solved, and the accurate identification of the device or system is achieved and the fault tolerance capability is improved.
Patent Information
- Application Number
- CN202411632632.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-04-22
AI Technical Summary
In the prior art, the identifier of the device or system is volatile, resulting in inconsistent identity of the device, increasing security risks and lacking fault tolerance mechanisms.
By dividing the first number of identification share data from the identification set composed of a plurality of initial identification data, and selecting the second number of identification share data for Lagrangian interpolation calculation, the target identification data is generated.
Even in the case of partial identification data missing or missing, the device or system can still be accurately identified, improving the fault tolerance of the device or system.
Smart Images

Figure CN119862611A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for generating identification data. Background Art
[0002] In the related art, the generation and management of device identification or system identification usually relies on a single identifier, such as a device serial number, MAC address, system UUID, etc., which are used to uniquely identify the device. However, there is a problem with the prior art, that is, if an identifier changes, such as a system upgrade or hardware change, the device identifier may change accordingly, which will cause the device identity recorded in the system to be inconsistent, which will bring security risks to the authentication and management of the device.
[0003] The main disadvantage of existing technologies lies in the fragility of the identifiers of devices or systems: Sensitivity to identifier changes: Changes in a single identifier, such as a computer host device that contains at least a device identifier, a product identifier, an operating system identifier, and a memory stick identifier. For example, the addition of a memory stick will cause a change in the memory stick identifier, or an operating system upgrade will cause a change in the operating system identifier. These will directly affect the identifier of the computer host device, making it impossible for the operating system to recognize that the current computer device is the same as the computer host device before the change.
[0004] Lack of fault tolerance: If one or more identifiers in a device change, existing solutions cannot provide sufficient fault tolerance, resulting in loss or inconsistency of device identification. Summary of the invention
[0005] The present invention provides an identification data generation method, apparatus, device and storage medium, which are used to solve the defect in the prior art that when the identifier changes, the identification of the corresponding device or product cannot be recognized. The method selects a second number of identification share data from the first number of identification share data after segmentation, and generates target identification data using the second number of identification share data. Even if part of the identification data is lost or missing, the corresponding device or system can still be accurately identified according to the generated target identification data, and the fault tolerance of the device or system is also improved.
[0006] In a first aspect, the present invention provides a method for generating identification data, comprising the following steps: Obtain an identification set consisting of a plurality of initial identification data; Segmenting the identification set to obtain a first quantity of identification share data; A second number of identification share data is selected from the first number of identification share data, and the second number of identification share data is processed by Lagrange interpolation calculation to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold.
[0007] Preferably, according to a method for generating identification data provided by the present invention, the segmentation process of the identification set to obtain a first amount of identification share data includes: Converting the identification set to obtain secret identification data; constructing a random partitioning function based on the secret identification data and randomly selected different integers; Substitute a first number of consecutive natural numbers into the random partitioning function to obtain the first number of identification share data.
[0008] Preferably, according to a method for generating identification data provided by the present invention, the step of performing Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data includes: Get a single integer constant at random from the natural numbers; Calculate and process the single integer constant and each piece of identification share data in the second number of identification share data respectively to obtain a share data difference corresponding to each piece of identification share data in the second number of identification share data; The single integer constant and the share data difference are processed by Lagrange interpolation calculation to obtain the target identification data.
[0009] Preferably, according to a method for generating identification data provided by the present invention, before the step of segmenting the identification set to obtain a first amount of identification share data, the method includes: The identification set is processed using a preset generation rule to generate virtual identification data; the preset generation rule is to analyze each initial identification data in the identification set using a preset weight value of each initial identification data, so as to determine the rule of the virtual identification data of the identification set according to the analysis result.
[0010] Preferably, according to a method for generating identification data provided by the present invention, after the step of performing Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, the method includes: Compare the target identification data with the virtual identification data; If the target identification data is the same as the virtual identification data, identification stability information is obtained; If the target identification data is different from the virtual identification data, identification warning information is obtained.
[0011] Preferably, according to a method for generating identification data provided by the present invention, the step of obtaining an identification set consisting of a plurality of initial identification data comprises: Acquire multiple different types of initial identification data; Randomly determine a target type from the multiple different types, and perform normalization processing on the multiple different types of initial identification data based on the target type to obtain multiple initial identification data of the same target type; The multiple initial identification data of the same target type are combined to obtain the identification set.
[0012] In a second aspect, the present invention further provides an identification data generating device, comprising the following modules: An acquisition module, used for acquiring an identification set consisting of a plurality of initial identification data; A segmentation module, used for segmenting the identification set to obtain a first amount of identification share data; A generation module is used to select a second number of identification share data from the first number of identification share data, and perform Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold.
[0013] In a third aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the identification data generation method described in any one of the above methods is implemented.
[0014] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the identification data generation methods described above.
[0015] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements any of the identification data generation methods described above.
[0016] The present invention provides a method, device, equipment and storage medium for generating identification data, which obtains an identification set composed of multiple initial identification data; performs segmentation processing on the identification set to obtain a first number of identification share data; selects a second number of identification share data from the first number of identification share data, and performs Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold. It is used to solve the defect in the prior art that when the identifier changes, the identification of the corresponding device or product cannot be identified, and the target identification data is generated by selecting the second number of identification share data from the segmented first number of identification share data, and using the second number of identification share data. Even if part of the identification data is lost or missing, the corresponding device or system can still be accurately identified according to the generated target identification data, and the fault tolerance of the device or system is also improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is one of the flow charts of the identification data generation method provided by the present invention.
[0019] Figure 2 The present invention provides Figure 1 Schematic diagram of the process of step S200.
[0020] Figure 3 It is a structural schematic diagram of the identification data generating device provided by the present invention.
[0021] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] First, some nouns involved in this application are analyzed: Shamir Secret Sharing (SSS): is an encryption algorithm that divides a secret into multiple parts and distributes these parts to multiple participants. Only when the parts (shares) are combined together can the original secret be recovered. It spreads the risk among multiple parties, thereby improving the security of the secret.
[0024] Lagrange interpolation formula (LIF): refers to giving node basis functions at nodes, and then making linear combinations of basis functions, and the combination coefficients are an interpolation polynomial of the node function values.
[0025] In the related art, the main disadvantage of the existing technology lies in the vulnerability of the identifier of the device or system: Sensitivity to identifier changes: Changes in a single identifier, such as a computer host, which contains at least a device identifier, a product identifier, an operating system identifier, a memory stick identifier, and a display identifier. For example, the addition of a memory stick will cause a change in the memory stick identifier, or an operating system upgrade will cause a change in the operating system identifier. These will directly affect the identifier of the computer host device, making it impossible for the operating system to recognize that the current computer device is the same as the computer host device before the change.
[0026] Lack of fault tolerance: If one or more identifiers in a device change, existing solutions cannot provide sufficient fault tolerance, resulting in loss or inconsistency of device identification.
[0027] Based on this, the following Figure 1-Figure 4 The present invention describes an identification data generation method, apparatus, device and storage medium, which selects a second number of identification share data from the segmented first number of identification share data, and uses the second number of identification share data to generate target identification data. Even if part of the identification data is lost or missing, the corresponding device or system can still be accurately identified based on the generated target identification data, while also improving the fault tolerance of the device or system.
[0028] Figure 1 This is one of the flow charts of a method for generating identification data provided by the present invention, such as Figure 1 As shown, the method may include but is not limited to steps S100 to S300: S100, obtaining an identification set consisting of a plurality of initial identification data; S200, segmenting the identification set to obtain a first amount of identification share data; S300, selecting a second number of identification share data from the first number of identification share data, and performing Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold.
[0029] In step S100 of some embodiments, an identification set consisting of a plurality of initial identification data is obtained.
[0030] It can be understood that, taking the device as a computer host device as an example, the initial identification data of the computer host device is collected, which may include but is not limited to the following initial identification data: device serial number identification data, physical address identification data, network address identification data, product identification data, operating system identification data, and memory stick identification data.
[0031] Each identification data is a unique identification of each corresponding component of the computer host device.
[0032] Assign a value to each obtained initial identification data, for example, let the device serial number identification data be K1, the physical address identification data be K2, the network address identification data be K3, the product identification data be K4, the operating system identification data be K5, and the memory stick identification data be K6.
[0033] A plurality of initial identification data are combined and processed to obtain an identification set.
[0034] Let the identifier set be M, then M includes but is not limited to K1, K2, K3, K4, K5, and K6.
[0035] In step S200 of some embodiments, the identification set is segmented to obtain a first amount of identification share data.
[0036] It can be understood that after executing step S100, the specific execution steps may be to segment the identification set to obtain a first amount of identification share data.
[0037] Before segmenting the identification set M, it is necessary to preprocess the identification set M, for example, treating the identification set M as a finite field The numbers in a module (i.e. In the integer domain of ), this can improve the efficiency of segmenting the identification set.
[0038] Then, the pre-processed identification set is randomly segmented by random segmentation to obtain a first amount of identification share data.
[0039] Let the first number be n, that is, after randomly dividing the identification set, n identification share data are obtained, each of which occupies a share of the identification set alone.
[0040] In step S300 of some embodiments, a second number of identification share data is selected from the first number of identification share data, and the second number of identification share data is processed by Lagrange interpolation calculation to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold value. It can be understood that after executing step S200, its specific execution steps may include but are not limited to the following steps: randomly selecting a second number of identification share data from the first number of identification share data.
[0041] Let the second quantity be k, that is, k pieces of identification share data can be randomly selected from the first quantity of n pieces of identification share data to generate target identification data based on these k pieces of identification share data.
[0042] The target identification data may be used to uniquely characterize a device or product identified by multiple initial identification data.
[0043] The purpose of target identification data is the same as that of virtual identification data, which is used to uniquely identify a product or device.
[0044] In this way, when a device or product has multiple components or structures and there are corresponding multiple initial identification data, even if one or two of the identification data are lost or modified, the corresponding device or product can still be accurately identified based on the generated target identification data, thereby improving the fault tolerance of the product or device.
[0045] In some embodiments of the present invention, reference Figure 2 As shown, step S200 may also include but is not limited to steps S210 to S230.
[0046] S210, converting the identification set to obtain secret identification data; S220, constructing a random partitioning function based on the secret identification data and randomly selected different integers; S230, substituting a first number of consecutive natural numbers into the random partitioning function to obtain the first number of identification share data.
[0047] In step S210 of some embodiments, the identification set is converted to obtain secret identification data.
[0048] It can be understood that the identification set is converted to obtain secret identification data, which can be regarded as a finite field The numbers in a module (i.e. In the integer domain), the secret identification data is obtained. The secret identification data can be regarded as S, which is used to construct the random partitioning function.
[0049] Conversion processing refers to the conversion of data types, such as converting a decimal type to an integer type.
[0050] In step S220 of some embodiments, a random partitioning function is constructed based on the secret identification data and randomly selected different integers.
[0051] It can be understood that after executing step S210, the specific execution step may be to construct a random partitioning function based on the secret identification data and randomly selected different integers.
[0052] It should be noted that the random partitioning function may be a random polynomial function.
[0053] In some embodiments, constructing a The random partitioning function , which is of the form: in, is the secret identification data, are randomly selected different integers, forming a random partitioning function The coefficient of , k is the second quantity.
[0054] In step S230 of some embodiments, a first number of consecutive natural numbers are substituted into the random partitioning function to obtain the first number of identification share data.
[0055] It can be understood that after executing step S220, the specific execution steps may be to substitute a first number of consecutive natural numbers into the random partitioning function to obtain the first number of identification share data.
[0056] That is, input n consecutive natural numbers into the random segmentation function , and obtain the corresponding n identification share data.
[0057] In some embodiments, generating Shares of identification data, each of which consists of For each ,calculate: These It is the share data corresponding to the single initial identification data of the device or system. is a unique integer, and It is a segmented portion of the secret identification data.
[0058] This segmentation method is more random and confidential, improves the fault tolerance of devices or products that lack initial identification data, and enhances overall security.
[0059] In some embodiments of the present invention, the step of performing Lagrange interpolation calculation processing on the second amount of identification share data to generate target identification data includes: Get a single integer constant at random from the natural numbers; Calculate and process the single integer constant and each piece of identification share data in the second number of identification share data respectively to obtain a share data difference corresponding to each piece of identification share data in the second number of identification share data; The single integer constant and the share data difference are processed by Lagrange interpolation calculation to obtain the target identification data.
[0060] It can be understood that when it is necessary to generate target identification data or to recover secret identification data, only the second quantity, ie, k shares of identification data, is needed to generate the target identification data.
[0061] The formula for calculating target identification data is as follows: Where S= is the target identification data (secret identification data), k is the second number, is a single integer constant, The share data difference corresponding to each identified share data.
[0062] In some embodiments of the present invention, assuming that a secret identification data is S=45, it is required to be distributed to 10 participants. When at least 3 parties participate in the calculation, the original secret, that is, the target identification data in the present invention, can be recovered.
[0063] That is, n=10, k=3. The specific steps are to first construct the corresponding random partitioning function .
[0064] Select consecutive integer points on this random partitioning function as each sub-secret, that is, generate the first amount of identification share data: (1,77); (2,135); (3,219); (4,329); (5,465); (6,627); (7,815); (8,1029); (9,1269); (10,1535).
[0065] For example, select , , ,in, Corresponding , Corresponding , Corresponding . Then according to , , The corresponding identification share data is input into the Lagrange interpolation calculation formula for generating the target identification data, and the target identification data can be obtained as 45.
[0066] In some embodiments of the present invention, before the step of segmenting the identification set to obtain a first amount of identification share data, the method includes: The identification set is processed using a preset generation rule to generate virtual identification data; the preset generation rule is to analyze each initial identification data in the identification set using a preset weight value of each initial identification data, so as to determine the rule of the virtual identification data of the identification set according to the analysis result.
[0067] It is understandable that in some embodiments of the present invention, the identification set can be processed using a preset generation rule to generate virtual identification data. Each initial identification data is analyzed and processed using a preset weight value of each initial identification data to obtain an analysis result, that is, the initial identification data with the largest preset weight value is selected as the virtual identification data.
[0068] For example, if the identification set is M, then M includes but is not limited to K1, K2, K3, K4, K5, and K6. For example, the preset weight value of K2 is 80%, the preset weight value of K1 is 50%, the preset weight value of K3 is 70%, the preset weight value of K4 is 30%, the preset weight value of K5 is 40%, and the preset weight value of K6 is 55%. Then, through analysis, it can be determined that K2 is recognized as the virtual identification data of the identification set.
[0069] Further, when the preset weight value of K2 is 80% and the preset weight value of K5 is 80%, K2 or K5 is randomly determined as the virtual identification data of the identification set to increase the flexibility of determining the virtual identification data.
[0070] In some embodiments of the present invention, after the step of performing Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, the method includes: Compare the target identification data with the virtual identification data; If the target identification data is the same as the virtual identification data, identification stability information is obtained; If the target identification data is different from the virtual identification data, identification warning information is obtained.
[0071] The generated target identification data is compared with the virtual identification data. If the target identification data is the same as the virtual identification data, identification stability information is obtained, which proves that there is no error in the calculation and that the initial identification of the product or device has not been modified or updated or lost much. The target identification data can also be generated based on the second quantity, that is, at least k copies of the identification share data, to restore the secret.
[0072] This also illustrates that in the embodiment of the present invention, this identification data generation method can tolerate changes in the device identifier (such as system upgrades, hardware changes), and in this case can still maintain the consistency of the final device identification.
[0073] Furthermore, if the target identification data is different from the virtual identification data, an identification warning message is obtained, indicating that the initial identification data has been modified, or the loss has exceeded the preset threshold value, and the second number of identification share data that can be used to regenerate the target identification data is less than the preset number of identification share data, and accurate target identification data cannot be generated. Therefore, an identification warning message is issued to warn, which can enhance its adaptability in the scenario of device identity authentication management, give warning information, and improve the efficiency of solving device identity authentication failures.
[0074] In some embodiments of the present invention, the step of obtaining an identification set consisting of a plurality of initial identification data includes: Acquire multiple different types of initial identification data; Randomly determine a target type from the multiple different types, and perform normalization processing on the multiple different types of initial identification data based on the target type to obtain multiple initial identification data of the same target type; The multiple initial identification data of the same target type are combined to obtain the identification set.
[0075] It can be understood that obtaining multiple different types of initial identification data, such as obtaining memory stick identification data, physical address identification data, which is the hardware type, obtaining operating system identification data, network address identification data, which is the software type, and obtaining cloud MAC identification data, which is the cloud type.
[0076] In order to facilitate the integration of different types of initial identification data, the target type is first randomly determined from the multiple different types, and the multiple different types of initial identification data are normalized based on the target type to obtain multiple initial identification data of the same target type, and then the multiple initial identification data of the same target type are combined to obtain the identification set.
[0077] Taking the target type as hardware type as an example, the initial identification data of software type and cloud type are normalized, and then modified to the hardware type in the log record. After normalization into initial identification data of a unified type, multiple initial identification data of the same target type can be efficiently combined to obtain an identification set. In this way, the computing efficiency can be greatly improved and the time for generating target identification data can be saved.
[0078] The present invention provides a method, device, equipment and storage medium for generating identification data, which obtains an identification set composed of multiple initial identification data; performs segmentation processing on the identification set to obtain a first number of identification share data; selects a second number of identification share data from the first number of identification share data, and performs Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold. It is used to solve the defect in the prior art that when the identifier changes, the identification of the corresponding device or product cannot be identified, and the target identification data is generated by selecting the second number of identification share data from the segmented first number of identification share data, and using the second number of identification share data. Even if part of the identification data is lost or missing, the corresponding device or system can still be accurately identified according to the generated target identification data, and the fault tolerance of the device or system is also improved.
[0079] The identification data generating device provided by the present invention is described below. The identification data generating device described below and the identification data generating method described above can be referenced to each other.
[0080] Reference Figure 3 As shown, the present invention also provides an identification data generating device, comprising the following modules: An acquisition module 310 is used to acquire an identification set consisting of a plurality of initial identification data; A segmentation module 320, configured to segment the identification set to obtain a first amount of identification share data; A generation module 330 is used to select a second number of identification share data from the first number of identification share data, and perform Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold.
[0081] According to an identification data generating device provided by the present invention, the segmentation module 320 is further used to convert the identification set to obtain secret identification data; constructing a random partitioning function based on the secret identification data and randomly selected different integers; Substitute a first number of consecutive natural numbers into the random partitioning function to obtain the first number of identification share data.
[0082] According to an identification data generating device provided by the present invention, the generating module 330 is specifically further used to randomly obtain a single integer constant from a natural number; Calculate and process the single integer constant and each piece of identification share data in the second number of identification share data respectively to obtain a share data difference corresponding to each piece of identification share data in the second number of identification share data; The single integer constant and the share data difference are processed by Lagrange interpolation calculation to obtain the target identification data.
[0083] According to an identification data generating device provided by the present invention, the device is specifically used to process the identification set using preset generation rules to generate virtual identification data; the preset generation rules are to analyze each initial identification data in the identification set using a preset weight value of each initial identification data, so as to determine the rule of the virtual identification data of the identification set according to the analysis results.
[0084] According to an identification data generating device provided by the present invention, the device is specifically further used to compare the target identification data with the virtual identification data; If the target identification data is the same as the virtual identification data, identification stability information is obtained; If the target identification data is different from the virtual identification data, identification warning information is obtained.
[0085] According to an identification data generating device provided by the present invention, the device is specifically further used to obtain a plurality of different types of initial identification data; Randomly determine a target type from the multiple different types, and perform normalization processing on the multiple different types of initial identification data based on the target type to obtain multiple initial identification data of the same target type; The multiple initial identification data of the same target type are combined to obtain the identification set.
[0086] The present invention provides a method, device, equipment and storage medium for generating identification data, which obtains an identification set composed of multiple initial identification data; performs segmentation processing on the identification set to obtain a first number of identification share data; selects a second number of identification share data from the first number of identification share data, and performs Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold. It is used to solve the defect in the prior art that when the identifier changes, the identification of the corresponding device or product cannot be identified, and the target identification data is generated by selecting the second number of identification share data from the segmented first number of identification share data, and using the second number of identification share data. Even if part of the identification data is lost or missing, the corresponding device or system can still be accurately identified according to the generated target identification data, and the fault tolerance of the device or system is also improved.
[0087] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute a method for generating identification data, the method comprising: obtaining an identification set consisting of a plurality of initial identification data; performing segmentation processing on the identification set to obtain a first number of identification share data; selecting a second number of identification share data from the first number of identification share data, and performing Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold.
[0088] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0089] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute an identification data generation method provided by the above-mentioned methods, the method including: obtaining an identification set composed of multiple initial identification data; segmenting the identification set to obtain a first number of identification share data; selecting a second number of identification share data from the first number of identification share data, and performing Lagrange interpolation calculation on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold.
[0090] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute an identification data generation method provided by the above-mentioned methods, the method comprising: obtaining an identification set consisting of multiple initial identification data; segmenting the identification set to obtain a first number of identification share data; selecting a second number of identification share data from the first number of identification share data, and performing Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold.
[0091] The device embodiments described above are 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. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating identification data, characterized in that: include: Obtain an identification set consisting of a plurality of initial identification data; Segmenting the identification set to obtain a first quantity of identification share data; A second number of identification share data is selected from the first number of identification share data, and the second number of identification share data is processed by Lagrange interpolation calculation to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold.
2. The identification data generation method according to claim 1, characterized in that: The segmenting of the identification set to obtain a first amount of identification share data includes: Converting the identification set to obtain secret identification data; constructing a random partitioning function based on the secret identification data and randomly selected different integers; Substitute a first number of consecutive natural numbers into the random partitioning function to obtain the first number of identification share data.
3. The identification data generation method according to claim 1, characterized in that: The performing Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data includes: Get a single integer constant at random from the natural numbers; Calculate and process the single integer constant and each piece of identification share data in the second number of identification share data respectively to obtain a share data difference corresponding to each piece of identification share data in the second number of identification share data; The single integer constant and the share data difference are processed by Lagrange interpolation calculation to obtain the target identification data.
4. The identification data generation method according to claim 1, characterized in that: Before the step of segmenting the identification set to obtain a first amount of identification share data, the method includes: The identification set is processed using a preset generation rule to generate virtual identification data; the preset generation rule is to analyze each initial identification data in the identification set using a preset weight value of each initial identification data, so as to determine the rule of the virtual identification data of the identification set according to the analysis result.
5. The identification data generation method according to claim 4, characterized in that: After the step of performing Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, the method includes: Compare the target identification data with the virtual identification data; If the target identification data is the same as the virtual identification data, identification stability information is obtained; If the target identification data is different from the virtual identification data, identification warning information is obtained.
6. The identification data generation method according to any one of claims 1 to 5, characterized in that: The step of obtaining an identification set consisting of a plurality of initial identification data includes: Acquire multiple different types of initial identification data; Randomly determine a target type from the multiple different types, and perform normalization processing on the multiple different types of initial identification data based on the target type to obtain multiple initial identification data of the same target type; The multiple initial identification data of the same target type are combined to obtain the identification set.
7. An identification data generating device, characterized in that: include: An acquisition module, used for acquiring an identification set consisting of a plurality of initial identification data; A segmentation module, used for segmenting the identification set to obtain a first amount of identification share data; A generation module is used to select a second number of identification share data from the first number of identification share data, and perform Lagrange interpolation calculation processing on the second number of identification share data to generate target identification data, wherein the first number is greater than or equal to the second number, and the second number is greater than or equal to a preset threshold.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the identification data generating method according to any one of claims 1 to 6 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the identification data generation method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the identification data generation method according to any one of claims 1 to 6 are implemented.