File Encryption and Decryption easily and quickly

GnuPG is a complete and implementation of OpenPGP as defined by RFC4880 (also known as PGP).

GnuPG allows you to encrypt and sign your data and communications. It has a flexible system of keys, along with accessor modules for all types of public key directories

GnuPG, also known as GPG, is a line tool , with features for easy integration with other applications. A plethora of frontend applications and libraries are available. GnuPG also provides support for S/MIME and Secure Shell (ssh).

Let's create a simple text file with the help of the gedit tool that is already preinstalled on Kali Linux.

To create a file, type

Command: gedit iguru.txt

To encrypt this file, type the following command:

Command: gpg -c iguru.txt

which also asks you to set your password and will create a new file with the name iguru.txt.gpg

Enter “ls”To list all the files in the current directory and as you can see, we now have two files, i.e. iguru.txt and iguru.txt.gpg (which were encrypted) and are very difficult to recover or break.

To view the contents of the encrypted file, type “cat iguru.txt.gpg”As shown below:

To decrypt the same file, type “gpg iguru.txt.gpg”In the same terminal that exports the original file.

 

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by Anastasis Vasileiadis

Translations are like women. When they are beautiful they are not faithful and when they are faithful they are not beautiful.

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).