Skip to main content
Delphix

Algorithm: Credit Card (KBA4068)

 

KBA

KBA# 4068

This is an Out-of-the-Box algorithm. The algorithm is used for Credit Cards and retains the 4 leading digits and generates a random valid Credit Card number with the same number of digits.

At a Glance 

Versions: Applicable Delphix Masking versions: 4.x, 5.0.x, 5.1.x, 5.2.x, 5.3.x
Characteristics:

Type
Unique
Lookup1
Referential
Integrity2

1:1 Mapping3
Code based n/a No  No

Unique Lookup - Not applicable. 
Referential Integrity - The masked value will be the same between tables, databases, and jobs.
1:1 Mapping - The masked value will be mapped uniquely to the input value.

Encoding: ASCII
Strength: Very fast, retains the first 4 digits of the IIN (Issuer Identification Number), and generates a fake valid Credit Card number. 
Limitations: Random number generation. Can generate duplicates. 
Customization: None

Creating and Modifying Algorithms using the User Interface

This algorithm can't be created or modified. 

Example

Here are some examples from different vendors with different lengths. Note, repeated credit card numbers will not return the same masked result and if the value is invalid the last 5+ digits will be set to 1.

+----+---------------------+------------------+
| ID | Orig                | Mask             |
+----+---------------------+------------------+
| 1  | 5500000000000004    | 5500000132273057 | < Different vendors and lenghts.
| 2  | 6011000000000004    | 6011000089940682 |
| 3  | 3088000000000009    | 3088000886065290 |
| 4  | 340000000000009     | 340000151134979  |
| 5  | 30000000000004      | 30000723589523   |
+----+---------------------+------------------+
| 6  | 4111111111111111    | 4111000962840052 | < The masked result is random. 
| 7  | 4111111111111111    | 4111000124401132 |
+----+---------------------+------------------+
| 8  | 201400000000009     | 2014111111111111 | < Invalid numbers - set to 1.
| 9  | 3088 0000 0000 0009 | 3088111111111111 |
| 10 | 3088-0000-0000-0009 | 3088111111111111 |
+----+---------------------+------------------+

 

 

 


Related Articles

The following articles may provide more information or related information to this article: