- The receiver's public key. You can usually find this on an OpenPGP keyserver e.g. http://pgp.surfnet.nl/
- An implementation of the OpenPGP standard such as GnuPG
gpg --import receiver-key.pub
gpg --keyserver keyserver.example.com --search-key receiver@example.com
# verify the fingerprint
gpg --list-keys --keyid-format LONG --fingerprint
gpg --output message.txt.gpg --encrypt --recipient receiver@example.com message.txt