Information transmission desensitization processing method, system, device and storage medium

Through sliding windows and deep learning models, the data types are identified and appropriate desensitization methods are applied to encrypt, replace and anonymize the data. This solves the problem of irreversible desensitization of name data in the existing technology and realizes the desensitization of information during data transmission. Integrity and security.

CN118228293BActive Publication Date: 2024-08-27天津市天益达科技发展有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410638326.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-27
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Existing data desensitization methods lack effective processing of name data, resulting in irreversible results after anonymous encoding and the inability to restore the original name, resulting in information loss after data transmission.

Method used

By setting a sliding window to perform digital continuous judgment and text recognition processing on the data set to be transmitted, identify data types and select appropriate desensitization methods, including desensitization encryption processing, number replacement processing, anonymization processing and data generalization processing, and password data , number data, name data and address data are desensitized.

Benefits of technology

It realizes reversible desensitization of name data, ensures the integrity and security of information during data transmission, and improves the intelligence and security of data desensitization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118228293B
    Figure CN118228293B
Patent Text Reader

Abstract

The present invention discloses a method, system, device and storage medium for information transmission desensitization processing, and relates to the technical field of data desensitization, including analyzing a data set to be transmitted and outputting the data type; selecting a desensitization method based on the data type to desensitize the data set to be transmitted, and outputting the desensitized data set; the present invention is used to solve the problem that there is a lack of improvement in the desensitization method for name data in the prior art, which results in that when anonymous coding rules are used to desensitize the name, the desensitization result is irreversible, and the original name cannot be restored by anonymous coding, thereby causing the problem that the original information is lost after data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data desensitization technology, and specifically to an information transmission desensitization processing method, system, device and storage medium. Background Art

[0002] Data desensitization refers to a technical measure to process sensitive fields in raw data without affecting the accuracy of data analysis results, thereby reducing data sensitivity and personal privacy risks. In the process of data collection, transmission, exchange and sharing, enterprises have the need and obligation to take necessary measures to prevent data leakage and ensure data security.

[0003] Existing improvements for data desensitization usually improve the accuracy of sensitive data identification so that sensitive data can be desensitized more comprehensively. For example, in the Chinese patent with invention publication number CN112347510A, a desensitization method and a desensitization device are disclosed. The scheme is to analyze the data type of the data, determine the desensitized data type that needs to be desensitized, and then perform desensitization processing; however, the existing improved method lacks improvements in the desensitization method for name data, resulting in that when anonymous coding rules are used to desensitize the name, the desensitization result is irreversible, which means that the original name cannot be restored through anonymous coding. In view of this, it is necessary to improve the existing data desensitization method. Summary of the invention

