-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Today I will be providing a simple tutorial on how to use the GPG command line tools to clearsign and verify a message.
This will assume that you have gpg installed, have a private key generated and stored in your key ring, and are using a unix-based
OS with access to a terminal window that will be running a shell (BASH for instance).
The first thing to note is that with Markdown, one needs to use the ``` to create a codeblock in order to create exact
white space. Otherwise, some white space will be ignored and the signature will not properly verify!
This is most definitely a problem for the security-minded.
To create a codeblock, enclose your code in two sets of "```" each on their own separate lines.
In order to sign a message, copy the cleartext, paste it into your favorite text editor, and save. For the purposes of this tutorial,
we will call this file "clearsign_example".
After you have saved the file, type the following into terminal (without quotes) : "gpg --clearsign clearsign_example".
GPG will now sign your text with the default-key and output a signed message called "clearsign_example.asc".
You can verify the authenticity of any signature by first importing the public key into your key ring and then using the following
command in the terminal window (once more, without quotes) : "gpg --verify clearsign_example.asc".
-----BEGIN PGP SIGNATURE-----
iF4EAREIAAYFAlcaSQwACgkQrXhoUZB1ALvMCQD/fwk71ESSgVTYqsexzMfAQsNM
nTHG2v+i6F+i9e+aZE0A/0Sgk70joRFAKDYxZJwHgVEB66ksPMGzPnqL+GKIY220
=7a4D
-----END PGP SIGNATURE-----