Data desensitization method, device, electronic device, storage medium and computer program

By configuring permission groups and building desensitization applications on a low-code platform, and using mapping components and different desensitization algorithms to process data, the problem of complex and inefficient SQL script operations is solved, and the efficiency and security of data desensitization are achieved. sex.

CN118350050BActive Publication Date: 2024-09-03SHANDONG INSPUR SCI RES INST CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202410748496.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-03
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

In the existing technology, the desensitization operation of sensitive information using SQL scripts is complex and inefficient, making it difficult to effectively prevent the leakage of sensitive information.

Method used

By configuring permission groups and binding user information on the preset low-code platform, create desensitization applications, build low-code forms based on mapping components, and select appropriate desensitization algorithms to desensitize target data, including irreversible and reversible desensitization. algorithm.

Benefits of technology

The data desensitization process is simplified, the desensitization efficiency is improved, sensitive data is effectively protected through visual operations, and information leakage is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118350050B
    Figure CN118350050B
Patent Text Reader

Abstract

The present invention discloses a data desensitization method, device, electronic device, storage medium and computer program, which relate to the field of data processing technology, configure a permission group and bind it to user information to obtain a user information permission relationship group; create a desensitizing application on a preset low-code platform, and determine the target permission group to which the user information for creating the desensitizing application belongs based on the user information permission relationship group; select a target data source that has been enabled and to which the target permission group has management authority from multiple data sources; store database table structure information in the target data source in a preset low-code platform, and map the data type in the database table structure information to a component of the preset low-code platform to obtain a mapping component; build a low-code form of the desensitizing application based on the mapping component, and set a desensitizing function in the component properties corresponding to the mapping component to obtain a target desensitizing application; desensitize the target data in the low-code form by visually operating the target desensitizing application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, due to many reasons such as technology iteration and personnel changes, there are a large number of old database tables and records in the database. Since these old database tables and records contain unprocessed sensitive data strings such as ID card numbers and mobile phone numbers, and the sensitive data still plays a huge role in testing and production, the sensitive data cannot be deleted at will, which leads to the problem of easy leakage of the sensitive information.

[0003] In order to prevent the leakage of the sensitive information, the sensitive information is currently mainly desensitized by using SQL scripts. However, desensitizing the sensitive information by using SQL scripts has problems of complex operation and execution efficiency. Summary of the invention

[0004] The present invention discloses a data desensitization method, device, electronic device, storage medium and computer program, the main purpose of which is to solve the problem of complex operation and low execution efficiency in the related art of desensitizing the sensitive information using SQL scripts.

[0005] According to a first aspect of the present disclosure, a data desensitization method is provided, comprising:

[0006] After the preset low-code platform is normally connected to multiple data sources, a permission group is configured and the permission group is bound to user information to obtain a user information permission relationship group, wherein the multiple data sources are of the same or different types;

[0007] Creating a desensitized application on a preset low-code platform, and determining a target permission group to which the user information of creating the desensitized application belongs based on the user information permission relationship group, wherein the permission group includes the target permission group;

[0008] Selecting, from the multiple data sources, a target data source that has been enabled and for which the target permission group has management permission;

[0009] The database table structure information in the target data source is stored in the preset low-code platform, and the data types in the database table structure information are mapped to components of the preset low-code platform to obtain a mapping component;

[0010] Building a low-code form of the desensitizing application based on the mapping component, and setting a desensitizing function in the component properties corresponding to the mapping component to obtain a target desensitizing application;

[0011] The target data in the low-code form is desensitized based on the target desensitizing application having the desensitizing function, and the target data is data corresponding to the data type having a mapping relationship with the mapping component.

[0012] Optionally, desensitizing the target data in the low-code form based on the target desensitizing application having the desensitizing function includes:

[0013] If an irreversible desensitization algorithm is selected in the component attributes, the irreversible desensitization algorithm is called based on the target desensitization application to desensitize the target data, and the desensitization function includes the irreversible desensitization algorithm;

[0014] If a reversible desensitization algorithm is selected in the component properties, the reversible desensitization algorithm is called based on the target desensitization application to desensitize the target data, and the desensitization function includes the reversible desensitization algorithm.

[0015] Optionally, calling the irreversible desensitization algorithm to desensitize the target data based on the target desensitization application includes:

[0016] Based on the target desensitization application, a hash desensitization algorithm is called to perform hash calculation desensitization on the target data; or

[0017] Based on the target desensitization application, a masking desensitization algorithm is called to perform local masking desensitization of special symbols on the target data, and the irreversible desensitization algorithm includes the hash desensitization algorithm and the masking desensitization algorithm;

[0018] The calling the reversible desensitization algorithm based on the target desensitization application to desensitize the target data includes:

[0019] Setting a desensitization starting point and a desensitization end point of the target data;