[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent, and by improving data desensitization, it is used to solve the problem that due to the lack of improvement in the desensitization method for name data in the prior art, when anonymous coding rules are used to desensitize the name, the desensitization result is irreversible, and the original name cannot be restored by anonymous coding, which leads to the loss of original information after data transmission.

[0005] To achieve the above objectives, in a first aspect, the present invention provides a method for desensitizing information transmission, comprising:

[0006] Analyze the data set to be transmitted and output the data type; the data set to be transmitted includes multiple specific data, and the data type includes password data, number data, name data, address data and ordinary data; set a sliding window, perform digital continuous judgment processing on the data set to be transmitted according to the sliding window, and obtain password data, number data or ordinary data; after performing digital continuous judgment processing on the sliding window, perform text recognition processing to obtain name data, address data or ordinary data;

[0007] A desensitizing method is selected based on the data type to desensitize the data set to be transmitted, and a desensitized data set is output; the desensitizing method includes desensitizing encryption processing, number replacement processing, anonymization processing and data generalization processing, and the desensitized data set includes a desensitized password, a number compression package, a desensitized name package and a generalized address; the password data is desensitized and encrypted to obtain a desensitized password; the number data is replaced to obtain a number compression package; the name data is anonymized to obtain a desensitized name package; the address data is generalized to obtain a generalized address.

[0008] Furthermore, a sliding window is set, and digital continuity judgment processing is performed on the data set to be transmitted according to the sliding window to obtain password data, number data or ordinary data including:

[0009] Set the sliding window with window size of 1 and the continuous number with initial value of 0;

[0010] Performing digital judgment processing on the data set to be transmitted, the digital judgment processing includes:

[0011] Set the sliding window at the beginning of each specific data to determine whether the sliding window contains a number;

[0012] When the judgment result is no, the specific data is marked as text data, and the sliding window is set at the beginning of other specific data;

[0013] When the judgment result is yes, a window judgment loop is executed, and the window judgment loop includes:

[0014] Control the sliding window to move rightward by a window size, and add one to the continuous number at the same time; when the sliding window moves to the rightmost side of the specific data, the continuous number is judged;

[0015] When the continuous number is equal to the first value, the specific data is marked as password data; when the continuous number is equal to the second value, the specific data is marked as number data; when the continuous number is not equal to either the first value or the second value, the specific data is marked as ordinary data;

[0016] Reset the consecutive number to 0;

[0017] End the window judgment loop;

[0018] Determine whether specific data exists. When the judgment result is yes, repeat the digital judgment process; when the judgment result is no, perform text recognition processing.

[0019] Furthermore, the text recognition process includes:

[0020] Use deep learning models to analyze text data and output name information, address information, or general information based on the analysis results;

[0021] Mark the text data corresponding to the name information as name data; mark the specific data corresponding to the address information as address data; mark the specific data corresponding to the general information as general data, and output all the general data.

[0022] Furthermore, the desensitizing and encryption processing includes:

[0023] Set the encryption value to the same number of digits as the password data, with each digit being zero;

[0024] Calculate the absolute value of the difference between the number on each digit of the password data and the fourth value in descending order of the digit weight of the password data, and mark it as the judgment value;

[0025] When the judgment value is not equal to the fourth value, the digits of the encrypted value are updated; when the judgment value is equal to the fourth value, no processing is performed;

[0026] Convert the encrypted value into a binary format and output the desensitized password.

[0027] Furthermore, the number replacement process includes:

[0028] The leftmost digit of the number data is deleted, and the difference between the remaining number data and the fifth value is calculated, and marked as a forged number;

[0029] Replace the third to sixth digits of the remaining number data from left to right with identifiers, and mark the replaced number data as a desensitized number;

[0030] Compress forged numbers and desensitized numbers and output number compression packages.

[0031] Furthermore, the anonymization process includes:

[0032] Except for the first Chinese character in the name data, each remaining Chinese character is marked as a desensitized character;

[0033] Get the pinyin of the desensitized character, and mark the pinyin as the first desensitizer; set the second desensitizer with an initial value of 0, and get the tone corresponding to the pinyin of the desensitized character, and stipulate that: when the tone is yinping, the second desensitizer is assigned a value of 1; when the tone is yangping, the second desensitizer is assigned a value of 2; when the tone is shangsheng, the second desensitizer is assigned a value of 3; when the tone is qusheng, the second desensitizer is assigned a value of 4;

[0034] Search the Xinhua Dictionary based on the pinyin of the desensitized word, output the row and column information where the desensitized word is located, and mark it as the third desensitization symbol;

[0035] Arranging the desensitizing symbols in descending order of numbers to obtain a desensitizing sequence; the desensitizing symbols include a first desensitizing symbol, a second desensitizing symbol and a third desensitizing symbol;

[0036] Replace each desensitized character in the name data with an identifier, compress the desensitized sequence and the replaced name data, and output the desensitized name package.

[0037] Furthermore, the data generalization process includes:

[0038] Obtain the city-level information corresponding to the address data, delete the address data after the city-level information, mark the remaining address data as a generalized address, and output the generalized address.

[0039] In a second aspect, the present invention further provides an information transmission desensitization processing system, comprising a sensitive analysis module and a data desensitization module; the sensitive analysis module is used to analyze a data set to be transmitted and output a data type; the data set to be transmitted includes a plurality of specific data, and the data types include password data, number data, name data, address data and ordinary data; a sliding window is set, and a digital continuous judgment processing is performed on the data set to be transmitted according to the sliding window to obtain password data, number data or ordinary data; after the digital continuous judgment processing is performed on the sliding window, text recognition processing is performed to obtain name data, address data or ordinary data;

[0040] The data desensitization module is used to select a desensitization method based on the data type to desensitize the data set to be transmitted and output a desensitized data set; the desensitization method includes desensitizing encryption processing, number replacement processing, anonymization processing and data generalization processing, and the desensitized data set includes a desensitized password, a number compression package, a desensitized name package and a generalized address; the password data is desensitized and encrypted to obtain a desensitized password; the number data is replaced to obtain a number compression package; the name data is anonymized to obtain a desensitized name package; the address data is generalized to obtain a generalized address.

[0041] In a third aspect, the present application provides an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method described above are executed.

[0042] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method described above are executed.

[0043] Beneficial effects of the present invention: The present invention sets a sliding window to perform digital judgment processing on the data set to be transmitted, judges the data type of the specific data of the digital type based on the data length, and then identifies the text data to obtain the data type of the text data. This has the advantage of being able to subdivide the specific data into multiple data types, and selecting different desensitization methods based on different data types, so as to achieve the best desensitization effect;

[0044] The present invention also obtains the final desensitized password by performing a difference calculation on the password data according to the digits, and then converting the result obtained by the difference calculation into a base. This has the advantage that the password data is encrypted twice. During the transmission process, the maximum length of the desensitized password is 5 digits and may contain letters, which is not easy to attract attention. After being hijacked and cracked, six digits of password data encrypted once are obtained, which improves the security of data desensitization.

[0045] The present invention also obtains a first desensitizing symbol and a second desensitizing symbol by analyzing the pinyin of the desensitized characters in the name data, and then obtains a third desensitizing symbol based on the row and column information of the desensitized characters in the dictionary, and desensitizes the name data based on the three desensitizing symbols to obtain a desensitized name package; the advantage of this is that the desensitization result is reversible, and the original name information can be obtained by reverse restoration after the data transmission is completed, thereby improving the intelligence of data desensitization.

[0046] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a functional block diagram of the system of the present invention.

[0048] Figure 2 The figure is a flow chart of the steps of the method of the present invention.

[0049] Figure 3 It is a data processing flow chart of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] Example 1, first aspect, please refer to Figure 1 as well as Figure 3 As shown, the present invention provides an information transmission desensitization processing system, including a sensitivity analysis module and a data desensitization module;

[0052] The sensitive analysis module is used to analyze the data set to be transmitted and output the data type; the data set to be transmitted includes multiple specific data, and the data types include password data, number data, name data, address data and general data;

[0053] The sensitive analysis module is configured with digital analysis strategies, which include:

[0054] Set the sliding window with window size of 1 and the continuous number with initial value of 0;

[0055] Perform digital judgment processing on the data set to be transmitted, which includes:

[0056] Set the sliding window at the beginning of each specific data to determine whether the sliding window contains a number;

[0057] When the judgment result is no, the specific data is marked as text data, and the sliding window is set at the beginning of other specific data;

[0058] When the judgment result is yes, the window judgment loop is executed, and the window judgment loop includes:

[0059] Control the sliding window to move rightward by a window size, and add one to the continuous number at the same time; when the sliding window moves to the rightmost side of the specific data, the continuous number is judged;

[0060] When the continuous number is equal to the first value, the specific data is marked as password data; when the continuous number is equal to the second value, the specific data is marked as number data; when the continuous number is not equal to either the first value or the second value, the specific data is marked as ordinary data;

[0061] In specific implementation, the first value is set to 5, and the second value is set to 10; the setting of the first value is based on the number of digits of the existing payment password or verification code. The payment password or verification code is six digits, and the sliding window needs to move five times from the first digit to the last digit, so the first value is set to 5. Similarly, the mobile phone number is 11 digits, and the second value is set to 10;

[0062] Reset the consecutive number to 0;

[0063] End the window judgment loop.

[0064] The sensitive analysis module is also configured with text analysis strategies, which include:

[0065] Use deep learning models to analyze text data and output name information, address information, or general information based on the analysis results;

[0066] Mark the text data corresponding to the name information as name data; mark the specific data corresponding to the address information as address data; mark the specific data corresponding to the general information as general data, and output all the general data;

[0067] It should be noted that the deep learning model used is a model obtained after parameter fine-tuning, which is used to improve its recognition accuracy in the field of name recognition.

[0068] The data desensitization module is used to select a desensitization method based on the data type to desensitize the data set to be transmitted and output the desensitized data set; the desensitization method includes desensitization encryption processing, number replacement processing, anonymization processing and data generalization processing, and the desensitized data set includes desensitized passwords, number compression packages, desensitized name packages and generalized addresses;

[0069] The data desensitization module is configured with desensitization encryption strategies, which include:

[0070] The password data is desensitized and encrypted. The desensitization and encryption processing includes:

[0071] Set the encryption value to the same number of digits as the password data, with each digit being zero;

[0072] Calculate the absolute value of the difference between the number on each digit of the password data and the fourth value in descending order of the digit weight of the password data, and mark it as the judgment value;

[0073] When the judgment value is not equal to the fourth value, the digits of the encrypted value are updated; when the judgment value is equal to the fourth value, no processing is performed;

[0074] Convert the encrypted value into binary format and output the desensitized password;

[0075] In a specific implementation, the fourth value is set to 10; if the password data is 123456, the initial encryption value is 000000; in the order of decreasing digit weight of the password data, the difference between the digit on each digit of the password data and the fourth value is calculated, which means that from left to right, the difference between 1, 2, 3, 4, 5, 6 and 10 is calculated in order;

[0076] Taking the digit 1 at the ten thousandth place as an example, the difference with the fourth value is 9, which is not equal to 10. The digit at the ten thousandth place of the encrypted value corresponding to the digit 1 is updated to 9, and the encrypted value is 900000. After the same process is performed on 23456, the final encrypted value is 987654. The encrypted value is then converted to hexadecimal, and the final desensitized password is f1206. The advantage of converting to hexadecimal is that the converted desensitized password may contain letters, and the maximum data length is only 5 digits, which is not easy to attract attention during data transmission. The specific desensitization results are shown in Table 1:

[0077] Table 1 Desensitization effect diagram

[0078]

[0079] It should be noted that 000000 and 111111 are used to demonstrate the desensitization effect in extreme cases. The other password data in the table are randomly generated using random numbers.

[0080] The data desensitization module is also configured with number replacement strategies, which include:

[0081] Perform number replacement processing on the number data, and the number replacement processing includes:

[0082] The leftmost digit of the number data is deleted, and the difference between the remaining number data and the fifth value is calculated, and marked as a forged number;

[0083] Replace the third to sixth digits of the remaining number data from left to right with identifiers, and mark the replaced number data as a desensitized number;

[0084] Compress forged numbers and desensitized numbers and output number compression packages;

[0085] It should be noted that, based on the existing number format, it must start with 1. Deleting 1 will change the data length, which is not easy to attract attention during data transmission; in specific implementation, the fifth value is set to 10000000000; taking the random mobile phone number 11111111111 as an example, after deleting the leftmost digit, we get 11111111111, and the difference with the fifth value is 9888888889; then replace the third to sixth digits from left to right with the identifier to get the desensitized number 11****1111; hiding the middle four digits of the mobile phone number is to strengthen the protection of the place of origin; on the other hand, retaining a part of the original mobile phone number information can be used to verify the matching degree between the desensitized data and the original data.

[0086] The data desensitization module is also configured with anonymization strategies, which include:

[0087] Anonymize the name data. The anonymization process includes:

[0088] Except for the first Chinese character in the name data, mark each remaining Chinese character as a desensitized character;

