Data masking is a security technique that replaces real data with fictitious yet structurally similar data to prevent unauthorized access while maintaining usability. It is widely used in testing, analytics, and compliance processes to protect sensitive data such as personally identifiable information (PII) and financial records.
Related approaches include data tokenization, which keeps a mapping from tokens to the original values, and pseudonymization, which replaces identifiers with consistent pseudonyms.