Forrest logo
back to the gocryptfs tool

gocryptfs:tldr:887cf

gocryptfs: Mount with the explicit master key instead of password.
$ gocryptfs --masterkey ${path-to-cipher_dir} ${path-to-mount_point}
try on your machine

The command gocryptfs --masterkey ${path-to-cipher_dir} ${path-to-mount_point} is used for mounting a directory encrypted with gocryptfs.

Here is a breakdown of the command:

  • gocryptfs is the command to run gocryptfs.
  • --masterkey indicates that you will provide the master key file in the cipher directory. The master key is required to decrypt the contents of the encrypted directory.
  • ${path-to-cipher_dir} is the path to the directory where the encrypted files are located. This directory should contain the necessary gocryptfs configuration files.
  • ${path-to-mount_point} is the path to an empty directory where you want to mount the encrypted files. After running the command, the decrypted contents of the encrypted directory will be accessible in this mount point.

In summary, this command mounts an encrypted directory using gocryptfs, providing the master key file and specifying the paths to the encrypted files and the mount point where they will be accessible in their decrypted form.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gocryptfs tool