Other GPG Options

gpg --version

Find out which version of GPG you have installed

gpg --gen-key

Create a new key pair

gpg --armor --output "KEY.txt" --export "YOUR-NAME"

Export your public key to a text file KEY.txt

gpg --import "KEY.txt"

Import the keys found in KEY.txt 

gpg --edit-key "NAME"

Edit the key for NAME. In edit mode, use the ”trust” command to set the trust level

gpg --recipient "RECIPIENT" --output "FILENAME.gpg" --encrypt "FILENAME"

Encrypt FILENAME using RECIPIENT’s public key

gpg --amror --recipient "RECIPIENT" --output "FILENAME.gpg" --encrypt "FILENAME"

Encrypt a file and output text suitable for email

gpg --homedir . SOME-COMMAND

Use the current folder as the home folder, useful for calling GPG from an application.