[0020] Execute a replacement desensitization algorithm on the desensitized data between the desensitization starting point and the desensitization end point in the target data, wherein the replacement desensitization algorithm is called by the target desensitization application, and the reversible desensitization algorithm includes the replacement desensitization algorithm;

[0021] The desensitized data is subjected to replacement desensitization based on the replacement code table built into the replacement desensitization algorithm.

[0022] Optionally, storing the database table structure information in the target data source in the preset low-code platform includes:

[0023] Obtaining all data table structure information included in the target data source;

[0024] Determine that the database table structure information does not contain any foreign key in the entire data table structure information;

[0025] The database table structure information is stored in the preset low-code platform.

[0026] Optionally, the normally connecting the preset low-code platform with multiple data sources includes:

[0027] Registering basic information of the multiple data sources to the preset low-code platform;

[0028] Based on the basic information, the multiple data sources are normally connected to the preset low-code platform. The basic information includes connection name, database type, database name, user name, password, configuration mode, database address, port number, connection options, and enabled or disabled status.

[0029] Optionally, configuring a permission group and binding the permission group with user information to obtain a user information permission relationship group includes:

[0030] The management authority of the configuration authority group includes the data source information that the authority group is authorized to manage;

[0031] The permission group configured with the management permission is bound to the user information so that the user corresponding to the user information has the management permission.

[0032] According to a second aspect of the present disclosure, a data desensitization device is provided, comprising:

[0033] A configuration unit, configured to configure a permission group and bind the permission group to user information to obtain a user information permission relationship group after the preset low-code platform is normally connected to multiple data sources, wherein the multiple data sources are of the same or different types;

[0034] A creation unit, configured to create a desensitized application on a preset low-code platform, and determine a target permission group to which the user information for creating the desensitized application belongs based on the user information permission relationship group, wherein the permission group includes the target permission group;

[0035] A selection unit, configured to select, from the plurality of data sources, a target data source that has been enabled and for which the target permission group has management permission;

[0036] A storage unit, used to store the database table structure information in the target data source in the preset low-code platform, and map the data types in the database table structure information to components of the preset low-code platform to obtain a mapping component;

[0037] A setting unit, used to build a low-code form of the desensitizing application based on the mapping component, and set a desensitizing function in a component property corresponding to the mapping component to obtain a target desensitizing application;

[0038] A desensitizing unit is used to desensitize the target data in the low-code form based on the target desensitizing application having the desensitizing function, and the target data is data corresponding to the data type having a mapping relationship with the mapping component.

[0039] Optionally, the desensitization unit is further used for:

[0040] When an irreversible desensitization algorithm is selected in the component attributes, the irreversible desensitization algorithm is called based on the target desensitization application to desensitize the target data, and the desensitization function includes the irreversible desensitization algorithm;

[0041] When a reversible desensitization algorithm is selected in the component properties, the reversible desensitization algorithm is called based on the target desensitization application to desensitize the target data, and the desensitization function includes the reversible desensitization algorithm.

[0042] Optionally, the desensitization unit is further used for:

[0043] Based on the target desensitization application, a hash desensitization algorithm is called to perform hash calculation desensitization on the target data; or

[0044] Based on the target desensitization application, a masking desensitization algorithm is called to perform local masking desensitization of special symbols on the target data, and the irreversible desensitization algorithm includes the hash desensitization algorithm and the masking desensitization algorithm;

[0045] The desensitization unit is also used for:

[0046] Setting a desensitization starting point and a desensitization end point of the target data;

[0047] Execute a replacement desensitization algorithm on the desensitized data between the desensitization starting point and the desensitization end point in the target data, wherein the replacement desensitization algorithm is called by the target desensitization application, and the reversible desensitization algorithm includes the replacement desensitization algorithm;

[0048] The desensitized data is subjected to replacement desensitization based on the replacement code table built into the replacement desensitization algorithm.

[0049] Optionally, the storage unit is further used for:

[0050] Obtaining all data table structure information included in the target data source;

[0051] Determine that the database table structure information does not contain any foreign key in the entire data table structure information;

[0052] The database table structure information is stored in the preset low-code platform.

[0053] Optionally, the configuration unit is further used for:

[0054] Registering basic information of the multiple data sources to the preset low-code platform;

[0055] Based on the basic information, the multiple data sources are normally connected to the preset low-code platform. The basic information includes connection name, database type, database name, user name, password, configuration mode, database address, port number, connection options, and enabled or disabled status.

[0056] Optionally, the configuration unit is further used for:

[0057] The management authority of the configuration authority group includes the data source information that the authority group is authorized to manage;

[0058] The permission group configured with the management permission is bound to the user information so that the user corresponding to the user information has the management permission.

[0059] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0060] at least one processor; and

[0061] a memory communicatively connected to the at least one processor; wherein,

[0062] 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 described in the first aspect.

[0063] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0064] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.

