Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: TRUECRYPT - Encrypt Data Folders


TRUECRYPT - Encrypt Data Folders

How to Encrypt Data Folders with TrueCrypt in Windows
Published by Golden
19 Jul 2012
Published by

information   Information
TRUECRYPT is a free open source application that allows you to encrypt files, folders, partitions or even entire physical drives. It is a very useful alternative to Windows Bitlocker Drive Encryption, which is only available in Windows 7 Ultimate.

Truecrypt's basic mode of operation is to encrypt all data and free space within a nominated container/volume using well established encryption algorithms and user-defined passwords or key files. The container with the encrypted data is accessed by mounting the container as a drive using the Truecrypt service.

Update 29/05/2014 : the current status of Truecrypt Development is unknown. Please refer to this blog for some background : akselvoll.net: How to securely download TrueCrypt 7.1a

Truecrypt does not have a 'backdoor' so its vital to pick a password that is easily remembered.



Tip   Tip
If this is your first time working with encryption, then I strongly encourage you to create an unencrypted backup of your data prior to attempting this tutorial.



Installation:
Click here to download Truecrypt.

Install Truecrypt to the location of your choice as you would any other application using the installation wizard. When prompted, choose the Install mode as shown below.
Name:  tc2.png
Views: 12789
Size:  50.6 KB
Ignore the donation screen and tutorial screen once installation is complete.


I've structured this tutorial to allow you to follow the practical steps I have implemented to:
  • Encrypt a folder and it's contents, and
  • Work (add/remove/modify files) with this encrypted folder on a daily basis.
Below is an image showing a folder that I wish to encrypt. The folder contains sub-folders and a mix of different file types including; .PDF documents, ASCII files and .XLSX MSExcel spreadsheet files.
-z1.png
The goal is to encrypt the \Investments folder and it's contents.

Note   Note
Once a folder is encrypted, TRUECRYPT refers to this folder as a 'container' or 'volume'. This nomenclature is used to distinguish between an unencrypted folder, and one that has been encrypted, and I have kept with this nomenclature throughout this tutorial to avoid confusion:
  • Folder = unencrypted folder visible in Windows Explorer
  • Container/volume = encrypted folder visible via TRUECRYPT only



Step 1 - Creating an Encrypted Container
Open TRUECRYPT, and select Create Volume as shown below.
Name:  z2.png
Views: 12840
Size:  70.2 KB
The Volume Creation Wizard will open and display 3 choices - the Create an encrypted file container is the default choice, and the one used to encrypt data folders. Ensure the first option is selected and then click Next.

warning   Warning
The other two choices are used to encrypt entire system and non-system partitions. I recommend you steer clear of these as they are unforgiving if mistakes are made, or the encryption header information is corrupted. We have seen one case here of encryption headers being corrupted with the result that the entire partition has been permanently lost. You have been warned!

Name:  z3.png
Views: 12786
Size:  158.0 KB
Select Standard TrueCrypt volume from the Volume Type panel, and click Next.
Name:  z4.png
Views: 12721
Size:  157.7 KB
In the Volume Location panel, specify the name of the encrypted container you wish to create - you can use the Select file button to browse to an existing empty folder, or type the location and name of the container you want to create. In this example, I have nominated to create a container on my G: drive called Encrypted_Investments. Click Next to continue.

warning   Warning
Do not select an existing folder with your data files as TrueCrypt will over-write these files. Always create a new container, to which you will copy & paste your files you want to encrypt at a later stage. This is the safest method of creating an encrypted container.

Name:  z5.png
Views: 12775
Size:  161.1 KB
The Encryption Options panel will be opened, allowing you to select the Encryption Algorithm and HASH Algorithm. Both of these options are used to securely encrypt your data.

Note   Note
In layman's terms : the encryption algorithm is a cipher that determines how your your 'readable' data is transformed into an 'unreadable' format. The HASH algorithm is used to create a random key that authenticates any attempts at accessing the encrypted data container. A detailed discussion on encryption, ciphers and HASH algorithms is beyond the scope of this tutorial, but you can read more about this here.

There are several choices of encryption algorithm available, including AES, Serpent, Twofish and combinations of the three. The choice of algorithm dicatates the speed at which encryption occurs - the image below shows the benchmarks for each algorithm for a 1GB container:
Name:  encryption_benchmark.JPG
Views: 12799
Size:  50.9 KB
For this example, I have used AES encryption (robust, widely used, fast and low memory overhead) and Whirlpool HASH algorithms - select these options, and then click Next.
Name:  z7.png
Views: 12692
Size:  133.7 KB
In the Volume Size panel that opens, you need to specify the size of the encrypted container you wish to create. My \Investments folder is 29MB in size, so I have opted to create my \Encrypted_Investment container (volume) 50MB in size. After specifying the appropriate values, click Next.
Name:  z8.png
Views: 12604
Size:  144.1 KB
In the Volume Password panel, specify a password and then click Next.
Name:  z9.png
Views: 12570
Size:  158.1 KB
warning   Warning
Be sure to use an easily remembered password - Truecrypt has no 'backdoor' functionality, so if you forget the password then you will NOT be able to decrypt the encrypted data.It will be as good as lost - permanently.

In the Format Volume panel, you need to specify the format of the encrypted volume (in my case I used NTFS and left the Cluster size as a default). This panel is also where the HASH algorithm you selected is used to randomise the encryption.

You do this by moving your mouse in a random pattern across the panel (shown as the red trace in the image below). As you do this, the Random Pool values on the panel change. The longer and more random the mouse movements, the stronger the encryption. Once you have finished that, click Format to create the encrypted container/volume.
-z10a.png
Tip   Tip
If your encrypted data is likely to grow in size as you use it then you should also select 'Dynamic' and nominate a container/volume size large enough for future additions. This option will use the minimum amount of physical disk space required for the current contents of the container. The physical size of the container can only increase up to the maximum value that is specified by the user during the volume creation process.

Progress of the encryption will be displayed, and once complete you will need to allow TRUECRYPT to write the changes by clicking Yes on the Windows UAC pop-up panel.
Name:  z11.png
Views: 12571
Size:  146.2 KB
A confirmation message will be displayed as shown below.
Name:  z12.png
Views: 12489
Size:  26.4 KB
The encrypted container/volume appears in my G: drive as shown below. Windows treats this container as it would any normal file - it can be deleted, copied, backed-up and moved around just like any other file.
-z13.png
Click Next to create another encrypted volume, or Exit to return to the main TRUECRYPT panel.



Step 2 - Working with the Encrypted Container
Working with an encrypted containers/volumes requires you to mount the encrypted container/volume that you created previously.

From the main TRUECRYPT panel, select an available drive letter, then use Select File to browse and pick the container you created in step 1. Click on Mount, as shown below as shown below.
Name:  z14.png
Views: 12479
Size:  71.5 KB
Now enter the password you used to create the encrypted container in step 1, and click OK.
Name:  z15.png
Views: 12438
Size:  36.5 KB
The main TRUECRYPT panel will now show the mounted container/volume, size and encryption algorithm used.
Name:  z16.png
Views: 12448
Size:  61.7 KB
Tip   Tip
Use the Favorites menu bar to add your mounter volumes to the favorites list. When you next decide to mount volumes, they are then easily accessible from the Favorites menu as shown below.
Name:  z18.png
Views: 12434
Size:  71.4 KB
The mounted volume will also now be visible in Windows Explorer, although at this stage it is empty because there have been no files copied into it yet. Once you drag files into the mounted container/volume, it looks like this.
-z17.png
You can now work with these files as you normal would. If you no longer require the encrypted data to be mounted, highlight the mounted volume, and then select Dismount.
Name:  z19.png
Views: 12449
Size:  62.2 KB
A smarter way to work with TRUECRYPT, is to have it automatically start the TRUECRYPT service. To do this, select Settings > Preferences from the main TRUECRYPT panel, as shown below.
Name:  z21.png
Views: 12390
Size:  78.2 KB
Now place check marks in the Truecrypt background task items as shown below.
Name:  z20.png
Views: 12430
Size:  57.0 KB
Each time you boot your computer to Windows, the TRUECRYPT service will start and a Truecrypt icon will be placed in your task bar. You can access all the TRUECRYPT functionality, and mount/dismount volumes far more easily, as shown below.
Name:  z22.png
Views: 12376
Size:  35.5 KBName:  z23.png
Views: 12381
Size:  39.2 KB
Tip   Tip
When no encrypted containers are mounted, the TRUECRYPT icon is blue. When an encrypted container/volume is mounted, the icon is brown.




Step 3 - Disaster Recovery
There are steps you can take to mitigate against losing the information within the encrypted container/volume:

  1. Use an easily remember password - if you forget the password, then it is impossible to decrypt the contents of the container.
  2. Backup the unmounted container just like any other data file, using the backup strategy of your choice.
  3. Create a backup of the volume header information - this backup header allows you to mount and recover the encrypted data if the original header information of the encrypted container becomes corrupted.
To create a backup of the volume header information, do the following:

1. Dismount any encrypted containers/volumes, and from the main TRUECRYPT panel, use the Select File button to browse to the encrypted container, and then select the Volume Tools option, as shown below.
Name:  z24.png
Views: 12386
Size:  70.4 KB
2. From the Volume Tools context menu, select Backup volume header. Note the information panel and click OK. You will be prompted to enter your password that you used when you created the encrypted container/volume. You will now be prompted to confirm whether your encrypted container/volume contains a hidden volume. The answer is NO, so you should select the middle option as shown below.
Name:  z25.png
Views: 21142
Size:  14.4 KB
3. Click Yes on the confirmation panel pop-up. In the Explorer Windows that opens, specify a location and name for the header backup file and click Save, as shown below.
-z26.png
4. Within the Random Pool Enrichment window that opens, move your mouse in random patterns within the window to encrypt the contents of the backup header file, and click Continue.
Name:  z27.png
Views: 12326
Size:  50.9 KB
5. Once the volume header backup confirmation panel has been displayed, click OK.

The header backup file has now been created - you should also backup this file using your usual backing up procedures.

To recover a corrupted TRUECRYPT container, please refer this tutorial:
TrueCrypt - Recover Corrupt Container

There you have it : a basic introduction to data encryption using TRUECRYPT.

Note   Note
Special thanks to Derek who tested this tutorial for me.

Regards,
Golden

19 Jul 2012   #1
z3r010

 

Great work


My System SpecsSystem Spec
19 Jul 2012   #2
townsbg

Mac OS X 10.8.5
 
 

Nice.
My System SpecsSystem Spec
20 Jul 2012   #3
mharrison

Windows 8 Professional 64bit
 
 

Thank you, this is exactly what I have been looking for!
My System SpecsSystem Spec
Comment

 TRUECRYPT - Encrypt Data Folders




Tutorial Tools



Similar help and support threads for2: TRUECRYPT - Encrypt Data Folders
Windows 7 Tutorial Category
../App Data/Local why so many folders Performance & Maintenance
Can TrueCrypt encrypt just folders? Software
Solved Is it possible to add Truecrypt to an exsisting HDD with data already? General Discussion
Truecrypt incorrect password or not a truecrypt volume Software
Which folders to encrypt with EFS System Security

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 10:47 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App