Tuesday, February 23, 2016

PGP Tutorial For Windows (Kleopatra – Gpg4Win)

The security of your data is the most important thing. The focus of Gpg4win is on secure file and email encryption as well as good usability.

Part 1.  Installing Kleopatra 

  1. Head on over to https://gpg4win.org/download.html. We want the full version, so click ‘Gpg4win 2.2.3’

    2.If we have UAC enabled then click yes


  3. Choose language and enable Kleopatra , GpgEX and Gpg4win Compendium


Part 2 – Generating your keypair

We need to generate our keypair to encrypt and decrypt message.

1. After opening kleopatra we would get this screen.

2.   Go to file menu and click new certificate

3. The certificate wizard would pop up. Click on 'Create a personal OpenPGP key pair'

4. Enter your credentials. We can use any username and can fill of the rest of the details,Note: We do not need actual email

5. After confirmation we get another pop up window to enter our passphrase. It is recommended to create entropy. Mash keys, wiggle the mouse ....

6. Key would be generated and a success message is shown in the pop up window

7. We can make a back up of the key. 
This key should not be shared. We can  decrypt the file using this private key.

8. Sample of the private key generated


SHARING public key

1. If we need to send our public key to the vendor then open kleopatra and click on Export certificates.

2. Select a location to store the public key

3. We can either send this text file or Copy everything from ‘—–BEGIN PGP PUBLIC KEY BLOCK—–‘ to ‘—–END PGP PUBLIC KEY BLOCK—‘, see the picture for an example

Import public key

1. We can either ask the vendor to send text file with Key or Copy everything from ‘—–BEGIN PGP PUBLIC KEY BLOCK—–‘ to ‘—–END PGP PUBLIC KEY BLOCK— and send it to you.

2. After saving the public key open kleopatra and click on import certificates after selection we would get a confirmation message as shown below


Encrypt a file

After installing kleopatra it is easy to enrpypt a file and send it to the vendor.

1) Select the file which we need to encrypt , Right click and click SIgn and encrypt

2) A pop up window would be displayed as shown below. Click Next

3) We need to select the public key using from the repository

4) On successful encryption we get a confirmation message

5) File after encryption

Decrpyt and Encrypted file using private key

1) Open kleopatra and click on Decrpyt option as shown below

2) select the file which needs to be decrypted

3) It would validate for the key math. On success a pop up window would be shown to enter pass-phrase

4) On success confirmation message is displayed and the file would be decrypted

No comments:

Post a Comment