cppcryptfs icon indicating copy to clipboard operation
cppcryptfs copied to clipboard

[Feature Request] Custom diriv Names

Open Vesnyx opened this issue 5 years ago • 4 comments

As was completed(?) in https://github.com/rfjakob/gocryptfs/issues/37, there should now be an parameter( "nametransform.DirIVFilename" ), that can be used to change the filenames for the "gocryptfs.diriv" files located in each directory.

Would this be possible to implement?

Vesnyx avatar May 10 '19 22:05 Vesnyx

From looking through the comments in https://github.com/rfjakob/gocryptfs/issues/37, I don't think gocryptfs has this feature yet.

It wouldn't be that hard to let the user specify the diriv filename when the fs is created. It would need to have a "." in it to make it not collide with any of the encrypted filenames.

Making the diriv filename random and different for each directory as dicussed in https://github.com/rfjakob/gocryptfs/issues/37 in would be harder.

I would prefer to wait and see how it gets implemented in gocryptfs it and do it the same way.

If you want to, you can change it to whatever you want and compile it. Just be sure to use a "." in the file name. It's defined here

https://github.com/bailey27/cppcryptfs/blob/ff5fa5e0e5b06dce4bc03b3a83d34a38a8462057/libcppcryptfs/crypt/cryptdefs.h#L62

bailey27 avatar May 12 '19 18:05 bailey27

Why is it a separate file rather than a param in the gocryptfs.conf?

rekcuFniarB avatar Oct 07 '19 19:10 rekcuFniarB

Why is it a separate file rather than a param in the gocryptfs.conf?

I noticed that it appeared at each folder level instead of just one gocryptfs.conf file.

yfdyh000 avatar Mar 10 '22 05:03 yfdyh000

Finally, from version 1.4.4.0, we can get rid of diriv files. Yay!

san-r avatar Jun 18 '22 04:06 san-r