Data sharing method and device

By identifying sensitive data of power users' electricity consumption data and applying multiple desensitization processes, combined with homomorphic encryption and differential privacy calculations, the problem of poor matching between desensitization methods and sensitive data in the existing technology is solved, and a flexible and adaptive Formulated with multiple levels of precise desensitization.

CN117725611BActive Publication Date: 2024-09-13INFORMATION & COMM COMPANY OF QINGHAI ELECTRIC POWER +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311628359.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2024-09-13
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

When the existing technology performs privacy desensitization on power users' electricity data, the desensitization method does not match the sensitive data well, and it cannot flexibly adapt to different power data scenarios. The degree of desensitization is not complete enough, and it is impossible to achieve multi-level and accurate three-dimensional images. desensitization.

Method used

After receiving the data sharing request, the target shared data is determined, sensitive data is identified, and desensitization is performed twice according to the data type and sensitivity level. Multiple desensitization strategies are used, such as homomorphic encryption and differential privacy calculation, and appropriate desensitization is selected according to the scenario type. Sensitization method to improve desensitization matching.

Benefits of technology

It realizes the flexible determination of desensitization strategies based on data sharing requests, improves the matching between desensitization methods and sensitive data, ensures the accuracy and completeness of the desensitization process, and is suitable for different power data scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117725611B
    Figure CN117725611B
Patent Text Reader

Abstract

The present invention discloses a data sharing method and device. The method includes: after receiving a data sharing request, determining the target shared data according to the data sharing request; after searching for the target shared data, determining the sensitive data in the target shared data; performing a desensitization process on the sensitive data according to the data type of the target shared data to obtain the target shared data after the desensitization process; determining a secondary desensitization strategy for the target shared data according to the sensitivity level of the sensitive data, the target shared data after the desensitization process, the data type and the scenario type value; performing a secondary desensitization process on the target shared data again through the secondary desensitization strategy to obtain the target desensitized shared data; sending the target desensitized shared data to the sending end of the data sharing request. The present invention solves the technical problem in the related art that in the process of performing privacy desensitization on the electricity consumption data of power users, there is a low matching degree between the desensitization method and the sensitive data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data sharing, and in particular to a data sharing method and device. Background Art

[0002] At present, the privacy desensitization methods for power users' electricity consumption data are mainly limited to traditional access control technology and knowledge graph methods. At the same time, there are also a series of general methods for sensitive data privacy protection, including: replacing low-granularity values ​​with high-granularity values ​​to achieve generalization; standardizing node connections to achieve hiding; differential privacy (DP) hiding of node edges; generalizing by dividing data table quasi-identifiers and sensitive attributes into two tables; adding sensitive attribute value distribution constraints on the basis of k-anonymity; matrix transformation and distance-preserving hiding; using multi-party secure computing to achieve distribution subgraph hiding; using regions instead of specific locations to achieve generalization.

[0003] The above-mentioned desensitization technologies are relatively common desensitization methods. When these data desensitization methods are applied to the privacy protection of sensitive data of user electricity consumption data, there are problems such as inflexible and inaccurate matching methods and coarse granularity. Not only can they not flexibly adapt the desensitization methods according to different power data scenarios, but the degree of desensitization is not complete enough. For data with higher sensitivity, multi-level and accurate three-dimensional desensitization cannot be performed.

[0004] In the process of privacy desensitizing the electricity consumption data of power users in the above-mentioned related technologies, there is a problem that the desensitization method and the sensitive data are not well matched, and no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a data sharing method and device to at least solve the technical problem in the related art that, in the process of performing privacy desensitization on power consumption data of power users, the degree of matching between the desensitization method and the sensitive data is not high.

[0006] According to one aspect of an embodiment of the present invention, there is provided a data sharing method, comprising: after receiving a data sharing request, determining target shared data according to the data sharing request, wherein the data sharing request is a request sent by a non-local system according to data requirements; after searching for the target shared data, determining sensitive data in the target shared data; performing a primary desensitization process on the sensitive data according to the data type of the target shared data to obtain the target shared data after the primary desensitization process; determining a secondary desensitization strategy for the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization process, the data type and a scenario type value, wherein the scenario type value is a representation value of an application scenario of the target shared data; performing a secondary desensitization process on the target shared data after the primary desensitization process by using the secondary desensitization strategy to obtain target desensitized shared data; and sending the target desensitized shared data to the sending end of the data sharing request.

[0007] Optionally, before determining the sensitive data in the target shared data, the method further includes: determining a storage location of the target shared data; and searching the storage location to obtain the target shared data.

[0008] Optionally, determining the sensitive data in the target shared data includes: calling corresponding sensitive data discovery rules according to the data type of the target shared data, wherein the sensitive data discovery rules are pre-set rules used to search for sensitive data; and performing sensitive data discovery on the target shared data using the sensitive data discovery rules to obtain the sensitive data in the target shared data.

[0009] Optionally, the sensitive data is desensitized according to the data type of the target shared data to obtain the target shared data after the desensitization, including: determining the data type of each part in the target shared data; de-identifying the numerical data of the target shared data whose data type is numerical, so as to desensitize the numerical data in the target shared data, and obtain the numerical data after the desensitization, wherein the de-identification is to hide part of the information in the numerical data; anonymizing the character data of the target shared data whose data type is character, so as to desensitize the character data in the target shared data, and obtain the character data after the desensitization, wherein the anonymization is to hide at least one of the following in the character data: name, address; determining that the numerical data after the desensitization and the character data after the desensitization are the target shared data after the desensitization.

[0010] Optionally, before determining the secondary desensitization strategy of the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type and the scenario type value, it also includes one of the following: classifying the target shared data according to predetermined dimensions to obtain the target shared data after classification processing, wherein the predetermined dimensions include at least one of the following: data type, business type; classifying the target shared data through a classification model to obtain the target shared data after classification processing, wherein the classification model is a model obtained by machine learning training using multiple groups of training data, and each of the multiple groups of training data includes: sample shared data and classification results corresponding to the sample shared data.

[0011] Optionally, determining the sensitive data in the target shared data includes: calling corresponding sensitive data discovery rules according to the data type of the target shared data after classification processing, wherein the sensitive data discovery rules are preset rules used to search for sensitive data; performing sensitive data discovery on the target shared data after classification processing using the sensitive data discovery rules; and determining the sensitive data in the target shared data based on the processing results of the sensitive data discovery.

