Data desensitization method and device, electronic equipment, storage medium and product

By responding to the configuration center's desensitization rule update in data desensitization technology, and obtaining and applying the updated desensitization rules, the problem of low real-time data desensitization caused by untimely update of desensitization rules in the prior art is solved, and the realization of the real-time data desensitization is achieved. More efficient data desensitization processing.

CN119004535APending Publication Date: 2024-11-22ZUNYI BRANCH OF CHINA MOBILE GRP GUIZHOU COMPANY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411150874.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the existing data desensitization technology, the desensitization rules are stored in the file or database of the configuration center. When the desensitization rules in the configuration center are updated, the updated desensitization rules cannot be obtained in time, resulting in low real-time data desensitization. .

Method used

By responsive to the update of the desensitization rules in the configuration center, obtain the updated first desensitization rule and desensitize the desensitization data according to the rules, ensuring that the desensitization client can obtain the updated desensitization rules in real time and perform the Data desensitization.

Benefits of technology

It improves the real-time nature of data desensitization, ensures the timely update and application of desensitization rules, and enhances the response ability of data desensitization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004535A_ABST
    Figure CN119004535A_ABST
Patent Text Reader

Abstract

The invention provides a data desensitization method and device, electronic equipment, a storage medium and a product. The method comprises the following steps: in response to updating of a desensitization rule in a configuration center, obtaining an updated first desensitization rule; and desensitizing to-be-desensitized data according to the first desensitization rule. The updated first desensitization rule is obtained in response to updating of the desensitization rule in the configuration center, and the updated desensitization rule in the configuration center can be obtained in real time; the to-be-desensitized data is desensitized according to the updated first desensitization rule, so that the data desensitization real-time performance can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data security technology, and in particular to a data desensitization method, device, electronic device, storage medium and product. Background Art

[0002] In the relevant data desensitization solution, the desensitization rules are stored in the files or database of the configuration center. When the desensitization rules in the configuration center are updated, the updated desensitization rules cannot be obtained in time, which leads to low real-time performance of data desensitization. Summary of the invention

[0003] The present disclosure provides a data desensitization method, device, electronic device, storage medium and product to solve the problems in the related art.

[0004] A first aspect of the present disclosure provides a data desensitization method, the method comprising:

[0005] In response to an update of a desensitization rule in a configuration center, obtaining an updated first desensitization rule;

[0006] Desensitize the data to be desensitized according to the first desensitization rule.

[0007] In one embodiment, in response to an update of a desensitization rule in a configuration center, obtaining an updated first desensitization rule includes:

[0008] In response to an update of the desensitization rule in the configuration center, obtaining a registration request of the desensitized client, wherein the registration request includes at least first information of the desensitized client;

[0009] Sending the registration request of the desensitized client to the configuration center;

[0010] If the received return value corresponding to the registration request of the desensitizing client is a first preset value, an updated first desensitizing rule is obtained.

[0011] In one embodiment, desensitizing the data to be desensitized according to the first desensitization rule includes:

[0012] Obtain the data to be desensitized;

[0013] Determine a second desensitization rule corresponding to the to-be-desensitized data from the first desensitization rule;

[0014] The data to be desensitized is desensitized according to the second desensitization rule.

[0015] In one embodiment, obtaining the data to be desensitized includes:

[0016] Obtain data desensitization request;

[0017] Searching for a desensitization rule corresponding to the data in the data desensitization request from the first desensitization rule;

[0018] If a desensitization rule corresponding to the data in the data desensitization request is found, it is determined that the data in the data desensitization request is the data to be desensitized.

[0019] In one embodiment, determining a second desensitization rule corresponding to the to-be-desensitized data from the first desensitization rule includes:

[0020] Identifying the fields to be desensitized in the data to be desensitized;

[0021] A desensitization rule corresponding to the field to be desensitized is searched from the first desensitization rules to obtain a second desensitization rule.

[0022] In one embodiment, desensitizing the data to be desensitized according to the second desensitization rule includes:

[0023] Identifying the data segments to be desensitized in the data to be desensitized;

[0024] Determine a desensitization algorithm corresponding to the data segment to be desensitized from the second desensitization rule;

[0025] Obtaining parameters of a desensitization algorithm corresponding to the data segment to be desensitized;

