home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / etc / scams / crdtcksm.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  1023 b   |  19 lines

  1. Major credit card companies use the last digit in the card number as the
  2. checksum. The actual algorithm runs thru the card number, left to right,
  3. one   digit at a time. Each digit is multiplied by using the sequence
  4. (2, 1, 2, 1,   2...), that is, the first digit is multiplied by 2,
  5. second by 1, the third by  two and so on. If the result of the
  6. multiplication is greater than 9, the      individual digits of the
  7. result are added together (i.e. the result is 17, so  1 + 7 = 8). This
  8. process is performed for each digit of the card. The result   of the
  9. process for each digit is added together to give us a 'Total'. The
  10. final calculation is...
  11. Checksum = ((TotalFromAbove + 9) \ 10) * 10 - TotalFromAbove
  12. This 'checksum' will match the last digit of the card i f the card is
  13. valid. Charles
  14. -- Maximus-CBCS v1.02
  15. * Origin: Aronson Consulting: TIDMADT 703-370-7054, voice=x6508
  16. (1:109/120)
  17.