Monday, May 31, 2010

How to Encrypt Your USB Flash Drive Using TrueCrypt

SkyHi @ Monday, May 31, 2010

USB flash drives are becoming cheaper and cheaper everyday. Some companies are even giving them away. When they first arrived on the scene, most of the drives had a capacity of under 1GB. But now, you can find 2GB to 4GB drives almost everywhere, including your local drugstore chain. At these sizes, they can actually be useful. You can use it to store your music, pictures, videos, or documents. Some even use it to store bootable operating systems like Linux. I use it to store a text file that contains the passwords for all of my online accounts, such as for my online bank accounts, my Amazon account, credit card accounts, etc. And since the flash drives are so portable, it makes sense to have one. However, since they ARE so portable, they can easily be lost, stolen, or misplaced. If you are like me, and store personal information on your flash drive, information that you don't want to fall into the wrong hands, then you need to encrypt your flash drive. By encrypting your flash drive, the files contained within it become password protected and can only be accessed by you or someone who knows your password.



There are many different applications that help you encrypt your flash drive. Some drive manufacturers include encryption applications on the flash drive. In this tutorial, I will show you how to encrypt your portable USB flash drive using my favorite freeware application, TrueCrypt.












Difficulty: Moderately Easy

Instructions





Things You'll Need:



  • USB Flash drive

  • Latest stable version of TrueCrypt




  1. Step 1


    Using TrueCrypt, you create a password protected encrypted file that is stored on the flash drive. This encrypted file acts as a "container", within which all the files you want encrypted are stored. When you connect your flash drive into a PC, this "container" gets mounted as a separate hard drive (provided you enter the correct password). And now, everything you save into this separate hard drive is encrypted automatically. This is where TrueCrypt really shines, providing transparent, real-time encryption. Plus, you don't need TrueCrypt to be installed on the local computer.



  2. Step 2


    Download the latest stable version of TrueCrypt here: http://www.truecrypt.org/downloads.php



  3. Step 3







     







    Install the software on your local computer (accepting all the default options)



  4. Step 4


    Connect your USB flash drive to your computer. For this tutorial, let's assume that it is assigned drive letter G:\



  5. Step 5







     







    Start the TrueCrypt application. Click on the Create Volume button to start the TrueCrypt Volume Creation Wizard. This is where you create the "container".



  6. Step 6







     







    Select Create a file container (default option) and click on Next. This brings you to the Volume Type window. Here you can specify if you want your "container" to be a standard, visible file or if you want to create a hidden "container" (essentially a "container" within a "container"). For this tutorial, we'll select the default option, Standard TrueCrypt Volume, and click on Next.



  7. Step 7







     







    This brings you to the Volume Location window. Here you specify the filename and location of the "container". For this tutorial, let's call the container "MyCrypt". And since your flash drive is mounted as the G:\ drive, specify your location and filename as G:\MyCrypt, placing the container in the root of the flash drive. Click Next.



  8. Step 8







     







    Next you need to select the Encryption Algorithm and Hash Algorithm. I won't go into the details of the differences between the different options, their pros and cons. That would turn this tutorial into a book. For this tutorial, we'll leave the defaults, as they should be sufficient. Click Next.



  9. Step 9







     







    Next, you need to choose the size of the "container". This depends on the size of your flash drive and how much info you want to encrypt. Personally, I would suggest leaving anywhere between 10% to 20% of the drive unencrypted so that you have room for the TrueCrypt application files (about 6MB) as well as unimportant files that you might want to share or just don't need encrypted. For this tutorial, using a 1GB flash drive, we'll set the "container" to be 850MB. Click Next.



  10. Step 10







     







    Next, specify the password you want to use to access and mount this "container". Select a strong password, that would be easy for you to remember and hard for anyone else to figure out. A strong password usually consists of at least 20 characters, and uses a combination of letters (both lower and upper case), and numbers. But at a minimum, it should consist of 8 characters. Click Next after you enter your password.



  11. Step 11







     







    Next, you are ready to "format" the container. You can select the type of Filesystem and Cluster. For this tutorial, leave the default values. Move your mouse randomly within the Volume Format window to generate the encryption keys. Don't worry; you are not going to have to remember these keys. When ready, click on Format to start. Depending on the size of the "container" (chosen in step 8), this may take up to 5 minutes.



  12. Step 12







     







    Once the format successfully completes, you will get a pop up indicating that the "container" has been created. Click OK.



  13. Step 13







     







    Close out of the TrueCrypt application. Using Windows Explorer or My Computer, navigate to the TrueCrypt directory, usually under C:\Program Files. Copy the entire C:\Program Files\TrueCrypt directory to the root of your flash drive. At this point you should have the MyCrypt "container" and the TrueCrypt directory (with application files) on your flash drive.



  14. Step 14


    Finally, using notepad, create a file called autorun.inf and enter the following:

    [autorun]
    action=Mount TrueCrypt volume
    open=TrueCrypt\TrueCrypt.exe /q background /e /m rm /v "MyCrypt"
    shell\start=Start TrueCrypt
    shell\start\command=TrueCrypt\TrueCrypt.exe
    shell\dismount=Dismount all TrueCrypt volumes
    shell\dismount\command=TrueCrypt\TrueCrypt.exe /q /d

    The autorun.inf file, with the above entries, allows you to be prompted to mount the encrypted "container", every time you connect your flash drive.



  15. Step 15







     







    Save this file into the root directory of your flash drive.



  16. Step 16







     







    That's it! Now, every time you connect your flash drive, you will be asked if you want to mount your encrypted "container". Select Mount TrueCrypt volume and click OK.



  17. Step 17







     







    Next, you will be prompted to enter in the password you created for your encrypted "container". Enter your password and click OK.



  18. Step 18







     







    Your encrypted "container" will be mounted as a drive using the next available drive letter. In this case, it is the H:\ drive



  19. Step 19







     







    Now, every time you put a file into the H:\ drive, it will be encrypted automatically. To "disconnect" the drive, right-click on the TrueCrypt icon in your taskbar and select Dismount.

















Tips & Warnings

  • Hopefully, I made the steps to create an encrypted drive easy. Having an encrypted drive will give you the assurance that if you lost your flash drive, the personal information stored in the encrypted drive will never be exposed.
  • TrueCrypt and the TrueCrypt logo are registered trademarks of the TrueCrypt Foundation
  • These steps and other tips can also be found on my blog http://nyctechtips.com
REFERENCES
http://www.ehow.com/how_2298754_usb-flash-drive-using-truecrypt.html