home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!darwin.sura.net!europa.asd.contel.com!news.ans.net!cmcl2!adm!amsaa-cleo!hagadorn
- From: hagadorn@amsaa-cleo.brl.mil (Thomas Hagadorn)
- Newsgroups: sci.crypt
- Subject: Re: choosing passwords (was: Re: Crypt should be based on MD5)
- Message-ID: <8350@amsaa-cleo.brl.mil>
- Date: 30 Jul 92 13:31:11 GMT
- References: <R8ZgoB3w165w@elrond.toppoint.de> <yZoioB1w165w@elrond.toppoint.de> <1992Jul26.202154.15664@sfu.ca>
- Organization: Army Materiel Systems Analysis Activity
- Lines: 29
-
- In article <1992Jul26.202154.15664@sfu.ca> erick@fraser.sfu.ca (Erick Bryce Wong) writes:
- |freitag@elrond.toppoint.de (Claus Schoenleber) writes:
- |>The last digit c of an ISBN is a (weighted) checksum MOD 11:
- |>
- |>[a is digit a at position i, i=10 is leftmost]
- |> i
- |>
- |> [ / 10 \ ]
- |> | / __ \ |
- |>c = | 11 - ( \ a * i ) mod 11 | mod 11
- |> | \ /_ i / |
- |> [ \ i=2 / ]
- |
- |You can put this in slightly simpler terms if you define i=1 to be the leftmost
- |position, then the formula becomes (I think):
- |
- | / #digits \
- | / __ \
- |c = ( \ a * i ) mod 11
- | \ /_ i /
- | \ i=1 /
- |
- Almost, make that:
-
- / #digits \
- / __ \
- 11 - c = ( \ a * i ) mod 11
- \ /_ i /
- \ i=1 /
-