[0026] Based on the parameters of the desensitization algorithm corresponding to the data segment to be desensitized, the data to be desensitized is desensitized according to the desensitization algorithm corresponding to the data segment to be desensitized.

[0027] A second aspect of the present disclosure provides a data desensitization device, the device comprising:

[0028] An acquisition unit, configured to acquire an updated first desensitization rule in response to an update of the desensitization rule in the configuration center;

[0029] A desensitizing unit is used to desensitize the data to be desensitized according to the first desensitizing rule.

[0030] A third aspect of the present disclosure provides an electronic device, including:

[0031] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the embodiment of the first aspect of the present disclosure.

[0032] The fourth aspect embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the first aspect embodiment of the present disclosure.

[0033] The fifth aspect embodiment of the present disclosure provides a computer program product, including a computer program, which implements the method described in the first aspect embodiment of the present disclosure when executed by a processor.

[0034] In summary, the present disclosure proposes a data desensitization method, which includes: in response to an update of a desensitization rule in a configuration center, obtaining an updated first desensitization rule; and desensitizing data to be desensitized according to the first desensitization rule.

[0035] According to the solution provided by the present disclosure, by responding to updates to the desensitizing rules in the configuration center and obtaining the updated first desensitizing rules, the updated desensitizing rules in the configuration center can be obtained in real time; by desensitizing the data to be desensitized according to the updated first desensitizing rules, the real-time performance of data desensitization can be improved.

[0036] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0038] Figure 1 A flowchart of a data desensitization method provided in an embodiment of the present disclosure;

[0039] Figure 2 A flowchart of a method for obtaining an updated first desensitization rule provided in an embodiment of the present disclosure;

[0040] Figure 3 A flowchart of a method for desensitizing data to be desensitized provided in an embodiment of the present disclosure;

[0041] Figure 4 A flowchart of a method for determining data to be desensitized provided in an embodiment of the present disclosure;

[0042] Figure 5 A flowchart of a method for determining a second desensitization rule provided in an embodiment of the present disclosure;

[0043] Figure 6 A flowchart of a method for desensitizing data to be desensitized provided in an embodiment of the present disclosure;

[0044] Figure 7 A flowchart of a data desensitization method provided for an application example of the present disclosure;

[0045] Figure 8 A schematic diagram of the structure of a data desensitization device provided in an embodiment of the present disclosure;

[0046] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0047] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0048] In the relevant data desensitization solution, the desensitization rules are stored in the files or database of the configuration center. When the desensitization rules in the configuration center are updated, the updated desensitization rules cannot be obtained in time, which leads to low real-time performance of data desensitization.

[0049] The following is a brief introduction to a data desensitization method in related technologies:

[0050] Data desensitization is a method of processing sensitive information. It protects the privacy of data by encrypting, de-identifying or obfuscating the data, while maintaining the availability and accuracy of the data. The core goal of data desensitization is to protect the data while maintaining the validity and compliance of the data and meeting business needs. Common basic desensitization methods include replacement desensitization, encryption desensitization, hash desensitization, mask desensitization, deletion desensitization, etc.

[0051] The existing technical means of data desensitization are mainly single implementations at the database level or code level. For example, using professional data desensitization algorithm tools, such as k-anonymity, l-diversity, etc., can effectively desensitize data. Use symmetric encryption, asymmetric encryption and other algorithms to encrypt sensitive data to ensure data confidentiality. Use masking algorithms to cover sensitive data, such as using symbols such as asterisks and underscores to replace part of the information in sensitive fields. Use salted hashing algorithms to hash sensitive data to ensure the irreversibility and uniqueness of the data.

[0052] The above solution has the following defects:

[0053] First, the desensitization process is rigid, and only a single algorithm can be used for desensitization of fixed fields. It is not possible to use different desensitization algorithms for different segments of the desensitized data.

[0054] Second, the desensitization configuration is not updated in a timely manner. The existing desensitization rule information is configured in files or databases. The configuration is cumbersome and cannot be refreshed in real time. When security requirements change (such as changes in interfaces, fields, desensitization algorithms, etc.), the desensitization client will not respond in a timely manner.

[0055] In order to solve the defects in the related technology, the present invention obtains the updated first desensitization rule in response to the update of the desensitization rule in the configuration center, so that the updated desensitization rule in the configuration center can be obtained in real time; by desensitizing the desensitized data according to the updated first desensitization rule, the real-time performance of data desensitization can be improved.

