Encryption tools
What is gocryptfs? An introduction to Jakob Unterwurzacher's encrypted overlay filesystem
gocryptfs is an encrypted overlay filesystem written in Go. It is built on the go-fuse FUSE library and was inspired by EncFS. The project aims to fix EncFS's security issues while keeping performance good.
- Tool
- gocryptfs
- Made by
- Jakob Unterwurzacher
- Official site
- github.com/rfjakob/gocryptfs
- Category
- Encryption tools
Who makes gocryptfs
gocryptfs is made by Jakob Unterwurzacher. The project's official website is its GitHub repository, linked below this page.
Official website: github.com/rfjakob/gocryptfs
What gocryptfs is for
gocryptfs encrypts files by acting as an overlay filesystem: it sits on top of existing storage and stores the data in encrypted form. Because it is built on go-fuse, it runs through FUSE rather than as a kernel component.
The project began as a response to EncFS. Its stated aim is to fix that tool's security issues without giving up good performance. Its security was audited in 2017.
Who gocryptfs is for
The project does not state a target audience. Its feature set points to people who want file-level encryption on Linux, which is the native platform, and to those who need to integrate encryption into other software.
An official stable CLI ABI is documented for calling gocryptfs from apps or scripts, so developers and administrators can automate it. Users are advised to keep a copy of the master key printed at init.
Notable capabilities
The capabilities below come from the project's documented features and cover its modes, platforms, ciphers and tooling.
- Reverse mode presents an existing plain directory as an encrypted view.
- The on-disk format adds a fixed overhead per 4kB block, using a nonce and an authentication tag.
- On CPUs without AES-NI, it can use OpenSSL through a thin wrapper.
- Its speed output lists AES-GCM, AES-SIV and XChaCha20-Poly1305 cipher implementations.
- A Python tool can decrypt files and file names without FUSE.
- Precompiled binaries are provided for x86_64 Linux systems, and releases also include arm64 binaries.
- Release tags from v0.4 onward are cryptographically signed.
How gocryptfs fits encryption tools
Among encryption tools, gocryptfs works at the filesystem layer. It protects stored files rather than network traffic or messages, so it covers a different part of the stack from VPNs and secure messengers.
Platform support varies. Linux is native and gocryptfs is packaged in most Linux distributions. macOS support is beta-quality. On Windows, an independent C++ reimplementation called cppcryptfs is available.
For readers interested in cryptography more broadly, the documented cipher implementations and the audited design give a concrete example of how an encrypted filesystem is built and checked.
Frequently asked questions
What is gocryptfs used for?
gocryptfs is used to keep files encrypted on disk as an encrypted overlay filesystem. It is written in Go and built on the go-fuse library.
Who develops gocryptfs?
gocryptfs is developed by Jakob Unterwurzacher. The official website is the project's GitHub repository.
Does gocryptfs work on Windows or macOS?
Linux is the native platform, and macOS support is beta-quality. On Windows, an independent C++ reimplementation called cppcryptfs is available.
Has gocryptfs been security audited?
Yes, its security was audited in 2017. The project was inspired by EncFS and aims to fix its security issues.
What is gocryptfs reverse mode?
Reverse mode lets an existing plain directory be presented as an encrypted view.
Cipherholt is independent and is not affiliated with Jakob Unterwurzacher. Product names belong to their owners. Features change; confirm details on the official website.