We use cookies to improve our services and provide a better experience. By continuing to use this site, you agree with our Cookies Policy.

Tutorials
More than 400 step-by-step articles to guide you through online project development.
HomeTutorialsHosting ServicesCloud Servers

How to Easily Encrypt Your Data on Linux

Windows Cloud Server
USA VPS
cPanel KVM
OpenVZ VPS
Germany Cloud Servers
Ubuntu VPS
Brazil VPS
Linux Cloud Server
KVM VPS
Linux KVM Hosting

Data encryption is one very solid security measure/precaution that everyone who owns data with significant personal or objective value should perform. What data encryption does is securing your data when they fall into the wrong hands. While there are decryption methodologies and techniques that can be used to decrypt any encrypted data, some of it may not be retrieved, or the time and effort that it will take may lead the decryptor to the decision that your data isn’t worth it. There are many tutorials on howtoforge.com that show one way or another to decrypt your data. This one will show the most easy-to-use tools that can do the job for us. For this purpose, I will showcase the decryption of a removable media drive.

Follow These Steps to Encrypt Your Data on Linux

So you need to quickly encrypt the contents of you pen drive. The easiest solution is to compress them using the 7z archive file format, that is open source, cross-platform, and supports 256-bit encryption using the AES algorithm. Simply add files to archive, set a password and select ‘Encrypt file list too’.

Open the utility called “Disks” or “GNOME Disks” and choose your pendrive from the list on the left. Then unmount any mounted partitions of the disk by clicking on the “Stop” button located just under the partitions view. You can also delete them if you want by pressing the “Minus” button just next to it.

The next step is to add a new partition by pressing the “Plus” button. A new window will pop up, so you can choose the “Encrypted” option on the “Type” options list. Define the size from the top, and then add a name and a strong passphrase. Every time you try to mount the disk, you will be asked for this passphrase.

The third option that I will show basically utilizes the popular GNU PG tool to encrypt anything you want in your disk. What we need to install first are the following packages: gpg, seahorse, seahorse-nautilus, seahorse-daemon, and seahorse-contracts which is needed if you’re using ElementaryOS like I do. The encryption will be based on a key that we need to create first by opening a terminal, and typing the following command:

gpg –gen-key

After the technical parameters of the key are set, you will be asked to enter some details that will help with the key generation procedure. Set a passphrase and let gpg generate the key. Doing things like moving your mouse or writing some text help in the generation of a good key. After this is completed, you can close the terminal and navigate to your removable volume again to locate the files you want to encrypt. Select the files and right click to choose the “encrypt file” option. This will open up a new window allowing you to select which key you want to use for the encryption. Choose the one you want and click the “Ok” button and you’re done.

Linux KVM Hosting
Windows Cloud Server
Linux Cloud Server
Germany Cloud Servers
KVM VPS
USA VPS
cPanel KVM
Brazil VPS
OpenVZ VPS
Ubuntu VPS
Rate this Tutorial:
No Comments Leave a Comment
Leave a Comment

Other (3)

Popular Keywords