Keep n first digits and replace following ones - 7.3

Data privacy

English (United States)
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Talend Studio
Data Governance > Third-party systems > Data Quality components > Data privacy components
Data Quality and Preparation > Third-party systems > Data Quality components > Data privacy components
Design and Development > Third-party systems > Data Quality components > Data privacy components
This function keeps the first n digits as is and replaces subsequent ones with digits. Non-digits characters remain as is.
Option Description
Method The Randomly method randomly selects a character. As a result, two identical input values can be masked with the different output values.

When the same value appears twice in the input data, the Consistently method ensures that the function outputs the same masked value in the same Job execution.

This function can encrypt the output masked values in the same format as the input values, using Format-Preserving Encryption (FPE) methods:

  • FF1 with AES relies on the Advanced Encryption Standard in CBC mode.
  • FF1 with SHA-2 relies on the secure hash function HMAC-256.

The FPE methods are bijective methods, except when using tweaks.

The FF1 with AES and FF1 with SHA-2 methods require a password to generate encrypted and repeatable masked values. Those FPE methods do not use a seed.

You can specify this password in the password for FF1 method field, from the Advanced Settings of the component.

Extra parameter This function requires an extra parameter.

The extra parameter is the number of digits to be masked.

In the first example, the input value does not contain any digits, the input value is copied as is to the output.

In the first example, the first two digits are are copied to the output as is. The following ones are masked with random digits.

Input value Extra parameter Example of a masked value
Jack "2" Jack
S1000D "2" S1023D