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
.