Luhnregel
Luhnregel, also known as the Luhn algorithm, is a simple checksum method used to validate identification numbers that include a check digit. It was devised by Hans Peter Luhn of IBM in 1954. The goal is to detect common input errors, such as a single incorrect digit or adjacent-digit transposition, in long numeric identifiers used in finance and telecommunications.
The algorithm works by processing the digits from right to left. Starting with the second digit from
As an illustration, the number 79927398713 is valid under the Luhn check; applying the steps described above
The Luhnregel is widely used as a check digit in credit and debit card numbers, as well
Limitations include that the method is not cryptographically secure and does not protect against deliberate forgery.