[0012] Optionally, the data sharing method further includes: determining a business type corresponding to the target shared data after classification processing, wherein different business types are preset with corresponding sensitivity levels; and determining a sensitivity level of the sensitive data according to the business type.

[0013] Optionally, determining a secondary desensitization strategy for the target shared data according to the sensitivity level of the sensitive data, the target shared data after a primary desensitization process, the data type, and the scene type value comprises: determining an intermediate value corresponding to the sensitivity level of the sensitive data, the target shared data after a primary desensitization process, the data type, and the scene type value by a predetermined formula, wherein the predetermined formula is: z represents the intermediate value, nr represents the sensitivity level, w n represents the weight of the sensitivity level, uw represents the authority of the user account that sends the data sharing request, and w u represents the weight of the permission, cd represents the data type, w c represents the weight of the data type, sc represents the scene type, and w sRepresenting the weight of the scene type; comparing the intermediate value with multiple sensitivity level intervals to obtain a comparison result; determining the target sensitivity level interval corresponding to the intermediate value according to the comparison result; determining the target value corresponding to the target sensitivity level area; searching the desensitization strategy set according to the target value to obtain the secondary desensitization strategy, wherein the desensitization strategy set stores multiple records, and each of the multiple records records a desensitization strategy and a numerical value corresponding to the desensitization strategy.

[0014] Optionally, the target shared data after the first desensitization processing is subjected to a second desensitization processing through the second desensitization strategy to obtain target desensitized shared data, including one of the following: when the sensitivity level of the sensitive data is higher than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data, and the scenario type is machine learning, the target shared data after the first desensitization processing is subjected to a second desensitization processing through a desensitization strategy of homomorphic encryption type to obtain target desensitized shared data; when the sensitivity level of the sensitive data is lower than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data, and the scenario type is statistical analysis, the target shared data after the first desensitization processing is subjected to a second desensitization processing through a desensitization strategy of differential privacy computing to obtain target desensitized shared data.

[0015] According to another aspect of an embodiment of the present invention, a data sharing device is also provided, including: a first determination unit, for determining target shared data according to a data sharing request after receiving a data sharing request, wherein the data sharing request is a request sent by a non-local system according to data requirements; a second determination unit, for determining sensitive data in the target shared data after searching for the target shared data; a first acquisition unit, for performing a primary desensitization process on the sensitive data according to the data type of the target shared data to obtain the target shared data after the primary desensitization process; a third determination unit, for determining a secondary desensitization strategy for the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization process, the data type and a scenario type value, wherein the scenario type value is a representation value of the application scenario of the target shared data; a second acquisition unit, for performing a secondary desensitization process on the target shared data after the primary desensitization process by means of the secondary desensitization strategy to obtain the target desensitized shared data; and a sending unit, for sending the target desensitized shared data to the sending end of the data sharing request.

[0016] Optionally, the data sharing device further includes: a fourth determination unit, used to determine the storage location of the target shared data before determining the sensitive data in the target shared data; and a third acquisition unit, used to search the storage location to obtain the target shared data.

[0017] Optionally, the second determination unit includes: a first calling module, used to call corresponding sensitive data discovery rules according to the data type of the target shared data, wherein the sensitive data discovery rules are pre-set rules used to search for sensitive data; a first acquisition module, used to perform sensitive data discovery on the target shared data using the sensitive data discovery rules to obtain the sensitive data in the target shared data.

[0018] Optionally, the first acquisition unit includes: a first determination module, used to determine the data type of each part in the target shared data; a second acquisition module, used to de-identify the numerical data whose data type is numerical in the target shared data, so as to perform a desensitization process on the numerical data in the target shared data to obtain the numerical data after the desensitization process, wherein the de-identification process is to hide part of the information in the numerical data; a third acquisition module, used to perform anonymization process on the character data whose data type is character in the target shared data, so as to perform a desensitization process on the character data in the target shared data to obtain the character data after the desensitization process, wherein the anonymization process is to hide at least one of the following in the character data: name, address; the second determination module, used to determine that the numerical data after the desensitization process and the character data after the desensitization process are the target shared data after the desensitization process.

[0019] Optionally, the data sharing device also includes one of the following: a fourth acquisition unit, used to classify the target shared data according to predetermined dimensions to obtain the target shared data after classification before determining the secondary desensitization strategy of the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type and the scenario type value, wherein the predetermined dimension includes at least one of the following: data type, business type; a fifth acquisition unit, used to classify the target shared data through a classification model to obtain the target shared data after classification, wherein the classification model is a model obtained by machine learning training using multiple groups of training data, and each of the multiple groups of training data includes: sample shared data and classification results corresponding to the sample shared data.

[0020] Optionally, the second determination unit includes: a second calling module, used to call corresponding sensitive data discovery rules according to the data type of the target shared data after classification processing, wherein the sensitive data discovery rules are preset rules used to search for sensitive data; a discovery module, used to perform sensitive data discovery on the target shared data after classification processing using the sensitive data discovery rules; and a third determination module, used to determine the sensitive data in the target shared data according to the processing results of the sensitive data discovery.

[0021] Optionally, the data sharing device also includes: a fourth determination module, used to determine the business type corresponding to the target shared data after classification processing, wherein different business types are preset with corresponding sensitivity levels; a fifth determination module, used to determine the sensitivity level of the sensitive data according to the business type.

[0022] Optionally, the third determination unit includes: a sixth determination module, used to determine the sensitivity level of the sensitive data, the target shared data after a desensitization process, the data type, and the intermediate value corresponding to the scene type value through a predetermined formula, wherein the predetermined formula is: z represents the intermediate value, nr represents the sensitivity level, w n represents the weight of the sensitivity level, uw represents the authority of the user account that sends the data sharing request, and w u represents the weight of the permission, cd represents the data type, w c represents the weight of the data type, sc represents the scene type, and w s A weight representing the scene type; a fourth acquisition module, used to compare the intermediate value with multiple sensitivity level intervals to obtain a comparison result; a seventh determination module, used to determine the target sensitivity level interval corresponding to the intermediate value according to the comparison result; an eighth determination module, used to determine the target value corresponding to the target sensitivity level area; a fifth acquisition module, used to search for the secondary desensitization strategy in the desensitization strategy set according to the target value, wherein the desensitization strategy set stores multiple records, and each of the multiple records records a desensitization strategy and a numerical value corresponding to the desensitization strategy.

