paperlined.org
apps > gnupg
document updated a month ago, on Apr 23, 2024

symmetric encryption using GnuPG

To encrypt:

gpg --no-symkey-cache --symmetric file.txt

gpg --no-symkey-cache -c file.txt

To decrypt:

gpg --no-symkey-cache --output file.txt --decrypt file.txt.gpg

gpg --no-symkey-cache -o file.txt -d file.txt.gpg

When using Cygwin, replace gpg with gpg2.