GnuPG 2.2.19 notes
generate key
gpg --full-generate-key
encrypt with cipher:
gpg -c --armor --cipher-algo AES256 --no-symkey-cache --output test.aes test.txt
decrypt:
gpg --decrypt --no-symkey-cache --output test1.txt test.aes
Configuration Files
Create inside ~/.gnupg/
gpg.conf:
armor
personal-cipher-preferences AES256
verbose
use-embedded-filename
gpg-agent.conf:
default-cache-ttl 0
max-cache-ttl 0
disable-scdaemon
Kill gpg-agent:
gpgconf --kill gpg-agent
Launch gpg-agent:
gpgconf --launch gpg-agent
Encrypt with .conf files active:
gpg -c test.txt
Decrypt with .conf files active:
gpg -d test.txt.asc
Batch Mode
Encrypt with batch mode:
echo your_password | gpg -c --batch --yes --passphrase-fd 0 your_file.gpg