views:

24

answers:

1

Do you know TrueCrypt Project?

It makes a container file and formats it.
The container file will be seen as like a volume.
An we do I/O to the volume, the I/O will be crypted.

By the way, can the container file size be flexible like virtualbox's dynamic hard disk(.vdi file)?

I made a crypt driver like the TrueCrypt.
But my container file always hold disk size even if I don't write any data yet.

How can I implement this feature in Windows.
What is the principle.

Thanks.

+1  A: 

The principle is simple - actual space for virtualbox's hard disk is allocated when something is written there. There can also be sparse files used.

TrueCrypt, as I know, encrypts all disk contents, performing writing on each sector of the disk (also to make encryption stronger), so afaik it's not possible to have a dynamically resizable truecrypt disk.

Normally file systems should support dynamic sizing in order for this feature to work efficiently. However, for regular file systems (FAT, NTFS, extX etc.) there's no need to be shrinkable as they were designed to occupy space, dedicated for them on hard disk.

Our SolFS product offers a file system that was designed with resizing in mind and it also supports on-the-fly encryption and both can be used independently of each other. And OS edition of SolFS lets you create a virtual disk, visible using drive letter.

Eugene Mayevski 'EldoS Corp
Thanks Eugene. http://msdn.microsoft.com/en-us/library/aa365565(v=VS.85).aspx According to the document, it is impossible by a sparse file.
Benjamin
If there is what I misunderstand, please give me an advise.
Benjamin
@Eugene Yes! Eugene, I made my container file as a sparse file. And it works. Thank you.
Benjamin