LinuxCommandLibrary

gocryptfs

Encrypted overlay filesystem using FUSE

TLDR

Create encrypted directory

$ gocryptfs -init [cipher-dir]
copy
Mount encrypted directory
$ gocryptfs [cipher-dir] [mount-point]
copy
Unmount
$ fusermount -u [mount-point]
copy
Change password
$ gocryptfs -passwd [cipher-dir]
copy
Show info
$ gocryptfs -info [cipher-dir]
copy

SYNOPSIS

gocryptfs [options] cipherdir [mountpoint]

DESCRIPTION

gocryptfs is an encrypted overlay filesystem written in Go. It encrypts files individually using AES-256-GCM, storing ciphertext in a directory while presenting plaintext through a FUSE mount.
The tool provides file-level encryption with encrypted file names, enabling safe cloud backup of encrypted data. Metadata leakage is minimized compared to full-disk encryption alternatives.

PARAMETERS

CIPHERDIR

Encrypted directory.
MOUNTPOINT
Where to mount.
-init
Initialize new volume.
-passwd
Change password.
-info
Show volume info.
-fg
Run in foreground.
-allow_other
Allow other users.
--help
Display help information.

CONFIGURATION

gocryptfs.conf

Per-volume configuration file stored in the cipher directory, containing encryption parameters and the encrypted master key.

CAVEATS

FUSE required. File sizes visible. Password recovery impossible without master key backup.

HISTORY

gocryptfs was created as a modern, audited alternative to EncFS, using authenticated encryption and written in Go.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community