What algorithm to use to calculate a check digit?

Piotr Dobrogost picture Piotr Dobrogost · Jul 8, 2009 · Viewed 11.7k times · Source

What algorithm to use to calculate a check digit for a list of digits?
The length of the list is between 8 and 12 digits.

see also:
How to generate a verification code/number?

Answer

RichieHindle picture RichieHindle · Jul 8, 2009

The Luhn algorithm is good enough for the credit card industry...