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 Message-Id: <5.1.0.14.2.20020404210725.058a2d50@imap.local.mscha.org> X-Sender: ml AT imap DOT local DOT mscha DOT org (Unverified) Date: Thu, 04 Apr 2002 21:09:56 +0200 To: cygwin AT cygwin DOT com From: Michael Schaap Subject: Re: mcrypt commnad In-Reply-To: <657B20E93E93D4118F9700D0B73CE3EA0D397222@goofy.epylon.lan> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed At 20:32 4-4-2002, Gupta, Sanjay wrote: >I have openssl installed, but I would really appreciate, if you can tell me >how to use for my requirement. >My requirement is, I have a simple text file which has some sensitive >information, and I want encrypt this file this file using some password and >similarly decrypt the file using the same password. The vi -x filename, >command will not work because these steps should be done in shell scripts. >Is it possible to do the same in openssl ?. "man openssl" should tell you all you need to know. A few basic examples: Encrypt a file: $ openssl des3 -a -salt -in plainfile -out encryptedfile -k mypassword Decrypt a file: $ openssl des3 -d -a -salt -in encryptedfile -out plainfile -k mypassword HTH, - Michael -- I always wondered about the meaning of life. So I looked it up in the dictionary under "L" and there it was - the meaning of life. It was not what I expected. - Dogbert -- 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/