API asset data efficient desensitization method, device, storage medium, and program product

By dynamically adjusting the desensitization strategy of API asset data, selecting real-time or delayed desensitization according to the data flow rate, and combining with load balancing technology, the existing technology solves the problem of difficulty in ensuring desensitization efficiency and accuracy in API data transmission, and improves efficiency. System stability and performance.

CN118114304BActive Publication Date: 2024-09-27BEIJING TOPSEC NETWORK SECURITY TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410313209.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-19
Publication Date
2024-09-27
Estimated Expiration
2044-03-19

AI Technical Summary

Technical Problem

During the API interface data transmission process, when faced with a huge amount of data, the existing technology is difficult to ensure the efficiency and accuracy of desensitization, especially when the data flow rate changes, it is difficult to dynamically adjust the desensitization strategy.

Method used

By obtaining the rate of API asset data in real time, if the rate is not greater than the threshold, real-time desensitization is used; if the rate is greater than the threshold, delayed desensitization is used, combining load balancing technology and data grouping processing to dynamically select an appropriate desensitization strategy.

Benefits of technology

It achieves both desensitization efficiency and accuracy when faced with large-scale API asset data, reduces data processing delay and resource consumption, and improves system stability and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118114304B
    Figure CN118114304B
Patent Text Reader

Abstract

The disclosed embodiments disclose an efficient API asset data desensitization method, device, storage medium, and program product. The method includes: obtaining a first rate at which a source outputs API asset data in real time; if the first rate is not greater than a first rate threshold, desensitizing the API asset data in real time to obtain anonymized API data; if the first rate is greater than a first rate threshold, desensitizing the API asset data with a delay to obtain anonymized API data; and outputting the anonymized API data to a destination. The method can dynamically select a suitable desensitization strategy according to the rate of the data stream, and can simultaneously ensure the efficiency and accuracy of desensitization when faced with a large amount of API asset data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network security technology, and in particular to an efficient API asset data desensitization method, device, storage medium, and program product. Background Art

[0002] With the continuous development and application of information technology, API interfaces have been developed and used in large quantities. When business applications are performed based on API interfaces, a large amount of API asset data is transmitted from the source to the destination. API asset data usually contains sensitive data. In order to ensure that it is not leaked during transmission, it is usually necessary to desensitize the API asset data. However, in the face of huge amounts of data, the desensitization efficiency and accuracy are difficult to guarantee. Summary of the invention

[0003] In view of this, the embodiments of the present disclosure provide a method, device, storage medium, and program product for efficiently desensitizing API asset data, which can dynamically select a suitable desensitization strategy according to the rate of the data flow, and can simultaneously ensure the efficiency and accuracy of desensitization when faced with huge API asset data.

[0004] In the first aspect, the embodiments of the present disclosure provide an efficient API asset data desensitization method, which adopts the following technical solutions:

[0005] Get the first rate of source output API asset data in real time;

[0006] If the first rate is not greater than a first rate threshold, desensitizing the API asset data in real time to obtain anonymized API data;

[0007] If the first rate is greater than a first rate threshold, delay desensitizing the API asset data to obtain anonymized API data;

[0008] The anonymized API data is output to a destination.

[0009] Optionally, the real-time desensitization of the API asset data to obtain anonymized API data includes:

[0010] Storing the API asset data;

[0011] According to the timestamp of the API asset data output by the source end, the stored API asset data is grouped to obtain a plurality of first data groups;

[0012] The API asset data in the multiple first data groups are desensitized by using load balancing technology to obtain anonymized API data.

[0013] Optionally, the delayed desensitizing of the API asset data to obtain anonymized API data includes:

[0014] Backing up the API asset data;

[0015] According to the timestamp of the API asset data output by the source end, the backed-up API asset data is grouped to obtain a plurality of second data groups;

[0016] Load balancing technology is used to desensitize the API asset data in the multiple second data groups to obtain anonymized API data.

[0017] Optionally, the API asset data efficient desensitization method further includes:

[0018] Obtaining a second rate for desensitizing the API asset data in the first data group;

[0019] When the second rate is not greater than a second rate threshold, the remaining un-masked API asset data in the first data group is backed up from the cache to the database to obtain a new second data group.

[0020] Optionally, the API asset data efficient desensitization method further includes:

[0021] Query the API asset data for sensitive data;

[0022] If the sensitive data is digital data, dividing the sensitive data into first core data and first non-core data based on a first preset rule;

[0023] Obtaining first interference data based on a second preset rule and the first core data;

[0024] combining the first interference data, the first core data, and the first non-core data into anonymized API data;

[0025] If the sensitive data is non-digital data, dividing the sensitive data into second core data and second non-core data based on the first preset rule;

[0026] Convert the second core data into a first code based on a binary coding rule, and obtain second interference data based on a second preset rule and the first code;

[0027] The second interference data, the first encoding, and the second non-core data are combined into anonymized API data.

[0028] Optionally, the API asset data efficient desensitization method further includes:

[0029] Querying the sensitive data in the API asset data, and dividing the sensitive data into third core data and third non-core data based on a first preset rule;

[0030] Convert the third core data into a second code based on a binary coding rule, and obtain third interference data based on a second preset rule and the second code;

[0031] The third interference data, the second code and the third non-core data are combined into anonymized API data.

[0032] Optionally, the API asset data efficient desensitization method further includes:

[0033] regularly updating the first preset rule and the second preset rule;

[0034] The first preset rule and the second preset rule are sent to the destination end, so that the destination end can restore the anonymized API data to the API asset data.

[0035] In a second aspect, the disclosed embodiment also provides an efficient API asset data desensitization system, which adopts the following technical solutions:

[0036] A rate acquisition module, used to acquire the first rate of the source end outputting the API asset data in real time;

[0037] A real-time desensitization module, configured to perform real-time desensitization on the API asset data to obtain anonymized API data if the first rate is not greater than a first rate threshold;

[0038] A delayed desensitization module, configured to perform delayed desensitization on the API asset data to obtain anonymized API data if the first rate is greater than a first rate threshold;

[0039] The data output module is used to output the anonymized API data to a destination.

[0040] In a third aspect, the embodiments of the present disclosure further provide a computer device, which adopts the following technical solution:

[0041] The computer device comprises:

[0042] at least one processor; and,

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

[0044] 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 so that the at least one processor can execute any of the above-mentioned efficient API asset data desensitization methods.

[0045] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute any of the above-mentioned efficient API asset data desensitization methods.

[0046] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program / instruction, which implements the steps of any of the above methods when executed by a processor.

[0047] The efficient desensitization method for API asset data provided by the disclosed embodiment selects a suitable desensitization strategy through the first rate of the source output API asset data obtained in real time: if the first rate is not greater than the first rate threshold, then the real-time desensitization method is selected to process the API asset data, reducing the time delay of data processing, which is conducive to maintaining the real-time nature of the data, so that sensitive data in the API asset data can be protected immediately; if the first rate is greater than the first rate threshold, then the delayed desensitization method is selected to process the API asset data, which can reduce the pressure brought by real-time processing of high-rate data, protect sensitive information in the database from frequent desensitization operations, ensure the security and integrity of the data, and allow the system to have more time for desensitization processing, avoid desensitization errors or information omissions due to excessive real-time processing pressure, and ensure the quality and accuracy of anonymized API data. This method of dynamically selecting a suitable desensitization strategy according to the rate of the data stream can simultaneously ensure the efficiency and accuracy of desensitization when facing huge API asset data.

[0048] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0050] Figure 1 A flowchart of an efficient API asset data desensitization method provided in an embodiment of the present disclosure;

[0051] Figure 2 A schematic diagram of a process for real-time desensitization of API asset data provided in an embodiment of the present disclosure;

[0052] Figure 3 A schematic diagram of a process for delayed desensitization of API asset data provided in an embodiment of the present disclosure;

[0053] Figure 4 A schematic diagram of a flow chart of a method for processing counterfeit data provided by an embodiment of the present disclosure;

[0054] Figure 5 Another flowchart of the counterfeit data processing method provided by the embodiment of the present disclosure;

[0055] Figure 6 A principle block diagram of the API asset data efficient desensitization system provided in the embodiment of the present disclosure;

[0056] Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0057] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0058] It should be clear that the following embodiments of the present disclosure are described by specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other in the absence of conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0059] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0060] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0061] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0062] Reference Figure 1 The present disclosure provides an efficient API asset data desensitization method, comprising the following steps:

[0063] S1: The first rate at which the source outputs API asset data in real time.