[0023] Optionally, the second acquisition unit includes one of the following: a sixth acquisition module, which is used to perform a secondary desensitization processing on the target shared data after the first desensitization processing by a desensitization strategy of homomorphic encryption type, so as to obtain target desensitized shared data when the sensitivity level of the sensitive data is higher than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data and the scenario type is machine learning; a seventh acquisition module, which is used to perform a secondary desensitization processing on the target shared data after the first desensitization processing by a desensitization strategy of differential privacy calculation, so as to obtain target desensitized shared data when the sensitivity level of the sensitive data is lower than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data and the scenario type is statistical analysis.

[0024] According to another aspect of an embodiment of the present invention, a data sharing system is further provided. The data sharing system uses any one of the above-mentioned data sharing methods.

[0025] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned data sharing methods.

[0026] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein the program executes any one of the above-mentioned data sharing methods when running.

[0027] In an embodiment of the present invention, after receiving a data sharing request, the target shared data is determined according to the data sharing request, wherein the data sharing request is a request sent by a non-local system according to data requirements; after searching for the target shared data, the sensitive data in the target shared data is determined; according to the data type of the target shared data, the sensitive data is desensitized once to obtain the target shared data after the desensitization; according to the sensitivity level of the sensitive data, the target shared data after the desensitization, the data type and the scenario type value, the secondary desensitization strategy of the target shared data is determined, wherein the scenario type value is the representation value of the application scenario of the target shared data; the target shared data after the desensitization is desensitized twice by the secondary desensitization strategy to obtain the target desensitized shared data; the target desensitized shared data is sent to the sending end of the data sharing request. Through the above technical scheme, the purpose of determining the target shared data according to the data sharing request and then desensitizing the sensitive data in the target shared data twice to obtain the target desensitized shared data is achieved, and the technical effect of improving the matching degree between the desensitization method and the sensitive data is achieved, thereby solving the technical problem that the matching degree between the desensitization method and the sensitive data is not high in the process of performing privacy desensitization on the electricity consumption data of the power users in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0029] Figure 1 It is a hardware structure block diagram of a mobile terminal of a data sharing method according to an embodiment of the present invention;

[0030] Figure 2 is a flow chart of a data sharing method according to an embodiment of the present invention;

[0031] Figure 3 is a flow chart of an optional data sharing method according to an embodiment of the present invention;

[0032] Figure 4 is a flowchart of another optional data sharing method according to an embodiment of the present invention;

[0033] Figure 5 is a schematic diagram of a data sharing device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] As introduced in the background technology, in the process of privacy desensitization of power users' electricity consumption data in the related technology, there is a low matching degree between the desensitization method and the sensitive data. In view of the above defects, a data sharing method and device are provided in an embodiment of the present invention.

[0037] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0038] The method embodiments provided in the embodiments of the present invention can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a data sharing method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1Different configurations are shown.

[0039] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data sharing method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0040] According to an embodiment of the present invention, a method embodiment of a data sharing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0041] Figure 2 is a flow chart of a data sharing method according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0042] Step S202, after receiving the data sharing request, determining the target shared data according to the data sharing request, wherein the data sharing request is a request sent by the non-local system according to data demand.

[0043] Combine the following Figure 3 The above embodiments of the present invention are described in detail. Figure 3 is a flow chart of an optional data sharing method according to an embodiment of the present invention.

[0044] like Figure 3As shown, if a user initiates a request for a certain shared data d (i.e., target shared data) in an application in an external system Se (i.e., a non-local system), the request will be sent to the local system SL through the shared data interface. After receiving the external system data sharing application request, the local system SL will query the database in the local system SL for the requested shared data d based on the request to determine the target shared data.

[0045] Step S204, after the target shared data is searched, the sensitive data in the target shared data is determined.

[0046] According to the above embodiment of the present invention, before the above step S204, that is, before determining the sensitive data in the target shared data, it also includes: determining the storage location of the target shared data; searching the storage location to obtain the target shared data.

[0047] For example, after the target shared data to be applied for is determined according to the data sharing request, its storage medium may be searched to retrieve the target shared data.

[0048] According to the above embodiment of the present invention, in the above step S204, the sensitive data in the target shared data is determined, including: calling the corresponding sensitive data discovery rule according to the data type of the target shared data, wherein the sensitive data discovery rule is a rule that is pre-set and used to search for sensitive data; and performing sensitive data discovery on the target shared data using the sensitive data discovery rule to obtain the sensitive data in the target shared data.

[0049] For example, for data related to carbon emissions, the sensitivity level of the data is set to 4 based on the data characteristics and relevant regulations (pre-set sensitive data discovery rules), and the value of n is 4, setting the sensitivity of the carbon emission data to 4 levels.

[0050] Step S206, performing a desensitization process on the sensitive data according to the data type of the target shared data, and obtaining the target shared data after the desensitization process.

[0051] Optionally, the above-mentioned desensitization of sensitive data is mainly to ensure the security and privacy of the data. The core idea is to deform the sensitive data to avoid leaking potential personal privacy or corporate confidential information. The purpose of this process is to reduce data sensitivity and possible privacy risks as much as possible on the basis of ensuring accurate data analysis.

[0052] Data desensitization methods may include but are not limited to: 1) Replacement: replacing sensitive content with other irrelevant characters; 2) Rearrangement: disrupting the order of sensitive information; 3) Encryption: converting sensitive information into ciphertext; 4) Truncation: deleting part of sensitive data; 5) Masking: setting a specific range to obscure sensitive information; In addition, there are other desensitization technologies and strategies, such as de-identification and anonymization; These technologies can be applied to different scenarios, such as internal report generation and data analysis, and can even be used for model training and testing.

[0053] According to the above embodiment of the present invention, in the above step S206, the sensitive data is desensitized according to the data type of the target shared data to obtain the target shared data after the desensitization, including: determining the data type of each part in the target shared data; de-identifying the numerical data whose data type is numerical in the target shared data, so as to desensitize the numerical data in the target shared data, and obtain the numerical data after the desensitization, wherein the de-identification is to hide part of the information in the numerical data; anonymizing the character data whose data type is character in the target shared data, so as to desensitize the character data in the target shared data, and obtain the character data after the desensitization, wherein the anonymization is to hide at least one of the following in the character data: name, address; determining that the numerical data after the desensitization and the character data after the desensitization are the target shared data after the desensitization.

[0054] As above Figure 3 As shown, when de-identifying and anonymizing sensitive data (one-time desensitization), the following process can be used:

[0055] First, through the formula: Calculate the security value of the data to be shared, where nr is the sensitivity level. is the weight of nr; uw is the user authority, is the weight of uw; sc is the scene type value, is the weight of the scenario type value. Here, the scenario type value sc can be set to: 1 for external query, 2 for external calculation, 3 for local query, and 4 for local calculation.

