Skip to content

About

a tool to help you mount an encrypted folder using gocryptfs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

gocryptfs.el

gocryptfs.el is an Emacs Lisp package that provides native Emacs commands to initialize, mount, unmount, and manage multiple gocryptfs-encrypted directories (“vaults”).

The package integrates gocryptfs cleanly into the Emacs workflow, without shell wrappers, while correctly handling the real-world constraints of FUSE-based filesystems.

Security Considerations

  • The password is never passed through the shell
  • No use of echo | gocryptfs
  • No plaintext password storage
  • Sensitive input is sent exclusively via the gocryptfs process standard input

Requirements

Installation

(use-package gocryptfs
  :straight (:local-repo "~/your folder/gocryptfs")
  :custom
  (gocryptfs-vaults
   '((:name "personal"
            :cipher-dir "~/.tomb"
            :mount-dir "~/Perso")
     (:name "pro"
            :cipher-dir "~/.tomb2"
            :mount-dir "~/Pro"))))

Usage

Initialize a vault

Before mounting a vault for the first time, it must be initialized:

M-x gocryptfs-init-vault

This command:

  • creates required directories if needed
  • validates that the cipher directory is empty
  • securely asks for a password (twice)
  • runs gocryptfs -init

Mount a vault

M-x gocryptfs-mount

You will be prompted to select a vault and enter its password.

The mount process is asynchronous and does not block Emacs.

Unmount a vault

M-x gocryptfs-umount

Latest commits

About

a tool to help you mount an encrypted folder using gocryptfs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages