/luhn

Luhn checksum formula from Luhn algorithm/ mod10

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Luhn Checksum

Luhn script uses a checksum formula from Luhn algorithm or mod10 to confirm a set of identification numbers such as credit card number, IMEI, ICCID, IMSI, National Provider Identifier (NPI) numbers in the United States, Canadian Social Insurance Numbers (SIN), Israel ID Numbers, South African ID Numbers, Greek Social Security Numbers (ΑΜΚΑ), and survey codes appearing on McDonald's, Taco Bell, and Tractor Supply Co. receipts, and so on (Wikipedia Contributors, 2020).

Wikipedia Contributors (2020) Luhn Algorithm [Online]. Wikipedia. Available from: https://en.wikipedia.org/wiki/Luhn_algorithm [Accessed 10 February 2020].

Usage

git clone https://github.com/samhaxr/luhn
bash luhn.sh 357503040704274911198

Screenshot

luhn