This type masking generates fictitious credit card numbers that are realistic but not necessarily valid. It can be applied on both string and numeric datatype columns.
*Note: The Digits Only format works, only when the column’s datatype is numeric.
To apply Credit Card Numbers masking, choose following information:
The Select Providers Manually option let you choose the providers from the given option. Selecting this option, randomly generates a credit card number that looks realistic but is not valid. To choose a provider, check the checkbox next to the provider’s name.
There are five ways in which a data can be generated:
User Defined - The User Defined option gives you flexibility to describe the custom format of the sensitive type by specifying the regex. This option is useful, when the column length is not as per the length of the credit card numbers i.e., 16. To enable the Sensitive Types field, check the User Defined checkbox. Following are the steps need to be performed when specifying User Defined credit card numbers:
Select the numbers from the drop-down. Using these numbers, you can define the CCNO numbers which will be used for masking the actual data.
To add the selected numbers in the Sensitive Types field, click Add button.
Click Reset button if you want to remove the pattern entered in Sensitive Types field.
The Sensitive Types textbox displays the set of numbers selected by the user.
The Retain Card Type generates false credit card numbers that matches the format of the values being masked. This option keeps the leftmost four digits unchanged. So that it can be preserver the initial numbers for identifying the provider’s name. This option can be used in conjunction to the format specifier options i.e.
The Random Number option generates a fictitious credit card number that looks real to the user. In other words, they do not contain functioning check digit. Use this option if your application does not validate credit card numbers.
*Note: You can choose only one option among Select Providers Manually, Retain Card Type, and Random Numbers.
This option can be used in conjunction to the format specifier options i.e.
There are three formats based on which a 16 - digit credit card number can be generated. By default, the Digits Only option is selected.
*Note: The Space and Dash Separation format specifier works only when the column’s datatype is string.
Digits Only – If you select this option, a random 16 - digit number is generated which is not separated by any special character such as dash, space, etc.
E.g., in the below image, the deutsche_ccnocolumn contains a random credit card number when user opted for Digits Only option in the format specifier.
Dash Separation – if you select this option, a random 16 – digit number is generated which separated by ‘-‘(dash).
E.g., in the below image, the hdfc_ccno column holds a random credit card number which is separated by dash.
Space Separation – if you select this option, the credit card numbers are separated by space.
E.g., in the below image, the credit card number in citi_ccno column is separated by the space.