This is a JavaScript implementation of Luhn's algorithm. This algorithm
is used on numeric identifiers such as those for credit card numbers or
IMEI numbers to perform a checksum. Testing whether the number passes a
checksum is often the first step in identifying an invalid entry on the
client-side before any communication with a server is needed. Enter a number
to try it out (for security reasons, please do not enter your credit card number
or any other sensitive data).
Source Code Download