home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1821 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  1.4 KB

  1. From: koning@koning.enet.dec.com (Paul Koning)
  2. Newsgroups: sci.crypt,alt.sources
  3. Subject: Re: padrand(); /* random numbers from one-time pads */
  4. Message-ID: <1990Sep14.094334@koning.enet.dec.com>
  5. Date: 14 Sep 90 13:47:43 GMT
  6.  
  7. |>...
  8. |> The C source of the padrand() routine posted here, is hereby placed in
  9. |> the Public Domain.  A primitive driver (main) is enclosed for convenient
  10. |> testing.  The verbal description of the algorithm immediately below, is
  11. |> "Copyright 1990, Istvan Mohos, All Rights Reserved".
  12. |> ...
  13. |> Although the text of one-time pads is non-cyclic, the byte stream is
  14. |> subject to regularities of character distribution as the function of the
  15. |> language.  
  16. |> ...
  17. |> The program is somewhat wasteful of pad text, and is intended for Unix
  18. |> environments where on-line text is abundant (as evidenced by directories
  19. |> /usr/dict, /usr/man, ~TeX/TeXdoc and the like) but hardware random
  20. |> number generators are absent.  
  21.  
  22. It seems to me that you have missed the one most crucial part of the
  23. definition of "one time pad": not only must the one-time pad be non-cyclic,
  24. but the individual bytes must be random.
  25.  
  26. When you're talking about using text files as a source of key data, you
  27. aren't describing a one-time pad at all.  Instead, what you have is a
  28. "book code" or "running key cypher".  Those are easy to solve; the method
  29. for doing so dates back to the 19th century.  (See D. Kahn, "The Codebreakers")
  30.  
  31.     paul
  32.