MaskingStrategies

Registry of default masking strategies.

Properties

Link copied to clipboard

Credit card masking: shows first 4 and last 4 digits. Example: 4532123456789012 -> 4532****9012

Link copied to clipboard

Email masking: shows first character and domain. Example: user@example.com -> u***@example.com

Link copied to clipboard

Password masking: completely hidden. Example: mySecret123 -> ***********

Link copied to clipboard

Phone number masking: shows first 3 and last 2 digits. Example: 13800138000 -> 138****8000

Link copied to clipboard

SSN/ID masking: shows last 4 digits. Example: 123-45-6789 -> *--6789

Functions

Link copied to clipboard

Get default composite strategy with all built-in strategies.

Link copied to clipboard

Get strategy with only safe defaults (no password/token masking to avoid over-masking).