Mask Chinese SSN number - 7.3

Data privacy

Version
7.3
Language
English
Product
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
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
Last publication date
2024-04-03

This function generates a unique random Chinese social security number related to the input.

This function only applies on Strings.

If there are duplicates in the input data, you will get the same duplicates in the masked values. In the same way, if there are no duplicates in the input data, there will be no duplicates in the masked values.

This function checks that the check bit is valid for the corresponding country.

If the input value is not valid, the function returns null.

Option Description
Method The default Basic method uses a proprietary algorithm.
Note: As the masking methods are stronger, it is recommended to use the FF1 algorithms rather than the Basic method.

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 no extra parameter.

In the following example, the input value is a valid SSN number. The masked value is also a valid SSN number.

Input value Method Examples of masked value
130503196704010012 FF1 with AES 510304190708135114