Skip to content

Support for gocryptfs as backend #4194

Open

Description

@Vesnyx

What problem are you are trying to solve?

Support for a gocryptfs backend.

How do you think rclone should be changed to solve that?

By adding support for a gocryptfs backend... ;)

Why?

https://github.com/rfjakob/gocryptfs

gocryptfs is an encrypted file system overlay that functions very similar to the crypt remote. However, one of the aspects that I find lacking in the current iteration of crypt is its inability to support salted folder and file names. This means that all folders and files with the same name will encrypt to the same value. gocryptfs circumvents this with a file in each folder (gocryptfs.diriv). While not ideal, it still suits my circumstances.

There are some other users who would like something akin to this:
https://forum.rclone.org/t/salted-encryption-of-filenames/9753/10

I might try working on adding this, but if anyone has any feedback or wants to take a stab at it, go ahead. I may also see if I can do something similar with the rclone crypt backend but I suspect that'll be a bit more difficult and should be a different issue entirely.

Activity

  1. ncw commented on May 3, 2020

    @ncw
    Member

    It is certainly a weakness of the current directory encryption mode. I didn't like the idea of needing extra transactions to read the directory nonce but you are right it could be interesting.

    If you wanted you could add a mode to the crypt backend which did this.

  2. added this to the Help Wanted milestone on May 3, 2020
  3. clach04 commented on Sep 10, 2020

    @clach04

    Compatibility with gocryptfs would be useful in of itself.

  4. clach04 commented on May 29, 2021

    @clach04

    @Vesnyx were you able to spend time on this?

  5. Vesnyx commented on May 30, 2021

    @Vesnyx
    ContributorAuthor

    Unfortunately not. I don't think re-implementing the gocryptfs encryption is the way to go. Until rfjakob/gocryptfs#480 gets implemented, I most likely won't be working on this.

  6. gotjoshua commented on Jul 1, 2022

    @gotjoshua

    would love to see gocryptfs as a backend type or an option for the crypt backend

  7. TerrorFactor commented on Feb 26, 2026

    @TerrorFactor

    rfjakob/gocryptfs#480 (comment)

    They seem open to it. See this question in the link ("how would the ideal library to support rclone look?").

    I'm no cider, but I started using gocryptfs before encryption was built into rclone, it would be nice if I could simplify my setup to only use rclone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions