Tokenization for Delimited Type Input File Using Masking.properties File
In this sample, using CT-V Bulk Utility, a delimited type data file will be masked using masking.properties file for File-to-File tokenization.
Creating the Input Data File
Below is the data that will be used to populate the customerTable.csv file:

Setting Parameters for Masking.properties File
Below is the parameters set for delimited format input data file:
#####################
# Input Configuration
# Input.FilePath
# Input.Type
#####################
#
Input.FilePath = C:\\Desktop\\masking\\customerTable.csv
#
#
Input.Type = Delimited
###############################
# Delimited Input Configuration
# Input.EscapeCharacter
# Input.QuoteCharacter
# Input.ColumnDelimiter
###############################
#
Input.EscapeCharacter = \\
#
Input.QuoteCharacter = "
#
Input.ColumnDelimiter = ,
###########################################
# Tokenization Configuration
# Mask.Column0.TokenFormat
# Mask.Column0.StartToken
# Mask.Column0.LuhnCheck
# Mask.Column0.InputDataLength
# ...
# Mask.ColumnN.TokenFormat
# Mask.ColumnN.StartToken
# Mask.ColumnN.LuhnCheck
# Mask.ColumnN.InputDataLength
############################################
#
Mask.Column5.TokenFormat = LAST_FOUR_TOKEN
Mask.Column6.TokenFormat = EMAIL_ADDRESS_TOKEN
Mask.Column5.StartToken =
Mask.Column6.StartToken =
#
Mask.Column5.LuhnCheck = true
Mask.Column6.LuhnCheck = false
#
Mask.Column5.InputDataLength =
Mask.Column6.InputDataLength =
# ######################
# Output Configuration
# Output.FilePath
# Output.Sequence
######################
#
Output.FilePath = C:\\Desktop\\masking\\tokenized.csv
#
# Set positive value for columns to be tokenized. For example column 5 and 6 have
# been set positive below, so now only these two columns will be tokenized.
Output.Sequence = 0,-1,-2,-3,-4,5,6
# TokenSeparator
#
# Specifies if the tokens are space separated or not.
# Note: This parameter is ignored if Input.Type is set to Delimited.
#
# Valid values
# true
# false
#
# Note: The default value is set to true.
#
TokenSeparator = true
#
# StreamInputData
#
# Specifies whether the input data is streamed or not.
#
# Valid values
# true
# false
# Note: Default value is set to false.
#
Running CT-V Bulk Utility
Enter the following command to tokenize with CT-V Bulk Utility in a Windows environment:
java -cp SafeNetTokenService-8.12.3.000.jar com.safenet.token.migration.main config-file-path -ftf DSU=NAE_User1 DSP=qwerty12345
Reviewing the Output File
The output data file is saved at the same path specified in the masking.properties file with the same name tokenized.csv.
Here is the data from the output file:

Only column 5 and 6 have been tokenized as per the Output.Sequence mentioned in the masking.properties file above. If the user wants to get output in a different sequence than input file, it is required to change the Output.Sequence parameter in masking.properties file.
For example, if you change the output sequence in the masking.properties file as Output.Sequence = 0,-2,-1,-3,-4,5,6, the output file will be as shown below:
