Mask text
Hide most of a text behind a character, keeping the first or last few, e.g. a card number as *********1111 or an e-mail as a@example.com.
Command in the String toolkit · id ooa.string/mask · 6 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Text to mask. | |
| Keep last | Number | No | 4 | Characters to keep visible at the end. |
| Keep first | Number | No | 0 | Characters to keep visible at the start. |
| Mask character | String | No | * | The character that hides the rest. |
| Keep separators | Boolean | No | true | Leave spaces, dashes and dots as they are (4111 1111 1111 1111 becomes **** **** **** 1111). |
| It is an e-mail address | Boolean | No | false | Mask only the part before the @, keeping its first character. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | The masked text. |