Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 605 Bytes

README.md

File metadata and controls

10 lines (5 loc) · 605 Bytes

luhn_java

Java implementation of Luhn Algorithm, used for Credit card number checksum validation.

http://en.wikipedia.org/wiki/Luhn_algorithm

The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, 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 US and Canadian Social Insurance Numbers. It was created by IBM scientist Hans Peter Luhn and described in U.S. Patent No. 2,950,048, filed on January 6, 1954, and granted on August 23, 1960.