[0065] The data desensitization method, device, electronic device, storage medium and computer program provided by the present invention configure a permission group and bind the permission group to user information after the preset low-code platform is normally connected to multiple data sources to obtain a user information permission relationship group, wherein the multiple data sources are of the same or different types; create a desensitizing application on the preset low-code platform, and determine the target permission group to which the user information to create the desensitizing application belongs based on the user information permission relationship group, wherein the permission group includes the target permission group; select a target data source that has been enabled and to which the target permission group has management authority from the multiple data sources; store the database table structure information in the target data source in the preset low-code platform, and map the data type in the database table structure information to the component of the preset low-code platform to obtain a mapping component; construct a low-code form of the desensitizing application based on the mapping component, and set a desensitizing function in the component properties corresponding to the mapping component to obtain a target desensitizing application; desensitize the target data in the low-code form based on the target desensitizing application having the desensitizing function, wherein the target data is data corresponding to the data type having a mapping relationship with the mapping component. Compared with the related art, the target desensitizing application with the desensitizing function is built through the preset low-code platform, and the target desensitizing application is visually operated to desensitize the target data. The desensitizing process is simple to operate and the desensitization efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:

[0067] Figure 1 A schematic diagram of a data desensitization method flow provided by an embodiment of the present disclosure;

[0068] Figure 2 A schematic diagram of an interface for filling in basic information in a form provided by an embodiment of the present disclosure;

[0069] Figure 3 A schematic diagram of an interface for displaying data sources in a list manner provided in an embodiment of the present disclosure;

[0070] Figure 4 A flowchart of another data desensitization method provided by an embodiment of the present disclosure;

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

[0072] Figure 6 A schematic block diagram of an exemplary electronic device 300 provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0073] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0074] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present invention.

[0075] In addition, the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein.

[0076] The following describes the data desensitization method, device, electronic device, storage medium and computer program of the embodiments of the present disclosure with reference to the accompanying drawings.

[0077] In order to at least solve the problem of complex operation and execution efficiency in desensitizing the sensitive information using SQL scripts in the related art, this embodiment provides a data desensitization method.

[0078] Figure 1 The following is a flow chart of a data desensitization method provided by an embodiment of the present disclosure. Figure 1 As shown, the method comprises the following steps:

[0079] Step 101, after the preset low-code platform is normally connected to multiple data sources, a permission group is configured and the permission group is bound to user information to obtain a user information permission relationship group, wherein the multiple data sources are of the same or different types;

[0080] As a refinement of the above step 101, in order to facilitate the management of the multiple data sources, the multiple data sources are connected to the preset low-code platform to achieve access to the multiple data sources from the preset low-code platform. At the same time, in order to improve the security of accessing the multiple data sources from the preset low-code platform, it is necessary to configure the permission group. Different permission groups have different permissions to access the multiple data sources. By binding the permission group to the user information, the user corresponding to the user information has the permission corresponding to the permission group. In addition, the same or different types of the multiple data sources means that the multiple data sources can be databases of the same type or different types. The types of databases include but are not limited to MySQL databases, MariaDB databases, and Kingbase databases.

[0081] Step 102, creating a desensitized application on a preset low-code platform, and determining a target permission group to which the user information for creating the desensitized application belongs based on the user information permission relationship group, wherein the permission group includes the target permission group;

[0082] As a refinement of the above step 102, it should be understood that the preset low-code platform is a visual application development platform. In order to achieve data desensitization, the desensitized application is created based on the preset low-code platform. The user information permission relationship group includes the binding relationship between different user information and permission groups. Therefore, the target permission group described in the user information for creating the desensitized application is determined based on the user permission relationship group to determine the permissions of the user information, and then determine the permissions of the desensitized application. The permissions of the desensitized application are the same as the permissions of the user information.

[0083] Step 103, selecting a target data source that has been enabled and for which the target permission group has management permission from the multiple data sources;

[0084] As a refinement of the above step 103, it is necessary to understand that the multiple data sources have different states, including an enabled state and a stopped state, and the state can be set manually. The "already enabled" means that the data source state is set to the enabled state. In addition, since the desensitizing application may not have the permission to access all the multiple data sources, a target data source that has been enabled and for which the target permission group has management authority is selected from the multiple data sources.

[0085] Step 104, storing the database table structure information in the target data source in the preset low-code platform, and mapping the data types in the database table structure information to the components of the preset low-code platform to obtain a mapping component;

[0086] As a refinement of the above step 104, it should be understood that there are different preset components in the preset low-code platform, and different components have different component mapping relationships with data types supported by different database types in the preset low-code platform, that is, different components can display data content corresponding to one or more data types, by storing the database table structure information in the target data source in the preset low-code platform, the database table structure information includes column name, data type, data length, whether it is allowed to be empty, whether it is repeatable, default value, and remarks. The preset low-code platform stores the database table structure information in the form of an object, maps the data type to the component of the preset low-code platform, and obtains a mapping component. The mapping component can be used to select and display data content corresponding to a data type from multiple data types, and there is a mapping relationship between the multiple data types and the mapping component.

