Masking
In payment security, masking is a way of hiding most of a card number when it is displayed, for example showing only the first six and last four digits and replacing the rest with symbols. This lets staff or customers recognize a card without exposing the full account number on screens or receipts. The evidence provided does not contain payment-security source material defining masking, so this description reflects the concept qualitatively rather than any cited definition.
Masking is the practice of concealing segments of cardholder data, most commonly the primary account number (PAN), when it is displayed, so that a viewer sees only a permitted portion rather than the full value. Under PCI DSS, PAN must be masked when displayed unless a specific business need justifies showing more, and the maximum digits that may be shown is defined by the standard; confirm the exact display and truncation rules against the current published version of PCI DSS, as requirement numbering and wording differ between versions. Masking should be distinguished from truncation (which permanently removes digits from stored data), from tokenization (which substitutes the PAN with a surrogate value), from hashing (which produces a one-way representation), and from encryption (which reversibly protects data using cryptographic keys). Masking affects presentation of data and does not by itself remove stored PAN from scope; its effect on PCI DSS scope depends on implementation and validation, not on the label alone. NOTE: The supplied evidence packet contains no payment-security, PCI, or data-protection sources for 'masking'; all sources describe an unrelated psychological concept and therefore cannot be cited for this definition.
Why it matters
Masking matters because payment environments constantly display card numbers to people who need to recognize a card without needing to see it in full. Call center agents, retail staff, and customers reviewing their own accounts can identify a card from a masked value such as the first six and last four digits, while the intervening digits remain hidden from casual view, shoulder-surfing, or screenshots. Reducing full-PAN exposure on screens, printed receipts, and reports lowers the chance that account numbers are captured or leaked through routine business operations.
Under PCI DSS, PAN must be masked when displayed unless there is a specific, documented business need to show more, and the standard defines the maximum number of digits that may be shown. This makes masking a compliance-relevant control, not merely a cosmetic one. Because requirement numbering and wording differ between versions of PCI DSS, organizations should confirm the exact display rules against the current published version rather than assuming a fixed requirement number.
A critical caution is that masking changes only how data is presented, not how it is stored. Masking does not by itself remove stored PAN from PCI DSS scope, and its effect on scope depends on implementation and validation rather than on the label alone. Treating masking as equivalent to truncation, tokenization, hashing, or encryption can lead teams to believe underlying data is protected when the full PAN may still exist in storage or be recoverable elsewhere in the environment.
Who it's relevant to
Inside Masking
Common questions
Answers to the questions practitioners most commonly ask about Masking.