Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 1.12 KB

README.md

File metadata and controls

12 lines (8 loc) · 1.12 KB

Card Validator

The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, named after its creator, IBM scientist Hans Peter Luhn, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers in the United States, Canadian Social Insurance Numbers, Israeli ID Numbers, South African ID Numbers, Greek Social Security Numbers (ΑΜΚΑ), and numerous private companies receipts.

The algorithm is not intended to be a cryptographically secure hash function; it was designed to protect against accidental errors, not malicious attacks. Most credit cards and many government identification numbers use the algorithm as a simple method of distinguishing valid numbers from mistyped or otherwise incorrect numbers.

Disclaimer:

All the scripts and instructions in this repository are for educational and informational purposes only. I do not promote, encourage, support or excite any illegal activity with the code, data and/or instructions provided on this repository.