CHECKING THE LUHN CODE

Algorithm for calculating the check digit of the plastic card number in accordance with the ISO/IEC 7812 standard.

Algorithm for calculating the check digit of the plastic card number in accordance with the ISO/IEC 7812 standard. It is not a cryptographic tool, the purpose of the algorithm is primarily to detect errors caused by unintentional data distortion (for example, when manually entering a card number, when receiving data about a social security number by phone). It only allows you to judge with a certain degree of confidence that there are no errors in the block of numbers, but it does not allow you to localize and correct the detected inaccuracy.