Cebulka Blog

Kleopatra for Windows installation and operation guide

GPG4Win is a software package that includes the Kleopatra tool for managing PGP keys. This guide describes how to install GPG4Win how and use Kleopatra tool on Windows.

Installing Kleopatra from Gpg4win on Windows #

  1. Download the Gpg4win package from the official website: https://gpg4win.org.
  2. Run the downloaded installer and follow the on-screen instructions, selecting the Kleopatra installation option.

Installation 1

Installation 2

  1. After installation is complete, launch the Kleopatra application using the desktop shortcut or the Start menu.

Installation 3

  1. Ensure the following components are installed: GnuPG, Kleopatra, GpgOL, GpgEX.
  2. Select them, then click Next.

Component Installation

Generating keys in Kleopatra #

  1. Open the Kleopatra application and click the New Key Pair button.

Key Generation 1

  1. Enter your nickname. Setting a passphrase is recommended. Click Advanced Settings.

Key Generation 2

  1. Select your preferred key algorithm and size RSA, 4096 bits, check the Authentication option, and click OK.

Key Generation 3

  1. Set a passphrase for the key, which will be used to protect it, then click OK.

Key Generation 4

Backing up the private key in Kleopatra #

  1. Go to the key management screen, select your private key, and click Backup Secret keys….

Backup 1

  1. Select the location where you want to save the key, and click Save.

Backup 2

  1. Ensure the key is saved in a secure location.
  2. It is also recommended to export the public key.

Backup 3

A backup copy of the private key should be encrypted with VeraCrypt or TrueCrypt and placed on external media for protection against data loss.

Importing public keys in Kleopatra #

  1. Open the email or other communication containing the public key.

Key Import 1

  1. Copy the public key to the clipboard.

Key Import 2

  1. Open the Kleopatra application and select the Notepad option.
  2. Paste the public key and click Import Notepad.

Key Import 3

  1. Then certify the public key to confirm its authenticity by clicking Certify.

Encrypting messages in Kleopatra #

  1. Open the Kleopatra application and click Notepad, then paste/type the content of the message you want to encrypt into the text field.

Encryption 1

  1. Select the recipient’s public key from the list of available keys.

Encryption 2

  1. Click Encrypt Notepad.

Encryption 3

  1. After encrypting the message, copy the resulting text to the clipboard.

Encryption 4

  1. You can now share the encrypted text in another app, such as via an instant messenger, or save it to a file.

We do not need to import the public key again when encrypting the next messages. The key will be saved in the program files.

Decrypting messages in Kleopatra #

  1. Open the encrypted message.
  2. Copy the encrypted text to the clipboard, then open the Kleopatra application.
  3. Click Notepad and paste the encrypted text.

Decryption 1

  1. Click Decrypt / Verify Notepad. If prompted for a passphrase, enter the passphrase for your private key.

Decryption 2

Signing messages in Kleopatra #

  1. Open the Kleopatra application and click Notepad, then paste the content of the message you want to sign into the text field.

Signing 1

  1. Select your private key from the dropdown list in the Sign as field.

Signing 2

  1. Click Sign Notepad.

Signing 3

  1. Copy the signed text to the clipboard.
  2. You can now share the signed text in another app, such as via an instant messenger, or save it to a file.

Avoid signing messages that seem universal. For example, a signed “I agree” or “It’s me” message can be saved and used to impersonate you in another conversation. Signed messages should be complete sentences describing the purpose and circumstances of the signature.

Verifying messages in Kleopatra #

  1. Open the signed message and copy its content to the clipboard.
  2. Open the Kleopatra application, click Notepad, then paste the signed text into the text field.

Verification 1

  1. Click Decrypt / Verify Notepad.
  2. Kleopatra will display the verification result, informing you whether the signature is valid.

Verification 2

We do not need to import the public key again when verifying subsequent signatures of the same author. The key will be saved in the program files.


Tags: