Luhnalgoritmussal
Luhnalgoritmussal, often referred to as the Luhn algorithm or the "modulus 10" algorithm, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers and IMEI numbers. Developed by Hans Peter Luhn at IBM, it was patented in 1960. The primary purpose of the Luhn algorithm is to detect most single-digit errors and some transpositions of adjacent digits.
The algorithm works by performing a series of arithmetic operations on the digits of the number. Starting
The Luhn algorithm is not a cryptographic hash function and provides no security against intentional fraud.
---