Back to page · View history on Github

📄 posts/truecrypt-whole-disk-encryption-process.poly.pm
#lang pollen

◊(define-meta title "TrueCrypt whole disk encryption: process and performance")
◊(define-meta published "2008-07-18")
◊(define-meta topics "encryption")

◊link["http://www.truecrypt.org/"]{TrueCrypt} now offers ◊link["http://en.wikipedia.org/wiki/Full_disk_encryption"]{whole disk encryption}. I’ve used this software regularly for the past three years for its standard encryption functionality (which is awesome) but was cautious about using it for the whole disk. But after scanning through ◊link["http://www.grc.com/sn/sn-133.htm"]{this transcript} I decided that TrueCrypt is probably robust enough for the job by now, so I gave it a whirl on my laptop. I won’t explain the full rationale for whole disk encryption here, just relate the results and offer some comparisons with other whole-disk encryption products I’ve used.

You use a wizard-like dialog box to step through the encryption process, and the steps are pretty straightforward. You pick your password and generate your keys, then the program makes you burn a .ISO of a rescue disk (mine was 2mb in size) and then it checks the rescue disk to ensure it was burned properly. The system then replaces your bootloader and does a test reboot before it even starts the encryption process, to make sure the TrueCrypt bootloader will work on your machine. At each step there is a lot of detailed explanatory text and I really get the sense that the program’s authors know their way around all the possibilities and have the user’s best interest in mind.

◊strong{Feature Comparison:} Like other products, TrueCrypt’s encryption process happens “in-place” - you can use your computer normally while the hard drive is being encrypted. It took about 45 minutes to encrypt my 32GB drive (without the full disk wipe option).

The pre-boot authentication is very simple. The screen is plain-text, no graphic logos. You type in your password which is shown as asterisks on the screen, after which the computer boots normally. Hopefully future versions will allow some customization of this screen. Some people have even asked for the option of a blank screen with no visual feedback as you type, allowing you to lie to people and say the thing is broken and won’t boot up, could be very useful.

◊emph{Unlike} other products I have used, such as GuardianEdge, TrueCrypt does not support single sign-on. With single sign-on, the encryption software synchronises your pre-boot password with your Windows password, and you only have to type in your password once - at bootup - and the encryption software logs into Windows for you. Hopefully this can be added later as well.

◊strong{Performance:} One of the guys in the ◊link["http://www.grc.com/sn/sn-133.htm"]{transcript} I mentioned earlier made the interesting claim that his hard disk performance bechmarks actually ◊emph{improved} after the encryption was in place. I was curious about this, so I did some performance benchmarks of my hard drive before and after the encryption.

My laptop is a bit unusual because it has a small 32GB SSD flash drive instead of a spinning-disc hard drive. This means it is a ◊emph{lot} faster than a normal hard disk to start with. Here is the “before” benchmark:

◊figure["unset.png"]{SSD performance prior to encryption}

(As you’ll see if you check out some comparison shots from ◊link["http://www.hdtune.com/faq_2.html"]{HD Tune’s website}, a 0.3 msec seek time is pretty durn fast. Also an SSD’s performance doesn’t vary depending on the location of the file, while on a normal disk the files on the outside of the spinning disk come up faster. But I disgress.)

Here is the “after” shot:

◊figure["unset02.png"]{SSD performance after the whole disk has been encrypted}

The access time is still pretty low, but the average transfer rate has droppped by 40% and CPU usage has roughly quintupled.

It’s possible that a normal spinning disk would actually experience gains as a byproduct of TrueCrypt encryption, but I haven’t had time to try it out and I probably won’t get to it anytime soon.

◊comment[#:author "eric"
         #:datetime "August 13, 2009"
         #:authorlink "https://www.blogger.com/profile/04935278065939914567"]{Very helpful article. I was wondering if TrueCrypt would impact hard drive performance and peg the CPU. I’ve tested Guardian Edge’s solution as well with pretty much the same results as you:

◊link["http://www.isyougeekedup.com/guardian-edge-encryption-benchmarks-and-performance/"]{http://www.isyougeekedup.com/guardian-edge-encryption-benchmarks-and-performance/}}