EncFS – Securely encrypt important data

EncFS - Securely encrypt important data

In our turbulent times it is better to encrypt everything. First, computers became powerful enough to carry out on-the-fly encryption without performance loss. Second, you never know when the people in uniform will cut out the door and carry your system unit. Today consider the simplest and very effective way to protect your data – EncFS.EncFS is a file system in user space (FUSE), which is transparent encryption. You only need to enter the password, everything else takes care of EncFC. In contrast to the sham data protection type BitLocker, EncFS uses proven industry standard encryption without any bookmarks, backdoors and spare keys for the government. Source code is available EncFS allows anyone to verify this.
Install the EncFS encryption:

sudo apt install encfs libpam-encfs
Among Linux users a new school it is not accepted, but still after installation it is recommended to read the documentation:
man encfs
How to use encryption with EncFS in Linux Mint

First we need to create two directories. One for the physical storage of encrypted files, and the other to use as the mount point. Create them in your home directory:
mkdir -p ~/.private ~/private
Directory names of course can be other
Creating an encrypted file system EncFS for created directories:
encfs ~/.private ~/private
in the process of creating select expert mode: “x” – We are asked to select the mode and set a password. Then EncFS will be ready to work. In addition, you will have the opportunity to choose the encryption algorithm name “Null” – thus, files will have familiar names and will not re sync when using different computers.

EncFS - Securely encrypt important data

When you enter a password, do not forget to choose it equal to the password of the login user in the system, not to forget the password otherwise you risk losing data.

EncFS - Securely encrypt important data

Here are the encoded files

EncFS - Securely encrypt important data

NOTE: never delete a file named .encfs6.xml, it contains information about the encryption settings, if you lose the file, will not restore your data back

To unmount the encrypted directory:

fusermount -u ~/private

CryptKeeper is a GUI for using EncFS

sudo apt install cryptkeeper
all necessary features of EncFS present in this GUI. After starting the program will not open any window, you need to find an applet application on the panel.

EncFS - Securely encrypt important data

In CryptKeeper you can create a new encrypted folder or import already created by us through the terminal.
Don’t forget to check the program settings, enter the name of your file manager, I have (Linux Mint Cinnamon), so my file manager is nemo.

EncFS - Securely encrypt important data

Hope this article helped you to understand this question. You can for example synchronize a folder /.private with any cloud drive such as google drive. No one will be able to read out your private information!
May the Force be with you,
Good Luck!!!

Share to friends
Rate author
( No ratings yet )
Notify of
Inline Feedbacks
View all comments
Franz Ulenaers
Franz Ulenaers
2022 years ago

It is good to set immutable bit for file .encfs6.xml !
You can do that with following command :
sudo chattr +i .encfs6.xml
A file with the i attribute cannot be modified when using linux filesystems .
It cannot be deleted or renamed, no link can be created to this file and no data can be written to the file.
When set, prevents, even the superuser, from erasing or changing the contents of the file.