[0064] S2: Determine whether the first rate is greater than the first rate threshold; if not, execute S3; if so, execute S4.

[0065] Among them, the present disclosure sets the first rate threshold to 10,000 / S, indicating that 10,000 pieces of API asset data are output per second.

[0066] S3: Desensitize API asset data in real time to obtain anonymized API data.

[0067] S4: Delay desensitization of API asset data to obtain anonymized API data.

[0068] S5: Output the anonymized API data to the destination.

[0069] The efficient API asset data desensitization method disclosed in the present invention, when the first rate is low, chooses a real-time desensitization method to process the API asset data, so that the sensitive data in the API asset data can be protected immediately, reducing the risk of data leakage. This method of real-time desensitization of API asset data with a low rate can reduce the time delay of data processing, which is conducive to maintaining the real-time nature of the data, so that the API asset data can be protected immediately, improve the data processing efficiency, and ensure that the business system obtains the desensitized data in a timely manner.

[0070] When the first rate is high, choosing a delayed desensitization method to process API asset data can reduce the pressure of real-time processing of high-rate data, protect sensitive information in the database from frequent desensitization operations, ensure data security and integrity, and allow the system to have more time for desensitization processing, avoiding desensitization errors or information omissions due to excessive real-time processing pressure, ensuring the quality and accuracy of anonymized API data. Moreover, for high-rate data streams, adopting a delayed desensitization strategy can reduce the burden on the system, reduce resource consumption for real-time processing, and improve the overall performance and stability of the system.

[0071] In summary, the disclosed API asset data efficient desensitization method can flexibly respond to changes in data flow, dynamically select appropriate desensitization strategies according to the rate of data flow, and has high adaptability and scalability. For a large amount of API asset data, it can improve the efficiency of data processing, save resources and reduce time costs. By combining real-time desensitization and delayed desensitization, the delay of data processing can be reduced as much as possible while ensuring data security, and the real-time nature of data output can be improved.

[0072] In S1, the API asset data outputted by the source end is acquired in real time by active collection, passive reception, serial connection with the backbone network outlet, etc. The API asset data includes at least one or more of user data, transaction data, security log data, device data, geographic location data, and statistical data. The total amount of API asset data outputted by the source end within a preset time is counted, and a first rate is obtained based on the total amount of API asset data and the preset time.

[0073] The calculation formula of the first rate is as follows:

[0074] S = A ÷ T;

[0075] Wherein, S is the first rate, A is the total amount of API asset data, and T is the preset time. The preset time is set to 30 seconds in this disclosure.

[0076] Figure 2 The present disclosure provides a flow chart of real-time desensitization of API asset data. In S3, real-time desensitization of API asset data is performed to obtain anonymized API data, including the following steps:

[0077] S21: storing API asset data;

[0078] S22: grouping the stored API asset data according to the timestamp of the API asset data output by the source end to obtain a plurality of first data groups;

[0079] S23: Desensitize the API asset data in the multiple first data groups using load balancing technology to obtain anonymized API data.

[0080] In S21, storing the API asset data refers to storing the API asset data in a cache.

[0081] In S22, the API asset data in the cache are grouped in the order of timestamps. For example, there are 100 API asset data in the cache, and the timestamps of the 100 API asset data are 2:05:10:10 ms on January 1, 2023, 2:05:10:30 ms on January 1, 2023, ..., 2:05:11 ms on January 1, 2023. The 1st to 25th API asset data are grouped into the first first data group, the 26th to 50th API asset data are grouped into the second first data group, the 50th to 75th API asset data are grouped into the third first data group, and the 70th to 100th API asset data are grouped into the fourth first data group.

[0082] In S23, a first data group is taken as a task, and multiple tasks are distributed and processed by load balancing. The tasks are evenly distributed to different processing units (such as servers, threads, etc.) through the load balancing mechanism, and the parallel processing of multiple tasks is completed. The reasonable allocation of computer resources is realized, and the overload of a single node is avoided. The concurrent processing capability of the system is improved, and the overall performance and efficiency of the system are improved. Moreover, under load balancing, the various nodes in the system can cooperate with each other. When a node fails, other nodes can take over the task to ensure the reliability and stability of the system.

