Unmasking Australian phone numbers
The Job in this scenario uses the tPatternUnmasking component to retrieve the original Australian phone numbers masked with the tPatternMasking component.
The original Australian phone numbers are 02 5550 8328, 08 5550 3018 and 07 5550 5556.
- The tFileInputDelimited component to read a CSV file that contains Australian phone numbers masked with the tPatternMasking component.
- The tPatternUnmasking component to unmask the input Australian phone numbers.
- The tPatternUnmasking component to unmask the input Australian phone numbers.
- The tFileOutputDelimited component to output masked and original phone numbers values.
To replicate this scenario, download and extract the masked_phonenumbers.zip file.
This file contains Australian phone numbers masked with the tPatternMasking component, using the FF1 with AES method combined with a user-defined password.
Setting up the Job
Procedure
- Drop the following components from the Palette onto the design workspace: tFixedFlowInput, tPatternUnmasking and tFileOutputDelimited.
- Connect the three components together using links.
Configuring the input component
Procedure
Configuring the unmasking operations
Configure one unmasking operation for each part of the input phone numbers. Separators will be left unchanged in the unmasked values.
In the Modifications table, the settings must be the same as the ones used for the masking operations performed by the tPatternMasking component.
About this task
- A two-digit area code
- A space used as a separator
- A first four-digit line number
- A space used as a separator
- A second four-digit line number
Procedure
Configuring the output component and executing the Job
Procedure
- Double-click the tFileOutputDelimited component to display the Basic settings view and define the component properties.
- In the File Name field, set the path to the file that will contain the unmasked values.
- Press F6 to save and execute the Job.
Results
PhoneNumber;ORIGINAL_MARK 02 5550 8328;false 08 5550 3018;false 07 5550 5556;false
Given that a format-encryption method and a password were used to bijectively mask phone numbers, the component retrieved back the original phone numbers.