Hongmu Notes

Text desensitization tool

Text desensitization targets the entire content: processing sensitive information in a description, a document or a chat record at once.
100% Browser local processing 0 Data upload

🛡️ Desensitization settings

💡 Instructions for use

  • The mobile phone number is identified by eleven digits, with separators before and after; the first three and last four digits of the code are retained, and the middle is replaced by a covering symbol.
  • By default, only the username part of the email is coded, and the domain name remains intact, making it easy to confirm which email service it is; you can also choose to cover the entire section.
  • By default, the first six digits and the last four digits of ID cards and bank cards are retained, so that the place of origin or card issuing bank can be seen without exposing the complete number.
  • Name recognition can easily damage common words by mistake and is turned off by default; if necessary, you can only retain the last name or only the last word.
  • Custom rules are one per line. The format is matching content plus replacement content, separated by spaces. Regular expressions are supported.
  • The processing is completed in the browser, and the original text is not uploaded or saved; if you need to keep the results, please copy or download the results.

Text desensitization targets the entire content: processing sensitive information in a description, a document or a chat record at once.

Three key points in processing the entire paragraph

  • First look at the hit statistics: whether the number of various types of information is consistent with intuition. A large gap indicates that there are missed judgments or accidental injuries.
  • Then check the results: confirm that the covering position is correct and the format is not damaged.
  • Save another copy at the end: Do not overwrite the original content to facilitate subsequent verification.

Two types of content that are prone to problems

The first is long paragraphs that are mixed in Chinese and English. The number or email address may be close to the punctuation mark, and the identification boundary needs to be confirmed; the second is the content in the form of tables and lists, and the separator may affect the matching. When encountering incomplete recognition, it is most straightforward to supplement it with custom rules.

Whole text desensitization is suitable for processing contracts, work orders and email bodies: first replace the sensitive fragments according to the rules, and then read through to confirm that the sentence is still smooth. If there are consecutive asterisks that affect reading after replacement, only the necessary positions can be retained.

Pay special attention to the same information that appears repeatedly in the text. The rule should hit all of them instead of just replacing the first one. After the processing is completed, it is recommended to search again using keywords to confirm that there is no missing original information.

After the replacement is completed, it is recommended to use keywords to search for sensitive fragments in the original text to confirm that there are no omissions; if the same piece of information appears multiple times in the text, check them one by one.

Before processing long text, check the hit statistics. Abnormal numbers indicate that the rules need to be adjusted.

📖 Glossary

Desensitization
On the premise of retaining the usability of the data, cover or replace sensitive parts so that others cannot directly identify specific individuals.
coding
The practice of covering some characters with fixed symbols, such as retaining the first three and last four characters, and replacing them with asterisks in between.
Irreversible
The obscured characters are no longer retained, and no one can restore the original content from the result, which is essentially different from encryption.
pseudo-anonymization
Replace the real identifier with a number or placeholder, and maintain a corresponding relationship table, which can be related back to the original record when necessary.
personal information
Information that can identify a specific individual individually or in combination, such as name, phone number, ID number, address and account number.
minimum necessary
Only deal with the part of the information that is really needed for the business, keep as little as possible, and cover up as much as possible.
Accidental injury
Ordinary content is misjudged as sensitive information and obscured, for example, ordinary words are recognized as names, requiring manual review.
missed judgment
Really sensitive information is not recognized, usually because the format is non-standard or mixed with other characters.
Log desensitization
Mask sensitive fields before logging to avoid writing personal information into the log file when troubleshooting.
Data export
Sending data to offshore servers involves compliance requirements, so local processing tools are more suitable for sensitive data.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

Can it process the entire document??
Just paste the text in; when the page is very large, it is recommended to process it in sections to avoid the page input area being too long and difficult to check.
Will the format be corrupted??
Masking only replaces the hit characters. Paragraphs, line breaks and punctuation remain unchanged, and the plain text format is not affected.