Skip to main content

Encrypt and decrypt files using GPG | gpg4win Kleopatra Tutorial

 Encrypt and decrypt files using GPG | gpg4win Kleopatra Tutorial 

 

In this blog, we will explore how can we encrypt and decrypt files using GPG. 

GPG (GNU Privacy Guard) is a free encryption software which is compliant with OpenPGP Standard. 

We will learn how to use PGP encryption to send encrypted messages to anyone. 


How to do the setup 

  1. Download software from here 

  1. Click on the exe file, install it with all default settings 

  1. Generate the keypair 


Once installation is complete, below screen will come  




Click on New Key Pair — you can provide any random values. 

Provide the passphrase which will be used later to import or decrypt any file. 





Store the keypair on your machine by selecting an option “Make a Backup of your keypair”. This will store two files; one is private key and one is public key. 

Private key must not be shared by anyone else. Public Key can be shared with anyone so that they can share the secrets in an encrypted form. 





How to share secrets 

Now we will see how we can share the secrets with anyone. For ex- My colleague ask me for the database password then how can I share it in a secure way 


Steps: 

  1. Import the public key of the user 

Click on Import — select the public key of the user which he has provided. It is recommended that we share the public key as an attachment. 


Finally, you will see the pop up message “Import is completed successfully” 

2. Copy the secrets 

Open notepad- copy the secret — click on tools -> clipboard-> encrypted -> Add recipient ( select user) 




How to open the encrypted text 

Now we will see how we can open the encrypted text send by anyone 

  1. Provide your public to the user. User has to import your public key 

  1. User will share the encrypted message 

  1. Open Kelopatra — Click notepad — paste the encrypted message-> click on Decrypt/verify as highlighted below 



This will prompt for the passkey and after that you should be able to see the decrypted text 

K11 

Congratulations, you have successfully explore how can we encrypt and decrypt files using GPG. 














 


Comments

Popular posts from this blog

How to Reset Forgotten Password on Kali Linux

          Kali Linux is a Linux distribution used in the Cybersecurity domain. It is maintained and funded by Offensive Security. Kali Linux is Debian based and it uses the Debian repository for most of its packages. This Linux distribution is designed for digital forensics and penetration testing. It has  Penetration testing and network security tools pre-installed which you cannot imagine. It is completely free and open source. So you can use it for free and even contribute to its development.         Now forgetting login credentials is an annoying thing in the case of any operating system. Resetting forgotten passwords often comes with the risk of data loss and requires a lot of effort if you are not a technology enthusiast. This article will be a simple step-by-step guide on resetting forgotten passwords on Kali Linux. How to Reset Forgotten Password on Kali Linux?           In this section, we will ...

How to Start Bluetooth Services in Linux & Kali Linux (Step-by-Step Guide/Fix Bluetooth Not Working)

       If your Bluetooth is not working in Kali Linux or any Linux system, this guide will help you start Bluetooth service in Linux using simple command line steps…              Bluetooth is an essential feature in modern Linux systems—whether you're connecting wireless headphones, transferring files, or pairing devices for pentesting labs in Kali Linux. But unlike Windows, Bluetooth in Linux doesn’t always “just work” out of the box. If you’ve ever faced issues where Bluetooth won’t start, devices aren’t visible, or services seem inactive—this guide is exactly what you need. 🚀 Why Bluetooth Fails to Start in Linux? Before jumping into commands, let’s understand the common causes: Bluetooth service is disabled or inactive Required packages are not installed Systemd services are not running Hardware is blocked (rfkill) Kernel modules are not loaded 🛠️ Step 1: Check Bluetooth Service Status First, verify whether the Bluetooth servi...

Office 365: How to force users to change their password /O365

First we will see how to do it for one account then we will see how to do it for multiple accounts. 1. Install Prerequisites:       We will need MSOnline module to connect to Office 365 with PowerShell.         Open a PowerShell prompt with administrator rights : 2. Install MSOnline module :               It will Also install NuGet Provider , accept and yes to continue.   3.Connect to Office 365     Use Connect-MsolService  to open the Microsoft Office 365 sign in window :       Now a Pop Up windows will open For Microsoft Oath2 Security , Name and password of Administrative user or Global admin must be given here for making any changes.     4.Reset user password :           4A.Force new password :                        With this command we can set a password for a...