Encrypting/Decrypting using gpg generate key (Name it Billy) Don't create a password if you want to script the decryption gpg --gen-key display a list of keys in your key ring gpg --list-keys Export public key gpg -a --export Billy > public.key Export private key gpg -a --export-secret-keys Billy > private.key Remove keys from keyring First public gpg --delete-keys Billy then private gpg --delete-secret-key Billy On the computer doing the encrypting: Install gpg Import the public key gpg --import public.key Trust the public key To trust the key, run: gpg --edit-key Billy GPG will output some information, and show a line like: trust: undefined validity: unknown You will be at a console, and you have to type "trust": Command> trust Please decide how far you trust this user to correctly verify other users' keys (by looking at passports, checking fingerprints from different sources, etc.) 1 = I don't know or won't say 2 = I do NOT trust 3 = I trust marginally 4 = I trust fully 5 = I trust ultimately m = back to the main menu Your decision? 5 Do you really want to set this key to ultimate trust? (y/N) y On teh computer doing the decrypting: Import the private key: gpg --import private.key Encryption/Decryption process: To encrypt a file, use: gpg -r Billy --output OUTFILE.gpg --encrypt INFILE To decrypt a file, use: gpg -r Billy --output OUTFILE --decrypt INFILE.gpg