[0056] Secondly, the security level is calculated according to the formula: Divided into k levels, among which cp 1 is the security level, z1, z2, …, z k-1 is k-1 threshold, and then according to the security level cp 1 , using the formula: pt1=Fs1(cp 1,sl) matches the corresponding desensitization method, where pt1 represents the matched desensitization method (one-time desensitization strategy), Sl is the strategy library (i.e., desensitization strategy library), and Fs1 here represents the security level cp 1 There is a corresponding relationship with the policy library S1, for example, the security level cp 1 Search the policy library S1 for the index and obtain the matched desensitization method pt1.

[0057] Finally, according to the type characteristics of the data to be shared, the data of certain attribute dimensions in the data are desensitized through a de-identification function or an anonymous function. The processing function is as follows: Among them, Sd is the de-identified set, So is the anonymous set, d is the data to be shared, De() is the de-identification function, and Ony() is the anonymous function. After the data d is processed by the F1 function, it becomes d o1

[0058] It should be noted that in the above embodiments of the present invention, de-identification refers to hiding part of the information of digital data such as mobile phone numbers to protect privacy data; anonymization refers to hiding part of the information of character data such as names and addresses. For example, the mobile phone number: 13312345678 is de-identified as: 13312****78; the address: No. 55, Zhongguancun Street, Haidian District, Beijing, is anonymized as: No. **, ** Street, ** District, ** City.

[0059] For example, if the user authority uw is high authority and administrator authority, sc is local query user information, and the sensitivity level nr is not very high, the name cannot be anonymized when anonymizing. However, for ordinary users with lower user authority uw, sc is querying business data, and the data sensitivity level nr is high, the name needs to be anonymized when anonymizing.

[0060] Step S208, determining a secondary desensitization strategy for the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization process, the data type, and the scenario type value, wherein the scenario type value is a representation value of the application scenario of the target shared data.

[0061] Optionally, the above-mentioned secondary desensitization strategy is used to desensitize the target shared data after the primary desensitization in a subsequent step, and also obtain the target desensitized shared data.

[0062] According to the above embodiment of the present invention, before the above step S208, that is, before determining the secondary desensitization strategy of the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type and the scenario type value, it also includes one of the following: classifying the target shared data according to a predetermined dimension to obtain the target shared data after classification processing, wherein the predetermined dimension includes at least one of the following: data type, business type; classifying the target shared data through a classification model to obtain the target shared data after classification processing, wherein the classification model is a model obtained by machine learning training using multiple groups of training data, and each of the multiple groups of training data includes: sample shared data and classification results corresponding to the sample shared data.

[0063] As above Figure 3 As shown, after the local system SL has searched for the data d to be shared, it can use existing technology to classify the searched data d C(d), and its data classification function is as follows: c=C(d), where d is the data to be shared and c is the classification result.

[0064] It should be noted that the existing technology used here can be a classification algorithm in machine learning, such as: support vector machine SVM, random forest classification algorithm, decision tree, logistic regression, K-nearest neighbor, neural network, etc., or it can be certain rules customized according to business characteristics.

[0065] For example, the support vector machine (SVM) classification algorithm in machine learning is used to classify the queried data d; the following processing results can be obtained: 13312345678 is the mobile phone number, No. 55 Zhongguancun Street, Haidian District, Beijing is the address information; 936596778 and 123456 are business data.

[0066] In the above-mentioned embodiment of the present invention, determining the sensitive data in the target shared data includes: calling the corresponding sensitive data discovery rule according to the data type of the target shared data after classification processing, wherein the sensitive data discovery rule is a preset rule used to search for sensitive data; performing sensitive data discovery on the target shared data after classification processing using the sensitive data discovery rule; and determining the sensitive data in the target shared data according to the processing result of the sensitive data discovery.

[0067] As above Figure 3As shown, after the data d is classified and processed by the data classification function in the above steps, the local system SL discovers sensitive data based on the classification results and classifies the sensitive data. The sensitive data discovery function is as follows: nr = R(C(d)). This formula is a composite function. C(d) is the result of the classification function in the previous step, that is, the classification result in the previous step is used for further classification. nr is the sensitivity level after the sensitive data is classified. The value of the classification result nr is: {1, 2, ..., n}; wherein n is a positive integer, which is set by the user according to relevant laws and regulations and the actual situation of the carried business.

[0068] According to the above embodiment of the present invention, the data sharing method also includes: determining the business type corresponding to the target shared data after classification processing, wherein different business types are preset with corresponding sensitivity levels; determining the sensitivity level of the sensitive data according to the business type.

[0069] In addition to determining the sensitivity level of sensitive data according to the data type of the target shared data in the above process, the sensitivity level of sensitive data can also be determined according to its business type.

[0070] According to the above embodiment of the present invention, in the above step S208, the secondary desensitization strategy of the target shared data is determined according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type, and the scene type value, including: determining the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type, and the intermediate value corresponding to the scene type value by a predetermined formula, wherein the predetermined formula is: z represents the middle value, nr represents the sensitivity level, w n represents the weight of the sensitivity level, uw represents the permissions of the user account that sends the data sharing request, and w u Indicates the weight of the permission, cd indicates the data type, w c represents the weight of the data type, sc represents the scene type, and w s Representing the weight of the scene type; comparing the intermediate value with multiple sensitivity level intervals to obtain a comparison result; determining the target sensitivity level interval corresponding to the intermediate value based on the comparison result; determining the target value corresponding to the target sensitivity level area; searching the desensitization strategy set based on the target value to obtain a secondary desensitization strategy, wherein the desensitization strategy set stores multiple records, and each of the multiple records records a desensitization strategy and a value corresponding to the desensitization strategy.

[0071] When determining the secondary desensitization strategy for the target shared data, you can proceed as follows:

[0072] First, according to the formula: Calculate the security value (intermediate value) of the target shared data, where z represents the intermediate value, nr represents the sensitivity level, and w n represents the weight of the sensitivity level, uw represents the permissions of the user account that sends the data sharing request, and w u Indicates the weight of the permission, cd indicates the data type, w c represents the weight of the data type, sc represents the scene type, and w s Indicates the weight of the scene type.

[0073] Secondly, the security level is calculated according to the formula: Divided into k levels, among which cp 2 The safety level value calculated for the system, z1, z2, …, z k-1 is k-1 thresholds, and then according to the scenario type, privacy protection policy library and security level value cp 2 , using the formula: pt2=Fs2(cp 2 ,sl) matches the corresponding, desensitization method, where pt2 represents the matched desensitization method, sl is the privacy protection technology strategy library, and the desensitization method here is the determined secondary desensitization strategy.

[0074] It should be noted that the privacy protection technology policy library here is set by the system user. For example, general encryption algorithms can be used: weak encryption methods such as MD5, SHA-1, etc., medium encryption methods such as DES, 3DES, RSA, etc., strong encryption methods such as AES, ECC, etc.; and homomorphic encryption: CKKS, GSW, Paillier, etc.; desensitization methods such as differential privacy. Step S210, perform secondary desensitization on the target shared data after the primary desensitization process through the secondary desensitization strategy to obtain the target desensitized shared data.

[0075] Through matching privacy protection technology, privacy protection processing is performed on data of certain attribute dimensions in the data. The processing function is as follows: o2 =F2(pt2,d o1 ), or o2 =F2(pt2,F1(pt1,d)), d o2 Share data for desensitized purposes.

[0076] According to the above embodiment of the present invention, in the above step S210, the target shared data after the first desensitization processing is subjected to a second desensitization processing through a secondary desensitization strategy to obtain target desensitized shared data, including one of the following: when the sensitivity level of the sensitive data is higher than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data and the scenario type is machine learning, the target shared data after the first desensitization processing is subjected to a second desensitization processing through a desensitization strategy of the homomorphic encryption type to obtain target desensitized shared data; when the sensitivity level of the sensitive data is lower than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data and the scenario type is statistical analysis, the target shared data after the first desensitization processing is subjected to a second desensitization processing through a desensitization strategy of differential privacy calculation to obtain target desensitized shared data.

[0077] For example, when the data sensitivity level nr is high, the user authority uw is low, the data type cd is numeric, and the application scenario sc is machine learning (external computing), the privacy protection technologies of homomorphic encryption types such as CKKS, GSW, and Paillier are used for processing; when the data sensitivity level nr is low, the user authority uw is low, the data type cd is numeric, and the application scenario sc is statistical analysis, the privacy protection technology of differential privacy computing is used for processing; when the application scenario sc is data query and the data type cd is character type, the corresponding decryption method is used according to the different sensitivity of the data; for data with low data sensitivity level nr, weak encryption methods such as MD5, SHA-1 and other encryption methods are used; for data with medium data sensitivity level nr, medium encryption methods such as DES, 3DES, RSA and other encryption methods are used; for data with high data sensitivity level nr, strong encryption methods such as AES, ECC and other privacy protection technologies are used for processing.

[0078] Step S212: Send the target anonymized shared data to the sender of the data sharing request.

[0079] As above Figure 3 As shown, after the privacy protection of sensitive data is performed by applying privacy protection technology through the above steps, the local system S1 provides data sharing to the external system Se through the external sharing data interface.

[0080] According to the technical solution provided by the above-mentioned embodiment of the present invention, the sensitivity level of privacy data, application scenarios, user permissions, and data types are digitally quantified and then multiple composite function formulas are designed to perform operations on them. Different desensitization methods are used to desensitize the privacy data according to the numerical values ​​of the operation results. That is, a computable and measurable method is used to accurately match the corresponding desensitization method, thereby improving the matching degree between the desensitization method and the sensitive data.

[0081] As can be seen from the above, through the above steps, after receiving the data sharing request, the target shared data can be determined according to the data sharing request, wherein the data sharing request is a request sent by a non-local system according to data requirements; after searching for the target shared data, the sensitive data in the target shared data is determined; according to the data type of the target shared data, the sensitive data is desensitized once to obtain the target shared data after the first desensitization; according to the sensitivity level of the sensitive data, the target shared data after the first desensitization, the data type and the scenario type value, the secondary desensitization strategy of the target shared data is determined, wherein the scenario type value is a representation value of the application scenario of the target shared data; the target shared data after the first desensitization is desensitized twice through the secondary desensitization strategy to obtain the target desensitized shared data; the target desensitized shared data is sent to the sending end of the data sharing request, thereby achieving the purpose of determining the target shared data according to the data sharing request, and then desensitizing the sensitive data in the target shared data twice to obtain the target desensitized shared data, thereby achieving the technical effect of improving the matching degree between the desensitization method and the sensitive data.

[0082] Therefore, the technical solution provided by the above-mentioned embodiment of the present invention solves the problem in the related art that in the process of privacy desensitization of power users' electricity consumption data, the degree of matching between the desensitization method and the sensitive data is not high.

[0083] Combine the following Figure 4 Another embodiment of the present invention is described in detail. Figure 4 FIG. 1 is a flow chart of another optional data sharing method according to an embodiment of the present invention. Figure 4 As shown, according to the sensitivity level of sensitive data, data type, user authority, scenario application type and desensitized data, fine-grained sensitive data desensitization enhancement strategy selection is performed according to the scenario, and different sensitive data desensitization strategies are adopted according to different situations. The above embodiments of the present invention are described in detail below through specific examples.

[0084] For example, let nr be the sensitivity level with a value of {1, 2, 3, 4}; let uw be the user permission with a value of {1, 2, 3, 4}; let sc be the scenario application purpose; let sc be the scenario type with a value of: external query is 1, external calculation is 2, local query is 3, local calculation is 4; and let cd be the data type including: character type with a value of 1, and numeric type with a value of 2.

[0085] First, take the sensitivity level nr = 2, the weight of nr w n =4, user authority uw=3, weight of uw w u =2, data type cd = 2, weight of cd w c =3, scene sc=3, w s =1, then according to the formula: It can be calculated that z=2.7.

[0086] Secondly, the security level is calculated according to the formula: If the privacy level is divided into 4 levels, there will be 3 thresholds, z1 = 1, z2 = 1, z3 = 1, and the middle value z = 2.7 corresponds to cp 2 =2, indicating that its security level is 2.

[0087] Then, according to the scenario type and the privacy protection technology strategy library, the formula pt2 = Fs2 (cp 2 ,sl) matches the corresponding specific privacy protection technology; in the privacy protection technology policy library set by the user, cp 2 =1, corresponding to the plain text; cp 2 =2, corresponding to weak encryption methods such as MD5, SHA-1, differential privacy, etc.; cp 2 =3, corresponding to medium-strength encryption methods such as DES, 3DES, and RSA; cp 2 =4, corresponding to high-strength encryption methods such as AES and ECC.

