Enter your card generation fields below if you want to generate specific card data. Ifyou just want to see it run, press the "Generate Cards" button directly, and some values will be be used by default
Enter the card number to begin with:
Sequence Number:
Card Holder Name:
Expiry date (format MMYY):
Institution/Bank Name:
Service Code:
Address line 1 (mandatory):
Address line 2 (optional):
PIN number(0000 for random):
Enter the PIN Key (32 hex bytes/characters):
Enter the CVV Key (32 hex bytes/characters):
Generate number of card records:
{Just press this button to get some random values}
First Step is to calculate the card number based on an in initial value or a prefix or BIN. If you just press the "Generate Cards" button, an initial card number is set by default. This is "4000340000000500", which is an invalid Card Number.
To make calculate a correct card number, we call a function that takes the first 15 characters of this card number, so without the last digit. This last digit is being calculated with Luhn algorithm. That is why it is called the Luhn Digit. The algorithm makes the Luhn check of the first 15 digits and appends the calculated digit, so the correct card number is 4000340000000504
For printing on the plastic card, this card number is split in 4 digits groups, with a blank space as a separator. The Expiration Date is a 4 digit number in the format of MMYY which means month as 2 digits, and year, also 2 digits. Next is the name that is printed on the card. The Institution ID is the ID of the Bank or institution that issued the card. Nowdays there are cards issued by non-banks, like bank-in-an-app services.
Next, we need to calculate the CVV, the 3-digit number that gets printed on the back of the card. The CVV is calculated from the card number, the expiration date, and the service code. The CVV encryption key is used to apply encryption to the data.
The following 2 records are Track1 and Track2 data. Track1 is not really used anymore, but Track2 is always used and it is printed on the magnetic stripe of the back of the card, just like recording with a casette player recorder. The Track1 and Track2 records have a specific format which you can see from the generation console. Next, we append the Address information, whick can consist of 2-7 records, depending on company. This is plain text address information.
A random number is being generated to uniquely identify this record , which may or may not be used. Based on this information, 3 sets of records are generated.