mask_card
Mask credit or debit card numbers to protect sensitive payment data. Shows only the last four digits, supporting all major card types for PCI DSS compliance.
Instructions
Masks a credit or debit card number to protect sensitive payment information. Use when the user wants to hide, protect, or anonymize card numbers in a table, display, or logs. Supports Visa, Mastercard, Amex, Discover, JCB, and all major card types. Follows PCI DSS compliance by default (shows last 4 digits only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The card number to mask. Accepts formatted input like '4532-1234-5678-9012' or plain digits. | |
| maskChar | No | Character used for masking. Default is '*'. | |
| unmaskedEnd | No | Number of digits to keep visible at the end. Default is 4. | |
| unmaskedStart | No | Number of digits to keep visible at the beginning. Default is 0. |