[0088] Here, the weak encryption method MD5 can be used for processing. The original data data1 = 936596778 is encrypted by MD5 to 68524fb4dbd7da97606364f0437b1f53; the original data data2 = 123456 is encrypted by MD5 to e10adc3949ba59abbe56e057f20f883e.

[0089] Similarly, through the above method, if cp 2 =3, then use the medium-strength encryption method RSA for processing. RSA encryption: If the original data is 79, the ciphertext encrypted by the public key (391,7) is 37, and the private key is (391,151).

[0090] Similarly, through the above method, if cp 2 =4, then the strong encryption method AES is used for processing. AES encryption: Plain text (hexadecimal): 54 77 6F 20 4F 6E 65 20 43 69 6E 25 20 54 77 6F, encryption key (hexadecimal): 54 68 61 74 73 20 6D 79 20 4B 75 6E 67 20 46 75, cipher text: 29 C3 50 5F 57 1420 F6 40 22 99 B3 1A 02 D7 3A.

[0091] These sharable data sets encrypted with MD5 are called d o2 . It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0093] According to an embodiment of the present invention, a data sharing device for implementing the above data sharing method is also provided. Figure 5 is a schematic diagram of a data sharing device according to an embodiment of the present invention. Figure 5 As shown, the device includes: a first determining unit 501, a second determining unit 503, a first obtaining unit 505, a third determining unit 507, a second obtaining unit 509 and a sending unit 511. The data sharing device is described in detail below.

[0094] The first determining unit 501 is configured to determine target shared data according to the data sharing request after receiving the data sharing request, wherein the data sharing request is a request sent by a non-local system according to data demand.

[0095] The second determining unit 503 is used to determine the sensitive data in the target shared data after searching for the target shared data.

[0096] The first acquisition unit 505 is used to perform a desensitization process on the sensitive data according to the data type of the target shared data to obtain the target shared data after the desensitization process.

[0097] The third determination unit 507 is used to determine the secondary desensitization strategy of the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type and the scenario type value, wherein the scenario type value is a representation value of the application scenario of the target shared data.

[0098] The second acquisition unit 509 is used to perform a secondary desensitization process on the target shared data after the primary desensitization process by using a secondary desensitization strategy to obtain the target desensitized shared data.

[0099] The sending unit 511 is used to send the target desensitized shared data to the sending end of the data sharing request.

[0100] It should be noted here that the above-mentioned first determination unit 501, second determination unit 503, first acquisition unit 505, third determination unit 507, second acquisition unit 509 and sending unit 511 correspond to steps S202 to S210 in the above-mentioned embodiments, and the six units are the same as the instances and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above-mentioned embodiments.

[0101] As can be seen from the above, in the scheme recorded in the above-mentioned embodiment of the present invention, the first determination unit can be used to determine the target shared data according to the data sharing request after receiving the data sharing request, wherein the data sharing request is a request sent by the non-local system according to the data demand; then the second determination unit is used to determine the sensitive data in the target shared data after searching for the target shared data; then the first acquisition unit is used to perform a desensitization process on the sensitive data according to the data type of the target shared data to obtain the target shared data after the first desensitization process; then the third determination unit is used to determine the secondary desensitization strategy of the target shared data according to the sensitivity level of the sensitive data, the target shared data after the first desensitization process, the data type and the scenario type value, wherein the scenario type value is the representation value of the application scenario of the target shared data; then the second acquisition unit is used to perform a secondary desensitization process on the target shared data after the first desensitization process through the secondary desensitization strategy to obtain the target desensitized shared data; finally, the sending unit is used to send the target desensitized shared data to the sending end of the data sharing request, thereby achieving the purpose of determining the target shared data according to the data sharing request, and then performing a second desensitization process on the sensitive data in the target shared data to obtain the target desensitized shared data, thereby achieving the technical effect of improving the matching degree between the desensitization method and the sensitive data.

[0102] Therefore, the technical solution provided by the above-mentioned embodiment of the present invention solves the problem in the related art that in the process of privacy desensitization of power users' electricity consumption data, the degree of matching between the desensitization method and the sensitive data is not high.

[0103] Optionally, the data sharing device further includes: a fourth determination unit, used to determine the storage location of the target shared data before determining the sensitive data in the target shared data; and a third acquisition unit, used to search the storage location to obtain the target shared data.

[0104] Optionally, the second determination unit includes: a first calling module, used to call corresponding sensitive data discovery rules according to the data type of the target shared data, wherein the sensitive data discovery rules are pre-set rules used to search for sensitive data; a first acquisition module, used to perform sensitive data discovery on the target shared data using the sensitive data discovery rules to obtain the sensitive data in the target shared data.

[0105] Optionally, the first acquisition unit includes: a first determination module, used to determine the data type of each part in the target shared data; a second acquisition module, used to de-identify the numerical data whose data type is numerical in the target shared data, so as to perform a desensitization process on the numerical data in the target shared data to obtain the numerical data after the desensitization process, wherein the de-identification process is to hide part of the information in the numerical data; a third acquisition module, used to perform anonymization process on the character data whose data type is character in the target shared data, so as to perform a desensitization process on the character data in the target shared data to obtain the character data after the desensitization process, wherein the anonymization process is to hide at least one of the following in the character data: name, address; the second determination module, used to determine that the numerical data after the desensitization process and the character data after the desensitization process are the target shared data after the desensitization process.

[0106] Optionally, the data sharing device also includes one of the following: a fourth acquisition unit, used to classify the target shared data according to predetermined dimensions to obtain the classified target shared data before determining the secondary desensitization strategy of the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type and the scenario type value, wherein the predetermined dimension includes at least one of the following: data type, business type; a fifth acquisition unit, used to classify the target shared data through a classification model to obtain the classified target shared data, wherein the classification model is a model obtained by machine learning training using multiple groups of training data, and each of the multiple groups of training data includes: sample shared data and classification results corresponding to the sample shared data.

[0107] Optionally, the second determination unit includes: a second calling module, used to call corresponding sensitive data discovery rules according to the data type of the target shared data after classification processing, wherein the sensitive data discovery rules are preset rules used to search for sensitive data; a discovery module, used to perform sensitive data discovery on the target shared data after classification processing using the sensitive data discovery rules; and a third determination module, used to determine the sensitive data in the target shared data based on the processing results of the sensitive data discovery.

[0108] Optionally, the data sharing device also includes: a fourth determination module, used to determine the business type corresponding to the target shared data after classification processing, wherein different business types are preset with corresponding sensitivity levels; a fifth determination module, used to determine the sensitivity level of sensitive data according to the business type.

