Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin AT cygwin DOT com Subject: Re: crypt command Date: Mon, 25 Mar 2002 15:08:14 +0000 Message-ID: References: In-Reply-To: X-Mailer: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/