How To Encrypt Computer Data Using TrueCrypt

Hiding files and folders could be a solution when you just need to hide stuff from other users of your computer. However, if you seriously intend to secure your data so that it doesn’t get into the hands of intruders then the encryptng it is the solution.

What is Encryption ?

Wikipedia defines encryption as, “the process of transforming information (referred to as plaintext) using an algorithm (called cipher) to make it unreadable to anyone except those possessing special knowledge, usually referred to as a key.”

Confused ? Just understand that encryption is a foolproof (almost) way to secure your sensitive data. And today we will discuss how you can do it using a software called TrueCrypt.

TrueCrypt is a free open-source disk encryption software for Windows which can create a virtual encrypted disk within a file and mount it as a real disk. It also encrypts an entire partition or a storage device such as USB flash drive or external hard drive. (If you are finding this a bit technical, just read on…things will get clear as you go through the steps)

Here’s a step by step guide to create, mount, and using a TrueCrypt volume. First you have to download the app and install it on your computer.

Step 1. Launch the application. Click on Create Volume button.

TrueCrypt

Step 2. Now our aim is to create a TrueCrypt volume. To create this volume you need to create a file (container) first. TrueCrypt volume will reside under this file. To create a file select first option i.e. Create an encrypted file container and click Next.

You can also select Encrypt a non-system partition/drive or Encrypt the system partition or entire system drive options if you want to create and use a TrueCrypt Partition/Device (encrypt physical partitions or drives).

In this tutorial we will explain the first method, i.e. creating an encrypted file container.

Volume-creation

Step 3. Select Standard TrueCrypt volume and click Next.

Truecrypt-volume

Step 4. Now click on Select File button to choose the location of the file container. This file is just like any other file and it needs some space. You can create this file anywhere in your computer.

TrueCrypt-volume-location

Step 5. In this example I will create this file in the location C:\ Users\Himanshu\Documents. I’ll give it a name himanshufiles.

File-selector

Step 6. Now select Encryption algorithm from the drop down menu. The default option is AES which is used by governments across the world to secure sensitive information. So lets stick with that.

TrueCrypt-encryption

Step 7: Select the volume of the TrueCrypt container. You can give it any value you wish and click Next.

TrueCrypt-volume-size

Step 8: Enter the password of the volume. You can see the guidelines for choosing hard to guess password in the Volume creation wizard window. After selecting a good password click Next button.

TrueCrypt-password

Step 9: Move your mouse randomly on the Volume Creation Wizard window for at least 30 seconds. It will increase the cryptographic strength of the encryption keys and hence security will also increase.

Now select the Filesystem from drop down menu. Here I have selected NTFS. Now click on Format button.

TrueCrypt8-format

Step 10: It will start the process of creating the TrueCrypt volume. After the process is complete you will see a notification window as shown in the screenshot below. Click OK button.

TrueCrypt9

Step 11: A window will appear asking you to create another Truecrypt volume. Now you don’t need to create any other volume. Click on Exit button.

TrueCrypt-volume

Step 12: Now we have to mount the volume we created on the drive letter. To perform this task go to TrueCrypt window which is open. If it is not open then launch the application again.

You will see lots of drive letters. Select any of the given letter. Here I have selected the drive H. Now click on Select file button to browse to the container file which we have created in previous steps.

TrueCrypt-drive

Step 13: Browse the file and select the container file. Here I’ll visit to location C:\ Users\Himanshu\Documents because I have created container file (himanshufile) on this location.

file-selector

Step 14: Everything is done. Now we have to mount the selected file (himanshufile) on H drive. To do this click on Mount button.

TrueCrypt-mount

Step 15: It will ask you for password which you set up in step 8. Enter the password in the required field and  click OK button.

TrueCrypt-password

Step 16: When you enter the correct password, TrueCrypt will mount the volume on that drive. You can see the mounted volume in the screenshot below.

TrueCrypt-mount

Step 17: It will create a virtual disk on your computer. You can easily see this disk on visiting My computer section. You can do all the things such as copy, paste, delete any data in this virtual drive. It acts as a simple drive. But the data present inside this drive will be encrypted.

virtual-drive

How to open the file inside this drive

If all the data is encrypted then how do you open it? You can open it as you open files on your PC. When you open any file it will be automatically decrypted. All the decrypted data is stored on the RAM. You don’t need to enter the password again and again to open files.

I want the drive to be inaccessible

You can do this by restarting your computer. The volume will automatically get dismounted and all files stored on it will be inaccessible (and encrypted).

You can also do this manually by clicking on dismount button in the TrueCrypt window. Don’t forget to select the drive you want to dismount before clicking on the dismount button.

After dismounting the drive you wouldn’t find that virtual drive in My Computer section.

TrueCrypt-dismount

How can I access my files again

You have to mount the volume on the drive again. To do this, repeat steps 12 to 16.

So that was how you use TrueCrypt to encrypt your data. If you have any questions or doubts regarding the usage of this software then you can ask them in the comments.


Written By and published on Friday, March 5th, 2010.


Similar Interesting Posts

  • Sujay

    Can you delete the himanshufiles virtual volume which we have created just like that or do you require a password to delete it?
    If you dont require a password then what is the use of encrypting the files.
    Please send a mail of the answer at scholie_smart_suj@yahoo.co.in.

    • Himanshu

      @Sujay I think this is a nice question. By no means we can delete virtual volume. It just acts as a hard drive of your computer. Remember that “himanshufiles” is not a virtual volume, it is actually a container in which all the encrypted files reside. Here we made a virtual volume “H drive” by mounting “himanshufile” over drive letter “H”.

      You can delete “himashufiles” file anytime by visiting into its original location (C:\ Users\Himanshu\Documents in this case). After deleting the container file you can’t be able to access the data you kept encrypted inside the virtual drive. So you have to keep this container file at safe place inside your computer so that no second person can delete it. You can also transfer it inside your USB drive if you don’t want to keep it in your computer.

    • Tito

      The use of encrypting files is to render them useless to somebody who has unauthorized access to your computer. If you want to protect them from deletion, backup!

  • Pingback: How to Hide Files Inside JPEG / GIF or PNG Images

  • Pingback: Using TrueCrypt to Secure Your Data :: TinyHacker

  • http://N.A. brian

    Himanshu,

    Thanks for the great tutorial!

    Just one question. Once I have Truecrypt working, and for some reason at a later time I want to revert my computer back to a time without any encryption, how can I recover the material in the container, recapture the disk space used by Trucrypt, and be sure I have no remenamts of encryption left on my computer?

    Thanks again for the help.

    BRIAN

    • Himanshu

      @brian If you want to revert back your data, you have to repeat step 12 to 16. It means you have to mount the volume(container) on the drive again. If you want to get back your disk space used by container file (“himanshufiles” in given tutorial) then you have to simply delete container (himanshufiles) file.

      So you have to perform these basic steps:
      1) Mount the container file (himanshufiles) on any available drive letter.
      2) Open the drive (after mounting it, you can easily access all the encrypted data).
      3) Copy the data at some different location of your PC.
      4) Dismount the drive.
      5) Delete container file (himanshufiles).

  • Pingback: Using TrueCrypt to Secure Your Data « Dayhacker

  • anonim
    • Abhijeet

      Thanks Anonim for the heads up. I’ve sent an email to that site’s owner asking him to stop doing that.

Previous post:

Next post: