luhn


luhn, an Octave code which demonstrates the calculation and use of the Luhn check digit for error detection.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

luhn is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

luhn_test

bank, an Octave code which computes the check digit associated with a US Bank Routing Number check digit, or reports whether a 9-digit code is actually valid.

isbn, an Octave code which determines the check digit for an International Standard Book Number or reports whether a given ISBN is valid.

upc, an Octave code which determines the check digit for a Uniform Product Code (UPC) or reports whether a given UPC is valid.

vin, an Octave code which computes the check digit for a Vehicle Identification Number (VIN), or verifies that a given VIN is legitimate.

Source Code:


Last revised on 10 September 2022.