How do you encrypt and decrypt files using your keychain?

Solution 1:

To view the keys known by gpg run: gpg --list-keys

Assuming the key pair is still in your system, open a terminal and do:

 gpg -d FILE.pgp

You may get a password prompt if the key requires it.

To encrypt a file, you can do:

gpg -e -r NAME FILE

The -r is for --recipient and is optional. It will prompt you for more input if needed.