Saturday, June 4, 2011

Securing Communication Data (Part 1 - GnuPG)



GPG is the main program for the GnuPG system. From The GNU Privacy Handbook: "GnuPG uses public-key cryptography so that users may communicate securely. In a public-key system, each user has a pair of keys consisting of a private key and a public key. A user's private key is kept secret; it need never be revealed. The public key may be given to anyone with whom the user wants to communicate."

With Backtrack 5, gpg already installed when we used it. Maybe gpg just used with konsole/terminal, for GUI (Graphical User Interface) -one of the tools- we can used kleopatra.

First, we install kleopatra with command:

elha@bt:~# apt-get install kleopatra

Fyi, kleopatra required install library depends (libakonadi-contact.so.4 => libakonadi-contact4)

root@bt:~# apt-get install libakonadi-contact4

Now, we used konsole/terminal to get our key..


Then, we got confirmation:


For reconsider, we can back to edit name, comment, or email. But if we press o (okay), then we must fill the passphrase (twice). Until we get finished to get key, for a moment we moved our mouse to generate a lot of random bytes.


After gpg finished generate keys, next step we must send keys to server.


If we can't send key, we must add this:

root@elha:~# gpg --send-keys --keyserver 099E0FDC

After finished send keys our key, now we can try used it with encrypt our email. Then, we back up our keys to computer using kleopatra.


I hope this article very usefull. Then, my GPG are:

Aam Chandra (my gpg with yahoo) at yahoo.com
fingerprint : 099E0FDC

Aam Chandra (zzzzz) at gmail.com
fingeprint : 4B0C0DD4

1 comment: