Usage of --symmetric

fa-ml fa-ml at ariis.it
Wed Jan 22 12:37:34 CET 2014


On Wed, Jan 22, 2014 at 01:29:11PM +0530, Rahul R wrote:
> Hi all,
>
> I am trying to run
>
> "gpg --symmetric test.txt"
>
> But its asking for Passphrase. Is there any way to skip this while running
> this command?

gpg --symmetric -o output.pgp --passphrase mypasshere input.txt

(found checking `man gpg`). Of course there are problems with this approach
(using --passphrase-fd and --passphrase-file makes things only marginally
safer).

Encryption via public-key requires no password at all, so maybe you
are better off switching to it, depending on your use case.





More information about the Gnupg-users mailing list