DataMasking routine - Cloud - 7.3

Talend Studio User Guide

Version
Cloud
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-13
Available in...

Big Data Platform

Cloud API Services Platform

Cloud Big Data Platform

Cloud Data Fabric

Cloud Data Management Platform

Data Fabric

Data Management Platform

Data Services Platform

MDM Platform

Real-Time Big Data Platform

DataMasking routine is composed of portions of code that perform masking on your data. You can use them in the settings of several components in a Talend Job.

You can access the functions by double-clicking the DataMasking node in the system routines folder in the Repository tree view.

Function Description Syntax
createMD2
Warning: This is not considered a secure method.
Calculates MD2 hash value from String. DataMasking.createMD2 (masks a string with MD2)
createMD5
Warning: This is not considered a secure method.
Calculates MD5 hash value from String. DataMasking.createMD5 (masks a string with MD5)
maskCreditCardNumber Masks a 16-digit credit card number with a defined character from the 5th to the 12th place. DataMasking.maskCreditCardNumber (masks a credit card number)
createRandomString(int valueLength) Creates a random String of defined length. DataMasking.createRandomString (for example: DataMasking.createRandomString(5) gives 1auA5, 11uyd or A1c8j)
encryptAES
Warning: This is not considered a secure method.
Encrypts a string using AES 128. DataMasking.encryptAES (mask a string using AES 128)
decryptAES
Warning: This is not considered a secure method.
Decrypts a string using AES 128. DataMasking.decryptAES (unmasks a string using AES 128)
encryptDES
Warning: This is not considered a secure method.
Encrypts a string using DES. DataMasking.encryptDES (masks a string using DES)
decryptDES
Warning: This is not considered a secure method.
Decrypts a string using DES. DataMasking.decryptDES (unmasks a string using DES)
encryptAESGCM Encrypts a string using AES GCM 128. DataMasking.encryptAESGCM
decryptAESGCM Decrypts a string using AES GCM 128. DataMasking.decryptAESGCM
blurNumber Adds a random value from a certain range to a numeric value. DataMasking.blurNumber (masks numeric values)
setDefaultValue Returns a default value as String. DataMasking. setDefaultValue (replaces the string to be masked by a given default value)
createIPAdress Creates a random IP address. DataMasking.createIPAdress (masks IP address)
createIPAdressKeepDomain

Creates a random IP address and keeps the domain part of the address.

DataMasking.createIPAdressKeepDomain (masks IP address except for the domain name)
createRandomDate (fromYear,toYear) Returns a random date as String in the specified time range. For example, createRandomDate(1900,2016) should return random dates between the years from 1900 to 2016. DataMasking. createRandomDate (masks a date)