1996-02-21 - Re: Credit card numbers

Header Data

From: Jerry Whiting <jwhiting@igc.apc.org>
To: thielj@cs.bonn.edu
Message Hash: de299d686ec47f3d2ad8d4b7dfabdae2ed6f18b88f0b9e863d53b201b05be645
Message ID: <199602210511.VAA27800@igc2.igc.apc.org>
Reply To: N/A
UTC Datetime: 1996-02-21 05:12:34 UTC
Raw Date: Tue, 20 Feb 96 21:12:34 PST

Raw message

From: Jerry Whiting <jwhiting@igc.apc.org>
Date: Tue, 20 Feb 96 21:12:34 PST
To: thielj@cs.bonn.edu
Subject: Re:  Credit card numbers
Message-ID: <199602210511.VAA27800@igc2.igc.apc.org>
MIME-Version: 1.0
Content-Type: text/plain


Credit card check sums are based on the Luhn code.

Double the odd digits (1, 3, 5, etc.).  Use the sum of any 2-digit results.

Add all these numbers together to end up with one single digit.

Add this single digit to the sums of all the even digits.

The Luhn check digit is the mod 10 of that final subtotal.

For example 641205002340106 yields 4.


jwhiting





Thread