delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/13/20:54:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <00a201c1e34e$efd20fc0$15b0fc3e@nori>
From: "Sam Edge" <sam DOT edge AT ntlworld DOT com>
To: <cygwin AT cygwin DOT com>
References: <DF08E278E10FC14F87CE7E802ABFD04BF01798 AT EXCHANGE01 DOT air2web DOT com> <lafu9ug7ooujskpaihe4ucea1ni1l8t14f AT 4ax DOT com>
Subject: Re: crypt command
Date: Sun, 14 Apr 2002 01:53:58 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g3E0sxd15670

> Its very easy to knock your self up a crypt. Perl has a crypt function so it
> should be very easy to create a crypt that takes the plain text password on
> stdin. It would also very easy to do in 'C' (although it appears that mcrypt
> will do the job).

mcrypt has (old) crypt compatibility but if that isn't a requirement then the openssl package can be made to do much the same thing very easily.

    openssl des3 -salt -pass pass:X  <plaintext  >ciphertext
    openssl des3 -d -pass pass:X  <ciphertext  >plaintext

You can choose a different cipher if you like - they're all better than the crippled Enigma one that crypt used to use - although a passphrase better than a single "X" character is probably a good idea.

-- 
Sam Edge


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019