To encrypt:
gpg -c < cleartext > ciphertext
-- This will prompt for a passphrase.
To decrypt:
gpg < ciphertext > cleartext
-- This will prompt for a passphrase.
-- Use the same passphrase as was used for the encryption.
This Blog is primarily intended to be a notes-to-self kind of thing. The information contained here is guaranteed to range anywhere from correct to wildly wrong. Use at your own risk. YMMV.