[0056] The present disclosure is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0057] like Figure 1 As shown, Figure 1 The data desensitization method provided in the embodiment of the present disclosure comprises the following steps:

[0058] Step 101, in response to an update of a desensitization rule in a configuration center, obtaining an updated first desensitization rule;

[0059] In one embodiment, updates to the desensitization rules in the configuration center include adding new rules, deleting rules, and modifying rules.

[0060] In one embodiment, a new rule is added by receiving a createRules instruction from the desensitizing configuration management end. The parameters of the createRules instruction include the name ruleName of the rule to be added, the type ruleType of the rule to be added, the target interface targetUrl, the target field targetColumn, etc. The new rule is persistently stored in the database rule table de_rules, and is cached in the form of a key-value pair in the memory of the configuration center with a key value prefix of cfg_de_rules, such as: "cfg_de_rules_rule1": {"ruleId": "910569827385475072", "ruleName": "Demonstration Rule 1", "targetUrl": " / web / getUserInfo"...} indicates that the new rule name is Demonstration Rule 1, the rule number is 910569827385475072, and the target interface is / web / getUserInfo.

[0061] In one embodiment, an updateRules instruction is received from the desensitizing configuration management end to modify the rules. The parameters of the updateRules instruction include the rule id, the new rule name ruleName, the new type ruleType, the target interface targetUrl, the target field targetColumn, etc. The modified rules will be updated to the database and cache of the configuration center.

[0062] In one embodiment, a deleteRules instruction is received from the desensitizing configuration management end to delete rules. The deleteRules instruction includes at least the name of the rule to be deleted. The delete instruction deletes the rules persisted in the cache and database.

[0063] In one embodiment, the first desensitization rule refers to the updated desensitization rule in the configuration center.

[0064] In one embodiment, after the desensitizing client obtains the updated first desensitizing rule, it will cache the obtained first desensitizing rule in the local cache, so that the desensitizing rule can be directly obtained from the desensitizing client cache during the desensitization process, which can improve the speed of obtaining the desensitizing rule.

[0065] In one embodiment, the first desensitization rule may have one, two, or more rules, which is not limited in the present disclosure.

[0066] In one embodiment, in response to an update of a desensitization rule in the configuration center, an updated first desensitization rule may be obtained through a long connection.

[0067] In one embodiment, in response to an update of a desensitization rule in the configuration center, the updated first desensitization rule may also be obtained through the interface gateway.

[0068] In one embodiment, by acquiring the updated first desensitization rule in response to an update of the desensitization rule in the configuration center, the updated desensitization rule in the configuration center can be acquired in real time.

[0069] Step 102: desensitize the data to be desensitized according to the first desensitization rule.

[0070] In one embodiment, by desensitizing the data to be desensitized according to the updated first desensitization rule, the real-time performance of data desensitization can be improved.

[0071] In one embodiment, if Figure 2 As shown, in response to an update of the desensitization rule in the configuration center, obtaining the updated first desensitization rule includes:

[0072] Step 201, in response to an update of a desensitization rule in a configuration center, obtaining a registration request of a desensitized client, wherein the registration request includes at least first information of the desensitized client;

[0073] In one embodiment, the first information includes at least ID information, IP information and port number information.

[0074] In one embodiment, there may be one, two or more desensitized clients. When there is only one desensitized client, in response to the desensitization rule in the configuration center being updated, a registration request of the current desensitized client is obtained; when there are multiple desensitized clients, in response to the desensitization rule in the configuration center being updated, a registration request of each desensitized client is obtained.

[0075] Step 202, sending the registration request of the desensitized client to the configuration center;

[0076] In one embodiment, the registration request of the desensitized client can be sent to the configuration center through the http rest interface.

[0077] In one embodiment, the registration request of the desensitized client may also be sent to the configuration center via register.

[0078] Step 203: If the received return value corresponding to the registration request of the desensitizing client is a first preset value, an updated first desensitizing rule is obtained.

[0079] In one embodiment, the return value corresponding to the registration request of the desensitized client is used to indicate whether the registration request of the desensitized client is successful or failed. For example, when the return value is a first preset value, it indicates that the registration request of the desensitized client is successful; when the return value is not the first preset value, it indicates that the registration request of the desensitized client fails.