[0109] Optionally, the third determination unit includes: a sixth determination module, which is used to determine the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type, and the intermediate value corresponding to the scene type value through a predetermined formula, wherein the predetermined formula is: z represents the middle value, nr represents the sensitivity level, w n represents the weight of the sensitivity level, uw represents the permissions of the user account that sends the data sharing request, and w u Indicates the weight of the permission, cd indicates the data type, w c represents the weight of the data type, sc represents the scene type, and w s A weight representing the scene type; a fourth acquisition module, used to compare the intermediate value with multiple sensitivity level intervals to obtain a comparison result; a seventh determination module, used to determine the target sensitivity level interval corresponding to the intermediate value according to the comparison result; an eighth determination module, used to determine the target value corresponding to the target sensitivity level area; a fifth acquisition module, used to search for a secondary desensitization strategy in the desensitization strategy set according to the target value, wherein the desensitization strategy set stores multiple records, and each of the multiple records records a desensitization strategy and a numerical value corresponding to the desensitization strategy.

[0110] Optionally, the second acquisition unit includes one of the following: a sixth acquisition module, which is used to perform a secondary desensitization processing on the target shared data after the first desensitization processing by a desensitization strategy of a homomorphic encryption type, so as to obtain target desensitized shared data when the sensitivity level of the sensitive data is higher than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data and the scenario type is machine learning; a seventh acquisition module, which is used to perform a secondary desensitization processing on the target shared data after the first desensitization processing by a desensitization strategy of differential privacy calculation, so as to obtain target desensitized shared data when the sensitivity level of the sensitive data is lower than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data and the scenario type is statistical analysis.

[0111] According to another aspect of an embodiment of the present invention, a data sharing system is further provided. The data sharing system uses any one of the above data sharing methods.

[0112] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned data sharing methods.

[0113] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the communication devices in a communication device group.

[0114] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: after receiving a data sharing request, determining the target shared data according to the data sharing request, wherein the data sharing request is a request sent by a non-local system according to data requirements; after searching for the target shared data, determining the sensitive data in the target shared data; performing a primary desensitization processing on the sensitive data according to the data type of the target shared data to obtain the target shared data after the primary desensitization processing; determining a secondary desensitization strategy for the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type, and the scenario type value, wherein the scenario type value is a representation value of the application scenario of the target shared data; performing a secondary desensitization processing on the target shared data after the primary desensitization processing through the secondary desensitization strategy to obtain the target desensitized shared data; and sending the target desensitized shared data to the sending end of the data sharing request.

[0115] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: determining a storage location of target shared data; and searching the storage location to obtain the target shared data.

[0116] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: calling corresponding sensitive data discovery rules according to the data type of the target shared data, wherein the sensitive data discovery rules are pre-set rules used to search for sensitive data; performing sensitive data discovery on the target shared data using the sensitive data discovery rules to obtain the sensitive data in the target shared data.

[0117] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: determining the data type of each part in the target shared data; de-identifying the numerical data whose data type is a numerical type in the target shared data, so as to perform a desensitization process on the numerical data in the target shared data, and obtain the numerical data after the desensitization process, wherein the de-identification process is to hide part of the information in the numerical data; anonymizing the character data whose data type is a character type in the target shared data, so as to perform a desensitization process on the character data in the target shared data, and obtain the character data after the desensitization process, wherein the anonymization process is to hide at least one of the following in the character data: name, address; determining that the numerical data after the desensitization process and the character data after the desensitization process are the target shared data after the desensitization process.

[0118] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: classifying the target shared data according to a predetermined dimension to obtain the classified target shared data, wherein the predetermined dimension includes at least one of the following: data type, business type; classifying the target shared data through a classification model to obtain the classified target shared data, wherein the classification model is a model obtained by machine learning training using multiple groups of training data, and each group of the multiple groups of training data includes: sample shared data and classification results corresponding to the sample shared data.

[0119] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: calling corresponding sensitive data discovery rules according to the data type of the target shared data after classification processing, wherein the sensitive data discovery rules are preset rules used to search for sensitive data; performing sensitive data discovery on the target shared data after classification processing using the sensitive data discovery rules; and determining the sensitive data in the target shared data based on the processing results of the sensitive data discovery.

[0120] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: determining the business type corresponding to the target shared data after classification processing, wherein different business types are preset with corresponding sensitivity levels; determining the sensitivity level of the sensitive data according to the business type.

[0121] Optionally, in this embodiment, the computer-readable storage medium is configured to store a program code for performing the following steps: determining the sensitivity level of sensitive data, the target shared data after a desensitization process, the data type, and the intermediate value corresponding to the scene type value by a predetermined formula, wherein the predetermined formula is: z represents the middle value, nr represents the sensitivity level, w n represents the weight of the sensitivity level, uw represents the permissions of the user account that sends the data sharing request, and w u Indicates the weight of the permission, cd indicates the data type, w c represents the weight of the data type, sc represents the scene type, and w s Representing the weight of the scene type; comparing the intermediate value with multiple sensitivity level intervals to obtain a comparison result; determining the target sensitivity level interval corresponding to the intermediate value based on the comparison result; determining the target value corresponding to the target sensitivity level area; searching the desensitization strategy set based on the target value to obtain a secondary desensitization strategy, wherein the desensitization strategy set stores multiple records, and each of the multiple records records a desensitization strategy and a value corresponding to the desensitization strategy.

[0122] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: when the sensitivity level of the sensitive data is higher than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numeric data and the scenario type is machine learning, the target shared data after the first desensitization processing is subjected to a second desensitization processing through a desensitization strategy of the homomorphic encryption type to obtain target desensitized shared data; when the sensitivity level of the sensitive data is lower than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numeric data and the scenario type is statistical analysis, the target shared data after the first desensitization processing is subjected to a second desensitization processing through a desensitization strategy of differential privacy calculation to obtain target desensitized shared data.