[0083] Optionally, a first label is added to each first data group. After the API asset data in the first data group is desensitized, the first data group stores anonymized API data, and each first data group is sorted in the order of the first label. It is worth noting that the API asset data in the first data group is desensitized in the order of timestamps, and the anonymized API data obtained after desensitization is still sorted in the order of timestamps in the first data group. The anonymized API data is output to the destination according to the sorting order of the first data group and the order of the anonymized API data in the first data group, and then the anonymized API data in the cache is deleted.

[0084] Figure 3 A schematic diagram of a process for delaying desensitization of API asset data provided in an embodiment of the present disclosure. In S4, delaying desensitization of API asset data is performed to obtain anonymized API data, including the following steps:

[0085] S31: Back up API asset data;

[0086] S32: grouping the backed-up API asset data according to the timestamp of the API asset data output by the source end to obtain a plurality of second data groups;

[0087] S33: Desensitize the API asset data in the multiple second data groups using load balancing technology to obtain anonymized API data.

[0088] In S31, backing up the API asset data refers to backing up the API asset data into a database.

[0089] In S32, the API asset data in the database are grouped according to the order of timestamps.

[0090] In S33, a second data group is taken as a task, and multiple tasks are distributed and processed in a load-balanced manner. The tasks are evenly distributed to different processing units (such as servers, threads, etc.) through the load-balancing mechanism to complete the parallel processing of multiple tasks.

[0091] Optionally, a second label is added to each second data group. After the API asset data in the second data group is desensitized, the second data group stores anonymized API data, and each second data group is sorted in the order of the second label. It is worth noting that the API asset data in the second data group is desensitized in the order of timestamps, and the anonymized API data obtained after desensitization is still sorted in the order of timestamps in the second data group. The anonymized API data is output to the destination according to the sorting order of the second data group and the order of the anonymized API data in the second data group, and then the anonymized API data in the database is deleted to complete the memory release.

[0092] Optionally, a second rate for desensitizing the API asset data in the first data group is calculated in real time. When the second rate is not greater than a second rate threshold, the remaining un-desensitized API asset data in the first data group is backed up from the cache to the database to obtain a new second data group. The new second data group is treated as a new task for load balancing distribution processing, and then the API asset data in the new second data group is desensitized.

[0093] The calculation formula of the second rate is as follows:

[0094] S'=A k '÷T';

[0095] Where S' is the second rate; A k ' is the number of API asset data that are desensitized within a unit time for the first data group with label k; k is the label of the first data group; T' is the unit time.

[0096] In both S23 and S33, the counterfeit data processing method is used to desensitize the API asset data.

[0097] Reference Figure 4 , one possible implementation method of the counterfeit data processing method is as follows:

[0098] S41: Query sensitive data in API asset data;

[0099] S42: Determine whether the sensitive data is digital data; if so, execute S43; if not, execute S46;

[0100] S43: Divide the sensitive data into first core data and first non-core data based on a first preset rule;

[0101] S44: Obtaining first interference data based on a second preset rule and the first core data;

[0102] S45: combining the first interference data, the first core data, and the first non-core data into anonymized API data;

[0103] S46: dividing the sensitive data into second core data and second non-core data based on the first preset rule;

[0104] S47: converting the second core data into the first code based on the binary coding rule, and obtaining the second interference data based on the second preset rule and the first code;

[0105] S48: Combine the second interference data, the first code, and the second non-core data into anonymized API data.

[0106] This counterfeit data processing method processes digital sensitive data and non-digital sensitive data separately according to the type of sensitive data, and anonymizes core data, non-core data and interference data, effectively increasing data security and reducing the risk of data leakage. The binary encoding rules are also preset and difficult to crack, which can further increase data security. For digital sensitive data, it can retain the analyzability and availability of the data to a certain extent, which is helpful for data analysis and mining.

[0107] In S42, the ID card number, mobile phone number, postal code, etc. are digital data. The first preset rule is a data division rule, which is set by the source end, and the data division rule includes a specific method for dividing digital sensitive data into first core data and first non-core data, and a specific method for dividing non-digital sensitive data into second core data and second non-core data.

[0108] In S44, the first core data is composed of M first characters, each first character is converted into a second character based on a second preset rule, and the second characters are combined into the first interference data.

[0109] In S45, each second character of the first interference data is inserted between the first characters of the first core data by using a staggered method to obtain a first character string, and the first character string is combined with the first non-core data into anonymized API data.

[0110] Optionally, a first mark is added to the second character to facilitate the destination end to quickly distinguish the first interference data.

