Skip to content

Masking Policies

ALTR supports several out-of-the-box masking types for column and tag policies as well as the ability to customize masking behavior. Learn more.

Refer to the following table for the supported masking types and details, including the associated ID included in the API.

Masking TypeStrategy ID (Management API)DescriptionSupported Data TypesSupported Policy TypesExample
No Mask10000Users see the original dataallgoverned (default masking) tokenization format-preserving encryption native maskingBefore: Georgia After: Georgia
E-Mail Hash10007Users only see data to the right of the @ symbol, protected data is hashedstringnative maskingBefore: <jane@example.com> After: <...7eb13e24546a2@example.com>
E-Mail10002Users only see data to the right of the @ symbol. Protected data is replaced with *stringgoverned (default masking) tokenization format-preserving encryption native maskingBefore: <jane@example.com> After: ****@example.com
Show Last Four Hash10008Users only see the last 4 characters of the data, protected data is hashed. A hyphen is added to separate the last 4 from hash.stringnative maskingBefore: 1111-11-1234 After: …f1b8852c6c-1234
Show Last Four10003Users only see the last 4 characters of the data. Protected data is replaced with *stringgoverned (native masking) tokenization format-preserving encryption native maskingBefore: 1111-11-1234 After: ****-**-1234
Full Mask Hash10006Users only see a hash of the data, protected data is hashed in totalitystring numbernative maskingBefore: Georgia After: …660d1a7b8156ae
Full Mask10001Users only see the length of the data. Protected data is replaced with *stringgoverned (native masking) tokenization format-preserving encryption native maskingBefore: Georgia After: *******
Constant Date10009Data is replaced with 12/31/9999 regardless of the data typestring number datetimenative maskingBefore: 11252019 After: 12319999
Constant Mask10004Data is replaced with a single value based on the column’s data type: Numbers mask to 1 Strings mask to * Datetime mask to 1/1/2000 00:00:00 UTC (You may see different values depending on the specific data type and time zone conversion.)string number datetimegoverned (native masking) tokenization format-preserving encryption native maskingBefore: Georgia After: *
Null10005If there is no matching rule for the access being validated, data is replaced with “Null”allnative maskingBefore: Georgia After: Null

ALTR supports several out-of-the-box masking types for tag policies. Refer to the following table for the supported masking types and details, including the associated ID included in the API.

Masking TypeStrategy ID (Management API)DescriptionSupported Data TypesExample
No Mask10000Users see the original dataAllBefore: Georgia After: Georgia
E-Mail10002Users only see data to the right of the @ symbol. Protected data is replaced with *StringBefore: <jane@example.com> After: ****@example.com
Show Last Four10003Users only see the last 4 characters of the data. Protected data is replaced with *StringBefore: 1111-11-1234 After: ****-**-1234
Full Mask10001Users only see the length of the data. Protected data is replaced with *StringBefore: Georgia After: *******
Constant Mask10004Data is replaced with a single value based on the column’s data type: Numbers mask to 1 Strings mask to * Datetime mask to 1/1/2000 00:00:00 UTC (You may see different values depending on the specific data type and time zone conversion.)String Number DatetimeBefore: Georgia After: *