gpg --list-keys
gpg --import private.key
# ~/.gnupg/gpg.conf:
default-key {KEY-ID}
default-recipient-self
This encrypts the file using default key (default recipient):
gpg -e filename
This decrypts it back:
gpg -d filename.gpg > filename
tar czf - . | gpg -e > archive.gpg