[0111] In S47, the first code is composed of N third characters, and each third character is converted into a fourth character based on a second preset rule, and the fourth characters are combined into second interference data.

[0112] In S48, each fourth character of the second interference data is inserted between the third characters of the first code by a staggered method to obtain a second string, and the second string is combined with the second non-core data into anonymized API data.

[0113] Optionally, a second mark is added to the fourth character to facilitate the destination end to quickly distinguish the second interference data.

[0114] Reference Figure 5 Another possible implementation method of the counterfeit data processing method is as follows:

[0115] S51: Query sensitive data in API asset data;

[0116] S52: Divide the sensitive data into third core data and third non-core data based on the first preset rule;

[0117] S53: Convert the third core data into a second code based on a binary coding rule, and obtain third interference data based on a second preset rule and the second code;

[0118] S54: Combine the third interference data, the second code and the third non-core data into anonymized API data.

[0119] This counterfeit data processing method does not process digital sensitive data and non-digital sensitive data separately, but uniformly converts the third core data into the second code and then anonymizes it. While ensuring data security, it reduces the complexity of the processing process. This unified processing method can improve data processing efficiency, reduce management and maintenance costs, the risk of desensitization errors, and the difficulty of restoring anonymized API data at the destination.

[0120] In S52, the first preset rule is a data division rule, which is set by the source end, and the data division rule includes a specific method for dividing sensitive data into third core data and third non-core data.

[0121] In S53, the second code is composed of Q-bit fifth characters, and each fifth character is converted into a sixth character based on a second preset rule, and the sixth characters are combined into third interference data.

[0122] In S54, each sixth character of the third interference data is inserted between the fifth characters of the second code by a staggered method to obtain a third character string, and the third character string is combined with the third non-core data into anonymized API data.

[0123] Optionally, a third mark is added to the sixth character to facilitate the destination end to quickly distinguish the third interference data.

[0124] Optionally, the source end periodically updates the first preset rule and the second preset rule, and then sends the latest first preset rule and the second preset rule to the destination end, and the destination end performs an inverse operation on the anonymized API data according to the first preset rule and the second preset rule, and restores the anonymized API data to API asset data. This regular update method can improve the flexibility, security and confidentiality of data processing, ensure that the desensitization and inverse operation processes are effectively controlled, facilitate appropriate adjustment and processing of data according to different situations, improve data processing efficiency and effectiveness, and reduce the risk of data leakage.

[0125] This application provides a specific example of a method for processing counterfeit data:

[0126] The sensitive data in the API asset data is: Zhang San, the core data of the sensitive data is: San, and the non-core data is: Zhang. According to the binary encoding rule, the core data is converted into the first code: 11000111. The second preset rule is to add one to each character in the first code, and the interference data is: 22111222. The interference data is inserted into the first code to obtain the string: 1212010101121212. The string and non-core data are combined into anonymized API data: Zhang 1212010101121212.

[0127] Reference Figure 6 The present disclosure provides an efficient API asset data desensitization system, including:

[0128] The rate acquisition module 101 is used to acquire the first rate of the source end outputting the API asset data in real time;

[0129] A real-time desensitization module 102, configured to perform real-time desensitization on the API asset data to obtain anonymized API data if the first rate is not greater than a first rate threshold;

[0130] A delayed desensitization module 103, configured to perform delayed desensitization on the API asset data to obtain anonymized API data if the first rate is greater than a first rate threshold;

[0131] The data output module 104 is used to output the anonymized API data to the destination.

[0132] The various variations and specific examples of the API asset data efficient desensitization method provided above are also applicable to the API asset data efficient desensitization system provided in the present disclosure. Through the above detailed description of the API asset data efficient desensitization method, those skilled in the art can clearly know the implementation method of the API asset data efficient desensitization system. For the sake of brevity of the specification, it will not be described in detail here.

[0133] The computer device according to the embodiment of the present disclosure includes a memory and a processor. The memory is used to store non-temporary computer-readable instructions. Specifically, the memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may, for example, include a read-only memory (ROM), a hard disk, a flash memory, etc.

[0134] The processor may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the computer device to perform desired functions. In one embodiment of the present disclosure, the processor is used to run the computer-readable instructions stored in the memory, so that the computer device executes all or part of the steps of the API asset data efficient desensitization method of each embodiment of the present disclosure.

