Using GnuPG one can symmetrically encrypt a file using:
gpg -c --cipher-algo TWOFISH --digest-algo SHA512 secret.txt
and decrypt using:
gpg -d -o secret.txt secret.txt.gpg
After running these commands a window pops up and asks for the password. I would like to run these commands out of a program using golangs 'exec' or pythons 'os.system'. How do I suppress this window and pass the password via command line? I couldn't find something like a --password option in the man pages.