
The barcode number is an indispensable value for the Courier system, because cards are distributed using the barcode number.
So does the barcode number have a generation algorithm, or is it simply a randomly generated value?
The barcode number does have a generation algorithm. It is generally produced according to the EAN-13 standard. As the name suggests, it is a number made up of a total of 13 digits. The 13th digit is the check digit.
Let's look at how a barcode is generated under the EAN-13 standard, using an example:
In the EAN-13 type barcode number 8697543170035, the digit 5 is the check digit.
Step 1: The even-position digits of the barcode number are added together. 6+7+4+1+0+3=21
Step 2: The number obtained in step 1 is multiplied by 3. 21*3=63
Step 3: The odd-position digits of the barcode number are added together. 8+9+5+3+7+0=32
Step 4: The number obtained in step 2 is added to the number obtained in step 3. 63+32=95
Step 5: The number obtained in step 4 (95, above) is subtracted from the next multiple of 10 greater than itself, which is 100. 100-95=5. Result: the number obtained in this step (5, above) is the check digit value.



