🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.crypt
Article #824

Re: Unix compatible crypt utility needed

#824
From: Gil Nardo
Date: Mon, 31 Aug 1992 17:06
34 lines
1691 bytes
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, except ...] 
> 
> SEE ALSO
>      ed(1), makekey(8)
> 

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 assembly
    for the translational 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 = *!
Technical Details
Message-ID: <4286@wet.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!wupost!sdd.hp.com!decwrl!csus.edu!netcom.com!netcomsv!wet!mcs
References: <BtnAJ8.FtK.2@cs.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!wupost!sdd.hp.com!decwrl!csus.edu!netcom.com!netcomsv!wet!mcs
From: mcs@wet.UUCP (Gil Nardo)
Newsgroups: sci.crypt
Subject: Re: Unix compatible crypt utility needed
Message-ID: <4286@wet.UUCP>
Date: 31 Aug 92 17:06:14 GMT
References: <BtnAJ8.FtK.2@cs.cmu.edu>
Organization: Wetware Diversions, San Francisco
Lines: 34