cppcryptfs
cppcryptfs copied to clipboard
[Feature Request] Custom diriv Names
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?
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
Why is it a separate file rather than a param in the gocryptfs.conf
?
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.
Finally, from version 1.4.4.0, we can get rid of diriv files. Yay!