Data masking displays a sensitive value in partly hidden form, for example showing only the last four digits of a bank account, unless the user has permission to see the full value. It reduces casual exposure on shared screens, in screenshots and exports. Masking is a display control, so it works best together with permissions and logging.
In plain words
Showing only part of a sensitive value until someone with permission asks for the rest.
Example
A support agent helping an employee with a payslip query sees the PAN as XXXXX1234F. That is enough to confirm the right record. If the agent needs the full number for a correction, they must request the reveal, which requires permission and leaves a log entry, and the screen hides it again afterwards.
Illustrative figures, not a statutory calculation.