Small Business Computing

internet.com
You are in the: Small Business Computing Channelarrow
Small Business Technology
» ECommerce-Guide | Small Business Computing | Webopedia | WinPlanet |Refer-It


  About Us l Contact Us l Privacy
Home News & Trends Business Software Hardware & Equipment Online Marketing Web Management
Product Watch Buyer's Guide Small Business Essentials Online Forums Glossary Images Events

Become a Marketplace Partner



Search SBC

Search internet.com


internet.commerce
  Be a Commerce Partner
 
 
 
 
 
 
 
 
 
 

Free Newsletters
Small Business Computing

Ecommerce Guide Daily
text   html

Webopedia

Newsletter Address Changes
SmallBusiness Computing Glossary
Enter an Term:
 

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Enter a keyword...
 
...or choose a category.
 

Luhn formula
Last modified: Monday, December 13, 1999 

Based on ANSI X4.13, the LUHN formula (also known as the modulus 10 -- or mod 10 -- algorithm ) is used to generate and/or validate and verify the accuracy of credit-card numbers.

Most credit cards contain a check digit, which is the digit at the end of the credit card number. The first part of the credit-card number identifies the type of credit card (Visa, MasterCard, American Express, etc.), and the middle digits identify the bank and customer.

To generate the check digit, the LUHN formula is applied to the number. To validate the credit-card number, the check digit is figured into the formula.

Here's how the algorithm works for verifying credit cards; the math is quite simple:

1) Starting with the second to last digit and moving left, double the value of all the alternating digits.

2) Starting from the left, take all the unaffected digits and add them to the results of all the individual digits from step 1. If the results from any of the numbers from step 1 are double digits, make sure to add the two numbers first (i.e. 18 would yield 1+8). Basically, your equation will look like a regular addition problem that adds every single digit.

3) The total from step 2 must end in zero for the credit-card number to be valid.

The LUHN formula was created in the late 1960s by a group of mathematicians. Shortly thereafter, credit card companies adopted it. Because the algorithm is in the public domain, it can be used by anyone.

The LUHN formula is also used to check Canadian Social Insurance Number (SIN) validity. In fact, the LUHN formula is widely used to generate the check digits of many different primary account numbers. Almost all institutions that create and require unique account or identification numbers use the Mod 10 algorithm.

  Related Links

Credit Card Validation - Check Digits
Using an example credit-card number, site illustrates how the Luhn formula works.

Everything you ever wanted to know about CCs
Here's an easy-to-understand, in-depth look at credit cards and the credit-card industry.

Related Categories

Electronic Commerce

Internet and Online Services

Related Terms

algorithm

electronic commerce

encryption

security

Shopping
Ln formula Products
Compare Products,Prices and Stores

Shop by Category:
Cartridges and Toners
0 Store Offers

Pets
0 Store Offers

Tools and Accessories
0 Store Offers

Building Supplies
5 Store Offers

Nutrition
0 Store Offers


internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers