GPG - Tips


encrypt/decrypt file with a symmetric cipher

  1. https://www.gnupg.org/gph/en/manual/x110.html

read passphrase from file

# ~/.gnupg/gpg.conf

passphrase-file /Users/tap/.gnupg/passphrase

encrypt

$ gpg -c foo.txt
$ ls
foo.txt foo.txt.gpg

decrypt

$ gpg -d -o bar.txt foo.txt.gpg
$ ls
bar.txt foo.txt foo.txt.gpg