[0087] Step 105, building a low-code form of the desensitizing application based on the mapping component, and setting a desensitizing function in the component properties corresponding to the mapping component to obtain a target desensitizing application;

[0088] As a refinement of the above step 105, after completing the mapping of the data table structure information to the component, the preset low-code platform will give the user a blank canvas. The user can drag the mapping component into the canvas by dragging, pulling, and dragging according to the result of the component mapping to build a low-code form for the desensitizing application, and set the desensitizing function in the component properties corresponding to the mapping component for the user to choose. If the user checks the desensitizing function, the target desensitizing application has the desensitizing function, otherwise it does not.

[0089] Step 106, based on the target desensitizing application having the desensitizing function, desensitizes the target data in the low-code form, wherein the target data is data corresponding to the data type having a mapping relationship with the mapping component.

[0090] As a refinement of the above step 106, the target desensitizing application with the desensitizing function refers to the target desensitizing application after the desensitizing function is checked in the component property panel, and the target data in the low-code form is desensitized by the target desensitizing application. The target desensitizing application is the basic unit for the preset low-code platform to solve business needs. The application includes basic application information, including name, description, icon, runtime access path; menus, forms, web pages, reports, dashboards, etc. are composed together, which is the minimum unit for visual realization of a business.

[0091] The data desensitization method provided by the present invention configures a permission group and binds the permission group to user information after the preset low-code platform is normally connected to multiple data sources to obtain a user information permission relationship group, wherein the multiple data sources are of the same or different types; creates a desensitized application on the preset low-code platform, and determines the target permission group to which the user information to create the desensitized application belongs based on the user information permission relationship group, wherein the permission group includes the target permission group; selects a target data source that has been enabled and to which the target permission group has management authority from the multiple data sources; stores the database table structure information in the target data source in the preset low-code platform, and maps the data type in the database table structure information to the component of the preset low-code platform to obtain a mapping component; constructs a low-code form of the desensitized application based on the mapping component, and sets a desensitization function in the component properties corresponding to the mapping component to obtain a target desensitized application; desensitizes the target data in the low-code form based on the target desensitization application having the desensitization function, wherein the target data is data corresponding to the data type having a mapping relationship with the mapping component. Compared with the related art, the target desensitizing application with the desensitizing function is built through the preset low-code platform, and the target desensitizing application is visually operated to desensitize the target data. The desensitizing process is simple to operate and the desensitization efficiency is improved.

[0092] As a refinement of the embodiment of the present disclosure, when executing step 106 to desensitize the target data in the low-code form based on the target desensitizing application with the desensitizing function, the following implementation methods may also be adopted but are not limited to, for example: if an irreversible desensitization algorithm is selected in the component properties, the target data is desensitized by calling the irreversible desensitization algorithm based on the target desensitization application, and the desensitization function includes the irreversible desensitization algorithm; if a reversible desensitization algorithm is selected in the component properties, the target data is desensitized by calling the reversible desensitization algorithm based on the target desensitization application, and the desensitization function includes the reversible desensitization algorithm.

[0093] As a refinement of the above embodiment, when executing the method of desensitizing the target data by calling the irreversible desensitization algorithm based on the target desensitization application, the following implementation methods may also be adopted but are not limited to, for example: calling the hash desensitization algorithm based on the target desensitization application to perform hash calculation desensitization on the target data; or calling the masking desensitization algorithm based on the target desensitization application to perform local masking desensitization of special symbols on the target data, and the irreversible desensitization algorithm includes the hash desensitization algorithm and the masking desensitization algorithm; when executing the method of desensitizing the target data by calling the reversible desensitization algorithm based on the target desensitization application, the following implementation methods may also be adopted but are not limited to, for example: setting the desensitization starting point and desensitization end point of the target data; executing the replacement desensitization algorithm on the desensitized data between the desensitization starting point and the desensitization end point in the target data, the replacement desensitization algorithm is called by the target desensitization application, and the reversible desensitization algorithm includes the replacement desensitization algorithm; replacing and desensitizing the desensitized data based on the replacement code table built into the replacement desensitization algorithm.

