up vote 0 down vote favorite
share [g+] share [fb]

Is it possible to mount a TrueCrypt volume file over FTP?


Here's how TrueCrypt works with a local file:

  1. User inputs path to volume file, enters password
  2. TrueCrypt verifies that the password is correct (probably by decrypting the very first part of the volume file?)
  3. TrueCrypt reads the directory listing from the volume file and mounts the volume. However, in this step, TrueCrypt does NOT process the whole volume file.
  4. The user browses the directory listing and opens a file.
  5. TrueCrypt reads only the part of the volume file that contains the file the user wants, and then decrypts it. Once again, TrueCrypt doesn't process the whole volume file - it only reads part of it.
  6. The user edits part of the file and saves it.
  7. TrueCrypt encrypts the change and edits the volume file.

I'm pretty sure it should be possible to mount a volume over FTP, without undermining security and without having to transfer the whole volume file just to read one small part of the volume.

Here's how I imagine it:

  1. User inputs FTP path to volume file, enters FTP login information, enters password to volume
  2. TrueCrypt downloads the very first part of the volume file and verifies that the password is correct
  3. TrueCrypt downloads the part of the volume file that contains the directory listing - the data is sent encrypted over FTP and is decrypted locally.
  4. The user browses the directory listing and opens a file.
  5. TrueCrypt downloads only the part of the volume file that contains the file the user wants, and then decrypts it locally.
  6. The user edits part of the file and saves it.
  7. TrueCrypt encrypts the change and edits the volume file over FTP, transferring encrypted data only.

Is such a feature available?

link|improve this question

74% accept rate
1  
Consider finding a solution to map an FTP site as a drive. Then try creating a truecrypt disk to see how it goes. – acidzombie24 Jun 25 '10 at 3:55
feedback

2 Answers

Wouldn't it make more sense to use SFTP, which is more secure than FTP?

A possible solution is to mount SFTP locally and mount the TrueCrypt volume from the SFTP mount. If you must use FTP, you could mount FTP instead of SFTP.

I did basically what you are asking for, but also integrated Git to backup files: http://theo.cc/blog/2010/07/encrypted-git-repo-with-truecrypt-and-sshfs/

link|improve this answer
feedback

Truecrypt encrypts it's backing storage (whether it's a file or a volume) on a block level. It doesn't work on a file level. This is a Good Thing(tm) because it makes Truecrypt easier to implement, debug, and contributes to reliability.

So Truecrypt itself is not aware of "files" within the storage it's encrypting/decrypting. That's the responsibility of a file system driver (ntfs.sys, fastfat.sys, etc.) to act as that intermediary, translating requests for files into requests for blocks and vice versa.

Thus, Truecrypt itself can't retrieve names of files, "parts" of volumes, or do file operations on its own. The software doing that, the filesystem layer, is not part of Truecrypt.

link|improve this answer
But does that actually relate to his question? Whatever is inside the container doesn't matter here. What matters is getting TO the cointainer. – sinni800 Aug 1 '11 at 12:17
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.