Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <657B20E93E93D4118F9700D0B73CE3EA0D39721A@goofy.epylon.lan>
From: "Gupta, Sanjay" <SGupta@Epylon.com>
To: "'Andrew Markebo'" <flognat@flognat.myip.org>
Cc: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: RE: mcrypt commnad
Date: Wed, 3 Apr 2002 14:21:51 -0800 
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"

Andrew,
I did not answer you question
You asked
Meanwhile, just a quick thought, if I remember right you said
something like "I can't use cygwin crypt(), because it is not
unix-compatible", well how many crypt()'s out there on Solaris, Linux,
HP, digital alpha are compatible?? 
My answer :- As I recall the crypt command in all Unix works the same way
e.g. if I want to encrypt a file, I would use
crypt crypt_password < file_you_want_to_encrypt > encrypted_file

and to decrypt file, you would issue command
crypt crypt_password encrypted_file

but the same thing does not work in cygwin. The purpose of crypt command in
cygwin is different than the purpose of crypt command in unix. I have no
idea why it is different but it is.

Sanjay

-----Original Message-----
From: Andrew Markebo [mailto:flognat@flognat.myip.org]
Sent: Wednesday, April 03, 2002 1:51 PM
To: Gupta, Sanjay
Cc: 'cygwin@cygwin.com'
Subject: Re: mcrypt commnad


No idea about why you are missing cputs and cgets, easy way is to use
something other to print and input a string.. 

Meanwhile, just a quick thought, if I remember right you said
something like "I can't use cygwin crypt(), because it is not
unix-compatible", well how many crypt()'s out there on Solaris, Linux,
HP, digital alpha are compatible?? 

Or is it me being on the wrong line?? Using mcrypt on the unix-machine
and cygwin probably does the same thing.. 

BTW Saw a note on the mcrypt-dev on compiling mcrypt with cygwin, they
referred to use and link against mingw.. 

        http://lists.hellug.gr/pipermail/mcrypt-dev/2001/000087.html

        /Andy

[...]
| getpass.o: In function `mcrypt_getpass':
| /usr/src/mcrypt-2.5.10/src/getpass.c:48: undefined reference to `_cputs'
| /usr/src/mcrypt-2.5.10/src/getpass.c:49: undefined reference to `_cgets'
[...]

-- 
 The eye of the beholder rests on the beauty!

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

