Chip data encryption methods, decryption methods, devices and computer equipment

By splitting and encrypting the data information of IoT chips to form multiple sub-encryption groups and target encrypted data, the problem of easy cracking of encryption methods in existing technologies is solved, and the security protection effect is improved.

CN117874786BActive Publication Date: 2026-11-10SOUTHERN POWER GRID DIGITAL GRID RESEARCH INSTITUTE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311855759.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2026-11-10
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

In existing technologies, the encryption methods used for IoT chip data are easily cracked, resulting in poor security protection.

Method used

By splitting the data information of the IoT chip, the sub-data is encrypted using the Bcrypt encryption algorithm according to the data category and composition structure, and then classified, summarized and encrypted in sequence to form multiple sub-encryption groups and target encrypted data.

Benefits of technology

This enhances the encryption strength and security of chip data, reducing the risk of data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117874786B_ABST
    Figure CN117874786B_ABST
Patent Text Reader

Abstract

This application relates to a chip data encryption method, decryption method, apparatus, and computer device. The method includes: acquiring multiple data information from an IoT chip and the data category of each data information; and based on the data category of each data information, acquiring the data composition structure of each data information; the data composition structure corresponds to multiple components; for each data information, based on the data composition structure, performing data splitting processing using a preset data splitting algorithm to obtain multiple sub-data corresponding to the data information, and performing data encryption processing on each of the multiple sub-data to obtain multiple sub-encrypted data; classifying and summarizing the sub-encrypted data corresponding to the multiple data information according to the components corresponding to each sub-encrypted data to obtain multiple sub-encryption groups, and performing data sequence encryption processing on each sub-encryption group to obtain the target encrypted data. This method can improve the security protection effect of chip data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of information security and data encryption technology, and in particular to a chip data encryption method, decryption method, apparatus, and computer equipment. Background Technology

[0002] With the development of IoT chips, the amount of data transmitted through chips is increasing daily. However, in chip data storage, access requests containing malicious data sent from abnormal ports often lead to data theft. Therefore, improving the security of chip data is a current research focus.

[0003] Traditional chip data security protection methods involve encrypting the entire data before storing it; however, this method of encryption is relatively easy to crack, resulting in poor security protection for chip data. Summary of the Invention

[0004] Therefore, it is necessary to provide a chip data encryption method, decryption method, device, and computer equipment that can improve the security protection of chip data in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a chip data encryption method, including:

[0006] Acquire multiple data information from the IoT chip and the data category of each data information, and based on the data category of each data information, obtain the data composition structure of each data information; the data composition structure corresponds to multiple components;

[0007] For each piece of data, based on the data composition structure of the data information, the data information is split into multiple sub-data by a preset data splitting algorithm to obtain multiple sub-data. Then, the multiple sub-data are encrypted to obtain multiple encrypted sub-data.

[0008] Based on the components corresponding to each sub-encrypted data, the sub-encrypted data corresponding to multiple data information are classified and summarized to obtain multiple sub-encryption groups. Then, data sequence encryption processing is performed on each sub-encryption group to obtain the target encrypted data.

[0009] In one embodiment, the process of obtaining the data categories of each data information includes:

[0010] For each piece of data, identify the source port and data type of the data;

[0011] When the source port of the data information is a historical source port, the data type of the data information is used as the data category of the data information;

[0012] If the source port of the data information is not a historical source port, add a new source identifier to the data type of the data information, and use the data type with the added new source identifier as the data category of the data information.

[0013] In one embodiment, the data composition structure of each data information is obtained based on the data category of each data information, including:

[0014] For each piece of data, the string corresponding to the data information is identified based on the data type, and the structural information of the string is determined based on the structural name contained in the string.

[0015] Each piece of structural information is treated as a component of the data information, and all components are treated as the data composition structure.

[0016] In one embodiment, based on the data composition structure of the data information, a preset data splitting algorithm is used to split the data information to obtain multiple sub-data corresponding to the data information, including:

[0017] For each piece of data, based on the structural information corresponding to each component of the data, the string corresponding to the data is split into multiple character segments by a data splitting algorithm.

[0018] For each character segment, sub-data is obtained based on the character segment and its corresponding structure name.

[0019] In one embodiment, multiple sub-data are encrypted separately to obtain multiple encrypted sub-data, including:

[0020] For each piece of data, the Bcrypt encryption algorithm is used to encrypt the data, and the structure name corresponding to the data is used as the group identifier of the encrypted data to obtain the encrypted sub-data.

[0021] In one embodiment, the sub-encrypted data corresponding to multiple data information are classified and summarized according to the components corresponding to each sub-encrypted data to obtain multiple sub-encryption groups, including:

[0022] The similarity between the sub-encrypted data is obtained by calculating the Euclidean distance based on the structural information corresponding to each sub-encrypted data.

[0023] Based on the similarity between the sub-encrypted data, the sub-encrypted data are clustered to obtain multiple sets of sub-encrypted data.

[0024] For each sub-encrypted data combination, the sub-encrypted data is sorted in descending order of the average similarity between each sub-encrypted data and the other sub-encrypted data in the sub-encrypted data set, thus obtaining the sub-encrypted group.

[0025] In one embodiment, each sub-encryption group undergoes data sequence encryption to obtain target encrypted data, including:

[0026] For each sub-encryption group, the target sub-encryption data in the sub-encryption group is subjected to gradient iterative encryption processing in the order from front to back to obtain the target encrypted data.

[0027] Secondly, this application also provides a chip data decryption method, including:

[0028] Acquire the data information extraction task and the data to be decrypted, and identify the identifiers of each data information contained in the data information extraction task; the data information identifiers include the identification information of the target sub-data corresponding to multiple components;

[0029] For each data information identifier, identify the components corresponding to the data information identifier; and for each component, determine the target sub-encryption group to which the component belongs and the identifier information of the target sub-data corresponding to each component from the data to be decrypted, and perform sequence decryption processing on the target sub-encryption group;

[0030] Extract the sub-encrypted data corresponding to the target sub-data in the decrypted sub-encrypted group, and identify the target sub-data corresponding to the sub-encrypted data through a preset encryption data verification strategy;

[0031] Based on the structural information of the components corresponding to each target sub-data, the data sub-data is reorganized to obtain the data information corresponding to the data information identifier.

[0032] Thirdly, this application also provides a chip data encryption device, comprising:

[0033] The acquisition module is used to acquire multiple data information from the IoT chip and the data category of each data information, and based on the data category of each data information, to acquire the data composition structure of each data information; the data composition structure corresponds to multiple components;

[0034] The first encryption module is used to split the data information based on the data composition structure of each data information using a preset data splitting algorithm to obtain multiple sub-data corresponding to the data information, and to encrypt the multiple sub-data separately to obtain multiple encrypted sub-data.

[0035] The second encryption module is used to classify and summarize the sub-encrypted data corresponding to multiple data information according to the components corresponding to each sub-encrypted data, to obtain multiple sub-encryption groups, and to perform data sequence encryption processing on each sub-encryption group to obtain the target encrypted data.

[0036] Fourthly, this application also provides a computer device including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the methods described in the first and / or second aspects.

[0037] The aforementioned chip data encryption method, decryption method, device, and computer equipment acquire multiple data information from the IoT chip and the data categories of each data information. Based on the data categories, they obtain the data composition structure of each data information. This data composition structure corresponds to multiple components. For each data information, based on its data composition structure, a preset data splitting algorithm is used to split the data information, resulting in multiple sub-data. Each sub-data is then encrypted separately, yielding multiple sub-encrypted data. According to the components corresponding to each sub-encrypted data, the sub-encrypted data corresponding to the multiple data information is categorized and summarized to obtain multiple sub-encryption groups. Each sub-encryption group is then subjected to data sequence encryption to obtain the target encrypted data. By splitting the data information of the IoT chip according to its corresponding data composition structure, encrypting each sub-encrypted data, categorizing and summarizing each sub-encrypted data to obtain sub-encryption groups, and finally performing data sequence encryption on each sub-encryption group, the chip data encryption task is completed. By using split data encryption and categorized sequence encryption, the encryption strength of each data information is improved, thereby enhancing the security protection effect of the chip data. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is a diagram illustrating the application environment of a chip data encryption method in one embodiment;

[0040] Figure 2 This is a flowchart illustrating a chip data encryption method in one embodiment;

[0041] Figure 3This is a flowchart illustrating the steps for obtaining data categories in one embodiment;

[0042] Figure 4 This is a flowchart illustrating the steps involved in obtaining the data composition structure in one embodiment;

[0043] Figure 5 This is a flowchart illustrating the steps for obtaining sub-data in one embodiment;

[0044] Figure 6 This is a flowchart illustrating the steps for obtaining a sub-encryption group in one embodiment;

[0045] Figure 7 A flowchart illustrating another embodiment of a chip data encryption method;

[0046] Figure 8 This is a flowchart illustrating a chip data decryption method in one embodiment;

[0047] Figure 9 This is a structural block diagram of a chip data encryption device in one embodiment;

