gpg --list-keys
For listing keys with the fingerprint, run
gpg --fingerprint
gpg --gen-key
echo "Put message here" | gpg --armor --encrypt --recipient Joshua > FILE.gpg
This will put the encrypted text into FILE.gpg
which you can send to someone or keep for
later use. For decrypting the message, see the next section.
cat FILE.gpg | gpg
Displays the decrypted text on the command line.
gpg --fingerprint Joshua
echo "This is a top secret message" | gpg --clearsign
gpg --clearsign example.txt
This will create example.txt.asc
file.
gpg --verifiy example.txt.asc