Data privacy protection method and device, equipment and storage medium
By encoding, coloring and distributing the initial privacy data and data holders, the target privacy data and holders are randomly generated, and combined with decoding processing, the problem of data leakage and initial data holders collusion and sharing in the prior art is solved. , improves the reliability and security of data privacy protection.
Patent Information
- Application Number
- CN202411086156.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-12-13
AI Technical Summary
Existing data privacy protection technologies pose a risk of data leakage and it is difficult to effectively reduce the possibility that initial data holders collude to share data to restore initial privacy data.
The initial privacy data set and the initial data holder set are encoded by the preset data encoder, and the target privacy data set and the target data holder subset are randomly generated, and the target privacy data set is used to use the preset coloring distributor to the target privacy data set. The coloring and random distribution process are performed, and the target privacy data packet is decoded by the preset data decoder to generate the decoded privacy data set.
It greatly reduces the possibility that the initial data holder colludes to share data to restore initial privacy data, improves the reliability of data privacy protection, ensures data confidentiality and security, avoids partial data leakage, and is suitable for the vast majority. Most types of privacy data.
Smart Images

Figure CN119128962A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to methods, devices, equipment and storage media for protecting data privacy. Background Art
[0002] In recent years, data security issues have become quite serious. As the value of data increases, the frequency of data attacks also shows an extremely increasing trend. Therefore, data security and data privacy protection are currently receiving more and more attention.
[0003] Traditionally, when protecting data privacy, data desensitization technology, secure multi-party computing technology, mobile applications to the data party for computing, etc. are usually used. For example, when using data desensitization technology, it can deform the data of certain sensitive information through desensitization rules, thereby achieving reliable protection of sensitive privacy data.
[0004] However, when using the above method to protect data privacy, there is still a risk of partial data leakage. Summary of the invention
[0005] The present application aims to at least solve the technical problems existing in the prior art. To this end, the first aspect of the present application proposes a data privacy protection method, which includes:
[0006] Obtain the initial privacy data set and the initial data holder set;
[0007] Performing data encoding processing on the initial private data set and the initial data holder set by using a preset data encoder, and randomly generating a target private data set corresponding to the initial private data set and a target data holder subset corresponding to the initial data holder set;
[0008] The target privacy data set is colored and randomly distributed through a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset;
[0009] Each target privacy data packet is decoded by a preset data decoder to generate a decoded privacy data set.
[0010] In a possible implementation, the process of generating a target privacy dataset includes:
[0011] The initial privacy dataset is subjected to data preprocessing operations through a preset data encoder to generate a target privacy dataset; the data preprocessing operations include invalid information removal, special character processing, dimension removal, disambiguation and normalization.
[0012] In a possible implementation, the process of generating a target data holder subset includes:
[0013] For the initial data holder set, generate a plurality of random codes corresponding to the number of elements in the initial data holder set; wherein the random codes are used to uniquely identify the initial data holders in the initial data holder set;
[0014] Based on the number of elements in the initial data holder set, randomly generate the number of target data holders that meet the preset conditions;
[0015] Based on the number of target data holders, a plurality of target data holders corresponding to the number of target data holders are randomly obtained from the initial data holder set, and a target data holder subset is obtained based on the plurality of target data holders; wherein each target data holder includes a corresponding random code.
[0016] In a possible implementation, a target privacy data set is colored and randomly distributed by a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset, including:
[0017] Using multiple target shaders to color the target privacy dataset to obtain a colored privacy dataset;
[0018] Assembling the colored privacy data sets obtained by shading with the same target shader to obtain multiple assembled privacy data packets;
[0019] The multiple assembled privacy data packets are randomly distributed to each target data holder in the target data holder subset to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
[0020] In a possible implementation, before using multiple target shaders to perform coloring processing on the target privacy data set to obtain the colored privacy data set, the method further includes:
[0021] Initializing the shader to obtain target shaders having multiple hues and number information corresponding to each target shader; wherein one target shader corresponds to one hue, and the number of target shaders is the same as the number of target data holders;
[0022] Split the target privacy data set to obtain multiple groups of split data;
[0023] Use multiple target shaders to shade the target privacy dataset to obtain a shaded privacy dataset, including:
[0024] Each target shader is used to colorize multiple groups of split data separately to obtain a colored privacy data set.
[0025] In a possible implementation, each target privacy data packet is decoded by a preset data decoder to generate a decoded privacy data set, including:
[0026] Obtaining target privacy data packets corresponding to each target data holder and parameter information required for decoding processing; wherein the parameter information includes each target data holder, a random code corresponding to each target data holder, a target shader, target shader number information, and a correspondence between each target data holder and the distributed assembled privacy data packet;
[0027] Perform data decoding processing on each target privacy data packet based on the parameter information to obtain an intermediate decoded data set;
[0028] The preset summary algorithm is used to verify the intermediate decoded data set, and the intermediate decoded data set after successful verification is used as the intermediate decoded data set.
[0029] In a possible implementation, data decoding processing is performed on each target privacy data packet based on the parameter information to obtain an intermediate decoded data set, including:
[0030] Sorting each target privacy data packet based on the parameter information to obtain a sorted target privacy data packet;
[0031] For each sorted target privacy data packet, multiple intermediate decoded data in the sorted target privacy data packet are sequentially retrieved, and an intermediate decoded data set is obtained based on the multiple intermediate decoded data.
[0032] The second aspect of the present application provides a data privacy protection device, which includes:
[0033] An acquisition module is used to obtain an initial privacy data set and an initial data holder set;
[0034] A first processing module, configured to perform data encoding processing on an initial private data set and an initial data holder set by using a preset data encoder, and randomly generate a target private data set corresponding to the initial private data set, and a target data holder subset corresponding to the initial data holder set;
[0035] The second processing module is used to color and randomly distribute the target privacy data set through a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset;
[0036] The third processing module is used to decode each target privacy data packet through a preset data decoder to generate a decoded privacy data set.
[0037] In a possible implementation manner, the data privacy protection device is further used to:
[0038] The initial privacy dataset is subjected to data preprocessing operations through a preset data encoder to generate a target privacy dataset; the data preprocessing operations include invalid information removal, special character processing, dimension removal, disambiguation and normalization.
[0039] In a possible implementation manner, the data privacy protection device is further used to:
[0040] For the initial data holder set, generate a plurality of random codes corresponding to the number of elements in the initial data holder set; wherein the random codes are used to uniquely identify the initial data holders in the initial data holder set;
[0041] Based on the number of elements in the initial data holder set, randomly generate the number of target data holders that meet the preset conditions;
[0042] Based on the number of target data holders, a plurality of target data holders corresponding to the number of target data holders are randomly obtained from the initial data holder set, and a target data holder subset is obtained based on the plurality of target data holders; wherein each target data holder includes a corresponding random code.
[0043] In a possible implementation manner, the second processing module is specifically used to:
[0044] Using multiple target shaders to color the target privacy dataset to obtain a colored privacy dataset;
[0045] Assembling the colored privacy data sets obtained by shading with the same target shader to obtain multiple assembled privacy data packets;
[0046] The multiple assembled privacy data packets are randomly distributed to each target data holder in the target data holder subset to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
[0047] In a possible implementation manner, the second processing module is further used for:
[0048] Initializing the shader to obtain target shaders having multiple hues and number information corresponding to each target shader; wherein one target shader corresponds to one hue, and the number of target shaders is the same as the number of target data holders;
[0049] Split the target privacy data set to obtain multiple groups of split data;
[0050] Use multiple target shaders to shade the target privacy dataset to obtain a shaded privacy dataset, including:
[0051] Each target shader is used to colorize multiple groups of split data separately to obtain a colored privacy data set.
[0052] In a possible implementation manner, the third processing module is specifically used to:
[0053] Obtaining target privacy data packets corresponding to each target data holder and parameter information required for decoding processing; wherein the parameter information includes each target data holder, a random code corresponding to each target data holder, a target shader, target shader number information, and a correspondence between each target data holder and the distributed assembled privacy data packet;
[0054] Perform data decoding processing on each target privacy data packet based on the parameter information to obtain an intermediate decoded data set;
[0055] The preset summary algorithm is used to verify the intermediate decoded data set, and the intermediate decoded data set after successful verification is used as the intermediate decoded data set.
[0056] In a possible implementation manner, the third processing module is further used for:
[0057] Sorting each target privacy data packet based on the parameter information to obtain a sorted target privacy data packet;
[0058] For each sorted target privacy data packet, multiple intermediate decoded data in the sorted target privacy data packet are sequentially retrieved, and an intermediate decoded data set is obtained based on the multiple intermediate decoded data.
[0059] The third aspect of the present application proposes an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data privacy protection method as described in the first aspect.
[0060] The fourth aspect of the present application proposes a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the data privacy protection method as described in the first aspect.
[0061] The embodiments of the present application have the following beneficial effects:
[0062] The data privacy protection method provided by the embodiment of the present application includes: obtaining an initial privacy data set and an initial data holder set, performing data encoding processing on the initial privacy data set and the initial data holder set by a preset data encoder, randomly generating a target privacy data set corresponding to the initial privacy data set, and a target data holder subset corresponding to the initial data holder set, performing coloring and random distribution processing on the target privacy data set by a preset coloring distributor, obtaining a target privacy data packet corresponding to each target data holder in the target data holder subset, and decoding processing on each target privacy data packet by a preset data decoder to generate a decoded privacy data set. In this scheme, the number and entity of the target data holders are randomly generated for each privacy data use process, which greatly reduces the possibility of the initial data holders colluding to share data to restore the initial privacy data, and improves the reliability of data privacy protection; in addition, by splitting the data in the form of token segmentation and adopting the coloring and random distribution mechanism, the confidentiality of the data in each link is guaranteed, the security is high, and the partial leakage of the data is avoided; and, since the data of different types of target privacy data sets can also be subjected to almost the same coloring, random distribution processing, and decoding processing, it is compatible with most types of privacy data and has high flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A block diagram of a computer device provided in an embodiment of the present application;
[0064] Figure 2 A flowchart of a data privacy protection method provided in an embodiment of the present application;
[0065] Figure 3 A flowchart of the steps for generating a target data holder subset provided in an embodiment of the present application;
[0066] Figure 4 A flowchart of the steps of coloring and randomly distributing a target privacy data set provided in an embodiment of the present application;
[0067] Figure 5 A flowchart of the steps of performing data decoding processing provided in an embodiment of the present application;
[0068] Figure 6 A flowchart of the steps of obtaining an intermediate decoded data set provided in an embodiment of the present application;
[0069] Figure 7 A structural block diagram of a data privacy protection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0071] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "multiple" means two or more. In addition, the use of "based on" or "according to" means openness and inclusiveness, because the process, steps, calculations or other actions "based on" or "according to" one or more of the conditions or values may be based on additional conditions or values beyond the described values in practice.
[0072] The data privacy protection method provided in the present application can be applied to computer devices (electronic devices). The computer device can be a server or a terminal. The server can be a single server or a server cluster composed of multiple servers. The embodiments of the present application do not make specific limitations on this. The terminal can be but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices.
[0073] Take the computer device as a server as an example. Figure 1 A block diagram of a server is shown, such as Figure 1 As shown, the server may include a processor and a memory connected via a system bus. The processor of the server is used to provide computing and control capabilities. The memory of the server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a data privacy protection method is implemented.
[0074] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. Optionally, the server may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0075] It should be noted that the execution subject of the embodiments of the present application may be a computer device or a data privacy protection device. The following method embodiments are described using a computer device as the execution subject.
[0076] Figure 2 A flowchart of a data privacy protection method provided in an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0077] Step 202: Obtain an initial privacy data set and an initial data holder set.
[0078] Among them, the initial privacy data set is the original data set that needs privacy protection, that is, a large data set with high density. The initial data holder set is the original data set that can be held by multiple parties. The initial data holder set that can be held by multiple parties is the most complete data set. For a specific data privacy protection, it may participate in holding or not participate, which can be set according to the algorithm.
[0079] Step 204: Perform data encoding processing on the initial private data set and the initial data holder set by using a preset data encoder, and randomly generate a target private data set corresponding to the initial private data set and a target data holder subset corresponding to the initial data holder set.
[0080] When generating a target privacy data set, a data preprocessing operation can be performed on the initial privacy data set through a preset data encoder to generate a target privacy data set. The data preprocessing operation includes invalid information removal, special character processing, dimension removal, disambiguation, and normalization, and may also include other types of data preprocessing processes, which are not specifically limited in the embodiments of the present application. The specific implementation process of the data preprocessing operation can refer to the prior art and will not be repeated here.
[0081] When generating the target data holder subset, in some optional embodiments, such as Figure 3 As shown, Figure 3 A flowchart of the steps of generating a target data holder subset provided in an embodiment of the present application includes:
[0082] Step 302: For the initial data holder set, generate a plurality of random codes corresponding to the number of elements in the initial data holder set.
[0083] Step 304: Based on the number of elements in the initial data holder set, randomly generate the number of target data holders that meet the preset conditions.
[0084] Step 306: Based on the number of target data holders, a plurality of target data holders corresponding to the number of target data holders are randomly obtained from the initial data holder set, and a target data holder subset is obtained based on the plurality of target data holders.
[0085] The random code is used to uniquely identify each initial data holder in the initial data holder set. For the initial data holder set, multiple random codes corresponding to the number of elements in the initial data holder set need to be generated. Optionally, the random code can be composed of 32-bit hexadecimal numbers or other types of random codes, which are not specifically limited in the embodiments of the present application.
[0086] Exemplarily, if there are y elements in the initial data holder set, that is, there are y initial data holders, then a corresponding random code needs to be generated for each initial data holder.
[0087] Next, it is necessary to randomly generate a target number of data holders that meets the preset conditions based on the number of elements in the initial data holder set. Specifically, a target number of data holders k can be randomly generated based on the number of elements y in the initial data holder set, and it is necessary to verify whether y and k meet the preset conditions. Optionally, the preset condition can be y*25%<=k<=y*75%. If the preset condition is not met, it is necessary to regenerate the target number of data holders k and then re-verify until the preset condition is met.
[0088] Finally, based on the number of target data holders, multiple target data holders corresponding to the number k of target data holders can be randomly obtained from the initial data holder set, that is, k target data holders can be randomly obtained. The k target data holders can also be numbered respectively, and the number set can also be recorded as k_code. A target data holder subset is obtained based on the multiple target data holders, wherein each target data holder includes a corresponding random code.
[0089] Step 206: The target privacy data set is colored and randomly distributed by a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
[0090] Among them, after obtaining the target privacy data set and the target data holder subset, the target privacy data set can be colored and randomly distributed through a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
[0091] In some optional embodiments, Figure 4 As shown, Figure 4A flowchart of the steps of coloring and randomly distributing a target privacy data set provided in an embodiment of the present application includes:
[0092] Step 402: Use multiple target shaders to shade the target privacy data set to obtain a shaded privacy data set.
[0093] Step 404: Assemble the shaded privacy data sets obtained by shading with the same target shader to obtain a plurality of assembled privacy data packets.
[0094] Step 406: randomly distribute the multiple assembled privacy data packets to each target data holder in the target data holder subset, and obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
[0095] Among them, the data coloring and distribution part can be completed by the preset coloring distributor, which mainly completes the splitting, coloring and distribution tasks of the data set. In addition, the preset data encoder and the preset coloring distributor are often completed at the data source, which is often a data warehouse or intranet environment, isolated from the data application network. Therefore, the data holder cannot directly use the data in this network, ensuring the privacy and security of the data.
[0096] Before using multiple target shaders to color the target privacy data set and obtain the colored privacy data set, the shader can be initialized to obtain target shaders with multiple tones and number information corresponding to each target shader. The target privacy data set is split to obtain multiple groups of split data.
[0097] Wherein, one target shader corresponds to one hue, and the number of target shaders is the same as the number of target data holders. Exemplarily, a target shader with m hues can be generated, where m=k. In addition, the m target shaders can be numbered respectively, and the obtained number set can be recorded as m_code. The m target shaders correspond to k target data holders.
[0098] When splitting the target privacy data set, a preset splitting method can be used. For example, for language, text, and structured data, the target privacy data set can be completely split using word segmentation technology. Similar to splitting in the form of token segmentation, the result of the split is a large vector. Token refers to an entity in the data, which can be a word or a character. Among them, the word segmentation technology can be Jieba word segmentation technology or other types of word segmentation technology, which is not specifically limited in the embodiments of the present application.
[0099] Therefore, when using multiple target shaders to shade the target privacy data set to obtain the shaded privacy data set, each target shader can be used to shade the multiple groups of split data separately to obtain the shaded privacy data sets.
[0100] Among them, the multiple groups of split data can be colored with the help of a coloring tool. Coloring is to add specific marks to the colored objects. The specific implementation process can refer to the existing technology and will not be repeated here. The coloring rule can be: color each group of split data one by one according to the order of k tones in the target shader. For example, if the target shader is [r1, r2, ..., rk], and the multiple groups of split data are [a1, a2, ..., an], r1 can be used to color a1, r2 to color a2..., rk to color ak. Then, r1 can be used to continue to color a(k+1), r2 to continue to color a(k+2), ..., repeat the process until all the split data are colored. ak and a(k+1) are the data in [a1, a2, ..., an], and the coloring is considered to be completed after the last data an is colored.
[0101] Finally, the colored privacy data sets obtained by coloring with the same target shader can be assembled to obtain multiple assembled privacy data packets. The multiple assembled privacy data packets are then randomly distributed to each target data holder in the target data holder subset to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
[0102] When the assembly process is performed, for example, for the target shader r1, r1 is shaded by a1, r1 is shaded by a(k+1), ..., therefore, all the split data shaded by the target shader r1 are assembled. The split data shaded by other target shaders are assembled in the same way, which will not be described one by one here.
[0103] In addition, since the assembly is performed according to the type of the target shader, and the number of target shaders is the same as the number of target data holders, the number of assembled privacy data packets is also the same as the number of target data holders.
[0104] Step 208: Decode each target privacy data packet using a preset data decoder to generate a decoded privacy data set.
[0105] Among them, the preset data decoder mainly realizes the tasks of data restoration and data verification. The process of data decoding can be regarded as the inverse process of data coloring and distribution. The preset data decoder is often completed in an intranet with high confidentiality. The data after decoding and verification can be used directly, and each data application can use the decoded privacy data set without worrying about data leakage. The data of the preset data decoder comes from the target privacy data packet after coloring by each target data holder, and cannot be used directly, so data security is guaranteed. It should be noted that during the use of data, the decoded privacy data set is not stored or landed. The data is only decoded during use and deleted after use, which ensures the security of privacy data.
[0106] In some optional embodiments, Figure 5 As shown, Figure 5 A flowchart of the steps of performing data decoding processing provided in an embodiment of the present application includes:
[0107] Step 502: Obtain target privacy data packets corresponding to each target data holder and parameter information required for decoding processing.
[0108] Step 504: Perform data decoding processing on each target privacy data packet based on the parameter information to obtain an intermediate decoded data set.
[0109] Step 506: Use a preset summary algorithm to verify the intermediate decoded data set, and use the intermediate decoded data set after successful verification as the intermediate decoded data set.
[0110] Among them, the parameter information includes various parameters such as each target data holder, the random code corresponding to each target data holder, the target shader, the numbering information of the target shader, the correspondence between each target data holder and the distributed assembled privacy data packet, etc.
[0111] In the process of data decoding, in some optional embodiments, such as Figure 6 As shown, Figure 6 A flowchart of the steps of obtaining an intermediate decoded data set provided in an embodiment of the present application includes:
[0112] Step 602: sort each target privacy data packet based on the parameter information to obtain a sorted target privacy data packet.
[0113] Step 604: For each sorted target privacy data packet, take out a plurality of intermediate decoded data in the sorted target privacy data packet in order, and obtain an intermediate decoded data set based on the plurality of intermediate decoded data.
[0114] Among them, the target privacy data packets corresponding to each target data holder can be obtained according to the parameter information required for the decoding process. Then, the target privacy data packets can be sorted based on the number information in the number set to obtain the sorted target privacy data packets.
[0115] Then, for each sorted target privacy data packet, take out multiple intermediate decoded data in the sorted target privacy data packet in order, and obtain an intermediate decoded data set based on the multiple intermediate decoded data. For example, if there are 5 target data holders, corresponding to 5 target data shaders, numbered 1, 2, 3, 4, and 5, the final 5 target privacy data packets numbered code1 to code5 are formed. Take out a target privacy data packet from the first position in code1 to code5 in turn, and arrange the multiple intermediate decoded data in the target privacy data packet in order. Then take out a target privacy data packet from the second position in code1 to code5 in turn and put it behind the first one, and so on, until the data in all the target privacy data packets are taken, and the intermediate decoded data set is finally combined in order.
[0116] After obtaining the intermediate decoded data set, it is also necessary to verify the intermediate decoded data set. Optionally, a preset summary algorithm can be used to verify the intermediate decoded data set, and the intermediate decoded data set after successful verification is used as the intermediate decoded data set. Among them, the preset summary algorithm can be used to calculate the summary of the intermediate decoded data set to obtain the summary value x10, and compare it with the summary value x0 of the initial privacy data set to see if they are equal. If they are not equal, it is considered that the data transmission or restoration is incorrect, otherwise it is successful.
[0117] Finally, the successfully verified intermediate decoded data set can be handed over to a specific application in the environment, which uses it to complete specific business rules and permanently deletes the data restored after the current decoding process. In addition, it should be noted that the data here is the data of the target privacy data set after splitting, random distribution, and decoding. It is temporary data in a secure environment built for specific applications. It will be deleted after use, and it will have no effect on the original data, that is, the initial privacy data set, because it is no longer in the same environment, which further ensures the security of privacy data.
[0118] The present application provides a data privacy protection method, which includes: obtaining an initial privacy data set and an initial data holder set, performing data encoding processing on the initial privacy data set and the initial data holder set through a preset data encoder, randomly generating a target privacy data set corresponding to the initial privacy data set, and a target data holder subset corresponding to the initial data holder set, performing coloring and random distribution processing on the target privacy data set through a preset coloring distributor, obtaining a target privacy data packet corresponding to each target data holder in the target data holder subset, and decoding processing on each target privacy data packet through a preset data decoder to generate a decoded privacy data set. In this scheme, the number and entity of the target data holders are randomly generated for each privacy data use process, which greatly reduces the possibility of the initial data holders colluding to share data to restore the initial privacy data, and improves the reliability of data privacy protection; in addition, by splitting the data in the form of token segmentation and adopting the coloring and random distribution mechanism, the confidentiality of the data in each link can be guaranteed, the security is high, and the partial leakage of the data is avoided; and, since the data of different types of target privacy data sets can also be subjected to almost the same coloring, random distribution processing, and decoding processing, it is compatible with most types of privacy data and has high flexibility.
[0119] Figure 7 A structural block diagram of a data privacy protection device provided in an embodiment of the present application.
[0120] like Figure 7 As shown, the data privacy protection device 700 includes:
[0121] The acquisition module 702 is used to acquire an initial privacy data set and an initial data holder set.
[0122] The first processing module 704 is used to perform data encoding processing on the initial privacy data set and the initial data holder set through a preset data encoder, and randomly generate a target privacy data set corresponding to the initial privacy data set and a target data holder subset corresponding to the initial data holder set.
[0123] The second processing module 706 is used to color and randomly distribute the target privacy data set through a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
[0124] The third processing module 708 is used to decode each target privacy data packet through a preset data decoder to generate a decoded privacy data set.
[0125] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here. Each module in the above data privacy protection device can be implemented in whole or in part by software, hardware, and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations of the above modules.
[0126] In one embodiment of the present application, a computer device is provided, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0127] Obtain the initial privacy data set and the initial data holder set;
[0128] Performing data encoding processing on the initial private data set and the initial data holder set by using a preset data encoder, and randomly generating a target private data set corresponding to the initial private data set and a target data holder subset corresponding to the initial data holder set;
[0129] The target privacy data set is colored and randomly distributed through a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset;
[0130] Each target privacy data packet is decoded by a preset data decoder to generate a decoded privacy data set.
[0131] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps:
[0132] The initial privacy dataset is subjected to data preprocessing operations through a preset data encoder to generate a target privacy dataset; the data preprocessing operations include invalid information removal, special character processing, dimension removal, disambiguation and normalization.
[0133] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps:
[0134] For the initial data holder set, generate a plurality of random codes corresponding to the number of elements in the initial data holder set; wherein the random codes are used to uniquely identify the initial data holders in the initial data holder set;
[0135] Based on the number of elements in the initial data holder set, randomly generate the number of target data holders that meet the preset conditions;
[0136] Based on the number of target data holders, a plurality of target data holders corresponding to the number of target data holders are randomly obtained from the initial data holder set, and a target data holder subset is obtained based on the plurality of target data holders; wherein each target data holder includes a corresponding random code.
[0137] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps:
[0138] Using multiple target shaders to color the target privacy dataset to obtain a colored privacy dataset;
[0139] Assembling the colored privacy data sets obtained by shading with the same target shader to obtain multiple assembled privacy data packets;
[0140] The multiple assembled privacy data packets are randomly distributed to each target data holder in the target data holder subset to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
[0141] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps:
[0142] Initializing the shader to obtain target shaders having multiple hues and number information corresponding to each target shader; wherein one target shader corresponds to one hue, and the number of target shaders is the same as the number of target data holders;
[0143] Split the target privacy data set to obtain multiple groups of split data;
[0144] Use multiple target shaders to shade the target privacy dataset to obtain a shaded privacy dataset, including:
[0145] Each target shader is used to colorize multiple groups of split data separately to obtain a colored privacy data set.
[0146] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps:
[0147] Obtaining target privacy data packets corresponding to each target data holder and parameter information required for decoding processing; wherein the parameter information includes each target data holder, a random code corresponding to each target data holder, a target shader, target shader number information, and a correspondence between each target data holder and the distributed assembled privacy data packet;
[0148] Perform data decoding processing on each target privacy data packet based on the parameter information to obtain an intermediate decoded data set;
[0149] The preset summary algorithm is used to verify the intermediate decoded data set, and the intermediate decoded data set after successful verification is used as the intermediate decoded data set.
[0150] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps:
[0151] Sorting each target privacy data packet based on the parameter information to obtain a sorted target privacy data packet;
[0152] For each sorted target privacy data packet, multiple intermediate decoded data in the sorted target privacy data packet are sequentially retrieved, and an intermediate decoded data set is obtained based on the multiple intermediate decoded data.
[0153] The computer device provided in the embodiment of the present application has similar implementation principles and technical effects to those of the above-mentioned method embodiment, and will not be described in detail here.
[0154] In one embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0155] Obtain the initial privacy data set and the initial data holder set;
[0156] Performing data encoding processing on the initial private data set and the initial data holder set by using a preset data encoder, and randomly generating a target private data set corresponding to the initial private data set and a target data holder subset corresponding to the initial data holder set;
[0157] The target privacy data set is colored and randomly distributed through a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset;
[0158] Each target privacy data packet is decoded by a preset data decoder to generate a decoded privacy data set.
[0159] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented:
[0160] The initial privacy dataset is subjected to data preprocessing operations through a preset data encoder to generate a target privacy dataset; the data preprocessing operations include invalid information removal, special character processing, dimension removal, disambiguation and normalization.
[0161] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented:
[0162] For the initial data holder set, generate a plurality of random codes corresponding to the number of elements in the initial data holder set; wherein the random codes are used to uniquely identify the initial data holders in the initial data holder set;
[0163] Based on the number of elements in the initial data holder set, randomly generate the number of target data holders that meet the preset conditions;
[0164] Based on the number of target data holders, a plurality of target data holders corresponding to the number of target data holders are randomly obtained from the initial data holder set, and a target data holder subset is obtained based on the plurality of target data holders; wherein each target data holder includes a corresponding random code.
[0165] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented:
[0166] Using multiple target shaders to color the target privacy dataset to obtain a colored privacy dataset;
[0167] Assembling the colored privacy data sets obtained by shading with the same target shader to obtain multiple assembled privacy data packets;
[0168] The multiple assembled privacy data packets are randomly distributed to each target data holder in the target data holder subset to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
[0169] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented:
[0170] Initializing the shader to obtain target shaders having multiple hues and number information corresponding to each target shader; wherein one target shader corresponds to one hue, and the number of target shaders is the same as the number of target data holders;
[0171] Split the target privacy data set to obtain multiple groups of split data;
[0172] Use multiple target shaders to shade the target privacy dataset to obtain a shaded privacy dataset, including:
[0173] Each target shader is used to colorize multiple groups of split data separately to obtain a colored privacy data set.
[0174] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented:
[0175] Obtaining target privacy data packets corresponding to each target data holder and parameter information required for decoding processing; wherein the parameter information includes each target data holder, a random code corresponding to each target data holder, a target shader, target shader number information, and a correspondence between each target data holder and the distributed assembled privacy data packet;
[0176] Perform data decoding processing on each target privacy data packet based on the parameter information to obtain an intermediate decoded data set;
[0177] The preset summary algorithm is used to verify the intermediate decoded data set, and the intermediate decoded data set after successful verification is used as the intermediate decoded data set.
[0178] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented:
[0179] Sorting each target privacy data packet based on the parameter information to obtain a sorted target privacy data packet;
[0180] For each sorted target privacy data packet, multiple intermediate decoded data in the sorted target privacy data packet are sequentially retrieved, and an intermediate decoded data set is obtained based on the multiple intermediate decoded data.
[0181] The computer-readable storage medium provided in this embodiment has similar implementation principles and technical effects to those of the above method embodiments, and will not be described in detail here.
[0182] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0183] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0184] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A data privacy protection method, characterized in that: The method comprises: Obtain the initial privacy data set and the initial data holder set; Performing data encoding processing on the initial private data set and the initial data holder set by using a preset data encoder, and randomly generating a target private data set corresponding to the initial private data set and a target data holder subset corresponding to the initial data holder set; The target private data set is colored and randomly distributed by a preset coloring distributor to obtain a target private data packet corresponding to each target data holder in the target data holder subset; Each of the target privacy data packets is decoded by a preset data decoder to generate a decoded privacy data set.
2. The method according to claim 1, characterized in that The process of generating the target privacy dataset includes: The initial privacy data set is subjected to data preprocessing by the preset data encoder to generate the target privacy data set; wherein the data preprocessing operation includes invalid information removal, special character processing, dimension removal, disambiguation and normalization.
3. The method according to claim 1 or 2, characterized in that: The process of generating a target data holder subset includes: For the initial data holder set, generate a plurality of random codes corresponding to the number of elements in the initial data holder set; wherein the random codes are used to uniquely identify the initial data holders in the initial data holder set; Based on the number of elements in the initial data holder set, randomly generating the number of target data holders that meet preset conditions; Based on the number of target data holders, a plurality of target data holders corresponding to the number of target data holders are randomly obtained from the initial data holder set, and the target data holder subset is obtained based on the plurality of target data holders; wherein each of the target data holders includes a corresponding random code.
4. The method according to claim 1 or 2, characterized in that: The target privacy data set is colorized and randomly distributed by a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset, including: Using multiple target shaders to perform coloring on the target privacy data set to obtain a colored privacy data set; Assembling the colored privacy data sets obtained by shading with the same target shader to obtain a plurality of assembled privacy data packets; The multiple assembled privacy data packets are randomly distributed to each target data holder in the target data holder subset to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset.
5. The method according to claim 4, characterized in that Before using a plurality of target shaders to perform coloring processing on the target privacy data set to obtain a colored privacy data set, the method further includes: Initializing the shader to obtain target shaders having a plurality of hues and number information corresponding to each of the target shaders; wherein one target shader corresponds to one hue, and the number of the target shaders is the same as the number of the target data holders; Splitting the target privacy data set to obtain multiple groups of split data; The step of using a plurality of target shaders to perform coloring processing on the target privacy data set to obtain a colored privacy data set includes: The target shaders are used to perform coloring processing on the multiple groups of split data respectively to obtain the colored privacy data sets.
6. The method according to claim 1 or 2, characterized in that: The step of decoding each of the target privacy data packets by using a preset data decoder to generate a decoded privacy data set includes: Obtaining target privacy data packets corresponding to each target data holder and parameter information required for decoding processing; wherein the parameter information includes each target data holder, a random code corresponding to each target data holder, the target shader, the numbering information of the target shader, and the correspondence between each target data holder and the distributed assembled privacy data packet; Performing data decoding processing on each of the target privacy data packets based on the parameter information to obtain an intermediate decoded data set; The intermediate decoded data set is verified using a preset digest algorithm, and the intermediate decoded data set after successful verification is used as the intermediate decoded data set.
7. The method according to claim 6, characterized in that The step of performing data decoding processing on each of the target privacy data packets based on the parameter information to obtain an intermediate decoded data set includes: Sorting the target privacy data packets based on the parameter information to obtain sorted target privacy data packets; For each of the sorted target privacy data packets, multiple intermediate decoded data in the sorted target privacy data packets are sequentially retrieved, and the intermediate decoded data set is obtained based on the multiple intermediate decoded data.
8. A data privacy protection device, characterized in that: The device comprises: An acquisition module is used to obtain an initial privacy data set and an initial data holder set; A first processing module, configured to perform data encoding processing on the initial private data set and the initial data holder set by using a preset data encoder, and randomly generate a target private data set corresponding to the initial private data set and a target data holder subset corresponding to the initial data holder set; A second processing module is used to color and randomly distribute the target privacy data set through a preset coloring distributor to obtain a target privacy data packet corresponding to each target data holder in the target data holder subset; The third processing module is used to decode each of the target privacy data packets through a preset data decoder to generate a decoded privacy data set.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data privacy protection method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data privacy protection method as described in any one of claims 1-7.
