Lockdown Encryption TrueCrypt
Lockdown Encryption TrueCrypt
This manual is the intellectual property of MakeUseOf. It must only be published in its original form. Using parts or republishing altered parts of this guide is prohibited.
Page 2
Table of Contents
Introduction .............................................................................................................................. 4 What is encryption? ................................................................................................................ 5 What do I need encryption for? .................................................................................... 5 Advantages of encryption ............................................................................................. 5 Disadvantages of encryption ......................................................................................... 5 What is TrueCrypt?................................................................................................................... 6 Different types of encryption .......................................................................................... 6 Virtual encrypted disk .................................................................................................. 6 Partition/drive encryption............................................................................................ 7 System encryption ........................................................................................................ 7 Which type of encryption is best for me? ..................................................................... 8 Installing and Using TrueCrypt ................................................................................................ 9 Downloading TrueCrypt .............................................................................................. 9 Installing TrueCrypt ....................................................................................................... 9 Creating a virtual encrypted disk ................................................................................ 11 Encrypting a drive or partition ...................................................................................... 16 Mounting and dismounting encrypted disks .............................................................. 21 Other Good Security Habits ................................................................................................. 23 Selecting good passwords ............................................................................................ 23 Locking your computer and logging out of services ................................................ 24 Screensaver Lock ....................................................................................................... 24 Login Window.............................................................................................................. 24 Conclusion .............................................................................................................................. 25
Page 3
Introduction
Your laptop has been stolen. You left it there for just a second and there were plenty of people around, but you came back and it was gone. It takes a moment to sink in. Its gone. First comes the initial shock, then the disbelief. Maybe I just put it down by the chair so that it was out of the way Nope. Its not there either. Its been taken. Damn, you think. Im not getting that back. But its not that bad. It was an old laptop, faithful but due for retirement. But then it hits you. My email account. My bank details. My personal details, and the details of all my friends and family. The financial reports for my business. The pictures of my family. Ive got them all backed up, but thats not the problem here. Theyre out there in the wild, now. Who knows where they could end up and who could see them? Who knows how that information could be exploited? What am I going to do? The world shrinks around you as you realise the enormity of what has just happened. If only youd encrypted your data.
Page 4
What is encryption?
Encryption is the process of protecting data by using an algorithm to scramble it. The data is unintelligible, undetectable, unreadable and irretrievable unless a key is used to reverse the encryption, or decrypt, the data. Encryption is used all the time, often without you even realising it. Whenever you buy something online and make a transaction, all your details are heavily encrypted until they reach the other end, making sure that no third party could be listening in. If you use instant messaging programs it is possible to create an encryption tunnel to ensure that only you and the person youre talking to can see the messages. In this manual well be talking about local file encryption that is, encrypting files on a hard drive (or encrypting the entire hard drive; more on that later). The files are safe as long as they are kept in the encrypted area.
Advantages of encryption
The biggest advantage of encrypting your files is the knowledge that your data will be safe if your computer is stolen. As soon as your computer is turned off youll know that all your files are inaccessible, and may in fact be locked earlier depending on the type and level of encryption that you use (more on that later). When you sell your computer (or dispose of it by other means), its always a good idea to make sure that your data is securely erased to prevent the recovery of deleted files by whoever comes across the computer next. The great thing about data encryption is that, without the key for decryption, the data appears as random noise. Unless the person happens to know the decryption key (which is highly unlikely), you might as well have already securely erased the drive.
Disadvantages of encryption
Unfortunately, encryptions strength is also its weakness. Encryption is great at keeping people without the decryption key out. The problem: if youve forgotten the password that includes you too. Once that data is encrypted and you lose the key you might as well have securely deleted the files, and youre not getting them back. While its nowhere as dire as losing the files forever, another disadvantage of encryption is that you will lose some read/write performance when working with
Page 5
encrypted files (that is, opening files, saving them and/or moving them around). While this decrease is imperceptible when working with a few small files, working with thousands of tiny files or a few really big ones will take significantly longer as each file is decrypted before it can be used. Thankfully, TrueCrypt supports parallelization (splitting data between the multiple cores of most recent processors), which means that in even these circumstances the drops in performance are minimized.
What is TrueCrypt?
TrueCrypt is a free, cross-platform program (meaning that it works in Windows, Mac OS X and Linux distributions including Ubuntu) that you can use to encrypt your data. It is classified as On The Fly Encryption (OTFE) software, which basically means that it encrypts and decrypts files as you access and modify them and that all files within the area of encryption are available as soon as you enter the key.
Page 6
be wasting hard drive space; too small, and youll run out of room when you go to store more documents. If youre using Windows its possible to create a dynamic VED; that is, one that starts small and only increases in size as you add files to it. However, a dynamic VED is much slower than a standard one, is no longer cross-platform and is a lot easier to detect than it would be otherwise. Partition/drive encryption Partition/drive encryption covers an entire drive (or one of its partitions, if your drive happens to be divided up). Its a little more complicated to set up than a VED, but it has its own rewards. For example, as the encryption covers the entire hard drive it is arguably less conspicuous while casually browsing files, and it is a lot harder to accidentally delete your important files. You also dont need to worry about the size of a virtual drive, as the entire partition is encrypted. The big downfall of encrypting the entire drive is that it takes a very long time to set up, mainly because TrueCrypt has to create random data and write it to the entire hard drive. The other thing to bear in mind is that because youre encrypting the whole drive you wont be able to use any of it without the key. If you lose your password then you wont be able to use the drive without losing everything. System encryption The last main form of encryption goes one step further than encrypting your data it encrypts the entire operating system and all the data on that partition with it, requiring you to enter your password before you get to the operating system (this is known as pre-boot authentication). However, this particular type of encryption through TrueCrypt is only compatible with Windows. Never fear, though! Mac OS X and most Linux distributions have some form of system encryption built in to the operating system itself, so they just require you to turn it on in the system preferences. System encryption is the most secure, but it also has the most at stake. If you lose your password, youll not only lose access to your encrypted data, but to your applications and the rest of your computer, too. This is fine if you have another operating system on a separate drive or partition to fall back on (or if you have a Linux Live CD), but if you dont youll be stuck without your computer. Either way youll be forced to erase everything on the drive and reinstall everything from scratch. This isnt a problem so long as you write down your password in a couple of places so that you dont forget it, but its definitely worth bearing in mind. The other thing to take into account is that encrypting the operating system is by far the most complex encryption type so will take a lot longer than the others to set up and is more likely to have something go wrong. This would most likely entail the TrueCrypt Boot Loader (which comes up before you boot Windows and is where you [Link] | Lachlan Roy [Link]
Page 7
enter your password to decrypt the system) becoming damaged and failing to load (and locking you out of the system). With this in mind TrueCrypt requires you to create a rescue disc that you can use to decrypt your installation in case something goes wrong.
Page 8
When you double click on it, youll be met with this dialog box:
Page 9
After that youll be met with a black and white installer that looks like this:
Just follow the prompts as you would with a normal installer. The only thing that needs mentioning is that youll see this and probably get confused for a second:
Relax, its not uninstalling the program as soon as youve installed it! Thats just telling you what you need to do if you want to uninstall TrueCrypt later. Click okay and then youll see this, which shows that youve installed TrueCrypt properly:
Thats it! You can find TrueCrypt in the Applications menu under Accessories:
P a g e 10
The first thing we want to do is create a new Virtual Encryption Disk, so well click on Create Volume. This will start the TrueCrypt Volume Creation Wizard, which will guide us through the steps we need to create the VED.
P a g e 11
We want to create an encrypted file container, so well select this option and then click on Next. Then well make sure that Standard Truecrypt volume is selected and then click on Next again.
It is possible to create a hidden TrueCrypt volume but there are very few reasons why you would want to make one (that is, unless youre likely to be subject to extortion for the files youre hiding!). If you want to know more you can read the documentation for hidden volumes on the TrueCrypt website.
P a g e 12
Next were asked to select a location and a name for the VED. Here Ive called it Virtual Encryption Disk and just stored it in the My Documents folder. Then its time to click Next again!
We dont need to worry about any of the encryption options even the defaults are plenty secure enough for our needs! The defaults should be AES and RIPEMD-160 for the respective drop down menus, but it doesnt really matter either way. To the next step!
P a g e 13
Now were going to choose how much space we want to allocate to our VED. Ive chosen to give 250MB to this one:
After clicking on Next yet again, its time to choose the password for our VED. The length our password needs to be depends on how secure we need to be, but we need to be able to remember it! Ive chosen a 9 character complex password (more on that later), which should be more than secure enough for the data that Ill be storing in it.
An error will pop up if the password is less than 20 characters long; dont worry about it, and just continue. Onwards!
P a g e 14
The next screen is where we format the volume and generate the encryption keys for the VED. TrueCrypt uses the movement of our mouse to help increase the cryptographic strength of the keys, so make sure to move your mouse randomly over the window for a while before clicking on Format. When its finished youll see this dialog box pop up:
Thats it! Your VED is ready to go. The next step is to mount it, but well talk about that a bit later on.
P a g e 15
While its possible to create a hidden volume, well just be making a standard encrypted volume this time. Make sure Standard TrueCrypt volume is selected and then click on Next again.
P a g e 16
Now we need to choose the partition that we wish to format. I have a virtual drive that I created for this example, so Ill select that:
After that we need to choose how we create the volume. This basically boils down to whether you already have data on the drive that you want to encrypt or whether its been freshly made. Ive already got some files on this partition, so Ive selected the Encrypt partition in place option.
P a g e 17
Next up is to choose the encryption options. Just like with the VED we dont really need to change any of these settings since theyll be more than secure enough for what were using them for. Just click Next to move on.
Now its time to choose a new password. Again, theres no point in having a ridiculously long password if you cant remember it (more on that in the Selecting good passwords section below). Once youve entered and confirmed a password, click on Next again.
P a g e 18
Here were generating the keys for the encryption. Moving the mouse randomly in the window makes the keys stronger, so make sure to do that before clicking Next!
If theres data that youve deleted from the drive that you want to be unrecoverable, youll want to choose a wipe mode that overwrites the raw data. In this case theres nothing to overwrite so Ill choose the option with no overwriting, but if theres data you want to hide then youll probably want to choose the 3-pass option. There are also 7-pass and 35-pass options but these would take far too long to be worthwhile.
P a g e 19
Now were up to the final stage just hit Encrypt! Youll get a dialog box that reminds you that you wont be able to access the data at all until the entire drive has finished encrypting. Theres also a warning that if your computer shuts down for any reason without giving it a chance to pause then youll almost certainly corrupt some of the data that youre copying over (if you are). Even if youre not, youll also have to start the encryption process again from scratch. Go get a cup of coffee this is going to take a while. Once youve finished encrypting the drive youll have a few more dialog boxes pop up to give you some important instructions with regard to mounting the drive. Once youve taken those on board, youll be greeted with the last window:
P a g e 20
Thats it! Once we enter the password and click OK, the drive will be mounted and will look just like any other hard drive:
Mounting an encrypted partition is even easier all we need to do is click on AutoMount Devices at the bottom of the window, which will give us a dialog box to enter in the password of the encrypted partition. When we click OK itll be mounted as a drive in the same way as the VED:
P a g e 21
When youre finished working with the files, just go back to the main TrueCrypt window and click on Dismount All.
P a g e 22
I personally prefer the complex route, as its faster to type. But Lachlan! I hear you say, How am I ever going to come up with a random password with symbols and numbers in it, let alone remember it? When I need a new password Ill usually come up with a sentence that is easy to remember, for example All for one and one for all. Then Ill take the first letter of each word afoaofa. Right now its not a complex password, but well get there. Next we can change the a for and to an & sign. This gives us afo&ofa. Now we need a number or two. The number 4 looks like an upper case A, so we can change one of them out, and we can change the word one for 1. Doing that we end up with afo&1f4. Starting to look better, isnt it? If we make the first a a capital (like at the start of sentence), and add in a couple of punctuation marks at the start and end of the password we end up with
P a g e 23
something like !Afo&1f4?. Have fun trying to crack that! Its still pretty easy to remember, though:
P a g e 24
Conclusion
Your laptop has been stolen. You left it there for just a second and there were plenty of people around, but you came back and it was gone. It takes a moment to sink in. Its gone. First comes the initial shock, then the disbelief. Maybe I just put it down by the chair so that it was out of the way Nope. Its not there either. Its been taken. Damn, you think. Im not getting that back. But its not that bad. It was an old laptop, faithful but due for retirement. But then it hits you. My email account. My bank details. My personal details, and the details of all my friends and family. The financial reports for my business. The pictures of my family. Ive got them all backed up, but thats not the problem here. Theyre out there in the wild, now. Who knows where they could end up and who could see them? Who knows how that information could be exploited? But hang on a second. All my business files are in a virtual encrypted disk and the rest is on the second partition that I encrypted, and I locked my screen before I put it down. Even if they do manage to get past my 15 character complex password, theyre not going to be able to get at my personal data. I guess its not so bad after all. Thank goodness I encrypted my data!
P a g e 25
Did you like this PDF Guide? Then why not visit [Link] for daily posts on cool websites, free software and internet tips. If you want more great guides like this, why not subscribe to MakeUseOf and receive instant access to 20+ PDF Guides like this one covering wide range of topics. Moreover, you will be able to download free Cheat Sheets, Free Giveaways and other cool things.
MakeUseOf Links:
Home: MakeUseOf Directory: MakeUseOf Answers: Geeky Fun: PDF Guides: Tech Deals: [Link] [Link] [Link] [Link] [Link] [Link]
Follow MakeUseOf:
RSS Feed: Newsletter: Facebook: Twitter: [Link] [Link] [Link] [Link]
P a g e 26
P a g e 27