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