[0048] Figure 10 This is a structural block diagram of a chip data decryption device in one embodiment;

[0049] Figure 11 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0051] The chip data encryption method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located in the cloud or on other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0052] Terminal 102 acquires multiple data information from the IoT chip and the data category of each data information, and obtains the data composition structure of each data information based on the data category; the data composition structure corresponds to multiple components; for each data information, based on the data composition structure of the data information, the data information is split into multiple sub-data by a preset data splitting algorithm to obtain multiple sub-data corresponding to the data information, and the multiple sub-data are encrypted separately to obtain multiple sub-encrypted data; according to the components corresponding to each sub-encrypted data, the sub-encrypted data corresponding to the multiple data information are classified and summarized to obtain multiple sub-encryption groups, and each sub-encryption group is encrypted with data sequence to obtain the target encrypted data.

[0053] In some embodiments of this application, the provided chip data encryption method can also be used for, for example Figure 1 The server 104 shown, or, in a system including terminal 102 and server 104.

[0054] In one exemplary embodiment, such as Figure 2 As shown, a chip data encryption method is provided, which can be applied to... Figure 1 Taking terminal 102 as an example, the explanation includes the following steps 202 to 206. Wherein:

[0055] Step 202: Obtain multiple data information from the IoT chip and the data category of each data information, and obtain the data composition structure of each data information based on the data category of each data information.

[0056] The data structure consists of multiple components.

[0057] In this embodiment, the terminal responds to the user's data encryption operation and obtains the data information that the IoT chip currently needs to encrypt. Then, the terminal identifies the data category of each data information. The data categories include, but are not limited to, location data, sensor data, qualitative data, and quantitative data. Next, based on the composition structure of the string corresponding to each data information, the terminal identifies the data composition structure of each data information. The data composition structure includes multiple structural components. These components include, but are not limited to, a data element part, a data item part, a basic information part, a data content part, and a data name part. The location data in the IoT chip can be data corresponding to the storage location information of other data, and the sensor data can be data information transmitted to the IoT chip by different sensors, including sound sensors, light sensors, and speed sensors.

[0058] For example, if the location data corresponds to the storage location information of different files, then the data element part of the location data is composed of the storage location information, which includes the storage server address, the storage unit address in the server, and the storage partition address in the storage unit, etc.; the data item part is the meaning of each character segment in the string corresponding to the data information, for example, the character segment corresponding to the data name of the location data means the data name, the character segment corresponding to the storage address of the location data means the data storage address, the character segment corresponding to the data size of the location data means the memory size, and the character segment corresponding to the data source of the location data means the source information, etc.; the basic information part is the format content of the data format of the location data, the amount of memory, and the storage address of the storage location, etc.; the data content part is the specific storage address of each file; and the data name part is the data name of the location data.

[0059] Step 204: For each piece of data, based on the data composition structure of the data information, the data information is split into multiple sub-data by a preset data splitting algorithm to obtain multiple sub-data. The multiple sub-data are then encrypted to obtain multiple encrypted sub-data.

[0060] In this embodiment, the terminal uses a data splitting algorithm to split the string corresponding to the data information into multiple sub-data contained in the data information. Then, the terminal performs encryption processing on each sub-data of each data information to obtain each encrypted sub-data.

[0061] For example, a data splitting algorithm can be a string splitting algorithm. This algorithm can split a string into multiple character segments.

[0062] For example, data encryption processing is a method of encrypting string data using the Bcrypt encryption algorithm.

[0063] Step 206: According to the components corresponding to each sub-encrypted data, classify and summarize the sub-encrypted data corresponding to multiple data information to obtain multiple sub-encryption groups, and perform data sequence encryption processing on each sub-encryption group to obtain the target encrypted data.

[0064] In this embodiment, the terminal categorizes and summarizes each sub-encrypted data according to its corresponding components to obtain sub-encryption groups, and performs data sequence encryption processing on each sub-encryption group to obtain the target encrypted data, thus completing the chip data encryption task. For example, the target encrypted data can be multiple target encrypted data sets, each corresponding to a sub-encryption group.

[0065] The data sequence encryption process involves iteratively encrypting each sub-encryption group based on the sequence corresponding to each sub-encryption data within that encryption group, thereby completing the data encryption. The number of iterations is the same as the number of sub-encryption data items in that sub-encryption group.

[0066] In the aforementioned chip data encryption method, the data information of the IoT chip is split according to the data composition structure of each data information, and each data is encrypted separately to obtain sub-encrypted data. Then, each sub-encrypted data is classified and summarized to obtain sub-encryption groups. Finally, each sub-encryption group is subjected to data sequence encryption processing to complete the chip data encryption task. By splitting the data for encryption and then categorizing and encrypting it sequentially, the encryption strength of each data information is improved, thereby enhancing the security protection effect of chip data.

[0067] In one exemplary embodiment, based on Figure 2 For an example, please refer to Figure 3 The process for obtaining data categories for each data information provided in this embodiment includes:

[0068] Step 302: For each piece of data, identify the source port and data type of the data.

[0069] Step 304: If the source port of the data information is a historical source port, the data type of the data information is used as the data category of the data information.

[0070] Step 306: If the source port of the data information is not a historical source port, add a new source identifier to the data type of the data information, and use the data type after adding the new source identifier as the data category of the data information.

[0071] In this embodiment, for each piece of data, the terminal identifies the source port and data type. Then, the terminal queries the historical database to see if each source port corresponds to a source port in the historical database. If the source port of the data corresponds to a source port in the historical database, the terminal determines that the source port is a historical source port; if the source port of the data does not have a corresponding source port in the historical database, the terminal determines that the source port is not a historical source port.

[0072] When the data source port is a historical source port, the terminal directly uses the data type as the data category. When the data source port is not a historical source port, the terminal adds a new source identifier to the data type and uses this new source identifier as the data category. For example, the data type may include text, voice, code, image, and video data types.

[0073] For example, the data source ports of an IoT chip may include a USB (Universal Serial Bus) port, an Ethernet port, an HDMI (High Definition Multimedia Interface) port, and an audio port.

[0074] In the chip data encryption method provided in the above embodiments, when the source of the data information is not a historical source port, the data category corresponding to the data information is obtained by adding a new source identifier to the data category. This allows for the differentiation of source ports based on the data category, making it easier to query the source port corresponding to the data information input by a new abnormal port, thereby improving the security protection effect of the data information.

[0075] In one exemplary embodiment, based on Figure 3 Please refer to the embodiments shown. Figure 4 The process of obtaining the data composition structure of each data information based on the data category provided in this embodiment includes:

[0076] Step 402: For each piece of data, identify the string corresponding to the data based on the data type, and determine the structural information of the string based on the structural name contained in the string.

[0077] Step 404: Treat each structural information as a component of the data information, and treat all components as the data composition structure.

[0078] For example, the terminal can identify the string corresponding to each data information based on its data type. This can include: the terminal querying the database for a conversion strategy to convert each data type into a string, and then converting each data information into the corresponding string based on the conversion strategy.

[0079] The terminal determines the structural information of the string based on the structural names contained within it. Then, the terminal treats each structural information as a component of the data information and uses all components as the data composition structure of the data information. Here, structural information refers to the structured data information that makes up the data content. For example, the location data consists of storage address information for different file contents. Each structural information is a structural framework for the storage address information of different files within the location data. This structural framework is determined based on the structural names in the string of the data information. These structural names may include the file identifier / filename of each file, the spatial address / region, city, district, etc., of each storage address, the server address, the storage unit address, and the storage partition address.

[0080] In the above embodiments, the components of data information are determined by the structure names included in the string, which facilitates the segmentation of the string and improves the efficiency of string segmentation.

[0081] In one exemplary embodiment, based on Figure 4 Please refer to the embodiments shown. Figure 5 The data composition structure based on data information provided in this embodiment, through a data splitting algorithm, performs data splitting processing to obtain multiple sub-data corresponding to the data information, including:

[0082] Step 502: For each piece of data information, based on the structural information corresponding to each component of the data information, the string corresponding to the data information is split into multiple character segments by a data splitting algorithm.

[0083] Step 504: For each character segment, obtain sub-data based on the character segment and its corresponding structure name.

[0084] The structure name of a character segment includes the attribution identifier corresponding to the data information to which the character segment belongs and the position information used to distinguish each sub-data in the corresponding data information.

[0085] Specifically, for each piece of data, the terminal uses a data splitting algorithm to split the string corresponding to that data based on the structural information corresponding to each component of the data, resulting in multiple character segments of the string.

[0086] For example, the data splitting algorithm can be a data interpolation algorithm. In this example, the terminal performs data interpolation processing on each piece of data based on each structural information, obtaining interpolated data corresponding to each piece of data. Then, the terminal splits the string based on the interpolated data, obtaining multiple character segments. The terminal then adds the structure name corresponding to each character segment to each character segment, which can be regarded as the category of each character segment.

[0087] In this embodiment, by splitting the data and adding a structure name to the split data, the efficiency of extracting the data information in the future is improved.

[0088] In one exemplary embodiment, based on Figure 2 The embodiment shown in this embodiment provides a process for encrypting multiple sub-data to obtain multiple sub-encrypted data, which includes: for each sub-data, encrypting the sub-data using the Bcrypt encryption algorithm, and using the structure name corresponding to the sub-data as the group identifier corresponding to the encrypted sub-data to obtain the sub-encrypted data.

[0089] For example, the terminal encrypts each piece of data using the Bcrypt encryption algorithm to obtain initial sub-encrypted data corresponding to each piece of data. Then, the terminal uses the structure name of the character segment corresponding to each piece of data as the group identifier of the initial sub-encrypted data; finally, the terminal uses the initial sub-encrypted data containing the group identifier as the sub-encrypted data.

[0090] This embodiment uses the Bcrypt encryption algorithm to perform one-way encryption on the sub-data, reducing the risk of data leakage.

[0091] In one exemplary embodiment, based on the foregoing embodiment using the Bcrypt encryption algorithm, please refer to... Figure 6 The process provided in this embodiment, which categorizes and summarizes the sub-encrypted data corresponding to multiple data information according to the components corresponding to each sub-encrypted data, to obtain multiple sub-encrypted groups, includes:

[0092] Step 602: Perform Euclidean distance calculation based on the structural information corresponding to each sub-encrypted data to obtain the similarity between each sub-encrypted data.

[0093] The terminal obtains the corresponding structural information based on the structural name of each sub-encrypted data, and then uses the isomorphic Euclidean distance algorithm to obtain the similarity between each structural information, that is, the similarity between each sub-encrypted data.

[0094] Step 604: Based on the similarity between the sub-encrypted data, cluster the sub-encrypted data to obtain multiple sub-encrypted data sets.

[0095] Step 606: For each sub-encrypted data set, sort the sub-encrypted data in descending order of the average similarity between each sub-encrypted data set and the other sub-encrypted data sets to obtain the sub-encryption group.

[0096] For example, the terminal sorts the sub-encrypted data in each sub-encrypted data set in descending order of the average similarity between each sub-encrypted data and the other sub-encrypted data, to obtain a sequence of sub-encrypted groups.

[0097] In this embodiment, sorting the sub-encrypted data in each sub-encryption group sequence facilitates the security protection of important sub-encrypted data during subsequent data sequence encryption. By sorting the similarity between each sub-encrypted data, the risk of abnormal clients corresponding to abnormal ports cracking all sub-encrypted data in the sub-encryption group corresponding to the sub-encrypted data through highly similar sub-encrypted data is reduced, thereby improving the security protection effect of all data information.

[0098] In one exemplary embodiment, based on Figure 6 The embodiment shown in this embodiment provides a process for encrypting data sequences in each sub-encryption group to obtain target encrypted data, which includes: for each sub-encryption group, performing gradient iterative encryption processing on each target sub-encryption data in the sub-encryption group in a sequential order from front to back to obtain target encrypted data.

[0099] Specifically, the terminal performs gradient iterative encryption processing on each sub-encryption data in each sub-encryption group based on the encryption group sequence and sequence encryption algorithm in each sub-encryption group, in the order of each encryption group sequence from front to back.

[0100] The specific execution process of gradient iterative encryption includes: after encrypting the first sub-encrypted data, encrypting the first two sub-encrypted data, then encrypting the first three sub-encrypted data, and so on, until all sub-encrypted data have been encrypted, thus completing the iterative encryption operation.

[0101] In this embodiment, by performing iterative encryption operations, the risk of leakage of the sub-encrypted data with the highest similarity to other sub-encrypted data is avoided, thereby improving the security protection effect of all data information.

[0102] In one exemplary embodiment, such as Figure 7 As shown, a chip data encryption method is provided, which can be applied to... Figure 1Taking terminal 102 as an example, the explanation includes the following steps 801 to 814. Wherein:

[0103] Step 701: Obtain multiple data information from the IoT chip.

[0104] Step 702: For each piece of data, identify the source port of the data and the data type.

[0105] Step 703: If the source port of the data information is a historical source port, the data type of the data information is used as the data category of the data information.

[0106] Step 704: If the source port of the data information is not a historical source port, add a new source identifier to the data type of the data information, and use the data type after adding the new source identifier as the data category of the data information.

[0107] Step 705: For each piece of data, identify the string corresponding to the data based on the data type, and determine the structural information of the string based on the structural name contained in the string.

[0108] Step 706: Treat each structural information as a component of the data information, and treat all components as the data composition structure.

[0109] Step 707: For each piece of data, based on the structural information corresponding to each component of the data, the string corresponding to the data is split using a data splitting algorithm to obtain multiple character segments of the string.

[0110] Step 708: For each character segment, obtain sub-data based on the character segment and the corresponding structure name.

[0111] Step 709: For each sub-data, encrypt the sub-data using the Bcrypt encryption algorithm, and use the structure name corresponding to the sub-data as the group identifier corresponding to the encrypted sub-data to obtain the sub-encrypted data.

[0112] Step 710: Perform Euclidean distance calculation based on the structural information corresponding to each sub-encrypted data to obtain the similarity between each sub-encrypted data.

[0113] Step 711: Based on the similarity between the sub-encrypted data, cluster the sub-encrypted data to obtain multiple sub-encrypted data sets.

[0114] Step 712: For each sub-encrypted data set, sort the sub-encrypted data in descending order of the average similarity between each sub-encrypted data set and the other sub-encrypted data sets to obtain the sub-encryption group.

[0115] Step 713: For each sub-encryption group, perform gradient iterative encryption processing on each target sub-encryption data in the sub-encryption group in order from front to back to obtain the target encrypted data.

[0116] Based on the same inventive concept, this application also provides a chip data decryption method for decrypting data obtained according to the above-described chip data encryption method.

[0117] In one exemplary embodiment, such as Figure 8 As shown, a chip data decryption method is provided, which can be applied to... Figure 1 Taking terminal 102 as an example, the explanation includes the following steps 802 to 804. Wherein:

[0118] Step 802: Obtain the data information extraction task and the data to be decrypted, and identify the data information identifiers contained in the data information extraction task; the data information identifiers include the identification information of the target sub-data corresponding to multiple components.

[0119] In this process, the terminal responds to the user's data extraction operation by acquiring the data extraction task and the data to be decrypted. Then, the terminal identifies the identifiers of each data element included in the data extraction task; these identifiers include identification information for target sub-data corresponding to multiple components. Based on the data extraction task, the terminal decrypts the data to be decrypted, which has been encrypted using the aforementioned chip data encryption method embodiment.

[0120] Step 804: For each data information identifier, identify the components corresponding to the data information identifier; and for each component, determine the target sub-encryption group to which the component belongs and the identifier information of the target sub-data corresponding to each component from the data to be decrypted, and perform sequence decryption processing on the target sub-encryption group.

[0121] Specifically, for each data information identifier, the terminal identifies the components corresponding to that data information identifier, and performs sequence decryption processing on the target sub-encryption group based on the target sub-encryption group to which each component belongs and the identifier information of the target sub-data corresponding to each component.

[0122] For example, the sequence decryption processing method is a decryption processing method preset in the terminal.

[0123] For example, this sequence decryption method corresponds to the gradient iterative encryption method.

[0124] For example, the identification information is the structure name corresponding to the target sub-data.

[0125] Step 806: Extract the sub-encrypted data corresponding to the target sub-data in the decrypted sub-encryption group, and identify the target sub-data corresponding to the sub-encrypted data through a preset encryption data verification strategy.

[0126] Specifically, the terminal extracts the sub-encrypted data corresponding to the target sub-data in the decrypted sub-encryption group, and identifies the target sub-data corresponding to the sub-encrypted data through the encryption data verification strategy preset in the terminal.

[0127] For example, the encrypted data verification strategy is uploaded to the terminal by the user based on the data verification strategy corresponding to the Bcrypt encryption algorithm.

[0128] Step 808: According to the structural information of the components corresponding to each target sub-data, perform data recombination processing on each target sub-data to obtain the data information corresponding to the data information identifier.

[0129] The terminal reassembles each target sub-data according to the structural information of its constituent parts to obtain the data information corresponding to the data information identifier.

[0130] The chip data encryption method provided in this embodiment can extract the data information corresponding to each data information identifier, thereby improving the data information extraction efficiency.

[0131] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0132] Based on the same inventive concept, this application also provides a chip data encryption device for implementing the chip data encryption method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more chip data encryption device embodiments provided below can be found in the limitations of the chip data encryption method described above, and will not be repeated here.

[0133] In one exemplary embodiment, such as Figure 9As shown, a chip data encryption device is provided, comprising an acquisition module 902, a first encryption module 904, and a second encryption module 906, wherein:

[0134] The acquisition module 902 is used to acquire multiple data information from the IoT chip and the data category of each data information, and based on the data category of each data information, to acquire the data composition structure of each data information; the data composition structure corresponds to multiple components.

[0135] The first encryption module 904 is used to perform data splitting processing on each piece of data information based on the data composition structure of the data information and through a preset data splitting algorithm to obtain multiple sub-data corresponding to the data information, and to perform data encryption processing on the multiple sub-data to obtain multiple sub-encrypted data.

[0136] The second encryption module 906 is used to classify and summarize the sub-encrypted data corresponding to multiple data information according to the components corresponding to each sub-encrypted data, to obtain multiple sub-encryption groups, and to perform data sequence encryption processing on each sub-encryption group to obtain the target encrypted data.

[0137] In one exemplary embodiment, the acquisition module 902 is specifically used for:

[0138] For each piece of data, identify the source port and data type of the data;

[0139] When the source port of the data information is a historical source port, the data type of the data information is used as the data category of the data information;

[0140] If the source port of the data information is not a historical source port, add a new source identifier to the data type of the data information, and use the data type with the added new source identifier as the data category of the data information.

[0141] In one exemplary embodiment, the acquisition module 902 is specifically used for:

[0142] For each piece of data, the string corresponding to the data information is identified based on the data type, and the structural information of the string is determined based on the structural name contained in the string.

[0143] Each piece of structural information is treated as a component of the data information, and all components are treated as the data composition structure.

[0144] In an exemplary embodiment, the first encryption module 904 is specifically used for:

[0145] For each piece of data, based on the structural information corresponding to each component of the data, the string corresponding to the data is split into multiple character segments by a data splitting algorithm.

[0146] For each character segment, sub-data is obtained based on the character segment and its corresponding structure name.

[0147] In an exemplary embodiment, the first encryption module 904 is specifically used for:

[0148] For each piece of data, the Bcrypt encryption algorithm is used to encrypt the data, and the structure name corresponding to the data is used as the group identifier of the encrypted data to obtain the encrypted sub-data.

[0149] In one exemplary embodiment, the second encryption module 906 is specifically used for:

[0150] The similarity between the sub-encrypted data is obtained by calculating the Euclidean distance based on the structural information corresponding to each sub-encrypted data.

[0151] Based on the similarity between the sub-encrypted data, the sub-encrypted data are clustered to obtain multiple sets of sub-encrypted data.

[0152] For each sub-encrypted data set, sort the sub-encrypted data in descending order of average similarity between each sub-encrypted data set and all other sub-encrypted data sets to obtain the target sub-encrypted group.

[0153] In one exemplary embodiment, the second encryption module 906 is specifically used for:

[0154] Based on the encryption sequence and sequence encryption algorithm in each sub-encryption group, gradient iterative encryption processing is performed on each sub-encryption data in each sub-encryption group in the order of each encryption sequence from front to back.

[0155] Based on the same inventive concept, this application also provides a chip data decryption apparatus for implementing the chip data decryption method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more chip data decryption apparatus embodiments provided below can be found in the limitations of the chip data decryption method described above, and will not be repeated here.

[0156] In one exemplary embodiment, such as Figure 10 As shown, a chip data decryption device is provided, comprising an identifier acquisition module 1002, an identification module 1004, a verification module 1006, and a reconstruction module 1008, wherein:

[0157] The identifier acquisition module 1002 is used to acquire the data information extraction task and the data to be decrypted, and to identify the identifiers of each data information contained in the data information extraction task; the data information identifiers include the identifier information of the target sub-data corresponding to multiple components.

[0158] The identification module 1004 is used to identify each component corresponding to each data information identifier; and for each component, to determine the target sub-encryption group to which the component belongs and the identification information of the target sub-data corresponding to each component from the data to be decrypted, and to perform sequence decryption processing on the target sub-encryption group.

[0159] The verification module 1006 is used to extract the sub-encrypted data corresponding to the target sub-data in the decrypted sub-encryption group, and identify the target sub-data corresponding to the sub-encrypted data through a preset encryption data verification strategy.

[0160] The recombination module 1008 is used to reorganize each target sub-data according to the structural information of the components corresponding to each target sub-data, so as to obtain the data information corresponding to the data information identifier.

[0161] Each module in the aforementioned chip data encryption and decryption devices can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.

[0162] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 11 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores data required for executing chip data encryption and / or chip data decryption methods. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a chip data encryption method and / or a chip data decryption method.

[0163] Those skilled in the art will understand that Figure 11 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0164] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0165] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0166] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0167] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0168] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0169] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0170] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A chip data encryption method, characterized in that, The method includes: The system acquires multiple data information from an IoT chip and the data category of each data information, and based on the data category of each data information, acquires the data composition structure of each data information; the data composition structure corresponds to multiple components. For each piece of data information, based on the data composition structure of the data information, the data information is split into multiple sub-data according to a preset data splitting algorithm to obtain multiple sub-data. The multiple sub-data are then encrypted to obtain multiple encrypted sub-data. According to the components corresponding to each of the sub-encrypted data, the sub-encrypted data corresponding to the multiple data information are classified and summarized to obtain multiple sub-encryption groups, and data sequence encryption processing is performed on each sub-encryption group to obtain the target encrypted data.

2. The method according to claim 1, characterized in that, The process of obtaining the data categories of each of the aforementioned data information includes: For each piece of data, identify the source port of the data and the data type of the data; When the source port of the data information is a historical source port, the data type of the data information is taken as the data category of the data information; If the source port of the data information is not a historical source port, a new source identifier is added to the data type of the data information, and the data type after adding the new source identifier is used as the data category of the data information.

3. The method according to claim 2, characterized in that, The process of obtaining the data composition structure of each piece of data based on its data category includes: For each piece of data information, the string corresponding to the data information is identified based on the data type, and the structural information of the string is determined based on the structural name contained in the string. Each of the structural information is considered a component of the data information, and all components are considered as the data composition structure.

4. The method according to claim 3, characterized in that, The data composition structure based on the data information, through a preset data splitting algorithm, performs data splitting processing on the data information to obtain multiple sub-data corresponding to the data information, including: For each piece of data information, based on the structural information corresponding to each component of the data information, the string corresponding to the data information is split using a data splitting algorithm to obtain multiple character segments of the string; For each character segment, the sub-data is obtained based on the character segment and the structure name corresponding to the character segment.

5. The method according to claim 4, characterized in that, The process of encrypting the multiple sub-data items to obtain multiple encrypted sub-data items includes: For each of the sub-data, the sub-data is encrypted using the Bcrypt encryption algorithm, and the structure name corresponding to the sub-data is used as the group identifier corresponding to the encrypted sub-data to obtain the sub-encrypted data.

6. The method according to claim 5, characterized in that, The step involves classifying and summarizing the sub-encrypted data corresponding to the multiple data information according to the components corresponding to each sub-encrypted data, resulting in multiple sub-encryption groups, including: Euclidean distance is calculated based on the structural information corresponding to each of the sub-encrypted data to obtain the similarity between the sub-encrypted data. Based on the similarity between the sub-encrypted data, the sub-encrypted data are clustered to obtain multiple sets of sub-encrypted data. For each of the sub-encrypted data sets, the sub-encrypted data sets are sorted in descending order of average similarity between each sub-encrypted data set and the other sub-encrypted data sets to obtain the sub-encryption group.

7. The method according to claim 6, characterized in that, The step of performing data sequence encryption processing on each of the sub-encryption groups to obtain the target encrypted data includes: For each of the sub-encryption groups, the target sub-encryption data in the sub-encryption group is subjected to gradient iterative encryption processing in a sequential order from front to back to obtain the target encrypted data.

8. A chip data decryption method, characterized in that, The method includes: The data information extraction task and the data to be decrypted are obtained, and the identifiers of each data information contained in the data information extraction task are identified; the data information identifiers include the identifier information of the target sub-data corresponding to multiple components; For each data information identifier, identify the components corresponding to the data information identifier; and for each component, determine the target sub-encryption group to which the component belongs and the identifier information of the target sub-data corresponding to each component from the data to be decrypted, and perform sequence decryption processing on the target sub-encryption group; Extract the sub-encrypted data corresponding to the target sub-data in the decrypted sub-encrypted group, and identify the target sub-data corresponding to the sub-encrypted data through a preset encryption data verification strategy; Based on the structural information of the components corresponding to each target sub-data, the target sub-data is reorganized to obtain the data information corresponding to the data information identifier.

9. A chip data encryption device, characterized in that, The device includes: The acquisition module is used to acquire multiple data information from the IoT chip and the data category of each data information, and based on the data category of each data information, acquire the data composition structure of each data information; the data composition structure corresponds to multiple components; The first encryption module is used to perform data splitting processing on each piece of data information based on the data composition structure of the data information and through a preset data splitting algorithm to obtain multiple sub-data corresponding to the data information, and to perform data encryption processing on each of the multiple sub-data to obtain multiple sub-encrypted data. The second encryption module is used to classify and summarize the sub-encrypted data corresponding to the multiple data information according to the components corresponding to each sub-encrypted data, to obtain multiple sub-encryption groups, and to perform data sequence encryption processing on each sub-encryption group to obtain target encrypted data.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Internet of Things sensor data encryption method and device

    CN113179284A

  • Digital signature confusion encryption method and device, computer equipment and storage medium

    CN114244518A