You are on page 1of 14

GPG4win / Kleopatra Documentation

Secure file and e-mail encryption by using GnuPG for Windows

GPG4win Detailed How To:


Installing Gpg4win:
1. Go to the following website http://www.gpg4win.org/download.html , click on
gpg4win-2.1.0.exe.
2. Save gpg4win-2.1.0.exe.
3. Run gpg4win-2.1.0.exe to install GnuPG for windows.
4. The installation will soon start and you will be asked for the language to be used.
5. Confirm your language 'English' and click [Ok].
6. The welcome dialog will appear afterwards.
7. Make sure to close all running programs then click on [Next].
8. The next page displays the license agreement, Click on [Next].
9. The next page displays the selection of components, leave the default selection and
click on [Next].
10. The next page displays the installation location, You can either go with the
suggested folder or select a different folder for installing, then click on [Next].
11. In the install option page, click on [Next].
12. Once the installation is done, click on [Next].
13. In some cases you will be asked to restart Windows, click on [finish]. Your system
will be restarted.

Generate your Public/Private key-pair:


1. Open Kleopatra using the Windows start menu, go to Start --> All programs -->
Gpg4win --> Kleopatra
2. Click on File --> New Certificate.
3. The page will display the Certificate Creation Wizard, click on Create a personal
openPGP key pair then click on [Next].
4. Fill out your name and e-mail address then click on [Next].
5. Review your name and e-mail address in the next page, if everything is correct
then click on [Create Key].
6. Enter your passphrase, which should be an easy to remember and hard to guess
secret passphrase, then confirm your entry with clicking on [Ok].
7. It will take some time to generate the key pair, after that you will see the Key
Pair Successfully Created page, click on [Finish].

Exporting your Public Key:


1. Open Kleopatra using the Windows start menu, go to Start --> All programs -->
Gpg4win --> Kleopatra
2. Select the public certificate to be exported by clicking on it.
3. Click on File --> Export Certification.
4. Select a file folder to save the certificate, then save the certificate with the file
type .asc (from the check box)
5. Open the exported certificate with a text editor.

Importing a Public Key:


1.

Open Kleopatra using the Windows start menu, go to Start --> All programs -->
Gpg4win --> Kleopatra
2. In Keopatra menu, click on File -> Import certificate.
3. Navigate through the files and select the public certificate that you wish to
import and click [open].
4. Click [ok] after seeing the certificate improt result.

Encrypting Files:
1. Open Kleopatra using the Windows start menu, go to Start --> All programs -->
Gpg4win --> Kleopatra
2. In Keopatra menu, click on File -> Sign/Encrypt files.

3. Navigate through your files and select the file you wish to encrypt, then click on
[Open].
4. Choose to Encrypt, then click on [Next].

5. Choose the person/s you want to en crypt the file for, then click on [add] botton.

6. Click on [encrypt].
7. After the file encryption is succeeded, click on [finish].

Decrypting Files:
1. Open Kleopatra using the Windows start menu, go to Start --> All programs -->
Gpg4win --> Kleopatra
2. In Keopatra menu, click on File -> Decrypt/Verify files.

3. Navigate through your files and select the file you wish to decrypt, then click on
[Open].
4. Choose the operation [Decrypt].

5. You will be asked to inter your passphrase, inter it then click on [Ok].

6. After the file decryption is succeeded, click on [Ok].

Encrypting/Decrypting Emails:
How To Use GnuPG and Thunderbird to
Encrypt/Decrypt Emails:
1- Download Mozilla Thunderbird
a- Go to http://www.mozilla.org/
b- Click on Product button
c- Select Thunderbird , then download it.

2- Install the Thunderbird add-ons which called: Enigmail


a- Open Thunderbird
b- Click on [tools] button -> add-ones
c- Search add-ones, type in Enigmail in the search box
d- Install Enigmail 1.5

e- Restart Thunderbird to complete the installation, after that you will notice a
new button which called OpenPGP in your menu bar.

3- Create an E-mail address (or use your own), then setup your email with
thunderbird.
a- start Thunderbird then click on Create a new account

b- In the welcome screen, click on [Skip this and use my existing email]

c- Inter your name, email address and password, then click [continue]

4- Click on [OpenPGP] button in your menu bar -> Key Management

5- Generate a key pair


a- Click on [Generate] -> new key pair
b- Enter the passphrase, then click on [Generate Key]

6- Send your public key as an email attachment


a- Click on [OpenPGP] -> Key Management
b- Type in your first name, then select the public key that you wish to sent
c- Right click on it -> Send Public Keys by Email

d- Type in the receiver email address and send the email.


7- The receiver (say User2), have to import your public key into his OpenPGP
a- Open the email -> right click on the attachment -> Import OpenPGP key

8- Sending encrypted emails


a- Open Thunderbird -> Click on [Write] to write a new email
b- Type in the receiver email, the subject and the email content
c- Click on [OpenPGP] button
d- Check the Sign Message and Encrypt Message check boxes then click [Ok]

e- Click on [Send],
The encrypted message will look like this:

For better understanding of the scenario between the two users, you might
find this video on YouTube is helpful:
http://www.youtube.com/watch?v=9X4OB1GSi8U

You might also like