Encfs

From wikinotes

encfs is a cross platform virtual filesystem that allows you to mount/decrypt directories.
Useful for encryption over network shares, or sharing secrets within dropbox.


WARNING:

encfs is being infrequently/community maintained.
The author hints at using newer alternative like ecryptfs or gocryptfs.

NOTE:

Keep backups of your .encfs6.xml files. Without them, your backups are useless.

Install

Linux

sudo pacman -S encfs

FreeBSD

sudo pkg install fusefs-encfs
sudo kldload fusefs.ko
sudo sysctl vfs.usermount=1		## allow non-root users to perform mounts

Start fuse on boot

# /boot/loader.conf
fuse_load="YES"

You may need to configure fuse to allow non root user mounting. (untested)

# /etc/fuse.conf
user_allow_other

Windows

Use encfsmp.
2016- encfs4win (cli port of encfs) depends on dokan which is no longer maintained.

Usage

encfs ~/encrypted/location ~/decrypted/location   # Create, or mount

fusermount -u ~/decrypted/location                # unmount on linux
umount ~/decrypted/location                       # unmount on bsd