Specifications
Options within this program include help, which will describe the available commands—
trust, sign, and save.
Type trust and tell GPG that you trust your key fully. Type sign to sign this public key using
nobody’s private key. Finally, type save to exit this program, keeping your changes.
Testing GPG
GPG should now be set up and ready to use.
Creating a file containing some text and saving it as test.txt will allow us to test it.
Typing the following command
gpg -a --recipient ‘Luke Welling <luke@tangledweb.com.au>’ --encrypt test.txt
(modified to use the name of your key) should give you the warning
gpg: Warning: using insecure memory!
and create a file named test.txt.asc. If you open test.txt.asc you should see an encrypted
message like this:
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.0.3 (GNU/Linux)
Comment: For info see http://www.gnupg.org
hQEOA0DU7hVGgdtnEAQAhr4HgR7xpIBsK9CiELQw85+k1QdQ+p/FzqL8tICrQ+B3
0GJTEehPUDErwqUw/uQLTds0r1oPSrIAZ7c6GVkh0YEVBj2MskT81IIBvdo95OyH
K9PUCvg/rLxJ1kxe4Vp8QFET5E3FdII/ly8VP5gSTE7gAgm0SbFf3S91PqwMyTkD
/2oJEvL6e3cP384s0i8lrBbDbOUAAhCjjXt2DX/uX9q6P18QW56UICUOn4DPaW1G
/gnNZCkcVDgLcKfBjbkB/TCWWhpA7o7kX4CIcIh7KlIMHY4RKdnCWQf271oE+8i9
cJRSCMsFIoI6MMNRCQHY6p9bfxL2uE39IRJrQbe6xoEe0nkB0uTYxiL0TG+FrNrE
tvBVMS0nsHu7HJey+oY4Z833pk5+MeVwYumJwlvHjdZxZmV6wz46GO2XGT17b28V
wSBnWOoBHSZsPvkQXHTOq65EixP8y+YJvBN3z4pzdH0Xa+NpqbH7q3+xXmd30hDR
+u7t6MxTLDbgC+NR
=gfQu
-----END PGP MESSAGE-----
You should be able to transfer this file to the system where you generated the key initially
and run:
gpg -d test.txt.asc
to see your original text again.
To place the text in a file, rather than output it to the screen, you can use the -o flag and spec-
ify an output file like this:
gpg -do test.out test.txt.asc
E-commerce and Security
P
ART III
342
19 7842 CH15 3/6/01 3:40 PM Page 342










