home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky sci.crypt:2745 comp.security.misc:817
- Newsgroups: sci.crypt,comp.security.misc
- Path: sparky!uunet!destroyer!ubc-cs!newsserver.sfu.ca!erick
- From: erick@fraser.sfu.ca (Erick Bryce Wong)
- Subject: Re: choosing passwords (was: Re: Crypt should be based on MD5)
- Message-ID: <1992Jul26.202154.15664@sfu.ca>
- Sender: news@sfu.ca
- Organization: Simon Fraser University, Burnaby, B.C., Canada
- References: <R8ZgoB3w165w@elrond.toppoint.de> <yZoioB1w165w@elrond.toppoint.de>
- Date: Sun, 26 Jul 1992 20:21:54 GMT
- Lines: 23
-
- 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 /
-
- --
- -- Erick, the perfect square :-)
-