[math-fun] big numbers and how they're made
I bought this book, "Identification Numbers and Check Digit Schemes" in the hopes that it would describe the ID number / checksum / hashing schemes actually used in some real applications. I'd like to give a talk on the subject to a general audience. http://www.amazon.com/gp/product/0883857200/104-8328046-6239112?v=glance&n=2... However, this book left me unsatisfied. Ideally, I'd like to know, for example, how to distinguish between a valid UPS tracking number and an invalid one, or (say) a valid US twenty dollar bill serial number and an invalid one. UPS tracking#: 1Z9999999999999999 US $20 bill, Series 2004: EB 42994244 D Such schemes are presumably often proprietary / unpublished, for security reasons, although the "there is no security through obscurity" maxim would seem to apply. Googling hasn't turned up much, except in a few unsavory hacking resources (mostly how to forge a valid credit card number) Anyone know a good resource? -- Thane Plambeck http://www.plambeck.org/ehome.htm
Hello, I have been interested in that subject a while ago, here is what I know. - Social insurance numbers in Canada are: 9 digits long The last digit is the result of a math operation on digits. These operations are usualy (but not always the same as), sum of odd position numbers + 2 sum of even position numbers (mod 9) ... there are variants of that operation. The SIN are sequential BUT the first digit is usually the region of canada where you are born, 1=ontario, 2= quebec, 7 just arrived in canada but with a valid SIN and 9 new citizen of canada, etc. I believe that SIN numbers are recycled after a while when a person is deceased, I have no guarantee if there could be 2 people with the same sin, I am not sure they are unique. - Bank notes in canada DO NOT use a check digit thing on serial numbers since you can have new bills from a bank that are just sequential, Now it does not mean there are no other check digit something on the bills but the canadian bills are simplified compared to US bills. The sec. is in the design of the Guilloche patterns engraved in the bills and other things. Credit card numbers : the first 4 digits of the 13 to 16 digit number is the Bank that issued the card, there are some sequential numbers in the middle and there is a check digit on the whole number + (important) there is a check digit computation on the expiration date as well as the 3 digits on the back of the card near the signature. So there are 3 different checks that can be done on 1 credit card. For the sequential number in the middle, I do not have the information whether or not there are some sec. features on it. on most identification numbers (SIN, credit card, serial number of a product, UPS packages, etc, etc) the check digit computation is almost all the time performed on odd positions + an operation on even positions digits. It does mean that : If you take 2 digits that are in EVEN position and permute them then you get a valid ID number, I know it does work for SIN numbers. If I permute 2 digits that are in EVEN position it makes a new SIN number that may or may not correspond to a real person but it does work, I know since this is what I give to companies and video club things when they ask me (this is illegal to ask for a SIN number if you are not the govt. or employer or the bank), so I just give that variant of my real number and it does work. ;). There is a ton of other tricks with VIN numbers for cars, tires, UPC symbols, etc. but idon't want to write a book today so I will stop here. Simon Plouffe
On 5/17/06, Thane Plambeck <thane@best.com> wrote:
UPS tracking#: 1Z9999999999999999 This link doesn't give the checksum algorithm for the last digit, but tells what all the rest mean http://osiris.978.org/~alex/ups.html
US $20 bill, Series 2004: EB 42994244 D
Such schemes are presumably often proprietary / unpublished, for security reasons, although the "there is no security through obscurity" maxim would seem to apply.
This has a bunch of good stuff: http://www.whfreeman.com/college/pdfs/comappdfs/CoMap_c16.pdf Maple code for German banknotes http://home.att.net/~michael.engquist/Project4.mws Similar site http://modp.com/release/checkdigits/ -- Mike Stay metaweta@gmail.com http://math.ucr.edu/~mike
Joe Gallian has an article or two about such things. R. On Wed, 17 May 2006, Thane Plambeck wrote:
I bought this book, "Identification Numbers and Check Digit Schemes" in the hopes that it would describe the ID number / checksum / hashing schemes actually used in some real applications. I'd like to give a talk on the subject to a general audience.
http://www.amazon.com/gp/product/0883857200/104-8328046-6239112?v=glance&n=2...
However, this book left me unsatisfied. Ideally, I'd like to know, for example, how to distinguish between a valid UPS tracking number and an invalid one, or (say) a valid US twenty dollar bill serial number and an invalid one.
UPS tracking#: 1Z9999999999999999
US $20 bill, Series 2004: EB 42994244 D
Such schemes are presumably often proprietary / unpublished, for security reasons, although the "there is no security through obscurity" maxim would seem to apply.
Googling hasn't turned up much, except in a few unsavory hacking resources (mostly how to forge a valid credit card number)
Anyone know a good resource?
-- Thane Plambeck http://www.plambeck.org/ehome.htm
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
US currency serial numbers have an 8-digit interior number. Fresh bills from the bank often have consecutive serial numbers, sometimes with a run of five or ten bills. We used to play dollar-bill poker in high school, which proved to be a useful exercise in combinatorics and probability. (Should 11122334 rank above or below 11223344?) (This was c. 1963. I just looked closely at a bill and notice they've moved the serial number, but it still has the 8 interior digits. The surrounding letters must also be part of the "serial number", since 10^8 bills would be inadequate to uniquely distinguish the circulating currency.) Also c. 1965, I was coding some business program for an IBM customer, and was given a check-digit algorithm that alternately added and subtracted digits. Perhaps we took the result mod 10 to get the check; I can't recall. I've made consecutive internet car reservations with Avis late at night, and the confirmation numbers they provide have some simple check digits. More scarily, I made two tax-extension phone calls to the IRS a few years ago. You call their automated system and key in various info, and promise to mail a check. They provide a confirmation number which appears to be a serious attempt at scrambling, but it's no good. Rich -----Original Message----- From: math-fun-bounces+rschroe=sandia.gov@mailman.xmission.com on behalf of Thane Plambeck Sent: Wed 5/17/2006 11:22 PM To: math-fun Subject: [math-fun] big numbers and how they're made I bought this book, "Identification Numbers and Check Digit Schemes" in the hopes that it would describe the ID number / checksum / hashing schemes actually used in some real applications. I'd like to give a talk on the subject to a general audience. http://www.amazon.com/gp/product/0883857200/104-8328046-6239112?v=glance&n=2... However, this book left me unsatisfied. Ideally, I'd like to know, for example, how to distinguish between a valid UPS tracking number and an invalid one, or (say) a valid US twenty dollar bill serial number and an invalid one. UPS tracking#: 1Z9999999999999999 US $20 bill, Series 2004: EB 42994244 D Such schemes are presumably often proprietary / unpublished, for security reasons, although the "there is no security through obscurity" maxim would seem to apply. Googling hasn't turned up much, except in a few unsavory hacking resources (mostly how to forge a valid credit card number) Anyone know a good resource? -- Thane Plambeck http://www.plambeck.org/ehome.htm _______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
Quoting "Schroeppel, Richard" <rschroe@sandia.gov>:
Also c. 1965, I was coding some business program for an IBM customer, and was given a check-digit algorithm that alternately added and subtracted digits. Perhaps we took the result mod 10 to get the check; I can't recall.
Isn't this plain old ISBN? The signs alternate to get a modulo 11 sum which is immune to digit switching, a common transcription error, whereas taking a sum modulo 9 is not. - hvm ------------------------------------------------- www.correo.unam.mx UNAMonos Comunicándonos
* mcintosh@servidor.unam.mx <mcintosh@servidor.unam.mx> [May 19. 2006 08:37]:
Quoting "Schroeppel, Richard" <rschroe@sandia.gov>:
Also c. 1965, I was coding some business program for an IBM customer, and was given a check-digit algorithm that alternately added and subtracted digits. Perhaps we took the result mod 10 to get the check; I can't recall.
Isn't this plain old ISBN? The signs alternate to get a modulo 11 sum which is immune to digit switching, a common transcription error, whereas taking a sum modulo 9 is not.
- hvm
wikipedia is often useful with these practical bits: http://en.wikipedia.org/wiki/ISBN
participants (7)
-
Joerg Arndt -
mcintosh@servidor.unam.mx -
Mike Stay -
Richard Guy -
Schroeppel, Richard -
Simon Plouffe -
Thane Plambeck