[0089] Obtain the pinyin of the desensitized character, and mark the pinyin as the first desensitization symbol; Set a second desensitization symbol with an initial value of 0, obtain the tone corresponding to the pinyin of the desensitized character, and stipulate that: when the tone is flat, assign the value 1 to the second desensitization symbol; when the tone is rising, assign the value 2 to the second desensitization symbol; when the tone is falling-rising, assign the value 3 to the second desensitization symbol; when the tone is falling, assign the value 4 to the second desensitization symbol;

[0090] Query in the Xinhua Dictionary based on the pinyin of the desensitized character, output the row and column information where the desensitized character is located, and mark it as the third desensitization symbol;

[0091] Arrange the desensitization symbols in descending order of the number to obtain a desensitization sequence; The desensitization symbols include the first desensitization symbol, the second desensitization symbol, and the third desensitization symbol;

[0092] Replace each desensitized character in the name data with an identifier, compress the desensitization sequence and the replaced name data, and output a desensitized name package;

[0093] In a specific implementation, taking Zhang San as an example, the desensitized character is "San" with a flat tone. Then the first desensitization symbol is "san" and the second desensitization symbol is 1; Based on network communication, find the row and column information of "San" in the Xinhua Dictionary to obtain the third desensitization symbol as [1, 1]; Finally, obtain the desensitization sequence as {[1, 1]; 1; san}; Then replace the desensitized character to obtain the name data as Zhang *; The method of querying in the Xinhua Dictionary based on the pinyin of the desensitized character can be implemented within the website https: / / zidian.gushici.net / py.html.

[0094] The data desensitization module is also configured with an address generalization strategy, and the address generalization strategy includes:

[0095] Perform data generalization processing on the address data. The data generalization processing includes:

[0096] Obtain the municipal-level information corresponding to the address data, delete the address data after the municipal-level information, mark the remaining address data as a generalized address, and output the generalized address;

[0097] In a specific implementation, if the address data is a certain province, a certain city, a certain district, and a certain number, then delete the address data after the municipal-level information to obtain a generalized address of a certain province and a certain city.

[0098] Example 2, Second aspect, please refer to Figure 2As shown, the present invention also provides an information transmission desensitization processing method, comprising:

[0099] Step S1, analyzing the data set to be transmitted and outputting the data type; the data set to be transmitted includes multiple specific data, and the data types include password data, number data, name data, address data and general data. Step S1 also includes the following sub-steps:

[0100] Step S1011, setting a sliding window with a window size of 1 and a continuous number with an initial value of 0;

[0101] Step S1012, performing digital judgment processing on the data set to be transmitted, the digital judgment processing includes:

[0102] Set the sliding window at the beginning of each specific data to determine whether the sliding window contains a number;

[0103] Step S1013, when the judgment result is no, the specific data is marked as text data, and the sliding window is set at the beginning of other specific data;

[0104] Step S1014: When the judgment result is yes, a window judgment loop is executed, and the window judgment loop includes:

[0105] Control the sliding window to move rightward by a window size, and add one to the continuous number at the same time; when the sliding window moves to the rightmost side of the specific data, the continuous number is judged;

[0106] When the continuous number is equal to the first value, the specific data is marked as password data; when the continuous number is equal to the second value, the specific data is marked as number data; when the continuous number is not equal to either the first value or the second value, the specific data is marked as ordinary data;

[0107] Reset the consecutive number to 0;

[0108] End the window judgment loop;

[0109] Determine whether specific data exists. When the judgment result is yes, repeat the digital judgment process; when the judgment result is no, enter step S1021.

[0110] Step S1021, analyzing the text data using a deep learning model, and outputting name information, address information, or general information based on the analysis results;

[0111] Step S1022, mark the text data corresponding to the name information as name data; mark the specific data corresponding to the address information as address data; mark the specific data corresponding to the common information as common data, and output all the common data.

[0112] Step S2, based on the data type, a desensitization method is selected to desensitize the data set to be transmitted, and the desensitized data set is output; the desensitization method includes desensitization encryption processing, number replacement processing, anonymization processing and data generalization processing, and the desensitized data set includes a desensitized password, a number compression package, a desensitized name package and a generalized address. Step S2 also includes the following sub-steps:

[0113] Step S2011, desensitizing and encrypting the password data, the desensitizing and encrypting processing includes:

[0114] Step S2012, setting the number of digits to be the same as the password data, and the encryption value with the number on each digit being zero;

[0115] Step S2013, calculating the absolute value of the difference between the number on each digit of the password data and the fourth value in descending order of the digit weight of the password data, and marking it as a judgment value;

[0116] Step S2014, when the judgment value is not equal to the fourth value, the digits of the encrypted value are updated; when the judgment value is equal to the fourth value, no processing is performed;

[0117] Step S2015, convert the encrypted value into a base 2 and output a desensitized password.

[0118] Step S2021: performing number replacement processing on the number data, the number replacement processing includes:

[0119] Step S2022, deleting the leftmost digit of the number data, calculating the difference between the remaining number data and the fifth value, and marking it as a forged number;

[0120] Step S2023, replacing the third to sixth digits from left to right in the remaining number data with identifiers, and marking the replaced number data as a desensitized number;

[0121] Step S2024, compress the forged number and the desensitized number, and output the number compression package.

[0122] Step S2031, anonymizing the name data, the anonymization processing includes:

[0123] Step S2032, except for the first Chinese character of the name data, each remaining Chinese character is marked as a desensitized character;

[0124] Step S2033, obtaining the pinyin of the desensitized character, marking the pinyin as the first desensitizer; setting the second desensitizer with an initial value of 0, obtaining the tone corresponding to the pinyin of the desensitized character, and stipulating that: when the tone is yinping, the second desensitizer is assigned a value of 1; when the tone is yangping, the second desensitizer is assigned a value of 2; when the tone is shangsheng, the second desensitizer is assigned a value of 3; when the tone is qusheng, the second desensitizer is assigned a value of 4;

[0125] Step S2034, searching the Xinhua Dictionary based on the pinyin of the desensitized word, outputting the row and column information where the desensitized word is located, and marking it as the third desensitizing symbol;

[0126] Step S2035, arranging the desensitizing symbols in descending order of number to obtain a desensitizing sequence; the desensitizing symbols include a first desensitizing symbol, a second desensitizing symbol and a third desensitizing symbol;

[0127] Step S2036, replace each desensitized character in the name data with an identifier, compress the desensitized sequence and the replaced name data, and output the desensitized name package.

[0128] Step S2041, performing data generalization processing on the address data, the data generalization processing includes:

[0129] Step S2042, obtaining the city-level information corresponding to the address data, deleting the address data after the city-level information, marking the remaining address data as a generalized address, and outputting the generalized address.

[0130] Embodiment 3, in a third aspect, the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are executed. Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: analyzing the data set to be transmitted, outputting the data type, selecting a desensitization method based on the data type to desensitize the data set to be transmitted, and outputting the desensitized data set.

[0131] Embodiment 4, in a fourth aspect, the present application provides an electronic device, including a processor and a memory, the memory storing computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the above method are executed. Through the above technical solution, the processor and the memory are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanisms, the memory stores a computer program executable by the processor, and when the electronic device is running, the processor executes the computer program to execute the method in any optional implementation of the above embodiment to achieve the following functions: analyze the data set to be transmitted, output the data type, select a desensitization method based on the data type to desensitize the data set to be transmitted, and output the desensitized data set.

[0132] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0133] It should be understood by those skilled in the art that the 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 aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

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

Claims

