mask_email
Mask email addresses to protect privacy in logs, tables, or UI. Keeps the first two characters of the username and the domain visible, with options to adjust mask character and domain visibility.
Instructions
Masks an email address to protect user privacy. Use when the user wants to hide, anonymize, or partially obscure email addresses in a table, UI, or logs. By default shows the first 2 characters of the username and keeps the domain visible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The email address to mask. Example: 'john.doe@example.com'. | ||
| maskChar | No | Character used for masking. Default is '*'. | |
| maskDomain | No | If true, also masks the domain part after @. Default is false. | |
| visibleChars | No | Number of characters to keep visible at the beginning of the username. Default is 2. |