Tag Info

New answers tagged

0

"Specifically, I want a version control tool like Git or Mercurial to be able to efficiently handle the files ... I need an efficient way to preserve the edit history." The rsyncrypto tool can help version control tools efficiently handle small changes to files, but in bigger chunks than one-line-at-a-time. The rsyncrypto is designed to encrypt files (using ...


1

You may be better off encrypting the file using normal file encryption, and then encrypting the diff that goes with the file, except for the line numbers included in the diff. You could also extract the line number changes from the diff in advance. Otherwise you will have to keep track of the lines, and make sure that the nonces used for each line stay ...


2

Yes, it's possible. Encrypting each line independently, like you suggest is the way to go. Most likely you will want to use a symmetric encryption algorithm independently for each line – i.e. have a new unique IV/nonce per line. That's the simplest to implement. However, it means every line is up to 128 bits longer. If you can't live with that, you ...



Top 50 recent answers are included