CryFS

CryFS is an open-source, cryptographic filesystem designed for local and cloud storage like Dropbox, iCloud, OneDrive and others. It provides end-to-end encryption for files and directories, protecting against hackers and data leaks. CryFS is released under the LGPL license and available on GitHub.

Content

Key Features

Security Benefits

Install latest release

Linux

Setup an encrypted directory (vault)

Once installed, you can create an encrypted directory by calling cryfs basedir mountdir in the terminal. You can name the directories like you want, basedir and mountdir are used for demonstration purposes. If the corresponding directories don't exist yet, CryFS will offer to create them for you.

cryfs basedir mountdir

This will ask you some questions about the configuration of your encrypted directory. For now, we just say yes when we're asked whether to use the default settings. CryFS will also ask you for a password and then you're good to go.

You can modify files and directories in the mountdir directory. CryFS will then encrypt them and store the encrypted data in the basedir directory. The mountdir directory is a virtual directory, meaning it doesn't actually exist on your harddisk, but is provided by CryFS. Whenever you access files or directories in it, CryFS handles the decryption in the background, so that you can work with mountdir as if it was a real directory. This way, even if someone steals your harddisk, your data is still secure, since they can't decrypt it.

Using the encrypted directory (vault)

You can work in mountdir, add files to it, modify them, add subdirectories, and do whatever you want with it. Everything you store inside will be encrypted and stored in basedir. The unencrypted content of mountdir will never be stored to the harddisk, so everything on your harddisk is encrypted. CryFS uses an encryption scheme that doesn't only encrypt file contents, but also the file sizes, file metadata and directory structure is encrypted. Let's take a look.

Mount the encrypted directory

The command below will mount the mountdir, in other words, open the vault, where you put your files.

cryfs basedir mountdir

Unmount the encrypted directory

The command below will unmount mountdir, in other words, close the vault and secure the access of your files.

cryfs-unmount mountdir

Summary

basedir is the directory where your files are encrypted.

mountdir is a virtual unencrypted representation of your vault, this is where you add or remove files and directories.

Official CryFS


source: www.cryfs.org/tutorial