Ask Leo! by Leo A. Notenboom

Can I password-protect a folder?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Windows

Summary: Keeping data on your computer secure is important. Being able to password protect a folder seems an obvious approach. Unfortunately it's not that simple.

Can I put a password on a folder so that only I can see its contents?

Yes and no.

You can do something similar to password protecting it using Windows security features. It depends, though, on using the computer the "right" way. On top of that, I actually don't really recommend it. If you have something that you want to password protect and keep secure, I recommend a slightly different approach.

Windows allows you to place restrictions on who can do what with a folder, or even a file. In Windows Explorer, right click on a folder and Properties, and then click on the Security tab:

Security Properties Dialog

Here you can see the properties of a folder on my machine called "books".

Here you can control who has access to that folder. The default way my machine is set up, everyone can examine the contents of that folder. I can remove that and further restrict on an account-by-account basis which users can access that folder, and whether they can modify, read or even see the folder contents.

It's actually very powerful, if a tad complex.

However, it's based on Windows user accounts. Thus if you give your own account full access to the file, as I assume you would, then anyone that can login to the machine as you can immediately access the file. There's no real password on the folder, it's your ability to login to Windows using your login password that controls your access to the file.

"The approach I prefer, and in fact use myself, is to use the free open-source tool TrueCrypt."

And since it's based on Windows user accounts it assumes you're actually using different user accounts for different people. It's very common for that not to be the case.

The approach I prefer, and in fact use myself, is to use the free open-source tool TrueCrypt.

With TrueCrypt, you create a single file on your computer's hard drive that is encrypted. If someone looks at that file all they see is random data - there's no way to know what that file contains.

Once you "mount" that file using TrueCrypt, and supply the correct password or pass-phrase to unlock it, the contents of that file appear as another drive on your system.

For example, I might have a file "c:\Windows\secretstuff.tc". There's nothing you can do with that file without TrueCrypt and the password to the file. Since I know the password, I can mount it using TrueCrypt and suddenly a new drive appears - say "P:". That drive then contains all my protected files. I can change them, update them, delete them - whatever. Once I'm done, I can hide them all again by simply unmounting the TrueCrypt drive.

It's both simple and elegant.

And it's not tied to Windows, user accounts or anything else. In fact, you can copy your encrypted file to another machine entirely and mount it with TrueCrypt. Even using other systems such as Linux.

And while any encryption is vulnerable if you pick a bad password, the actual encryption algorithms used by TrueCrypt are "industrial strength" and nearly impossible to crack with current technologies.

Related:

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

  • TrueCrypt - Free open-source disk encryption

  • How can I keep data on my laptop secure? Laptops are portable, convenient and easily lost. When lost, all the data could easily be available to the finder. Encryption is the answer.

  • What's a good password? Good passwords are hard to crack and hard to remember. As a result, many people don't use really good passwords, even though they should. We'll look at what makes a good password, and some ways to make them easier to remember.

  • How do I keep my computer safe on the internet? Internet Safety is difficult and yet critical. Here are the seven key steps to internet safety - steps to keep your computer safe on the internet.

Article C2850 - November 23, 2006

Recent Comments
30 Comments

Truecrypt is indeed the most secure container as Leo said. It uses military grade blowfish 256 [ 128 ] des encryption to format an area on the hard disk. It uses next to nothing in resources, is totally transparent and mounts/unmount's in a flash. The only fly in the ointment is if you decide you no longer need the 'container' wiping it off the HD will only render that portion the container used - unreadable since it now has no regular format. Effectively, it is lost HD space unless you reformat that section with a utility and then either give it a drive letter or use something like partician magic to reclaim that bit of HD.
I have been using TC for yonks to store my invention circuits and even if I decide to wipe it out [ the files NOT the container ] the space is still there to use even if it doesen't HAVE to be encrypted. It would just mean I have to mount this drive with TC to use it for anything else. Since TC can be used on ANY drive [ rewritable DVD or stick drive ] and you think there will come a time when you don't need a TC file - make the container on a 4-8 -16GB stick drive and just plug it in to a USB slot. This makes the files ultra safe as the stick can be removed and stored elsewhere in case the PC does a flame out and trashes the hard drive totally [ happen to me once ].

Posted by: john neeting at January 21, 2009 6:38 AM

it seems that the protocol used by winsesame is beter than truecrypt and a professional version has a function to protect against deleting the folders protected by the program a sort of UAC protection for this sort of documents. this program has also diskweeper and memoryweeper functions. good for paranoia.

Posted by: Pradier at February 13, 2009 1:17 PM

John
If you delete a TrueCrypt container file once it is dismounted then you do not lose that space on the host filing system. Even a container file sits within the filing system and Windows treats it like any other file whether it's encrypted or not. So deleting it is no different to deleting any other file.
Will

Posted by: Will at February 22, 2009 12:52 AM

Yes in fact winsesame is the best soft for password protect folers. It works on external drives usb flash drives or network. The folders can be send by email attachment. This soft can be downloaded from the site http://www.winsesame.com
There is a free version for folders less than 1Mb which is enough for everyday use.

Posted by: Georges at March 5, 2009 10:51 AM

Leo, Is what Johns saying above about lost HD Space correct with regard to Truecrypt?

It's unclear exactly what his point is.

If you delete a TrueCrypt container, that space is returned to the filesystem.

If you delete files within the container, that space is returned to the available space within the container.
- Leo
06-Apr-2009

Posted by: Ant at April 5, 2009 5:15 PM

I have two queries

1) If i uninstall truecrypt then will anyone will be able to access the folder.

2) Can i encrypt the folder and store in my portable Hard disc or Flash drive etc.

N.B- If i want to view encrypted folder in a new machine i have to install the s/w in that machine

1) No. Your encrypted containers remain encrypted. Without Truecrypt installed even you will not be able to access them. 2) Absolutely, I do this all the time. NB) Check out the truecrypt documentation, they have a way to install on a portable drive.
- Leo
21-Apr-2009
Posted by: Santu at April 20, 2009 1:51 AM

You may also use WinRar to zip the folder and encrypt using password.

Posted by: RK at April 23, 2009 1:36 PM

The Folder Shield is an ideal way to accomplish this feat. You simply do not see the folder until you request it with a password. Unfortunately the Vista version is not out yet.

Posted by: Zvonko at June 23, 2009 11:24 AM

Do you have any solution for adding a password to access the internet or to open a folder? It's a shared computer at work that I want to prevent free access to the internet without restricting access to sites once enabled. Also something similar for a folder that any file could go into and only be opened by password. I only know of password protecting a Word document.
Thank you

Posted by: Ben at September 12, 2009 2:02 PM

hi...i deleted my file container created in truecrypt........wht shud i do now

Start over?
Leo
13-Oct-2009

Posted by: chakri at October 12, 2009 9:26 PM

Post a comment on "Can I password-protect a folder?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!