[0094] In order to facilitate the understanding of the above embodiment, this embodiment provides an exemplary description for this purpose, including: in order to achieve the desensitization of the target data in the target data source, after selecting the mapping component, the user can check whether to enable the desensitization function through the component properties. For the data that starts the desensitization function, the preset low-code platform will enable the desensitization algorithm to protect sensitive data. Taking the mobile phone number as an example, the external data source may be a directly stored string or long integer. In the low-code form generated by the target desensitization application, the user can select the "single-line text" component to express the mobile phone number, check the desensitization function, and select the desensitization algorithm through the drop-down list. The desensitization algorithm includes a reversible desensitization algorithm and the irreversible desensitization algorithm. The process of performing desensitization by the desensitization algorithm is as follows: hash desensitization, that is, using the hash algorithm to hash the component data. This algorithm is an irreversible algorithm and is suitable for highly sensitive data such as passwords exported to other systems for testing; masking desensitization is an irreversible algorithm, suitable for front-end display or sensitive data sharing, etc., and the component data is partially masked by the special symbol "*" to achieve desensitization of sensitive data. Replacement desensitization, this algorithm is a reversible algorithm, suitable for components with fixed data formats such as ID cards and mobile phone numbers. It uses the built-in replacement code table to partially replace component data. Taking mobile phone numbers as an example, users can select a single line of text to render the data column, check "Data Desensitization" in the component property panel, and select "Replacement Desensitization Algorithm". After selecting, the user will be asked to specify the starting and end points of the desensitized data. The user can specify the starting point 4 and the end point 7, and the algorithm will use the replacement algorithm for the 4th to 7th digits of the mobile phone number. After the data is exported, it is still in the correct format, and there will be no problems due to the data format when integrating with other systems. At the same time, it also protects the user's mobile phone number from leakage.

[0095] In some embodiments, the target data is desensitized by using the replacement desensitization algorithm to obtain desensitized target data, and the target data can be obtained by performing an inverse operation on the desensitized target data based on the replacement code table.

[0096] As a refinement of the above embodiment, when executing step 104 to store the database table structure information in the target data source in the preset low-code platform, the following implementation methods can be adopted but are not limited to, for example: obtaining all data table structure information included in the target data source; determining the database table structure information in which no foreign keys exist in the entire data table structure information; and storing the database table structure information in the preset low-code platform.

[0097] In order to facilitate the understanding of the steps involved in the above embodiment, this embodiment provides an exemplary description, including: the preset low-code platform will create a new Connection object through the DataSource object to connect the platform to the target data source, obtain the current target data source database metadata DatabaseMetaData through the connection, and obtain all database table structure information under the current target data source through the DatabaseMetaData object. For database table structure information with foreign keys, first use the getImportedKeys method of DatabaseMetaData to obtain the primary key and foreign key of the current database table structure information. If a foreign key exists, the next step will not be processed. If it does not exist, the current database table structure information is stored in the preset low-code platform. The preset low-code platform stores the database table structure information in the form of objects, including column names, data types, data length, whether it is allowed to be empty, whether it is repeatable, default values, and remarks.

[0098] As a refinement of the above embodiment, when executing step 101 to normally connect the preset low-code platform with multiple data sources, the following implementation methods may also be adopted but are not limited to, for example: registering the basic information of the multiple data sources to the preset low-code platform; based on the basic information, the multiple data sources are normally connected to the preset low-code platform, and the basic information includes connection name, database type, database name, user name, password, configuration mode, database address, port number, connection options, and enabled or disabled status.

[0099] In order to facilitate the understanding of the above process, Figure 2 A schematic diagram of an interface for filling in basic information in a form provided by an embodiment of the present disclosure, combined with Figure 2This embodiment provides an exemplary description, including: incorporating the multiple external data sources into the management of the preset low-code platform, and first registering the basic information of the data source to the preset low-code platform. Currently, the preset low-code platform supports multiple types of data sources, and the basic information of the data source is filled in when registering the data source. The basic information of the data source is as follows: connection name, select database type, database name, user name, password, configuration mode, database address, port number, connection options. After completing the configuration of the basic database information, you can test whether the connection is successful. You can also choose to enable or disable the data source. For data source viewing, when the number of data sources managed by the preset low-code platform is large, paginated viewing and searching must be used. This article uses a list to display the basic information of the data source, including connection name, database type, connection user name, enable / disable status, data source connection information, etc., while hiding the data source connection password. Figure 3 A schematic diagram of an interface that displays data sources in a list format is provided for an embodiment of the present disclosure. Data source testing refers to testing the connectivity of a data source. The preset low-code platform will construct a DataSource object based on the form data filled in by the user, and then construct a database connection object Connection through the DataSource object. If the connection object is successfully constructed, it means that the current data source can be connected and the connection test passes. It should be understood that Figure 2 and Figure 3 The contents shown are only to help better understand the contents involved in the embodiments of the present disclosure, and the data content and page design shown in the figures do not constitute a limitation of the present disclosure.

[0100] As a refinement of the above embodiment, when executing step 101 to configure the permission group and bind the permission group to the user information to obtain the user information permission relationship group, the following implementation methods may also be adopted but are not limited to, for example: configuring the management authority of the permission group, the management authority including the data source information that the permission group is authorized to manage; binding the permission group configured with the management authority to the user information so that the user corresponding to the user information has the management authority.

