home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / crypt / 2744 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.9 KB

  1. Xref: sparky sci.crypt:2744 comp.security.misc:816
  2. Path: sparky!uunet!mcsun!Germany.EU.net!uniol!tpki.toppoint.de!elrond.toppoint.de!freitag
  3. From: freitag@elrond.toppoint.de (Claus Schoenleber)
  4. Newsgroups: sci.crypt,comp.security.misc
  5. Subject: Re: choosing passwords (was: Re: Crypt should be based on MD5)
  6. Message-ID: <yZoioB1w165w@elrond.toppoint.de>
  7. Date: Sun, 26 Jul 92 13:41:33 MEST
  8. References: <R8ZgoB3w165w@elrond.toppoint.de>
  9. Distribution: world
  10. Sender: news@elrond.toppoint.de (Usenet)
  11. Organization: Claus Schoenleber, Kiel, Germany (3-926986)
  12. Lines: 40
  13.  
  14. Here's the correct version (sorry for mistakes; I hope this will end the
  15. error thread. Thanks to those who looked sharper than I did.):
  16.  
  17. The last digit c of an ISBN is a (weighted) checksum MOD 11:
  18.  
  19. [a  is digit a at position i, i=10 is leftmost]
  20.   i
  21.  
  22.  
  23.  
  24.      [         / 10         \          ]
  25.      |        /  __          \         |
  26. c =  | 11 -  (   \   a  * i   ) mod 11 | mod 11
  27.      |        \  /_   i      /         |
  28.      [         \ i=2        /          ]
  29.  
  30.  
  31. If c = 10, then take letter 'X' instead.
  32.  
  33. E.g. ISBN 3-7609-4012-? is
  34.           |   |   |
  35.           |   |   |
  36.           |   |   +-----> titel number of book in publisher's list
  37.           |   +---------> (national) publisher's number
  38.           +-------------> group number, linguistic area
  39.                           (0 = English, 3 = German,...)
  40.  
  41. 11 - (3 * 10 + 7 * 9 + 6 * 8 + 0 * 7 + 9 * 6 + 4 * 5 + 0 * 4 + 1 * 3 + 2 * 2)
  42.      mod 11) mod 11
  43.  
  44. = (11 - (222 mod 11)) mod 11 = (11 - 2) mod 11 = 9  ==> 3-7609-4012-9
  45.  
  46. Claus.
  47.  
  48. -- --------------------------------------------------------------
  49. Claus Schoenleber             I  UUCP  freitag@elrond.toppoint.de
  50. =================================================================
  51. The Galaxy shall miss you! I "What's the matter?" - "Never mind!"
  52. Isaac Asimov died 06Apr92. I  ;-)  "What's mind?" - "No matter!"
  53. =================================================================
  54.