Why Encrypt Your Folders?

Encrypting a folder is the best way to prevent access to it by unauthorized people.

Encrypting folders separately isnt something Linux can do by itself, youll have to use third-party software.

Terminal window showing the manual page for the Mutt email client on Linux

This is where VeraCrypt comes in.

What Is VeraCrypt?

VeraCrypt is a free, open-source encryption tool thats used by amateurs and professionals alike.

Four hard drivers sticking out of a rack-mount server that’s being used as a NAS.

Its very easy to use and will run on Linux as well as Windows.

For example, we also used it toencrypt a Windows system drive.

There are otherTrueCrypt alternativeout there besides VeraCrypt.

File Manager open on the System76 Gazelle laptop.

Hannah Stryker / How-To Geek

For that, go to theVeraCrypt download pageand pick the right package for your distro.

For most distros, you’re able to choose between a console version or a GUI.

Im using the graphical version for my Mint install.

The VeraCrypt download page

Start the program, and youll come to the VeraCrypt interface.

Theres a lot going on here, so lets go over some basics.

Any encrypted folder you create will be a separate volume.

The VeraCrypt interface

You create them by clicking on Create volume below the main window, to the left.

To encrypt a folder, you want to Create an encrypted file container, which is selected by default.

Next, you get the choice to create a standard or hidden volume.

The create volume button in VeraCrypt

For our purposes, standard (the default) is just fine.

If youre interested in some extra security, check out VeraCrypts explanation linked in the wizard.

Now it’s crucial that you create a file that will become your encrypted volume.

Creating a file container in VeraCrypt.

Just use the navigator to pick the folder where you want the container to live.

For purposes of this article I made the name very obvious, but I recommend you be more circumspect.

AES is a solid encryption protocol, and the hash algorithm is secure, as well.

Choosing between standard or hidden volume in VeraCrypt.

Next up, you set the size for the new volume.

Now comes the part that can be tricky, namely setting a password.

I recommend you use our tips tocreate a strong passwordand then use apassword managerto save it.

Creating a new file using VeraCrypt.

Then youll have to choose thefile systemthe volume is in.

If youre not sure what that means, stick with the default (FAT).

Next is an odd, but cool, quirk of VeraCrypt.

Setting encryption strength in VeraCrypt.

confirm you only shake it inside the window.

Once youve filled the bar in the center up, select format at the bottom.

Acknowledge the message, then go to your file system, to where you created the volume.

Setting VeraCrypt volume size.

initiate the file and youll be prompted to select a program to do so.

Pick VeraCrypt, enter the password you created, and then your Linux systems admin password.

VeraCrypt will do some work in the background, and then initiate the folder.

Setting a password in VeraCrypt.

you’ve got the option to now move files between windows like you would any other file.

Thats all there is to encrypting files on Linux with VeraCrypt.

That seems like a small price to pay for security, though.

VeraCrypt setting file system.

Shaking your mouse in VeraCrypt.

Finding your VeraCrypt volume on your device.

Inside a VeraCrypt volume.

Your mounted drives in VeraCrypt