Install on a Mac with:
brew install gnupg
Confirm installation with:
gpg --help
Encrypt a file symmetrically with a password:
gpg --symmetric some-file.txt
That will create a binary file some-file.txt.gpg
.
To create and ASCII file,
gpg --armor --symmetric some-file.txt
That will create some-file.txt.asc
.
To decrypt, use:
gpg --decrypt some-file.txt.asc
gpg -d some-file.txt.asc