4 ms·
> How do you work with this? My setup depends only on crappy home made bash scripts and standard utilities, and never leaks encryption keys or filesystem metad
by gradschool 6y ago
> How do you work with this?
My setup depends only on crappy home made bash scripts and standard
utilities, and never leaks encryption keys or filesystem metadata off
the local machine. I rsync my home directory with a luks encrypted
filesystem image, split the image file into fixed sized chunks using
the standard GNU split utility, and then rsync the encrypted split up
chunks with a directory on a remote server. The remote server
periodically syncs the encrypted image chunks with S3 using the usual
aws cli tools, and runs a script to "cat" the chunks back into a
remote copy of the whole image and display the overall md5
sum. Another machine off site keeps amazon honest by syncing the s3
bucket with a local copy, reassembling the encrypted filesystem image,
and computing the md5 sum. An extra benefit is that I can use the
filesystem image on the remote server over sshfs as the backing device
for a locally loopback mounted luks partition to access or modify
individual files without downloading the whole image or corrupting it,
provided no more than one session is open at a time. Back when I was
more paranoid, I used only a raw dmcrypt image rather than a luks
encrypted image in this setup so that there would be no luks header to
give it away and I could plausibly claim that it was one-time-pad
encrypted data, for which I could construct a key to yield any
plaintext of my choice. (Yes, I know I won't be such a smartass when
it comes to a rubber hose attack.)