Instructions on how to encrypt files and folders on Ubuntu

If you are familiar with Ubuntu, you will see that there are many things on Ubuntu that are many times better than Windows 7 and 10. Of course we are not talking about games because there is no operating system better suited for gaming than Windows. However, the way to encrypt files and folders on Ubuntu is different. On Ubuntu there are many security methods to help you protect your privacy to the maximum.

Instructions for encrypting files and folders on Ubuntu

Step 1: To encrypt files and folders on Ubuntu, we first need to install Gnupg on Ubuntu, download Gnupg here.

Instructions on how to encrypt files and folders on Ubuntu Picture 1

Step 2: Click on the Gnupg folder to extract it on Ubuntu.

Instructions on how to encrypt files and folders on Ubuntu Picture 2

Step 3: Continue clicking Install to install this software on Ubuntu. After installation is complete you can close it.

Instructions on how to encrypt files and folders on Ubuntu Picture 3

Step 4: In case you cannot install Gnupg, press the key combination Ctrl + ALT + T to open the Terminal window, here you type: sudo apt install gnupg2

Instructions on how to encrypt files and folders on Ubuntu Picture 4

Type the password before confirming the installation. When typing the password, the characters will not appear.

Instructions on how to encrypt files and folders on Ubuntu Picture 5

Step 5: If the system asks if you want to continue> press Y then enter to continue the installation.

Instructions on how to encrypt files and folders on Ubuntu Picture 6

Step 6: After installation is complete, to see the list of encryption methods, run the command below: gpg2 --version

Instructions on how to encrypt files and folders on Ubuntu Picture 7

The AES algorithm in this list is AES128 . You can select another encryption algorithm as the default by adding a line to configure the file that GnuPG uses when running. The configuration file is called gpg.conf, located in a hidden folder called .gnupg in the Home directory.

Instructions on how to encrypt files and folders on Ubuntu Picture 8

Step 7: The next step now is to edit the configuration file in gedit, run the command below in the Terminal window: gedit -/.gnupg/gpg.conf

Instructions on how to encrypt files and folders on Ubuntu Picture 9

Step 8: When it opens, type ciphe - algo AES256 and save it.

Instructions on how to encrypt files and folders on Ubuntu Picture 10

Step 9: Now we start encrypting files and folders on Ubuntu, for example encrypting with file -/Documents/Taimienphi.vn/Taimienphi.vn.txt

Instructions on how to encrypt files and folders on Ubuntu Picture 11

>> Type the command gpg --symmetric --cipher-algo AES256 -/Documents/Taimienphi.vn/Taimienphi.vn.txt

Instructions on how to encrypt files and folders on Ubuntu Picture 12

Then enter the password twice to confirm the password for that encrypted file.

Instructions on how to encrypt files and folders on Ubuntu Picture 13

Step 10: After encrypting files and folders on Ubuntu, we can add a password to that encrypted file with the command gpg --symmetric -/Documents/Taimienphi.vn/Taimienphi.vn.txt

Instructions on how to encrypt files and folders on Ubuntu Picture 14

Step 11: Then enter the password to complete the process of encrypting files and folders on Ubuntu.

Instructions on how to encrypt files and folders on Ubuntu Picture 15

Inside the encrypted folder, you will now see another file appear with the *gpg extension, which means the encryption of Files and folders on Ubuntu has been completed.

Instructions on how to encrypt files and folders on Ubuntu Picture 16

Step 12: To rename the encrypted file, type the command gpg -o Taimienphivn.enc --symmetric -/Documents/Taimienphi.vn/Taimienphi.vn.txt

Where > Taimienphivn.enc is the new file name.

>>Taimienphi.vn.txt is the original file name.

Instructions on how to encrypt files and folders on Ubuntu Picture 17

Above is all the information that users need to know when researching file and folder encryption on Ubuntu. With the instructions for encrypting files and folders on Ubuntu, we can encrypt files ourselves as desired. And there are many other tips we want to share with you about Ubuntu, but TipsMake would like to see you in the next articles on the TipsMake page.


With the above trick, we know another way to encrypt data in Ubuntu. Indeed, data encryption is not as simple as Windows, but in terms of security features, it is not inferior. One thing to note is that readers must check the version of Ubuntu they are using because not all versions support it. To avoid having to check the Ubuntu version , another way is to always update it to the latest version.

4.5 ★ | 2 Vote

May be interested

  • How to encrypt files on Google Drive with SyncryptoHow to encrypt files on Google Drive with Syncrypto
    to protect files from unauthorized access by others, we can proceed to encrypt files using syncrypto. the service can encrypt files on google drive.
  • How to open admin and folder permissions in NautilusHow to open admin and folder permissions in Nautilus
    in nautilus on ubuntu, users can view all files and folders on their system. sometimes you may want to edit the basic file configuration like when installing for other programs. but there are some system files and folders that you cannot open and edit from nautilus unless you are open as administrator.
  • Instructions to encrypt and 'hide' BitTorrent traffic dataInstructions to encrypt and 'hide' BitTorrent traffic data
    through the previous analysis articles on tipsmake.com, we understand the basics of bittorrent as a form of storing and sharing files and data online. besides, the transmission and sharing of unallocated files and data is a contradictory form, for example when we use and download files from a fixed source.
  • How to interact with files and contacts in GoHow to interact with files and contacts in Go
    mastering how to use the file system with the useful functions below will greatly help your work. here's how to interact with files and folders in go .
  • Instructions for hiding files and folders in Windows 10 SearchInstructions for hiding files and folders in Windows 10 Search
    in windows 10, the cortana box or windows search item can help you search all files and folders in your computer. however, if you don't want others to view certain files or folders, you can hide them in windows search results. let's see how to hide a folder so it doesn't appear in the search results of file explorer, cortana or search item in the taskbar!
  • How to encrypt files before uploading to the cloudHow to encrypt files before uploading to the cloud
    many people encrypt their files before uploading them to the cloud. the reason is that cloud services promise security, but they are not impenetrable.
  • What's New in Ubuntu 21.10?What's New in Ubuntu 21.10?
    version 21.10 is the latest release of ubuntu and although canonical is turning more attention to the cloud and developers, ubuntu 'impish indri' still comes with some notable changes for those users use the ubuntu desktop every day.
  • Instructions for downloading Ubuntu - Download the latest UbuntuInstructions for downloading Ubuntu - Download the latest Ubuntu
    instructions for downloading ubuntu - download the latest ubuntu. ubuntu is free and open source software, which means that users can freely run, copy, distribute, research, change and improve the software. that's one reason why software developers or developers often use this ubuntu operating system.
  • How to compress and decompress files and folders on a MacHow to compress and decompress files and folders on a Mac
    on the mac, there is a built-in tool to compress and decompress files and folders that users do not need to install the application, if only the basic compression and decompression features.
  • The simplest way to show and hide folders on Windows 10The simplest way to show and hide folders on Windows 10
    by hiding folders on windows 10 computers, users can hide them without anyone knowing. especially for folders containing important files and documents, hiding folders on windows 10 is extremely necessary. to know how to hide and show folders on windows 10, readers can refer to the instructions below and follow the steps.