[][src]Crate luhn

Validates strings and computes check digits using the Luhn algorithm.

It's not a great checksum, but it's used in a bunch of places (credit card numbers, ISIN codes, etc.). More information is available on wikipedia.

Functions

checksum

Computes the Luhn check digit for the given string.

valid

Validates the given string using the Luhn algorithm.