home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 3279 < prev    next >
Encoding:
Text File  |  1992-07-31  |  1.6 KB  |  47 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!usc!sdd.hp.com!apollo.hp.com!netnews
  3. From: sommerfeld@apollo.hp.com (Bill Sommerfeld)
  4. Subject: Re: adding data encryption
  5. Sender: usenet@apollo.hp.com (Usenet News)
  6. Message-ID: <SOMMERFELD.92Jul31133018@gourmet.apollo.hp.com>
  7. In-Reply-To: Holger Klawitter, Informatik's message of Friday, 31 Jul 1992 09:56:33 MES
  8. Date: Fri, 31 Jul 1992 17:29:25 GMT
  9. Lines: 33
  10. References: <92213.095633KLAWITT@DMSWWU1A.UNI-MUENSTER.DE>
  11. Nntp-Posting-Host: gourmet.ch.apollo.hp.com
  12. Organization: Hewlett Packard
  13.  
  14. In article <92213.095633KLAWITT@DMSWWU1A.UNI-MUENSTER.DE> Holger Klawitter, Informatik <KLAWITT@DMSWWU1A.UNI-MUENSTER.DE> writes:
  15.  
  16.    I miss the possibility to include a crypt command into 386bsd.
  17.    Ok, ok I know its illegal to ship it outside the USA, but is
  18.    there any europeen (or any other non -american) site out there
  19.    where the crypt source can be taken from?
  20.    (To avoid any flames: in europe we are also interested in .passwd
  21.    files which to NOT contain the password in literal)
  22.  
  23. How about using a different one-way function, like MD5, which is (a)
  24. strong (there are those who claim it's stronger than DES), and (b)
  25. exportable?
  26.  
  27. The sources for an implementation of MD5 in C are in the body of
  28. RFC1321.  It converts a bit string into a 16-byte binary message
  29. digest; 
  30.  
  31. To use this for a crypt() replacement, crank the plaintext+salt through MD5,
  32. take the 16 byte message digest, encode it using the same mod-64
  33. encoding as crypt (to generate a 22 character string), prepend the
  34. salt (hopefully longer than 2 characters :-) ), and use that as the
  35. "crypted" string.
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.