Store notebooks in an encrypted folder

Jørgen Skancke edited this page Aug 19, 2018 · 5 revisions


Available for linux users Encfs stores files in an encrypted folder. To read these files, they must be mounted to an empty directory.

1. Install encfs

This process varies depending on your linux distribution.

This example works for Arch Linux:

pacman -S encfs


apt-get install encfs

2. Move existing zim files

Important: Close Zim

mv ~/Notes Notes-old

3. Setup encfs folders

mkdir ~/.Notes

Hidden folder stores encrypted contents. Note the '.' dot.

mkdir ~/Notes

Same name as the folder Zim normally uses. Unencrypted files will be accessible here when mounted`

4. Start encryption

encfs ~/.Notes ~/Notes

this first time through, you will be prompted for a password, and some security settings. In the future, you will only need to supply a password. You will need to run this command each time you restart your computer before running zim

5. Move encrypt old notes

rsync -av ~/Notes-old ~/Notes

6. Remove old notes (optional)

Make sure zim starts normally and you can access your encrypted notebook first!

rm -rf ~/Notes-old


encfswrapper can be used to automate the process of mounting an encfs folder when zim is run. A quick tutorial is in the README.rst file hosted at

Truecrypt Method with Cloud Synchronization

There is an interesting solution using Truecrypt and Dropbox. Your notebook can be encrypted inside a truecrypt container and that container can be synchronized over the cloud using Dropbox. The catch here is that when you open the container and make changes to your notebook and close it again, Dropbox wouldn't synchronize the whole container, only the bits that've changed.

Here is an automated solution for that in Linux :

UPDATE (2018-05-01):

Truecrypt is now no longer maintained. This method will still work, but adapt it to be used with Veracrypt : the Truecrypt alternative.

The method in the above-linked blog post uses a bash shell to manage Truecrypt/Veracrypt and Zim. The following gist does the same but uses a Python script instead:

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.