[0101] In order to facilitate the understanding of the steps involved in the above embodiment, this embodiment provides an exemplary description, for example: in order to ensure the operational security of the basic information of the data source, the preset low-code platform will control the operation permissions of the data source information operation in the list. Currently, users can edit the data source, delete the data source, and share the data source operation permissions with other developers through "collaboration". The default permission group will be created when the user creates the data source. The default permission group operation permissions include "edit", "delete", and "collaboration", which correspond to the source data modification operation permissions of the data source, the data source metadata deletion permissions, and the permission group configuration permissions. The preset low-code platform permission group configuration, the permissions involve various characteristics of the low-code platform, are the underlying control capabilities of the low-code platform, and ensure the operational security of system resources. The metadata of the permission group includes name, description, type, resource, priority, enabled status, data filtering conditions, and permission group members. The permission group abstracts all system resources of the preset low-code platform, for example, abstracting system resources into applications, tags, dictionaries, forms, etc. The permission type refers to which abstract system resource the permission group has the permission to operate, and the permission group is effective for which part of the data in which abstract system resource by setting the data filtering conditions. The permission group members are a list of users included in the current permission group, and have a one-to-many relationship with the permission group. The current low-code platform permission group member configuration method has multiple dimensions, supporting the selection of specific users for precise control, and also supporting batch selection of organizations, positions, and regions. Members include whitelists and blacklists. The blacklist has a higher priority, that is, once a user enters the blacklist, he or she cannot obtain resource operation permissions even if he or she is in the whitelist.

[0102] As a refinement of the above embodiment, the mapping of the data type in the database table structure information to the component of the preset low-code platform can also be implemented in the following ways, but not limited to, for example: mapping the data type column of the database to the preset low-code platform component, the data type column means that in the database table, each column has its corresponding data type, and the data type column information is contained in the database table structure information, for example: taking the "check box" component as an example, the MySQL / MariaDB database data types are supported as "text", "midiatext", "longtext" columns, while Kingbase supports columns with data types of "text", "jsonb", "mediumtext", "longtext", "json"; the data types supported by different database types have different component mappings in the preset low-code platform. After completing the mapping of the data table structure to the component type of the preset low-code platform, the preset low-code platform will give the user a blank canvas. The user can drag the component into the canvas by dragging, pulling, and dragging according to the results of the component mapping. A component may map multiple data type columns, which can be selected in the component properties to map to which column. For data type columns that cannot be empty, after selecting the component, the component property panel will automatically check "Do not allow empty" and prohibit users from checking it. For data type columns with the "unique" attribute, the "duplicate" attribute will be automatically checked after selecting the component. For data type columns with default values, the default value will be automatically set for the component after selecting the component.

[0103] In order to more clearly show the overall process involved in the above embodiment, Figure 4 A flowchart of another data desensitization method provided by an embodiment of the present disclosure is shown in FIG. Figure 4 As shown: create a new application, select the data source corresponding to the application, select the database table in the data source, determine which database table columns in the database table have foreign keys, map the database table column data that do not have foreign keys in the database table to the component, drag / drop / drag the component and select the optional database table columns in the component properties to complete the deployment of the application form and obtain the target desensitized application.

[0104] In summary, the embodiments of the present disclosure can achieve the following effects:

[0105] 1. The target desensitizing application with the desensitizing function is constructed through the preset low-code platform, and the target data is desensitized by visually operating the target desensitizing application. The desensitizing process is simple to operate and the desensitization efficiency is improved.

[0106] 2. Protect sensitive fields through component attribute configuration. The preset low-code platform will perform a desensitization algorithm on sensitive fields and store them in the database. Under the premise of changing the database table structure, old data can be integrated into the low-code platform in a low-cost manner. Users can operate data through the preset low-code platform graphical interface and enjoy the convenience of low-code platform permission control. They can also integrate the enterprise resource planning system with the preset low-code platform through the low-code API open platform.

[0107] 3. The process of reversely generating the preset low-code platform application form from the data table based on the database of the data source that has been included in the preset low-code platform. During the form configuration process, you can choose to apply desensitization algorithms to some components according to business needs to achieve the purpose of protecting sensitive data. The low-code platform provides a variety of desensitization algorithms for different components, and users can choose in the component property panel.

[0108] Corresponding to the above-mentioned data desensitization method, the present invention also proposes a data desensitization device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.

[0109] Figure 5 A schematic diagram of the structure of a data desensitization device provided by an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, including:

[0110] A configuration unit 21 is used to configure a permission group and bind the permission group to user information after the preset low-code platform is normally connected to multiple data sources to obtain a user information permission relationship group, wherein the multiple data sources are of the same or different types;

[0111] A creation unit 22 is used to create a desensitized application on a preset low-code platform, and determine a target permission group to which the user information to create the desensitized application belongs based on the user information permission relationship group, wherein the permission group includes the target permission group;

[0112] A selection unit 23, configured to select, from the plurality of data sources, a target data source that has been enabled and for which the target permission group has management permission;

[0113] A storage unit 24 is used to store the database table structure information in the target data source in the preset low-code platform, and map the data type in the database table structure information to the component of the preset low-code platform to obtain a mapping component;

[0114] A setting unit 25 is used to construct a low-code form of the desensitized application based on the mapping component, and set a desensitization function in a component property corresponding to the mapping component to obtain a target desensitized application;

[0115] The desensitizing unit 26 is used to desensitize the target data in the low-code form based on the target desensitizing application with the desensitizing function, and the target data is data corresponding to the data type having a mapping relationship with the mapping component.

[0116] The data desensitizing device provided by the present disclosure configures a permission group and binds the permission group to user information after the preset low-code platform is normally connected to multiple data sources to obtain a user information permission relationship group, wherein the multiple data sources are of the same or different types; creates a desensitizing application on the preset low-code platform, and determines the target permission group to which the user information to create the desensitizing application belongs based on the user information permission relationship group, wherein the permission group includes the target permission group; selects a target data source that has been enabled and to which the target permission group has management authority from the multiple data sources; stores the database table structure information in the target data source in the preset low-code platform, and maps the data type in the database table structure information to the component of the preset low-code platform to obtain a mapping component; constructs a low-code form of the desensitizing application based on the mapping component, and sets a desensitizing function in the component properties corresponding to the mapping component to obtain a target desensitizing application; desensitizes the target data in the low-code form based on the target desensitizing application having the desensitizing function, wherein the target data is data corresponding to the data type having a mapping relationship with the mapping component. Compared with the related art, the target desensitizing application with the desensitizing function is built through the preset low-code platform, and the target desensitizing application is visually operated to desensitize the target data. The desensitizing process is simple to operate and the desensitization efficiency is improved.

[0117] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 3 As shown, the desensitization unit 26 is also used for:

[0118] When an irreversible desensitization algorithm is selected in the component attributes, the irreversible desensitization algorithm is called based on the target desensitization application to desensitize the target data, and the desensitization function includes the irreversible desensitization algorithm;

[0119] When a reversible desensitization algorithm is selected in the component properties, the reversible desensitization algorithm is called based on the target desensitization application to desensitize the target data, and the desensitization function includes the reversible desensitization algorithm.

[0120] Optionally, the desensitization unit 26 is further used for:

[0121] Based on the target desensitization application, a hash desensitization algorithm is called to perform hash calculation desensitization on the target data; or

[0122] Based on the target desensitization application, a masking desensitization algorithm is called to perform local masking desensitization of special symbols on the target data, and the irreversible desensitization algorithm includes the hash desensitization algorithm and the masking desensitization algorithm;

[0123] The desensitization unit 26 is also used for:

[0124] Setting a desensitization starting point and a desensitization end point of the target data;

[0125] Execute a replacement desensitization algorithm on the desensitized data between the desensitization starting point and the desensitization end point in the target data, wherein the replacement desensitization algorithm is called by the target desensitization application, and the reversible desensitization algorithm includes the replacement desensitization algorithm;

[0126] The desensitized data is subjected to replacement desensitization based on the replacement code table built into the replacement desensitization algorithm.

[0127] Optionally, the storage unit 24 is further used for:

[0128] Obtaining all data table structure information included in the target data source;

[0129] Determine that the database table structure information does not contain any foreign key in the entire data table structure information;

[0130] The database table structure information is stored in the preset low-code platform.

[0131] Optionally, the configuration unit 25 is further configured to:

[0132] Registering basic information of the multiple data sources to the preset low-code platform;

[0133] Based on the basic information, the multiple data sources are normally connected to the preset low-code platform. The basic information includes connection name, database type, database name, user name, password, configuration mode, database address, port number, connection options, and enabled or disabled status.

[0134] Optionally, the configuration unit 25 is further configured to:

[0135] The management authority of the configuration authority group includes the data source information that the authority group is authorized to manage;

[0136] The permission group configured with the management permission is bound to the user information so that the user corresponding to the user information has the management permission.

[0137] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.

[0138] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0139] Figure 6 A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0140] like Figure 6 As shown, the device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 302 or a computer program loaded from a storage unit 308 to a RAM (Random Access Memory) 303. In the RAM 303, various programs and data required for the operation of the device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An I / O (Input / Output) interface 305 is also connected to the bus 304.

[0141] A number of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0142] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 301 performs the various methods and processes described above, such as a data desensitization method. For example, in some embodiments, the data desensitization method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to perform the aforementioned data desensitization method in any other appropriate manner (eg, by means of firmware).

[0143] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0144] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0145] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage device, magnetic storage device, or any suitable combination of the foregoing.

[0146] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0147] The systems and techniques described herein may be implemented in a computing system that includes a backend component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a frontend component (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0148] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0149] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0150] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

Claims

1. A data desensitization method, It is characterized in that include: After the preset low-code platform is normally connected to multiple data sources, a permission group is configured and the permission group is bound to user information to obtain a user information permission relationship group, wherein the multiple data sources are of the same or different types; Creating a desensitized application on a preset low-code platform, and determining a target permission group to which the user information of creating the desensitized application belongs based on the user information permission relationship group, wherein the permission group includes the target permission group; Selecting, from the multiple data sources, a target data source that has been enabled and for which the target permission group has management permission; The database table structure information in the target data source is stored in the preset low-code platform, and the data types in the database table structure information are mapped to components of the preset low-code platform to obtain a mapping component, which can be used to select and display data content corresponding to a data type from multiple data types, and there is a mapping relationship between the multiple data types and the mapping component; Building a low-code form of the desensitizing application based on the mapping component, and setting a desensitizing function in the component properties corresponding to the mapping component to obtain a target desensitizing application; The target data in the low-code form is desensitized based on the target desensitizing application having the desensitizing function, and the target data is data corresponding to the data type having a mapping relationship with the mapping component.

2. The method according to claim 1, It is characterized in that Desensitizing the target data in the low-code form based on the target desensitizing application having the desensitizing function includes: If an irreversible desensitization algorithm is selected in the component attributes, the irreversible desensitization algorithm is called based on the target desensitization application to desensitize the target data, and the desensitization function includes the irreversible desensitization algorithm; If a reversible desensitization algorithm is selected in the component properties, the reversible desensitization algorithm is called based on the target desensitization application to desensitize the target data, and the desensitization function includes the reversible desensitization algorithm.

3. The method according to claim 2, It is characterized in that The desensitizing the target data by calling the irreversible desensitization algorithm based on the target desensitization application includes: Based on the target desensitization application, a hash desensitization algorithm is called to perform hash calculation desensitization on the target data; or Based on the target desensitization application, a masking desensitization algorithm is called to perform local masking desensitization of special symbols on the target data, and the irreversible desensitization algorithm includes the hash desensitization algorithm and the masking desensitization algorithm; The calling the reversible desensitization algorithm based on the target desensitization application to desensitize the target data includes: Setting a desensitization starting point and a desensitization end point of the target data; Execute a replacement desensitization algorithm on the desensitized data between the desensitization starting point and the desensitization end point in the target data, wherein the replacement desensitization algorithm is called by the target desensitization application, and the reversible desensitization algorithm includes the replacement desensitization algorithm; The desensitized data is subjected to replacement desensitization based on the replacement code table built into the replacement desensitization algorithm.

4. The method according to claim 1, It is characterized in that The storing of the database table structure information in the target data source in the preset low-code platform includes: Obtaining all data table structure information included in the target data source; Determine that the database table structure information does not contain any foreign key in the entire data table structure information; The database table structure information is stored in the preset low-code platform.

5. The method according to claim 1, It is characterized in that The normal connection between the preset low-code platform and multiple data sources includes: Registering basic information of the multiple data sources to the preset low-code platform; Based on the basic information, the multiple data sources are normally connected to the preset low-code platform. The basic information includes connection name, database type, database name, user name, password, configuration mode, database address, port number, connection options, and enabled or disabled status.

6. The method according to claim 1, It is characterized in that The configuring the permission group and binding the permission group with the user information to obtain the user information permission relationship group includes: The management authority of the configuration authority group includes the data source information that the authority group is authorized to manage; The permission group configured with the management permission is bound to the user information so that the user corresponding to the user information has the management permission.

7. A data desensitization device, It is characterized in that include: A configuration unit, configured to configure a permission group and bind the permission group to user information to obtain a user information permission relationship group after the preset low-code platform is normally connected to multiple data sources, wherein the multiple data sources are of the same or different types; A creation unit, configured to create a desensitized application on a preset low-code platform, and determine a target permission group to which the user information for creating the desensitized application belongs based on the user information permission relationship group, wherein the permission group includes the target permission group; A selection unit, configured to select, from the plurality of data sources, a target data source that has been enabled and for which the target permission group has management permission; A storage unit, used to store the database table structure information in the target data source in the preset low-code platform, and map the data types in the database table structure information to components of the preset low-code platform to obtain a mapping component, wherein the mapping component can be used to select and display data content corresponding to a data type from multiple data types, and there is a mapping relationship between the multiple data types and the mapping component; A setting unit, used to build a low-code form of the desensitizing application based on the mapping component, and set a desensitizing function in a component property corresponding to the mapping component to obtain a target desensitizing application; A desensitizing unit is used to desensitize the target data in the low-code form based on the target desensitizing application having the desensitizing function, and the target data is data corresponding to the data type having a mapping relationship with the mapping component.

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 enable the computer to execute the method according to any one of claims 1-6.

10. A computer program product, It is characterized in that The method comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Database masking system and method based on big data

    CN106599713A

  • Data desensitization system based on data simulation algorithm

    CN113343298A

  • Big data processing system and method based on hybrid engine

    CN114625764A

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

    CN114722426A

  • Data networking system for government and enterprise data fusion

    CN115460242A