encfs

Antivirus, forensics, intrusion detection, cryptography, etc.
Post Reply
Message
Author
labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

encfs

#1 Post by labbe5 »

https://www.howtoforge.com/tutorial/enc ... on-ubuntu/

If you have some files to encrypt, encfs can help you do just that. Even beginners can do it with a few command lines.

Using Mintpup, or Debiandog, or Xenialdog, you can easily install encfs (sudo apt -y install encfs)
-y= yes for all prompts

Then, you create the directories encrypted and decrypted in your home directory :

mkdir -p ~/encrypted
mkdir -p ~/decrypted

Then, to mount ~/encrypted to ~/decrypted, simply run :

encfs ~/encrypted ~/decrypted

If you run this command for the first time, the EncFS setup is started, and you must define a password for the encrypted volume.

enter "p" for pre-configured paranoia mode

If you do mount, you will see a line (with your own user ID) : encfs on /home/falko/decrypted type fuse.encfs (rw,nosuid,nodev,relatime,user_id=1001,group_id=1001)

Following the mount command, do this to check your setup :

df -h

(your folder will be with a different name and size) encfs 27G 1.7G 24G 7% /home/falko/decrypted

Then, to save your data in encrypted form, put your data into the decrypted directory, just as you would do with a normal directory.

At this time in the process, you have both encrypted and decrypted files in your two newly created folders.

To unmount the encrypted volume, run :

fusermount -u ~/decrypted

You can check the outputs with mount and df -h, and you will see that the EncFS volume isn't listed anymore.

To mount it again, run :

encfs ~/encrypted ~/decrypted

You need your newly created password to mount the EncFS volume.

As a result, you have two folders, an empty decrypted folder and an encrypted one, until your mount your EncFS volume again, then your files are available again in decrypted folder.

Passwords can be stored in such a volume, mounted and unmounted at will, as well as other sensitive information.

Information on how to setup EncFS is part of the website link above.

Post Reply