PGP tool Gpg4win

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp

PGP tool Gpg4win




Most likely if you found this post is because you are already reading about PGP posible in the DN Bible or maybe you landed an onion page that is asking for a PGP auth for login, so here is a little introduction about PGP and how to install a PGP tool named Gpg4win.

PGP stands for Pretty Good Privacy, is a data encryption tool that gives cryptographic privacy that you can use for emails and authentication for some websites (which I wish we could use on surface internet). you create “keys” which are associated with a username and a password, this key is stored in your PC.

Basically the key you create will act as a lock box and that lock box has two keys, a key you can use to share to your contacts or websites and they can use it to encrypt the messages, if they encrypt that message they will not be able to decrypt it, the only way to decrypt it is with your private key.

Gpg4win is a suite of five utilities. The utilities included are:

  • Kleopatra.
  • GPA.
  • GpgO.
  • GpgEX.
  • Claws Mail.
  • Gpg4win Compendium.

Install Gpg4win

  1. Download the software from here GPG4Win download site 
  2. The installation window will have by defult the required software and in them we have Kleopatra which is the must have at this moment, we can read more about the others but that will no be covered here.

Generate Your Key Pair

Open Kleopatra component.

  1. Click File > New Certificate.
  2. Click on Create a personal OpenPGP key pair.
  3. It will as for a username, email and comment, the only field that is a must to enter is the username.
  4. Some websites will require a specific type of encryption, you can find that by clicking on advanced some will ask for 4,096 bits option.
  5. Enter a value in the Passphrase this can be a strong password or multiple words such as “new york houston texas”
  6. Click “Finish”.

Obtain Your Public Key

This is what you will use to share to others, and this is what you import in your kleopatra app for whenever you want to send encrypted messages to specific contacts.

  1. Open Kleopatra. Right-click on your key and select Export Certificates.
  2. Browse where you want to save the certificate, give the file a name, and save.
  3. This will create a file with extension “.asc” which you can open using notepad and there you can see your public PGP Key that you can share to others.

Obtain your Private Key

Do not share this key to anyone, back it up otherwhise you wont be able to decrypt or use any website that has your public PGP for auth.

  1. Kleopatra right-click on your key and select Export Secret Keys.
  2. Select where you will save it with extention “.asc”
  3. Be sure to keep this key in a safe place and never share it.

Import a Public Key

This is how you will import your contacts or markets keys to your Kleopatra.

  1. Copy the entire key block including ---BEGIN PGP PUBLIC KEY BLOCK--- to ---END PGP PUBLIC KEY BLOCK---.
  2. Save it in a new notepad with extention “.asc”
  3. Kleopatra Click file> Import.

Importing Your Private Key

  1. Kleopatra Click File > Import.
  2. Use the File Explorer to browse to where you’ve saved your private key. Select the key file and click open.
  3. The imported private key now displays under the My Certificates tab.

Decrypting a Message

Only your private key can decrypt encrypted messages. To decrypt a message using GPG4Win, do the following:

  1. Copy the entire contents of the message including the ---BEGIN PGP PUBLIC KEY BLOCK--- to ---END PGP PUBLIC KEY BLOCK---.
  2. Kleopatra click on notepad paste the message and click Decrypt/Verify.
  3. It will ask for the passphrase you created when you generated your key pair.
  4. After entering the password it will show a message that the message was decrypted and you will be able to see the contents.

Share Post

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp

Related Posts


Transmission (deb)

Install transmission sudo apt-get install transmission-cli transmission-common transmission-daemon Configure transmission-daemon will start automatically each time you start your server, with the settings defined in /var/lib/transmission-daemon/info/settings.json Make sure

Read More »


What is Spytify? Spytify is a Windows desktop application for recording music from Spotify. It’s a free open source Spotify recorder which records Spotify songs

Read More »