[prev in list] [next in list] [prev in thread] [next in thread]
List: gnupg-users
Subject: Re: Encrypting a file in a non -interactive mode
From: David Shaw <dshaw () jabberwocky ! com>
Date: 2005-12-14 15:00:33
Message-ID: 20051214150033.GA23131 () jabberwocky ! com
[Download RAW message or body]
On Mon, Dec 12, 2005 at 02:17:52PM -0800, amit bhalerao wrote:
> HI ,
>
> COuld anyone please tell me how to encrypt a file in a non-
> interactive mode or batch mode ?
Sure, just do something like this:
gpg --batch -r (recipient) --output (name-for-encrypted-file) --encrypt (file-to-encrypt)
However, this assumes that the recipient is trusted by you. If not,
then you also need to add "--trust-model always" to override that.
This also assumes that name-for-encrypted-file doesn't exist. GPG
won't overwrite it if it exists. To force GPG to overwrite the
existing file, add "--yes".
David
_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic