News for hackers. Stuff that matters.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by maattdd on Monday October 02, 2023 @03:18AM (#37734908)
VeraCrypt is good but it doesn't work well with syncing, because changing any bit of the disk image invalidate the whole disk hash. Cryptomator works a bit differently (it changes the structure/names, but store the underlying encrypted files as files) so you can sync file by file.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by ale42 on Monday October 02, 2023 @03:52AM (#37735094)
I think that VeraCrypt and Cryptomator have very different use cases. And VeraCrypt has features like hidden volumes (not that most people would ever need those).
Re:VeraCrypt: Free, open source, disk encryption for Windows... by aborsy on Monday October 02, 2023 @04:06AM (#37735207)
Veracrypt is a disk encryption tool, not for syncing!
Re:VeraCrypt: Free, open source, disk encryption for Windows... by maattdd on Monday October 02, 2023 @06:02AM (#37736121)
I don't think you've understood my comment.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by aborsy on Monday October 02, 2023 @02:55PM (#37742751)
I have done this and been there before.

Dropbox syncs the deltas in LUKS and veracrypt disks. A change of a bit in plaintext changes the blocks that are involved, and only those blocks are updated. Most other tools don’t handle it properly.

That was around a decade ago. Today, one would use cryptomator, rclone, gocryptfs rtc.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by MikusR on Monday October 02, 2023 @05:14AM (#37735738)
And propper syncing tools can sync only the changed parts.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by maattdd on Monday October 02, 2023 @06:00AM (#37736107)
Do you know a syncing tool which would work with a VeraCrypt image? (rsync algo doesn't for example)
Re:VeraCrypt: Free, open source, disk encryption for Windows... by aeyes on Monday October 02, 2023 @08:14AM (#37737129)
Works fine with rsync here.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by Groxx on Monday October 02, 2023 @01:18PM (#37741348)
Rsync syncs only differing blocks of data by default - it's pretty much the reason it is so popular.

There are a lot of ways to lose that though. No rsync able to run and calculate block checksums on the server -> no block syncing. Change a byte in a file in an encrypted volume -> it might copy-on-write and make a wholly new encrypted "file" with everything different in the final encrypted data. Etc, it depends on a bunch of stuff interacting in ways that they might have legitimate reasons to not support.

Not sure what you're encountering, but if it's important to you there are a few ways to troubleshoot it. It might be possible to get it working.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by zeroimpl on Tuesday October 03, 2023 @08:13PM (#37759319)
By default if rsync sees any difference in metadata (timestamps), it just copies over the file fresh - first to a temporary file and then renames over the original. To do an in-place update you'd need to specify an arg for that. And even then, it needs to do a full read of both files to compare, so all it saves on is bandwidth.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by brokenmachine on Monday October 02, 2023 @08:29PM (#37746374)
Syncthing uses block syncing, so I imagine it would work well, although I haven't tried.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by apankrat on Monday October 02, 2023 @07:38AM (#37736880)
This can be remedied by using tools that can do block-wise (delta) copying of large files - https://bvckup2.com/kb/delta-copying