Validate or generate a Luhn (mod 10) check digit. Used by card numbers, IMEI, NPI and some barcodes. This only tests the checksum — it cannot tell you whether a number is issued, active or real.