[0135] Those skilled in the art should be able to understand that in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus and an interface, and these well-known structures should also be included in the protection scope of the present disclosure.

[0136] like Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure is shown, which is a schematic diagram of the structure of a computer device suitable for implementing the embodiment of the present disclosure. Figure 7 The computer device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0137] like Figure 7As shown, the computer device may include a processor (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the computer device are also stored. The processor, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0138] Typically, the following devices can be connected to the I / O interface: input devices such as sensors or visual information acquisition devices; output devices such as display screens; storage devices such as tapes, hard disks, etc.; and communication devices. The communication device can allow the computer device to communicate with other devices (such as edge computing devices) wirelessly or by wire to exchange data. Figure 7 A computer device having various devices is shown, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0139] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processor, all or part of the steps of the API asset data efficient desensitization method of the embodiment of the present disclosure are executed.

[0140] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.

[0141] According to the computer-readable storage medium of the embodiment of the present disclosure, non-transitory computer-readable instructions are stored thereon. When the non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the API asset data efficient desensitization method of each embodiment of the present disclosure are executed.

[0142] The above-mentioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or mobile hard disk), media with built-in rewritable non-volatile memory (e.g., memory card) and media with built-in ROM (e.g., ROM box).

[0143] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.

[0144] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0145] In the present disclosure, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. The block diagrams of the devices, devices, equipment, and systems involved in the present disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0146] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.

[0147] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0148] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.

[0149] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0150] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. An efficient API asset data desensitization method, characterized in that: include: Get the first rate of source output API asset data in real time; If the first rate is not greater than a first rate threshold, desensitizing the API asset data in real time to obtain anonymized API data; If the first rate is greater than a first rate threshold, delay desensitizing the API asset data to obtain anonymized API data; Outputting the anonymized API data to a destination; The real-time desensitization of API asset data to obtain anonymized API data includes: Storing the API asset data; According to the timestamp of the API asset data output by the source end, the stored API asset data is grouped to obtain a plurality of first data groups; Desensitizing the API asset data in the plurality of first data groups using a load balancing technology to obtain anonymized API data; The delayed desensitization of the API asset data to obtain anonymized API data includes: Backing up the API asset data; According to the timestamp of the API asset data output by the source end, the backed-up API asset data is grouped to obtain a plurality of second data groups; Load balancing technology is used to desensitize the API asset data in the multiple second data groups to obtain anonymized API data.

2. The efficient API asset data desensitization method according to claim 1 is characterized in that: Also includes: Obtaining a second rate for desensitizing the API asset data in the first data group; When the second rate is not greater than a second rate threshold, the remaining un-masked API asset data in the first data group is backed up from the cache to the database to obtain a new second data group.

3. The efficient API asset data desensitization method according to claim 1 or 2, characterized in that: Also includes: Query the API asset data for sensitive data; If the sensitive data is digital data, dividing the sensitive data into first core data and first non-core data based on a first preset rule; Obtaining first interference data based on a second preset rule and the first core data; combining the first interference data, the first core data, and the first non-core data into anonymized API data; If the sensitive data is non-digital data, dividing the sensitive data into second core data and second non-core data based on the first preset rule; Convert the second core data into a first code based on a binary coding rule, and obtain second interference data based on a second preset rule and the first code; The second interference data, the first encoding, and the second non-core data are combined into anonymized API data.

4. The efficient API asset data desensitization method according to claim 1 or 2, characterized in that: Also includes: Querying the sensitive data in the API asset data, and dividing the sensitive data into third core data and third non-core data based on a first preset rule; Convert the third core data into a second code based on a binary coding rule, and obtain third interference data based on a second preset rule and the second code; The third interference data, the second code and the third non-core data are combined into anonymized API data.

5. The efficient API asset data desensitization method according to claim 4 is characterized in that: Also includes: regularly updating the first preset rule and the second preset rule; The first preset rule and the second preset rule are sent to the destination end, so that the destination end can restore the anonymized API data to the API asset data.

6. A computer device, characterized in that: The computer device comprises: at least one processor; and, 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 so that the at least one processor can execute the efficient API asset data desensitization method described in any one of claims 1-5.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which are used to enable a computer to execute the efficient API asset data desensitization method described in any one of claims 1-5.

8. A computer program product comprising computer instructions, characterized in that: When the computer instruction is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.