Hongmu Notes

🛡️ Data desensitization tool

Paste text containing sensitive information to automatically code your mobile phone number, email address, ID card, bank card and name; you can set the number of reserved digits and mask symbols, and count the number of entries processed.
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.

🛡️ Coding rules for each of the five types of information

The first three and last four digits of the mobile phone number are retained, and the middle four digits are covered, so that the number segment can be seen without revealing the complete number; the mailbox only covers the user name part by default and reserves the domain name, making it easier to confirm which email service it is; the first six digits and the last four digits of the ID card and bank card are kept, the former can show the place of belonging, and the latter can show the issuing bank; name recognition is easy to accidentally damage common words, so it is turned off by default, and only the last name or the last word is retained when needed.

Confirm the recognition results before processing, and especially check whether any ordinary content has been misjudged.

🔍 Why are there missed judgments and accidental injuries?

Missing identifications often occur in scenarios with non-standard formats, such as numbers with separators or full-width characters in the middle, which cannot be matched by the rules; accidental errors are common in name recognition, because the combination of two or three characters in Chinese highly overlaps with ordinary words. There are two ways to deal with it: one is to test run with a smaller range first, and then expand it after confirming that it is correct; the other is to use custom rules to make up for missed judgments, and turn off the corresponding type for accidental injuries.

Custom rules can be written directly as regular rules to supplement sensitive information in special formats.

📌 The difference between desensitization and encryption

Desensitization is irreversible: the obscured characters are not retained and cannot be restored by anyone, so it is suitable for sharing, presentations and logs. Encryption is reversible: it can be restored as long as you hold the key, which is suitable for scenarios that require subsequent use. The two have different goals and cannot be substituted for each other. If the business needs to both de-identify and link back to the original record, number replacement should be used, which is pseudo-anonymization.

Use desensitization for external sharing and logging, and use encryption or numbering when restoration is needed.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

Can it be restored after desensitization??
No. Coding will permanently discard the covered characters, and this tool does not save the original content, which is an irreversible process.
Will the data be uploaded??
No. Recognition and replacement are done within the browser, and the original text is not sent to any server.
Can multiple items be processed in batches??
Yes. Paste multiple pieces of content together and the tool will match them one by one and uniformly count the number of hits.
Why is the name not processed by default??
Chinese names are highly overlapped with ordinary words, and direct matching is easy to cause accidental damage, so it is turned off by default; it can be identified after the label if needed.
How to write custom rules?
One line per line, first use a space to separate the matching content and the replacement content; if the matching content is written in the form of a slash wrapper, it will be processed according to regular rules.