I'm trying to encrypt a .tar.gz with a passphrase from a shell script. I've tried gpg2 --passphrase whatever -c but then gnupg-agent pops up a dialog asking for a password.
Never used GnuPG before so i know nothing about it.
gpg --passphrase-file filename
The answer is --batch flag. User new123456 commented above.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago
3 years ago