Sep 17

DropBox + TrueCrypt: Secure Online File Storage

Yes, it’s true.  Finally a way to get your personal files on each machine you work with that gets backed up online without any worry of who is rummaging through your data when you aren’t looking!  It’s the secure online backup you were looking for!

Windows? Linux? Mac? No problem.  Installers are available for all three systems.

DropBox (a glorified subversion system for the rest of us) has finally worked its way out of beta and will become the backbone for our project.  Transmission of data to DropBox is via HTTPS, so we at least have half the problem resolved.

The second problem is DropBox’s STORAGE of my files.  If they defect to the goverment faster than AT&T did with the NSA, then you can be sure your private key and personal bookmarks to porn sites will be used against you.  I wanted the storage of my files encrypted. Since I couldn’t trust DropBox, I turned to my good old friend, TrueCrypt.

The solution here is to create a TrueCrypt volume inside of your DropBox folder.  Even though DropBox has a 2GB folder limit, you shouldn’t use all of it for your TrueCrypt drive.  Unfortunately, TrueCrypt creates the encrypted partition to it’s maximum capacity, which means if you create a 1GB encrypted volume, it actually takes up 1GB on the harddrive even with nothing in it.  And transferring a 1GB file many times for little to no content isn’t the best plan.

Since the volume is filled out to maximum filesize even with no data, it’s best to create a few smaller drives (in the 256MB range) as DropBox has to upload the entire file at least once and you have to download the synchronized file on every computer.  TrueCrypt can mount about 12 volumes automatically, so my recommendation is to keep the volumes small and increase the sizes for volumes you don’t modify often.

Don’t feel guilty about using encyption.  Don’t be guilted into the “If you have nothing to hide” mantra; privacy is your right as a human, exercise it.

This post has been viewed 15345 times.

11 Responses to “DropBox + TrueCrypt: Secure Online File Storage”

  1. t-dub Says:

    So I also immediately figured this would be a super-handy technique and have been experimenting with it. *Ideally*, you would want the truecrypt volume to sync dynamically in the same way that DropBox does. However, because TrueCrypt puts an exclusive lock on the file when it mounts the volume, this is not possible. DropBox *can’t* dynamically sync changes as they are being made within the TrueCrypt volume.

    At least, that’s been my experience when mounting the same TrueCrypt volume stored in my DropBox on both my laptop and my desktop (Ubuntu and WinXP respectively). I was wondering if you had a similar experience and/or a solution!

    ~tw

  2. Dropbox, Jungledisk and Truecrypt « Noppatech Says:

    [...] Secure online storage with Dropbox and Truecypt [...]

  3. Peter Says:

    Thanx for this article…

    So if you add a 256 MB truecrypt-file to your dropbox it will have to be up- & downloaded once, of course. But then, if you open the container and add a few files, won’t it have to up- & download (on the other pc) the whole thing again? Or just the changes?

    By the way, you could also create a growing container, I guess?

  4. ozmo Says:

    Dropbox only transfers the changes. Now, being an encrypted file, you can count on more than a few bytes to be changed throughout the Truecrypt volume, but at least it’s done in the background, and by the time you travel to the other site where your other end of the Dropbox is, it should be there and ready to go, automatically.

  5. Dropbox, Aspire One - revisited « Crooked Spoke Says:

    [...] against Dropbox per se, but certainly a consideration for people like me who would like to use the Dropbox + TrueCrypt duo from multiple platforms. After all, as they say, if it’s not dependable at all times, [...]

  6. Online Activity for March 20th | Creeva's World 2.0 Says:

    [...] Items of Interest » Blog Archive » DropBox + TrueCrypt: Secure Online File Storage [...]

  7. Mark Says:

    Dropbox sounds great but it lacks some important features like backing up USB, network and external drives. That’s why I decided to use SafeCopy backup. It provides the above features plus I can use one account for both my Mac and Pc.

  8. Ricardo Says:

    It looked promising at 1st, but an hour later and I have reached the same conlusion as T-Dub…its a shame because it is very close to being useful. I dont know why dropbox does not offer encryption as a standard feature. Like a number of others I too am reluctant to leave open files on an open server owned by a company I know nothing about.

  9. Mr Anon Says:

    So, in conclusion….how does it work?!

    If you upload a TrueCrypt volume, say 256mb, and then mount the volume, change one small file, and unmount the volume does DropBox have to upload the ‘entire’ 256mb volume file, or just the changes to that file?

    I know that it won’t be able to ‘see’ the changes that happen inside the encrypted volume (annoying at best) but will it need to re-upload/download the entire file on every PC that that DropBox is configured on?

    Be good to clear this one up.

    One more question – is there any application that will let you encrypt you files ‘as you copy’ them to the DropBox? So that’s on a per file basis , not per encrypted volume basis? Be nice to know that too!

  10. Anon Baker Says:

    I imagine this would work fairly well using EncFs. It’s encryption on a per file basis, not an entire encrypted volume. So it should work fairly well with dropbox. You have your encrypted folder on dropbox and you just mount it like so:

    encfs /dropbox_encrypted_folder_path /mnt/enc_drop

    or whatever, and unmount using: “fusermount -u /mnt/enc_drop”.

    Having said that I have never used dropbox, just set up my account there, so I might not understand how it works properly. It would avoid the problem of having to upload the entire 256 mb partition every time.

    The other problem is accessing the files under windows, I’m not sure if encfs filesystems can be mounted in windows, maybe someone else could clear this up…

  11. Dropbox + Truecrypt, ie. online storage with encryption » preissler.co.uk Says:

    [...] Dropbox and Truecrypt [...]

Leave a Reply