Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an information desensitization method, which is applied to an information desensitization device corresponding to a service system, can desensitize sensitive information related to service types corresponding to all functional modules in the service system, and is generally used for various service types of the service system. Specifically, in the embodiment of the present application, the information desensitization apparatus is an apparatus separately provided from the service system.
Fig. 1 is a flowchart of a first method of an information desensitization method according to an embodiment of the present application, where the method shown in fig. 1 at least includes the following steps:
102, receiving a desensitization request sent by a service system; the desensitization request carries a field to be desensitized and a target service type to which the field to be desensitized belongs.
Specifically, the desensitization request sent by the service system in step 102 may be a desensitization request sent by any functional module of the service system. Generally, different functional modules in a service system are used for processing different service types, for example, a member registration module of the service system is used for processing services of the member registration type; and the login module of the service system is used for processing the service of the user member login type.
In a specific embodiment, the field to be desensitized generally includes two parts of content, the first half part of the field to be desensitized is used to describe the type of the field, for example, a mobile phone number, a mailbox account, a password, and the like, and the first half part is mainly used to search a desensitization rule corresponding to the field to be desensitized; the second half of the field to be desensitized is a specific field to be desensitized, for example, the content of the specific field may be a specific mobile phone number, and after the desensitization rule is found in the first half, the desensitization process is performed on the specific field by using the found desensitization rule.
For ease of understanding, the following description will be given by way of example.
For example, the field to be desensitized carried in the desensitization request may be: "mobile phone number: 18 x 111222 "or" mailbox: abcdefg @ aaa.com ", and the like.
The target service type may be a service type processed by any one of the functional modules in the service system.
And step 104, searching a desensitization rule corresponding to the field to be desensitized according to the target service type and the field to be desensitized.
In the embodiment of the present application, the desensitization rule corresponding to the field to be desensitized is searched, and actually, the desensitization rule corresponding to the field type in the field to be desensitized is searched. For example, desensitization rules corresponding to a mobile phone number and a mailbox account number can be searched.
Specifically, in this embodiment of the present application, the step 104 of searching for a desensitization rule corresponding to a field to be desensitized according to the target service type and the field to be desensitized specifically includes the following steps:
and searching a desensitization rule corresponding to the field to be desensitized under the target service type from the established corresponding relation among the service type, the sensitive field and the desensitization rule according to the target service type and the field to be desensitized.
In a specific embodiment, the sensitive field in the correspondence may be only the type of the sensitive field, for example, a mobile phone number, a mailbox account, and the like, and may not include specific sensitive content.
In the embodiment of the application, the information desensitization device stores the corresponding relation among the service type, the sensitive field and the desensitization rule, when the information desensitization device receives a desensitization request sent by a service system, the field to be desensitized and the target service type carried in the desensitization request are matched with the corresponding relation, whether the sensitive field and the service type which are matched with the field to be desensitized and the target service type exist in the corresponding relation or not is searched, and if the sensitive field and the service type exist, the desensitization rule corresponding to the sensitive field and the service type is determined as the desensitization rule corresponding to the field to be desensitized under the target type.
Because a plurality of functional modules may exist on a service system, each functional module processes different services, each service type corresponds to a sensitive field that needs desensitization, different service types may have the same sensitive field, and for the same sensitive field, corresponding desensitization rules may be different under different service types. Therefore, in the embodiment of the present application, when the corresponding relationship between the sensitive field and the desensitization rule is established, the service type to which the sensitive field belongs is taken into consideration, that is, the corresponding relationship among the service type, the sensitive field, and the desensitization rule is established, so that the desensitization rule corresponding to the field to be desensitized can be uniquely determined, and thus, the accuracy of the determined desensitization rule corresponding to the field to be desensitized is higher.
In order to facilitate the determination of the desensitization rule corresponding to the field to be desensitized when the method provided by the embodiment of the present application is used for information desensitization, before the step 102 is executed, the method provided by the embodiment of the present application further includes establishing a corresponding relationship between the service type, the sensitive field, and the desensitization rule.
Specifically, the establishing of the corresponding relationship between the service type, the sensitive field, and the desensitization rule specifically includes the following steps:
determining sensitive field identifications corresponding to all service types of a service system and desensitization rules corresponding to all sensitive fields; and establishing a corresponding relation among the service types, the sensitive fields and the desensitization rules.
Specifically, for a certain service system, all service types in the service system may be determined first, and then, a sensitive field corresponding to each service type is determined, for example, a mobile phone number, a mailbox account, a password, and the like; finally, determining a desensitization rule corresponding to each sensitive field; and then establishing a corresponding relation among the service types, the sensitive fields and the desensitization rules.
In one embodiment, the correspondence between the service type, the sensitive field and the desensitization rule may be represented in a table format, as shown in table 1. Table 1 shows one possible form of the correspondence relationship between the service type, the sensitive field, and the desensitization rule established in the embodiment of the present application.
In table 1, the traffic type corresponding to each sensitive field is noted. The "mobile _ no" in table 1 indicates a "mobile phone number", and any mobile phone number under the member registration service type can be desensitized using rule 1. "email" in table 1 indicates "mailbox account" that can be desensitized using rule 4 for any mailbox account under the member registration service type. In addition, table 1 above is only an exemplary illustration, and the specific contents of the traffic type, the sensitive field, and the desensitization rule are not limited thereto.
TABLE 1
Type of service
|
Sensitive field
|
Rule of desensitization
|
Member registration
|
mobile_no
|
Rule 1
|
Member login
|
mobile_no
|
Rule 2
|
Member login
|
email
|
Rule 3
|
Member registration
|
email
|
Rule 4 |
Besides, the established correspondence between the service types, the sensitive fields and the desensitization rules can also be in the form shown in table 2. Specifically, in table 2, each sensitive field may be classified according to the service type, and then only the service type corresponding to one type of sensitive field needs to be marked.
If the form of the corresponding relationship shown in table 2 is adopted, after a desensitization request sent by a service system is received, the target service type can be matched with the corresponding relationship, the service type matched with the target service type is found out, then, fields to be desensitized in the desensitization request are matched with each sensitive field under the service type, sensitive fields matched with the fields to be desensitized are found out, and desensitization rules corresponding to the sensitive fields matched with the fields to be desensitized are determined as desensitization rules corresponding to the fields to be desensitized under the target service type.
TABLE 2
In addition, in a specific embodiment, multiple tables may be created, one table stores the corresponding relationship between the sensitive field and the desensitization rule under one service type, and then each table may be named by using the identifier of the service type. Therefore, after the information desensitization device receives the desensitization request sent by the service system, the table corresponding to the target service type is searched according to the target service type in the desensitization request, and then the desensitization rule corresponding to the field to be desensitized is searched in the table.
Alternatively, in another specific embodiment, multiple tables may be established, one table stores the desensitization rule corresponding to one sensitive field in each service type, and then each table may be named by using the sensitive field. Thus, after the information desensitization device receives the desensitization request sent by the service system, the table corresponding to the sensitive field matched with the field to be desensitized is searched first, and then the desensitization rule corresponding to the target service type is searched in the table.
The above only lists several possible implementation manners of the correspondence between the service type, the sensitive field, and the desensitization rule, and certainly, the specific implementation manner of the correspondence is not limited thereto, and the embodiments of the present application are not listed one by one.
And step 106, desensitizing the field to be desensitized by using the desensitization rule.
In the embodiment of the application, if the desensitization rule corresponding to the field to be desensitized is found, the desensitization rule is used for desensitizing the field to be desensitized.
Specifically, in the embodiment of the present application, each desensitization rule is represented by a regular expression;
accordingly, in step 106, desensitizing the to-be-desensitized field using desensitization rules includes:
analyzing the regular expression and determining the meaning represented by the regular expression; and desensitizing the field to be desensitized according to the analyzed meaning.
In the embodiment of the application, the meaning represented by the regular expression can be determined according to the meaning represented by each symbol in the regular expression.
To facilitate understanding of the solutions provided by the embodiments of the present application, the following description will be given by way of example. For example, in the embodiment of the present application, a specific service type, a specific sensitive field, and a desensitization rule stored in the information desensitization apparatus are corresponding to each other as shown in table 3.
TABLE 3
Type of service
|
Sensitive field
|
Rule of desensitization
|
Member registration
|
mobile_no
|
[0-9]{1}[*]{9}[0-9]{1}
|
Member login
|
email
|
[0-9][a-z]{1}*{9}[0-9][a-z]{1} |
When the information desensitization device receives a service type carried in a desensitization request sent by a service system as "membership registration" and a field to be desensitized carried in the desensitization request as "mobile _ no:"1 × 8 × 111222 ", it can be determined that, under the" membership registration "type, a desensitization rule corresponding to a mobile phone number is" [0-9] {1} [ {9} [0-9] {1} ", according to the corresponding relationship in table 1, so that after the desensitization rule is used to desensitize the mobile phone number, an obtained field is" 1 × 1"; when the information desensitization device receives a service type carried in a desensitization request sent by a service system is 'member login', and a field to be desensitized carried is 'email: abcdefg @ aaa.com', according to the corresponding relation in the table 1, it can be determined that a desensitization rule corresponding to a mailbox account is '0-9 ] [ a-z ] {1} {9} [0-9] [ a-z ] {1 }' under the 'member login' type, so that after the desensitization rule is used for desensitizing the mailbox account, an obtained field is 'a ×/'.
Of course, table 3 and the examples given in table 3 are illustrative and do not limit the embodiments of the present application.
In the embodiment of the application, after the information desensitization device desensitizes the field to be desensitized, the field subjected to desensitization processing is sent to the service system.
In addition, in the embodiment of the present application, if the desensitization rule corresponding to the field to be desensitized is not found through the step 104, the information desensitization device sends a prompt message to the service system; the prompt information is used for prompting that no desensitization rule corresponding to the field to be desensitized exists.
Specifically, if the desensitization rule corresponding to the field to be desensitized under the target service type is not found in the corresponding relationship, the information desensitization device sends prompt information to the service system, where the prompt information is used to prompt the service system that the desensitization rule corresponding to the field to be desensitized does not exist in the current corresponding relationship.
When the service system receives the prompt message sent by the information desensitization device, whether the target service type sent to the information desensitization device or the field to be desensitized is wrong is checked.
Specifically, in this embodiment of the present application, a desensitization request received by an information desensitization apparatus may carry one to-be-desensitized field or a plurality of to-be-desensitized fields, and this embodiment of the present application does not limit the number of fields carried in the desensitization request.
In addition, in this embodiment of the present application, when one or more service types in the service system have a newly added sensitive field, the corresponding relationship between the service type and the sensitive field stored in the information desensitization device and the desensitization rule needs to be updated, and therefore the method provided in this embodiment of the present application further includes:
acquiring a newly added sensitive field; determining the service type of the newly added sensitive field and the desensitization rule corresponding to the newly added sensitive field; and updating the corresponding relation according to the newly added sensitive field, the service type of the newly added sensitive field and the desensitization rule corresponding to the newly added sensitive field.
In the embodiment of the application, because the information desensitization device is a device independent of the service system, the information desensitization device can desensitize information in the whole service system, and therefore, the desensitization device for each functional module in the service system is avoided being arranged under each functional module, so that when a newly-added sensitive field exists, the information desensitization device only needs to be updated once, the desensitization device corresponding to each functional module with the newly-added field is avoided being updated, and the information desensitization device is conveniently and quickly updated.
In order to facilitate understanding of the information desensitization method provided in the embodiment of the present application, the information desensitization method provided in the embodiment of the present application is described below by taking a mobile phone number of a field to be desensitized as a member registration service type as an example through a specific embodiment. Fig. 2 is a flowchart of a second method of an information desensitization method according to an embodiment of the present application, where the method shown in fig. 2 at least includes the following steps:
step 202, receiving a desensitization request sent by the service system, where the desensitization request carries a field to be desensitized and a member registration service identifier.
The member registration service identifier may be a name of the service type, for example: "member registration" or "registration", etc.; the above-mentioned field to be desensitized includes the type of field and the specific contents to be desensitized. In this embodiment, the type of the field is a mobile phone number, and the specific content to be desensitized is an 11-digit mobile phone number that needs to be desensitized.
Step 204, searching whether a desensitization rule corresponding to the mobile phone number under the member registration service type exists in the corresponding relation of the service type, the sensitive field and the desensitization rule which are established in advance; if so, go to step 206, otherwise, go to step 212.
And step 206, acquiring a desensitization rule corresponding to the mobile phone number to be desensitized.
Wherein, the desensitization rule is expressed by a regular expression.
And step 208, desensitizing the mobile phone number to be desensitized by using the desensitization rule.
And step 210, sending the desensitized field to a service system.
And step 212, sending a prompt message to the service system, wherein the prompt message is used for prompting that no desensitization rule corresponding to the mobile phone number to be desensitized exists.
The information desensitization method provided by the embodiment of the application can desensitize sensitive fields related to various service types in a service system; and the received desensitization request sent by the service system carries the field to be desensitized and the target service type to which the field to be desensitized belongs, so that the desensitization rule corresponding to the field to be desensitized can be uniquely determined according to the field to be desensitized and the target service type to which the field to be desensitized belongs, and the desensitization accuracy is higher.
Based on the same idea, an information desensitization apparatus is further provided in the embodiment of the present application, configured to execute the information desensitization method provided in the embodiment, where fig. 3 illustrates a schematic diagram of module components of the information desensitization apparatus provided in the embodiment of the present application, and the apparatus illustrated in fig. 3 includes:
a receiving module 301, configured to receive a desensitization request sent by a service system; the desensitization request carries a field to be desensitized and a target service type to which the field to be desensitized belongs; the information desensitization device corresponds to the service system;
a searching module 302, configured to search, according to the target service type and the field to be desensitized, a desensitization rule corresponding to the field to be desensitized;
and the desensitization module 303 is configured to perform desensitization processing on the to-be-desensitized field by using the desensitization rule.
Optionally, the search module 302 is specifically configured to:
and searching a desensitization rule corresponding to the field to be desensitized under the target service type from the established corresponding relation among the service type, the sensitive field and the desensitization rule according to the target service type and the field to be desensitized.
Optionally, the apparatus provided in this embodiment of the present application further includes:
the first determining module is used for determining sensitive fields corresponding to all service types under the service system and desensitization rules corresponding to each sensitive field;
and the establishing module is used for establishing the corresponding relation between the service type, the sensitive field and the desensitization rule.
Optionally, the apparatus provided in this embodiment of the present application further includes:
the acquisition module is used for acquiring the newly added sensitive fields;
the second determining module is used for determining the service type of the newly added sensitive field and the desensitization rule corresponding to the newly added sensitive field;
and the updating module is used for updating the corresponding relation according to the newly added sensitive field, the service type of the newly added sensitive field and the desensitization rule corresponding to the newly added sensitive field.
Optionally, the apparatus provided in the embodiment of the present application further includes:
the first sending module is used for sending prompt information to the service system if the desensitization rule corresponding to the field to be desensitized is not found; the prompt information is used for prompting that no desensitization rule corresponding to the field to be desensitized exists.
Optionally, the desensitization rule is expressed using a regular expression;
accordingly, the desensitization module 303 is specifically configured to:
analyzing the regular expression and determining the meaning represented by the regular expression; and desensitizing the field to be desensitized according to the analyzed meaning.
Optionally, the apparatus provided in this embodiment of the present application further includes:
and the second sending module is used for sending the field subjected to desensitization treatment to the service system.
The information desensitization device provided in the embodiment of the present application may implement each process and step that can be implemented by the information desensitization method in the method embodiments corresponding to fig. 1 and fig. 2, and specific implementation processes of each module may refer to the above method embodiments, which are not described herein again.
The information desensitization device provided by the embodiment of the application can desensitize sensitive fields related to various service types in a service system; and the received desensitization request sent by the service system carries the field to be desensitized and the target service type to which the field to be desensitized belongs, so that the desensitization rule corresponding to the field to be desensitized can be uniquely determined according to the field to be desensitized and the target service type to which the field to be desensitized belongs, and the desensitization accuracy is higher.
Based on the information desensitization method provided in the embodiment of the present application, an information desensitization system is further provided in the embodiment of the present application, fig. 4 is a schematic structural diagram of the information desensitization system provided in the embodiment of the present application, and for the system shown in fig. 4, a specific implementation principle, modules, and a specific execution process of the components of the system may refer to the information desensitization method provided in the embodiment of the present application, and specific implementation processes are not described again. The information desensitization system shown in fig. 4, comprising: a service system 401 and an information desensitization device 402;
the service system 401 is configured to send a desensitization request to the information desensitization apparatus 402; the desensitization request carries fields to be desensitized and target service types to which the fields to be desensitized belong;
the information desensitization device 402 is configured to receive the desensitization request, and search a desensitization rule corresponding to a field to be desensitized according to the target service type and the field to be desensitized; and desensitizes the field to be desensitized using the desensitization rule.
Optionally, the information desensitization apparatus 402 is specifically configured to:
and searching a desensitization rule corresponding to the field to be desensitized under the target service type from the established corresponding relation among the service type, the sensitive field and the desensitization rule according to the target service type and the field to be desensitized.
Optionally, the information desensitization apparatus 402 is further configured to:
determining sensitive fields corresponding to all service types under a service system and desensitization rules corresponding to all the sensitive fields; and establishing the corresponding relation among the service types, the sensitive fields and the desensitization rules.
Optionally, the information desensitization apparatus 402 is further configured to:
acquiring a newly added sensitive field; determining the service type of the newly added sensitive field and a desensitization rule corresponding to the newly added sensitive field; and updating the corresponding relation according to the newly added sensitive field, the service type of the newly added sensitive field and the desensitization rule corresponding to the newly added sensitive field.
Optionally, the information desensitization apparatus 402 is further configured to:
if the desensitization rule corresponding to the field to be desensitized is not found, sending prompt information to a service system; the prompt information is used for prompting that no desensitization rule corresponding to the field to be desensitized exists.
Optionally, the desensitization rule is expressed using a regular expression;
accordingly, the information desensitization apparatus 402 is specifically configured to:
analyzing the regular expression and determining the meaning represented by the regular expression; and desensitizing the field to be desensitized according to the analyzed meaning.
Optionally, the information desensitization apparatus 402 is further configured to:
and sending the field subjected to desensitization processing to the service system 401.
To facilitate understanding of the information desensitization system provided in the embodiments of the present application, the information desensitization method provided in the embodiments of the present application will be described below in conjunction with the information desensitization system.
Fig. 5 shows a flow chart of a third method of an information desensitization method according to an embodiment of the present application, where the method is applied to an information desensitization system and is performed by a service system and an information desensitization device in the information desensitization system in an interactive manner. The method shown in fig. 5, at least comprises the following steps:
step 502, the terminal device sends a registration request to the service system, where the registration request carries user information.
Specifically, in step 502, the user terminal device performs a member registration in a certain service system, fills in user information, and sends the user information to the service system with a registration request.
The terminal device can be a mobile phone, a tablet computer, a computer and the like.
Step 504, the service system determines the field to be desensitized in the user information.
Step 506, the service system sends a desensitization request to the information desensitization device, and the desensitization request carries the field to be desensitized and the member registration service identifier.
Step 508, after receiving the desensitization request sent by the service system, the information desensitization device searches whether a desensitization rule corresponding to a field to be desensitized under the member registration service exists; if so, step 510 is performed, otherwise, step 514 is performed.
Step 510, the information desensitization apparatus desensitizes the to-be-desensitized field using the desensitization rule.
And step 512, the information desensitization device sends the fields obtained after desensitization processing to the service system.
And 514, the information desensitization device sends prompt information to the service system, wherein the prompt information is used for prompting that no desensitization rule corresponding to the field to be desensitized exists.
The information desensitization system provided by the embodiment of the application can desensitize sensitive fields related to various service types in a service system; in addition, the received desensitization request sent by the service system carries the fields to be desensitized and the target service types to which the fields to be desensitized belong, so that the desensitization rules corresponding to the fields to be desensitized can be uniquely determined according to the fields to be desensitized and the target service types to which the fields to be desensitized belong, and the desensitization accuracy is higher;
in addition, in the embodiment of the application, an information desensitization device independent of the service system is used for desensitizing the fields to be desensitized in the service system, and the information desensitization device can desensitize information in the whole service system, so that the situation that a desensitization device for each functional module is arranged under each functional module in the service system is avoided, and thus when a newly added sensitive field exists, the information desensitization device only needs to be updated once, the desensitization device corresponding to each functional module with the newly added field is prevented from being updated, and the information desensitization device is conveniently and quickly updated.
Further, based on the methods shown in fig. 1 to fig. 2, the embodiment of the present application further provides an information desensitization apparatus, as shown in fig. 6.
Information desensitization devices may vary widely in configuration or performance and may include one or more processors 601 and memory 602, where one or more stored applications or data may be stored in memory 602. Wherein the memory 602 may be transient storage or persistent storage. The application program stored in memory 602 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in an information desensitization device. Still further, processor 601 may be disposed in communication with memory 602 for executing a series of computer-executable instructions in memory 602 on an information desensitization device. The information desensitization device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input-output interfaces 605, one or more keyboards 606, and the like.
In a particular embodiment, an information desensitization device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in the information desensitization device, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
receiving a desensitization request sent by a service system; the desensitization request carries fields to be desensitized and target service types to which the fields to be desensitized belong;
searching a desensitization rule corresponding to the field to be desensitized according to the target service type and the field to be desensitized;
and performing desensitization processing on the field to be desensitized by using the desensitization rule.
Optionally, when executed, the computer-executable instruction searches for a desensitization rule corresponding to the field to be desensitized according to the target service type and the field to be desensitized, and includes:
and searching a desensitization rule corresponding to the field to be desensitized under the target service type from the established corresponding relation among the service type, the sensitive field and the desensitization rule according to the target service type and the field to be desensitized.
Optionally, before receiving the desensitization request sent by the service system, the computer-executable instructions further include:
determining sensitive fields corresponding to all service types under a service system and desensitization rules corresponding to all the sensitive fields;
and establishing a corresponding relation among the service type, the sensitive field and the desensitization rule.
Optionally, the computer executable instructions, when executed, further comprise:
acquiring a newly added sensitive field;
determining the service type of the newly added sensitive field and the desensitization rule corresponding to the newly added sensitive field;
and updating the corresponding relation according to the newly added sensitive field, the service type of the newly added sensitive field and the desensitization rule corresponding to the newly added sensitive field.
Optionally, the computer executable instructions, when executed, further comprise:
if the desensitization rule corresponding to the field to be desensitized is not found, sending prompt information to a service system; the prompt information is used for prompting that no desensitization rule corresponding to the field to be desensitized exists.
Optionally, the desensitization rule, when executed, is represented using a regular expression;
carrying out desensitization processing on a field to be desensitized by using the desensitization rule, wherein the desensitization processing comprises the following steps:
analyzing the regular expression and determining the meaning represented by the regular expression;
and desensitizing the field to be desensitized according to the analyzed meaning.
Optionally, the computer executable instructions, when executed, further include, after performing desensitization processing on the to-be-desensitized field using desensitization rules:
and sending the field subjected to desensitization treatment to a service system.
The information desensitization equipment provided by the embodiment of the application can desensitize sensitive fields related to various service types in a service system; and the received desensitization request sent by the service system carries the field to be desensitized and the target service type to which the field to be desensitized belongs, so that the desensitization rule corresponding to the field to be desensitized can be uniquely determined according to the field to be desensitized and the target service type to which the field to be desensitized belongs, and the desensitization accuracy is higher.
Further, based on the methods shown in fig. 1 to fig. 2, in a specific embodiment, the storage medium is a usb disk, an optical disk, a hard disk, and the like, and the storage medium stores computer-executable instructions that, when executed by the processor, implement the following processes:
receiving a desensitization request sent by a service system; the desensitization request carries a field to be desensitized and a target service type to which the field to be desensitized belongs;
searching a desensitization rule corresponding to the field to be desensitized according to the target service type and the field to be desensitized;
and carrying out desensitization processing on the field to be desensitized by using the desensitization rule.
Optionally, when executed by a processor, the computer-executable instructions stored in the storage medium search for a desensitization rule corresponding to a field to be desensitized according to the target service type and the field to be desensitized, and include:
and searching a desensitization rule corresponding to the field to be desensitized under the target service type from the established corresponding relation among the service type, the sensitive field and the desensitization rule according to the target service type and the field to be desensitized.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, further comprise, before receiving a desensitization request sent by the service system:
determining sensitive fields corresponding to all service types under a service system and desensitization rules corresponding to all the sensitive fields;
and establishing a corresponding relation among the service type, the sensitive field and the desensitization rule.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further comprise:
acquiring a newly added sensitive field;
determining the service type of the newly added sensitive field and the desensitization rule corresponding to the newly added sensitive field;
and updating the corresponding relation according to the newly added sensitive field, the service type of the newly added sensitive field and the desensitization rule corresponding to the newly added sensitive field.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further comprise:
if the desensitization rule corresponding to the field to be desensitized is not found, sending prompt information to a service system; the prompt information is used for prompting that no desensitization rule corresponding to the field to be desensitized exists.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, the desensitization rule is represented using a regular expression;
carrying out desensitization processing on a field to be desensitized by using the desensitization rule, wherein the desensitization processing comprises the following steps:
analyzing the regular expression and determining the meaning represented by the regular expression;
and desensitizing the field to be desensitized according to the analyzed meaning.
Optionally, the storage medium stores computer-executable instructions, which when executed by the processor, further include, after performing desensitization processing on the field to be desensitized using a desensitization rule:
and sending the fields subjected to desensitization processing to a service system.
When executed by a processor, the computer-executable instructions stored in the storage medium provided by the embodiment of the application can desensitize sensitive fields related to various service types in a service system; and the received desensitization request sent by the service system carries the field to be desensitized and the target service type to which the field to be desensitized belongs, so that the desensitization rule corresponding to the field to be desensitized can be uniquely determined according to the field to be desensitized and the target service type to which the field to be desensitized belongs, and the desensitization accuracy is higher.
In the 90's of the 20 th century, improvements to a technology could clearly distinguish between improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements to process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development, but the original code before compiling is also written in a specific Programming Language, which is called Hardware Description Language (HDL), and the HDL is not only one kind but many kinds, such as abll (Advanced boot Expression Language), AHDL (alternate hard Description Language), traffic, CUPL (computer universal Programming Language), HDCal (Java hard Description Language), lava, lola, HDL, PALASM, software, rhydl (Hardware Description Language), and vhul-Language (vhyg-Language), which is currently used in the field. It will also be apparent to those skilled in the art that hardware circuitry for implementing the logical method flows can be readily obtained by a mere need to program the method flows with some of the hardware description languages described above and into an integrated circuit.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium that stores computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in purely computer readable program code means, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.