delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/25/10:09:36

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
From: Mark Himsley <mark AT mdsh DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: crypt command
Date: Mon, 25 Mar 2002 15:08:14 +0000
Message-ID: <lafu9ug7ooujskpaihe4ucea1ni1l8t14f@4ax.com>
References: <DF08E278E10FC14F87CE7E802ABFD04BF01798 AT EXCHANGE01 DOT air2web DOT com>
In-Reply-To: <DF08E278E10FC14F87CE7E802ABFD04BF01798@EXCHANGE01.air2web.com>
X-Mailer: Forte Agent 1.91/32.564
MIME-Version: 1.0

On Mon, 25 Mar 2002 09:22:28 -0500 you wrote:

>I looked at it.  The crypt that comes with cygwin appears to do something
>different than [I, Sanjay] expected, at least on at least Sanjay's system 
>and mine.

[snip]
>I conclude that this crypt is designed to only print out a key for a given
>salt/password.
>
>Am I correct?

yes

>If so, what is this utility generally used for?

It is generally used for creating the one-way crypt of a password used in
unix /etc/passwd files or Apache on Unix authentication files. The cygwin
version also allows the passing of a salt. Both the password and the salt
must be passed on the command line and not on stdin, the resulting crypt is
available on stdout.

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).

-- 
Mark Himsley
In Acton

--
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