[0080] In one embodiment, the first preset value can generally be 0, that is, if the return value corresponding to the registration request of the desensitized client is 0, it indicates that the desensitized client is successfully registered. When the rules in the configuration center are updated, the successfully registered desensitized client can obtain the updated first desensitized rule in the configuration center.

[0081] In one embodiment, after the desensitizing client is successfully registered, the data desensitizing method may also include: the desensitizing client periodically sends heartbeat packets to the configuration center and receives a response from the configuration center to ensure that the desensitizing client and the configuration center are connected, so that when the desensitizing rules in the configuration center are updated, the updated first desensitizing rule can be obtained in real time.

[0082] In one embodiment, if there are multiple desensitizing clients that are permanently connected to the configuration center, when the desensitizing rules in the configuration center are updated, each desensitizing client that is permanently connected to the configuration center can obtain the updated first desensitizing rule in real time.

[0083] In one embodiment, the desensitizing client further maintains a / localCache / rules directory, and the / localCache / rules directory is used to cache the received desensitizing rule data.

[0084] In one embodiment, if Figure 3 As shown, desensitizing the desensitized data according to the first desensitization rule includes:

[0085] Step 301, obtaining the data to be desensitized;

[0086] In one embodiment, the data to be desensitized may be obtained from a data desensitization request.

[0087] Step 302, determining a second desensitization rule corresponding to the to-be-desensitized data from the first desensitization rule;

[0088] In one embodiment, the second desensitization rule corresponding to the data to be desensitized may be determined from the first desensitization rule according to the data type of the data to be desensitized.

[0089] In one embodiment, the second desensitization rule corresponding to the data to be desensitized may also be determined from the first desensitization rule according to the to-be-desensitized field corresponding to the data to be desensitized.

[0090] Step 303: desensitize the data to be desensitized according to the second desensitization rule.

[0091] In one embodiment, by desensitizing the data to be desensitized according to the second desensitization rule, the real-time performance of data desensitization can be improved.

[0092] In one embodiment, if Figure 4 As shown, the data to be desensitized is obtained, including:

[0093] Step 401, obtaining a data desensitization request;

[0094] In one embodiment, the data desensitization request includes at least the name of the data and the specific data value.

[0095] In one embodiment, the data desensitization request may be a request for / web / getInfo.

[0096] Step 402, searching the first desensitization rules for a desensitization rule corresponding to the data in the data desensitization request;

[0097] In one embodiment, according to the type of the data masking request, a masking rule corresponding to the data in the data masking request may be searched from the first masking rules.

[0098] In one embodiment, whether the data in the request for / web / getInfo needs to be desensitized can be determined by calling the isDesensitizationContentType method. Specifically, the method first uses the getRules instruction to obtain the first desensitization rule cached in the desensitization client, and then searches the first desensitization rule to see whether there is a desensitization rule for the data in the request for / web / getInfo.

[0099] In one embodiment, if there is no desensitization rule corresponding to the data in the data desensitization request in the first desensitization rule, the data in the data desensitization request cannot be desensitized.

[0100] Step 403: If a desensitization rule corresponding to the data in the data desensitization request is found, it is determined that the data in the data desensitization request is data to be desensitized.

[0101] In one embodiment, if a desensitization rule corresponding to the data in the data desensitization request is found, it means that there is a desensitization rule corresponding to the data in the data desensitization request in the first desensitization rule, and the data in the data desensitization request can be desensitized, and the data in the data desensitization request can be determined as the data to be desensitized.

[0102] In one embodiment, if Figure 5 As shown, determining a second desensitization rule corresponding to the data to be desensitized from the first desensitization rule includes:

[0103] Step 501, identifying the fields to be desensitized in the data to be desensitized;

[0104] In one embodiment, the field to be desensitized refers to the data name field corresponding to the data to be desensitized, such as 443222201201203563 corresponding to the ID card field, 25986493256 corresponding to the telephone number field, etc.

[0105] In one embodiment, the fields to be desensitized in the data to be desensitized may be identified based on the name of the data in the data desensitization request.

[0106] In one embodiment, the fields to be desensitized in the data to be desensitized may also be identified based on specific data values ​​in the data desensitization request.

[0107] Step 502: Search the first desensitization rules for a desensitization rule corresponding to the field to be desensitized, and obtain a second desensitization rule.

[0108] In one embodiment, the second desensitizing rule can be obtained by searching for a desensitizing rule in the first desensitizing rule whose target field and data name field corresponding to the data to be desensitized are the same. For example, if it is found that 443222201201203563 needs to execute the desensitizing rule numbered d023, then the desensitizing rule numbered d023 is the second desensitizing rule corresponding to the data to be desensitized 443222201201203563.

[0109] In one embodiment, the second desensitization rule refers to a desensitization rule corresponding to the data to be desensitized.

[0110] In one embodiment, if Figure 6 As shown, desensitizing the data to be desensitized according to the second desensitization rule includes:

[0111] Step 601, identifying the data segments to be desensitized in the data to be desensitized;

[0112] In one embodiment, the data segments to be desensitized are used to indicate more important data segments in the data. For example, when the data to be desensitized is 443222201201203563, which corresponds to the ID card field, digits 7 to 12 (201201) in the data are the date of birth and can be used as a data segment to be desensitized, and digits 15 to 18 (3563) in the data are the sequence code and verification code and can be used as a data segment to be desensitized; for example, the data to be desensitized is 25986493256, which corresponds to the telephone number field, digits 8 to 11 (3256) are random numbers and can be used as a data segment to be desensitized.

[0113] In one embodiment, it can be known from the above embodiments that the data segments to be desensitized can be one, two or more.

[0114] In one embodiment, the data segments to be desensitized in the data to be desensitized may be identified according to the fields to be desensitized corresponding to the data to be desensitized.

[0115] Step 602, determining a desensitization algorithm corresponding to the data segment to be desensitized from the second desensitization rule;

[0116] In one embodiment, the data to be desensitized in the aforementioned embodiment is 443222201201203563. When corresponding to the ID card field, the second desensitization rule is the desensitization rule numbered d023. The desensitization algorithm corresponding to each segment of the data to be desensitized (201201, 3563) is determined from the desensitization rule numbered d023, and the desensitization algorithm corresponding to bits 7 to 12 in the data to be desensitized is desensitization algorithm 1, and the desensitization algorithm corresponding to bits 15 to 18 in the data to be desensitized is desensitization algorithm 2.

[0117] Step 603, obtaining parameters of the desensitization algorithm corresponding to the data segment to be desensitized;

[0118] In one embodiment, the desensitizing algorithm corresponding to the data segment to be desensitized may be a symmetric encryption algorithm, an asymmetric encryption algorithm, a mask algorithm, and a salted hash algorithm.

[0119] In one embodiment, since the parameters required for each desensitizing algorithm are different, the parameters of the desensitizing algorithm corresponding to the data segment to be desensitized can be obtained from the database of the configuration center. Specifically, the parameters required for the desensitizing algorithm corresponding to the data segment to be desensitized can be read from the de_param_config table in the database of the configuration center by calling the getMethParamConfig method.

[0120] In one embodiment, the speed of data desensitization can be improved by obtaining the parameters of the desensitization algorithm corresponding to the data segment to be desensitized from the database of the configuration center.

[0121] Step 604: based on the parameters of the desensitization algorithm corresponding to the data segment to be desensitized, desensitize the data to be desensitized according to the desensitization algorithm corresponding to the data segment to be desensitized.

[0122] In one embodiment, by desensitizing the data to be desensitized according to the desensitization algorithm corresponding to the data segment to be desensitized based on the parameters of the desensitization algorithm corresponding to the data segment to be desensitized, multi-segment desensitization of the data to be desensitized can be achieved, thereby improving the security of data desensitization.

[0123] In summary, the solution provided by the present disclosure is:

[0124] First, by responding to updates to the desensitizing rules in the configuration center and obtaining the updated first desensitizing rules, the updated desensitizing rules in the configuration center can be obtained in real time; by desensitizing the desensitized data according to the updated first desensitizing rules, the real-time performance of data desensitization can be improved.

[0125] Secondly, by desensitizing the data to be desensitized according to the parameters of the desensitizing algorithm corresponding to the data segment to be desensitized, multi-segment desensitization of the data to be desensitized can be achieved, thereby improving the security of data desensitization.

[0126] The data desensitization method provided by the present disclosure is further described below with an application example:

[0127] like Figure 7 As shown, Figure 7 A flowchart of a data desensitization method provided for an application example of the present disclosure. The data desensitization method provided for an application example of the present disclosure comprises the following steps:

[0128] Step 701, in response to an update of a desensitization rule in a configuration center, obtaining a registration request of a desensitized client, wherein the registration request includes at least first information of the desensitized client;

[0129] Step 702, sending the registration request of the desensitized client to the configuration center;

[0130] Step 703: if the received return value corresponding to the registration request of the desensitizing client is a first preset value, obtaining an updated first desensitizing rule;

[0131] Step 704, obtaining a data desensitization request;

[0132] Step 705: searching the first desensitization rules for a desensitization rule corresponding to the data in the data desensitization request;

[0133] Step 706: If a desensitization rule corresponding to the data in the data desensitization request is found, the data in the data desensitization request is determined to be data to be desensitized;

[0134] Step 707, identifying the fields to be desensitized in the data to be desensitized;

[0135] Step 708, searching the first desensitization rules for a desensitization rule corresponding to the field to be desensitized, to obtain a second desensitization rule;

[0136] Step 709, identifying the data segments to be desensitized in the data to be desensitized;

[0137] Step 710, determining a desensitization algorithm corresponding to the data segment to be desensitized from the second desensitization rule;

[0138] Step 711, obtaining parameters of the desensitization algorithm corresponding to the segment of the data to be desensitized;

[0139] Step 712: based on the parameters of the desensitization algorithm corresponding to the data segment to be desensitized, desensitize the data to be desensitized according to the desensitization algorithm corresponding to the data segment to be desensitized.

[0140] In order to implement the data desensitization method provided by the embodiment of the present disclosure, the embodiment of the present disclosure also provides a data desensitization device, such as Figure 8 shown. Figure 8 The data desensitization device 800 is a schematic diagram of the structure of the data desensitization device provided in the embodiment of the present disclosure, and includes:

[0141] An acquisition unit 801 is configured to acquire an updated first desensitization rule in response to an update of the desensitization rule in the configuration center;

[0142] The desensitizing unit 802 is used to desensitize the data to be desensitized according to the first desensitizing rule.

[0143] In one embodiment, the acquisition unit 801 is specifically configured to:

[0144] In response to an update of the desensitization rule in the configuration center, obtaining a registration request of the desensitized client, wherein the registration request includes at least first information of the desensitized client;

[0145] Sending the registration request of the desensitized client to the configuration center;

[0146] If the received return value corresponding to the registration request of the desensitizing client is a first preset value, an updated first desensitizing rule is obtained.

[0147] In one embodiment, the desensitization unit 802 is specifically used to:

[0148] Obtain the data to be desensitized;

[0149] Determine a second desensitization rule corresponding to the to-be-desensitized data from the first desensitization rule;

[0150] The data to be desensitized is desensitized according to the second desensitization rule.

[0151] In one embodiment, the desensitization unit 802 is specifically used for:

[0152] Obtain data desensitization request;

[0153] Searching for a desensitization rule corresponding to the data in the data desensitization request from the first desensitization rule;

[0154] If a desensitization rule corresponding to the data in the data desensitization request is found, it is determined that the data in the data desensitization request is the data to be desensitized.

[0155] In one embodiment, the desensitization unit 802 is specifically used for:

[0156] Identifying the fields to be desensitized in the data to be desensitized;

[0157] A desensitization rule corresponding to the field to be desensitized is searched from the first desensitization rules to obtain a second desensitization rule.

[0158] In one embodiment, the desensitization unit 802 is specifically used for:

[0159] Identifying the data segments to be desensitized in the data to be desensitized;

[0160] Determine a desensitization algorithm corresponding to the data segment to be desensitized from the second desensitization rule;

[0161] Obtaining parameters of a desensitization algorithm corresponding to the data segment to be desensitized;

[0162] Based on the parameters of the desensitization algorithm corresponding to the data segment to be desensitized, the data to be desensitized is desensitized according to the desensitization algorithm corresponding to the data segment to be desensitized.

[0163] It should be noted that: when the data desensitizing device provided in the above embodiment performs desensitization, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the data desensitizing device is divided into different program modules to complete all or part of the processing described above. In addition, the data desensitizing device provided in the above embodiment and the data desensitizing method embodiment provided in the embodiment of the present disclosure belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0164] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure is shown in FIG. Fig. 9 As shown, the electronic device 900 includes at least one processor 902; and a memory 901 communicatively connected to the at least one processor 902; wherein the memory 901 stores instructions executable by the at least one processor 902, and the instructions are executed by the at least one processor 902 to implement the steps of the data desensitization method of the embodiment of the present disclosure.

