home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / sci / crypt / 3058 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.5 KB

  1. Path: sparky!uunet!decwrl!hoptoad!wet!mcs
  2. From: mcs@wet.UUCP (Gil Nardo)
  3. Newsgroups: sci.crypt
  4. Subject: Re: Unix compatible crypt utility needed
  5. Message-ID: <4283@wet.UUCP>
  6. Date: 31 Aug 92 07:20:38 GMT
  7. References: <BtnAJ8.FtK.2@cs.cmu.edu>
  8. Organization: Wetware Diversions, San Francisco
  9. Lines: 30
  10.  
  11. jmount+@CS.CMU.EDU (John Mount) writes:
  12. [ previous posters discussing UNIX crypt deleted ]
  13. > No I don't think you understand how crypt works (or have it confused with
  14. > the unix password encryption scheme, which is intended to be one way).  Crypt
  15. > doesn't use DES (see below man page), it is a wimpy Enigma machine.  DES 
  16. > IS invertible (ie. people do decrypt DES messages).
  17. >
  18. [ man page on crypt deleted] 
  19.  
  20. Crypt DOES use DES through makekey(). The gist of the process goes
  21. something like this:
  22.  
  23.  1) Pass a seed and user password to makekey() and get
  24.     back a DES'sed password.
  25.  2) Using the new, improved password create the rotor and
  26.     initial rotor positions for the encryption
  27.  3) Read a plaintext char from stdin and translate through rotor
  28.  4) Spit out cyphertext char to stdout, advance rotor, do 3 till eod.
  29.  
  30. To decrypt, the rotor "assembly" is reversed, so you are effectively
  31. using the previous cyphertext as the plaintext in the above process.
  32.  
  33. [sensing impending doom, our author puts on a cancer causing asbestos suit]
  34.  
  35. -- 
  36. Gil Nardo                  | mcs@wet.com
  37. Migrant Computing Services | (415)664-1032
  38. 1032 Irving Street, #435   |-----------------
  39. San Francisco, 94122       | Supernova = *!
  40.