The repeatable replacement policy uses a repeatable method to mask a string with characters that match each type of character that is replaced. For example, numbers are replaced with numbers, and lowercase letters are replaced with lowercase letters. The characters used for masking are obtained from a specified character set. The policy masks characters that are part of the character set only.
This policy is available with the function ScrambleMask.repeatableReplacement().
ScrambleMask.repeatableReplacement(record.getItem('<arg:inputAttribute>'), '<arg:language>', '<arg:scrambleType>')
For example, to mask a string with characters from an English character set using the CRC method, enter the following syntax:
ScrambleMask.repeatableReplacement(record.getItem('/DEMO/ORDERS/ORDER_ID'), 'English' , 'CRC')
Argument | Description |
---|---|
inputAttribute | The attribute containing the string to mask. |
language | The language for the character set that provides the characters used for masking. If a character set is not specified, or if the character set is not supported, the English character set is used. For a list of supported character sets, see Language character sets supported for scramble mask policies. |
scrambleType | The mask method: CRC , HASH, or MAP. |