Now we need to trade public keys with whomever we wish to email securely. So we export our public key.
gpg --export --armor john > john.ascAnd then we import our friends public key.
gpg --import sally.ascNow we list the keys again to make sure we see Sally's key.
gpg --list-keys
Finally we encrypt a message to send to Sally.
gpg -e message.txtand we select Sally as a recipient.
Sally receives the file and decrypts it with the following command
gpg -d message.txt.gpgand then enters her passphrase.