[0165] Optionally, the electronic device may specifically be a data desensitizing device in an embodiment of the present application, and the electronic device may implement the corresponding processes implemented by the data desensitizing device in each method in the embodiment of the present application, which will not be described in detail here for the sake of brevity.

[0166] It is understood that the electronic device also includes a communication interface 903. The various components in the electronic device are coupled together through a bus system 904. It is understood that the bus system 904 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 904 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig. 9 Various buses are labeled as bus system 904.

[0167] It can be understood that the memory 901 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 901 described in the embodiment of the present invention is intended to include but is not limited to these and any other suitable types of memories.

[0168] The method disclosed in the above embodiment of the present disclosure can be applied to the processor 902, or implemented by the processor 902. The processor 902 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 902 or an instruction in the form of software. The above processor 902 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 902 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 901, and the processor 902 reads the information in the memory 901 and completes the steps of the above method in combination with its hardware.

[0169] In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), FPGAs, general purpose processors, controllers, MCUs, microprocessors, or other electronic components to execute the aforementioned method.

[0170] This public security embodiment also provides a non-transitory computer-readable storage medium storing computer instructions, and the computer instructions are used to implement the steps of the data desensitization method of the embodiment of the present invention when the computer executes them.

[0171] Optionally, the computer-readable storage medium can be applied to the data desensitizing device in the embodiments of the present application, and the computer instructions enable the computer to execute the corresponding processes implemented by the data desensitizing device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0172] The embodiments of the present disclosure also provide a computer program product, including a computer program, which implements the steps of the data desensitization method provided in the embodiments of the present disclosure when executed by a processor.

[0173] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

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

[0175] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0176] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, disks or optical disks.

[0177] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0178] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A data desensitization method, It is characterized in that include: In response to an update of a desensitization rule in a configuration center, obtaining an updated first desensitization rule; Desensitize the data to be desensitized according to the first desensitization rule.

2. The method according to claim 1, It is characterized in that In response to the desensitization rule in the configuration center being updated, obtaining the updated first desensitization rule includes: In response to an update of the desensitization rule in the configuration center, obtaining a registration request of the desensitized client, wherein the registration request includes at least first information of the desensitized client; Sending the registration request of the desensitized client to the configuration center; If the received return value corresponding to the registration request of the desensitizing client is a first preset value, an updated first desensitizing rule is obtained.

3. The method according to claim 1, It is characterized in that Desensitizing the desensitized data according to the first desensitization rule includes: Obtain the data to be desensitized; Determine a second desensitization rule corresponding to the to-be-desensitized data from the first desensitization rule; The data to be desensitized is desensitized according to the second desensitization rule.

4. The method according to claim 3, It is characterized in that The obtaining of the data to be desensitized includes: Obtain data desensitization request; Searching for a desensitization rule corresponding to the data in the data desensitization request from the first desensitization rule; If a desensitization rule corresponding to the data in the data desensitization request is found, it is determined that the data in the data desensitization request is the data to be desensitized.

5. The method according to claim 3, It is characterized in that The determining, from the first desensitization rule, a second desensitization rule corresponding to the to-be-desensitized data includes: Identifying the fields to be desensitized in the data to be desensitized; A desensitization rule corresponding to the field to be desensitized is searched from the first desensitization rules to obtain a second desensitization rule.

6. The method according to claim 3, It is characterized in that Desensitizing the data to be desensitized according to the second desensitization rule includes: Identifying the data segments to be desensitized in the data to be desensitized; Determine a desensitization algorithm corresponding to the data segment to be desensitized from the second desensitization rule; Obtaining parameters of a desensitization algorithm corresponding to the data segment to be desensitized; Based on the parameters of the desensitization algorithm corresponding to the data segment to be desensitized, the data to be desensitized is desensitized according to the desensitization algorithm corresponding to the data segment to be desensitized.

7. A data desensitization device, It is characterized in that include: An acquisition unit, configured to acquire an updated first desensitization rule in response to an update of the desensitization rule in the configuration center; A desensitizing unit is used to desensitize the data to be desensitized according to the first desensitizing rule.

8. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by a processor.