gpg -o output-file.asc --armor --symmetric --cipher-algo AES256 input-file.txt
To decrypt output-file.asc or whatever you called it, run:
gpg -o input-file.txt -d output-file.asc
Note: Taken from https://tutonics.com/2012/11/gpg-encryption-guide-part-4-symmetric.html