[0123] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein any one of the above-mentioned data sharing methods is executed when the program is running.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0126] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0129] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0130] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data sharing method, characterized in that: include: After receiving a data sharing request, determining target shared data according to the data sharing request, wherein the data sharing request is a request sent by a non-local system according to data demand; After searching for the target shared data, determining sensitive data in the target shared data; Performing a desensitization process on the sensitive data according to the data type of the target shared data to obtain the target shared data after the desensitization process; Determine a secondary desensitization strategy for the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization process, the data type, and the scenario type value, wherein the scenario type value is a representation value of the application scenario of the target shared data; Performing a secondary desensitization process on the target shared data after the primary desensitization process by using the secondary desensitization strategy to obtain target desensitized shared data; Sending the target anonymized shared data to the sending end of the data sharing request; Wherein, determining a secondary desensitization strategy for the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization process, the data type, and the scenario type value includes: The sensitivity level of the sensitive data, the target shared data after a desensitization process, the data type, and the intermediate value corresponding to the scene type value are determined by a predetermined formula, wherein the predetermined formula is: z represents the intermediate value, nr represents the sensitivity level, w n represents the weight of the sensitivity level, uw represents the authority of the user account that sends the data sharing request, and w u represents the weight of the permission, cd represents the data type, w c represents the weight of the data type, sc represents the scene type, and w s A weight representing the scene type; Comparing the intermediate value with multiple sensitivity level intervals to obtain a comparison result; Determine the target sensitivity level interval corresponding to the intermediate value according to the comparison result; Determine the target value corresponding to the target sensitivity level interval; The secondary desensitization strategy is obtained by searching in the desensitization strategy set according to the target value, wherein the desensitization strategy set stores multiple records, and each of the multiple records records a desensitization strategy and a value corresponding to the desensitization strategy.

2. The data sharing method according to claim 1, characterized in that: Before determining the sensitive data in the target shared data, the method further includes: Determining a storage location of the target shared data; The storage location is searched to obtain the target shared data.

3. The data sharing method according to claim 1, characterized in that: Determine sensitive data in the target shared data, including: Calling a corresponding sensitive data discovery rule according to the data type of the target shared data, wherein the sensitive data discovery rule is a rule that is pre-set and used to search for sensitive data; The sensitive data discovery rule is used to perform sensitive data discovery on the target shared data to obtain the sensitive data in the target shared data.

4. The data sharing method according to claim 1, characterized in that: Performing a desensitization process on the sensitive data according to the data type of the target shared data to obtain the target shared data after the desensitization process, including: Determine the data type of each part of the target shared data; Performing a de-identification process on the numerical data of the target shared data whose data type is a numerical type, so as to perform a desensitization process on the numerical data in the target shared data, thereby obtaining the numerical data after the desensitization process, wherein the de-identification process is to hide part of the information in the numerical data; Anonymizing the character data of the target shared data, where the data type is character type, so as to perform a desensitization process on the character data in the target shared data, and obtain the desensitized character data, wherein the anonymization process is a process of hiding at least one of the following in the character data: name, address; Determine that the numerical data after a desensitization process and the character data after a desensitization process are the target shared data after a desensitization process.

5. The data sharing method according to claim 1, characterized in that: Before determining the secondary desensitization strategy of the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type, and the scenario type value, the method further includes one of the following: Classifying the target shared data according to a predetermined dimension to obtain the classified target shared data, wherein the predetermined dimension includes at least one of the following: data type, business type; The target shared data is classified and processed by a classification model to obtain the target shared data after classification, wherein the classification model is a model obtained by machine learning training using multiple sets of training data, and each of the multiple sets of training data includes: sample shared data and a classification result corresponding to the sample shared data.

6. The data sharing method according to claim 5, characterized in that: Determine sensitive data in the target shared data, including: Calling a corresponding sensitive data discovery rule according to the data type of the target shared data after classification processing, wherein the sensitive data discovery rule is a preset rule used to search for sensitive data; Performing sensitive data discovery on the target shared data after classification using the sensitive data discovery rule; The sensitive data in the target shared data is determined according to a processing result of the sensitive data discovery.

7. The data sharing method according to claim 5, characterized in that: Also includes: Determine the business type corresponding to the target shared data after classification processing, wherein different business types are preset with corresponding sensitivity levels; The sensitivity level of the sensitive data is determined according to the business type.

8. The data sharing method according to any one of claims 1 to 7, characterized in that: Performing a secondary desensitization process on the target shared data after the primary desensitization process by the secondary desensitization strategy to obtain target desensitized shared data includes one of the following: When the sensitivity level of the sensitive data is higher than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data, and the scenario type is machine learning, the target shared data after the first desensitization processing is subjected to a second desensitization processing by a desensitization strategy of the homomorphic encryption type to obtain the target desensitized shared data; When the sensitivity level of the sensitive data is lower than the sensitivity level threshold, the authority of the user account sending the data sharing request is lower than the authority threshold, the data type is numerical data and the scenario type is statistical analysis, the target shared data after the first desensitization processing is subjected to a second desensitization processing through the desensitization strategy of differential privacy computing to obtain the target desensitized shared data.

9. A data sharing device, characterized in that: include: A first determining unit, configured to determine target shared data according to a data sharing request after receiving the data sharing request, wherein the data sharing request is a request sent by a non-local system according to data demand; A second determining unit, configured to determine sensitive data in the target shared data after searching for the target shared data; A first acquisition unit, configured to perform a desensitization process on the sensitive data according to a data type of the target shared data, to obtain the target shared data after the desensitization process; A third determining unit is used to determine a secondary desensitization strategy for the target shared data according to the sensitivity level of the sensitive data, the target shared data after the primary desensitization processing, the data type, and a scenario type value, wherein the scenario type value is a representation value of an application scenario of the target shared data; A second acquisition unit is used to perform a secondary desensitization process on the target shared data after the primary desensitization process by using the secondary desensitization strategy to obtain the target desensitized shared data; A sending unit, used to send the target desensitized shared data to the sending end of the data sharing request; wherein the third determination unit includes: a sixth determination module, used to determine the sensitivity level of the sensitive data, the target shared data after a desensitization process, the data type, and the intermediate value corresponding to the scene type value through a predetermined formula, wherein the predetermined formula is: z represents the intermediate value, nr represents the sensitivity level, w n represents the weight of the sensitivity level, uw represents the authority of the user account that sends the data sharing request, and w u represents the weight of the permission, cd represents the data type, w c represents the weight of the data type, sc represents the scene type, and w s A weight representing the scene type; a fourth acquisition module, used to compare the intermediate value with multiple sensitivity level intervals to obtain a comparison result; a seventh determination module, used to determine the target sensitivity level interval corresponding to the intermediate value according to the comparison result; an eighth determination module, used to determine the target value corresponding to the target sensitivity level interval; a fifth acquisition module, used to search for the secondary desensitization strategy in the desensitization strategy set according to the target value, wherein the desensitization strategy set stores multiple records, and each of the multiple records records a desensitization strategy and a numerical value corresponding to the desensitization strategy.