1. A method for desensitizing information transmission, characterized in that: include: Analyze the data set to be transmitted and output the data type; The data set to be transmitted includes a plurality of specific data, and the data types include password data, number data, name data, address data and general data; Setting a sliding window, performing digital continuous judgment processing on the data set to be transmitted according to the sliding window, and obtaining password data, number data or ordinary data; After the sliding window is processed for digital continuous judgment, text recognition is performed to obtain name data, address data or general data; Select a desensitization method based on the data type to desensitize the data set to be transmitted, and output the desensitized data set; The desensitization method includes desensitization encryption processing, number replacement processing, anonymization processing and data generalization processing, and the desensitized data set includes desensitized passwords, number compression packages, desensitized name packages and generalized addresses; Desensitizing and encrypting the password data to obtain a desensitized password; Perform number replacement processing on the number data to obtain a number compression package; perform anonymization processing on the name data to obtain a desensitized name package; Perform data generalization processing on the address data to obtain a generalized address; Set a sliding window, and perform digital continuous judgment processing on the data set to be transmitted according to the sliding window to obtain password data, number data or ordinary data including: Set the sliding window with window size of 1 and the continuous number with initial value of 0; Performing digital judgment processing on the data set to be transmitted, the digital judgment processing includes: Set the sliding window at the beginning of each specific data to determine whether the sliding window contains a number; When the judgment result is no, the specific data is marked as text data, and the sliding window is set at the beginning of other specific data; When the judgment result is yes, a window judgment loop is executed, and the window judgment loop includes: Control the sliding window to move rightward by a window size, and add one to the continuous number at the same time; when the sliding window moves to the rightmost side of the specific data, the continuous number is judged; When the continuous number is equal to the first value, the specific data is marked as password data; when the continuous number is equal to the second value, the specific data is marked as number data; when the continuous number is not equal to either the first value or the second value, the specific data is marked as ordinary data; Reset the consecutive number to 0; End the window judgment loop; Determine whether specific data exists. If the determination result is yes, repeat the digital determination process; if the determination result is no, perform the text recognition process; The text recognition process includes: Use deep learning models to analyze text data and output name information, address information, or general information based on the analysis results; Mark the text data corresponding to the name information as name data; mark the specific data corresponding to the address information as address data; mark the specific data corresponding to the general information as general data, and output all the general data; The desensitizing and encryption processing includes: Set the encryption value to the same number of digits as the password data, with each digit being zero; Calculate the absolute value of the difference between the number on each digit of the password data and the fourth value in descending order of the digit weight of the password data, and mark it as the judgment value; When the judgment value is not equal to the fourth value, the digits of the encrypted value are updated; when the judgment value is equal to the fourth value, no processing is performed; Convert the encrypted value into binary format and output the desensitized password; The number replacement process includes: The leftmost digit of the number data is deleted, and the difference between the remaining number data and the fifth value is calculated, and marked as a forged number; Replace the third to sixth digits of the remaining number data from left to right with the identifier, and mark the replaced number data as a desensitized number; Compress forged numbers and desensitized numbers and output number compression packages; The anonymization process includes: Except for the first Chinese character in the name data, each remaining Chinese character is marked as a desensitized character; Get the pinyin of the desensitized character, and mark the pinyin as the first desensitizer; set the second desensitizer with an initial value of 0, and get the tone corresponding to the pinyin of the desensitized character, and stipulate that: when the tone is yinping, the second desensitizer is assigned a value of 1; when the tone is yangping, the second desensitizer is assigned a value of 2; when the tone is shangsheng, the second desensitizer is assigned a value of 3; when the tone is qusheng, the second desensitizer is assigned a value of 4; Search the Xinhua Dictionary based on the pinyin of the desensitized word, output the row and column information where the desensitized word is located, and mark it as the third desensitization symbol; Arranging the desensitizing symbols in descending order of numbers to obtain a desensitizing sequence; the desensitizing symbols include a first desensitizing symbol, a second desensitizing symbol and a third desensitizing symbol; Replace each desensitized character in the name data with an identifier, compress the desensitized sequence and the replaced name data, and output the desensitized name package.

2. The information transmission desensitization processing method according to claim 1, characterized in that: The data generalization process includes: Obtain the city-level information corresponding to the address data, delete the address data after the city-level information, mark the remaining address data as a generalized address, and output the generalized address.

3. An information transmission desensitization processing system, implemented based on an information transmission desensitization processing method according to claim 1 or 2, characterized in that: Including sensitive analysis module and data desensitization module; The sensitivity analysis module is used to analyze the data set to be transmitted and output the data type; The data set to be transmitted includes a plurality of specific data, and the data types include password data, number data, name data, address data and general data; A sliding window is set, and a digital continuous judgment process is performed on the data set to be transmitted according to the sliding window to obtain password data, number data or ordinary data; after the digital continuous judgment process is performed on the sliding window, a text recognition process is performed to obtain name data, address data or ordinary data; The sensitive analysis module is configured with a digital analysis strategy, which includes: setting a sliding window with a window size of 1 and setting a continuous number with an initial value of 0; Performing digital judgment processing on the data set to be transmitted, the digital judgment processing includes: Set the sliding window at the beginning of each specific data to determine whether the sliding window contains a number; When the judgment result is no, the specific data is marked as text data, and the sliding window is set at the beginning of other specific data; When the judgment result is yes, a window judgment loop is executed, and the window judgment loop includes: Control the sliding window to move rightward by a window size, and add one to the continuous number at the same time; when the sliding window moves to the rightmost side of the specific data, the continuous number is judged; When the continuous number is equal to the first value, the specific data is marked as password data; when the continuous number is equal to the second value, the specific data is marked as number data; when the continuous number is not equal to either the first value or the second value, the specific data is marked as ordinary data; Reset the consecutive number to 0; End the window judgment loop; Determine whether specific data exists. If the determination result is yes, repeat the digital determination process; if the determination result is no, perform the text recognition process; The sensitive analysis module is also configured with a text analysis strategy, which includes: using a deep learning model to analyze text data, and outputting name information, address information, or general information based on the analysis results; Mark the text data corresponding to the name information as name data; mark the specific data corresponding to the address information as address data; mark the specific data corresponding to the general information as general data, and output all the general data; The data desensitization module is used to select a desensitization method based on the data type to desensitize the data set to be transmitted, and output the desensitized data set; the desensitization method includes desensitization encryption processing, number replacement processing, anonymization processing and data generalization processing, and the desensitized data set includes a desensitized password, a number compression package, a desensitized name package and a generalized address; the password data is desensitized and encrypted to obtain a desensitized password; the number data is replaced to obtain a number compression package; the name data is anonymized to obtain a desensitized name package; the address data is generalized to obtain a generalized address; the data desensitization module is configured with a desensitization encryption strategy, and the desensitization encryption strategy includes: setting the number of digits to be the same as the password data, and the number on each digit is zero. Encryption value; Calculate the absolute value of the difference between the number on each digit of the password data and the fourth value in descending order of the digit weight of the password data, and mark it as the judgment value; When the judgment value is not equal to the fourth value, the digits of the encrypted value are updated; when the judgment value is equal to the fourth value, no processing is performed; Convert the encrypted value into binary format and output the desensitized password; The data desensitization module is also configured with a number replacement strategy, which includes: deleting the leftmost digit of the number data, calculating the difference between the remaining number data and the fifth value, and marking it as a fake number; Replace the third to sixth digits of the remaining number data from left to right with the identifier, and mark the replaced number data as a desensitized number; Compress forged numbers and desensitized numbers and output number compression packages; The data desensitization module is also configured with an anonymous processing strategy, which includes: except for the first Chinese character of the name data, each remaining Chinese character is marked as a desensitized character; Get the pinyin of the desensitized character, and mark the pinyin as the first desensitizer; set the second desensitizer with an initial value of 0, and get the tone corresponding to the pinyin of the desensitized character, and stipulate that: when the tone is yinping, the second desensitizer is assigned a value of 1; when the tone is yangping, the second desensitizer is assigned a value of 2; when the tone is shangsheng, the second desensitizer is assigned a value of 3; when the tone is qusheng, the second desensitizer is assigned a value of 4; Search the Xinhua Dictionary based on the pinyin of the desensitized word, output the row and column information where the desensitized word is located, and mark it as the third desensitization symbol; Arranging the desensitizing symbols in descending order of numbers to obtain a desensitizing sequence; the desensitizing symbols include a first desensitizing symbol, a second desensitizing symbol and a third desensitizing symbol; Replace each desensitized character in the name data with an identifier, compress the desensitized sequence and the replaced name data, and output the desensitized name package.

4. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to claim 1 or 2 are executed.

5. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to claim 1 or 2 are executed.