[Date Prev][Date Next][Thread Prev][Thread Next] - [Date Index][Thread Index][Author Index]


At 02:14 PM 3/11/99 -0800, Duane Naugle wrote:
>	You may have to change the check digit if you change the space to 
>a zero. 

Turns out you don't.  The check digit algorithm is really pretty dumb.
It adds in each digit as its literal value, and most other characers
(spaces, letters, punctuation, etc.) don't count.  So since "0" is
worth 0 and a space is also worth 0, no check digit change is

The only exceptions are "-" and "+".  The minus sign counts as 1.
The plus sign counts as either 0 or 2, depending on who generated
the elements and when.

It doesn't notice transposition of digits, it's easy to make compensating
errors, and even if you type in random garbage the check digit will
match 10% of the time.  Very poor design.

The AMSAT format checksum (when it's used) is the same
algorithm, except you send the whole sum instead of just the
last digit.  This is still pretty dumb, but at least it won't pass
complete garbage very often.

73  -Paul

Via the amsat-bb mailing list at AMSAT.ORG courtesy of AMSAT-NA.
To unsubscribe, send "unsubscribe amsat-bb" to Majordomo@amsat.org