Oracle Cloud Infrastructure Documentation

User-Defined Masking Formats

The basic masking formats enable you to customize the masking logic to meet your specific requirements. However, in the Data Masking wizard, you need to provide input for these masking formats every time you are creating a masking policy. To avoid this repetitive work, Oracle Data Safe provides you the capability to store your customizations in the Oracle Data Safe Library as user-defined masking formats. You can use these masking formats in the future without needing to provide the input values.

For example, assume that you want to mask a national identifier that has ten digits. In the Oracle Data Safe Library, you can create a new masking format, say My National Identifier, using the Random Number masking format. Random Number takes two inputs: Start Number and End Number. You can provide 1000000000 as the Start Number and 9999999999 as the End Number, and then save your masking format in the Oracle Data Safe Library. In the future, to mask a column containing that national identifier, you can simply choose the My National Identifier masking format. Input is not required. If you have a sensitive type to discover your national identifier, you can also set My National Identifier as the default masking format for that sensitive type. This way, whenever you discover columns using this sensitive type, Data Masking selects the mapped masking format by default.