|
|
How can I password protect / encrypt a Mac OS X folder?Hi Dave. I have a question that I don't think you've ever written about: I have a folder with confidential information and want to encrypt or password protect it. I can see how to create a ZIP file from it with the Archive feature, but that's not password protected either. Is there any way to accomplish this in Mac OS X Snow Leopard? I just finished working on my taxes - always a highlight of the year. Not. - and face the same dilemma: I want to have the files on my laptop in case I need to reference them, but at the same time, I also don't want them easily readable in case someone rips off my computer or otherwise finds it and starts poking around. In fact, now that I think about it, there's a fair amount of information on my laptop that I wouldn't want posted to the Internet or perused by the public at large. Hmmm.... Turns out that while there's no way I'm aware of to add a password to the Archive ZIP file (which would really be cool, Apple. Hint, hint), there is an interesting way you can use Disk Utility to create a disk image that's encrypted and cannot be mounted - to gain access to the files and folders without knowing the password. Sound good? Here's how I did it... Go into your Applications folder, then within the Apple folder, and you'll find an app called Disk Utility. Launch it and here's what you'll see: ![]() Ya see along the top the icon for "New Image"? Click it. Now you'll be able to configure exactly what you want for your new disk image: ![]() First things first, though. Find the folder that contains everything you want to protect and choose File --> Info. You'll see that among the many fields shown is the size of the folder and its enclosed information. Like this: ![]() Here you can see that the data files I have require only 467KB, so I'll try to create a 500KB disk image. To do that, I click on the Size menu, showing me tons of options: ![]() Choose "Custom..." and you can type in the value desired. I'll choose 500KB: ![]() Click "OK" and uh ohhhh: ![]() Not sure why 10.5MB is the minimum size, but that's okay. We'll run with that. Next up is to click on the Encryption menu: ![]() 128bit AES Encryption is probably just fine for your needs, so choose that. Add a name and here's what you'll have, something kinda sorta like this: ![]() Ready? Click "Create" and it'll prompt you for the encryption password key: ![]() I used "iHEARTtaxes" for mine (just kidding!). Enter your password, twice, then click on "OK". You might want to opt not to save the password in your Keychain, btw, so that there's no trail of the password anywhere on the computer. I opted out. Now there's a new entry on the left side of Disk Utility: ![]() You can quit the Disk Utility now because we're done with it. Now on your desktop is the new disk image as a ".dmg" file and as a mounted disk. Open it and drag your files and folders thereon: ![]() Nice. One more step: unmount the disk now that you've added that data by clicking on the eject button: You can test it by double-clicking on the ".dmg" file and you'll see: ![]() Yay! Ya got a password protected virtual disk where you can store anything you want. As soon as you unmount it, it sits safely on your disk. Now, once you're convinced it works, delete your secure files (after copying them over onto the encrypted virtual disk!!) and then empty the trash. Done!
More Useful Mac OS X Help Articles:
✔ Audacity can't find LAME library, I can't save Mp3?
Hey Dave. I read your article Audacity can't save mp3 audio files and am still puzzled because I downloaded the LAME Mp3 converter...
✔ How to remove Dashboard as a "space" in Mac OS X Spaces?I'm a big fan of the Spaces utility in Mac OS X that lets me have multiple virtual screens [see Set Up Mac...
✔ Best place to buy a cheap MacBook laptop?Hi Dave. I am looking for two gently used MacBook laptops for my teen daughters. Personal computers would greatly facilitate their studies as...
✔ File too big error copying to USB flash drive on my Mac?I'm baffled. I have a 16GB Kingston USB flash drive that I use on my Mac system and I'm trying to copy a...
✔ Stealth image capture photo from webcam on my Mac?Someone sneaks into my cubicle while I'm at lunch and takes candy out of my desk. Petty, but stupid too. I want to...
Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help
right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
Categorized:
Mac OS X Help
(Article 9383,
Written by Dave Taylor)
Tagged: apple mac, data security, file encryption, folder encrypt, folder protection, leopard, mac os x, snow leopard Previous: The Samsung Q1 Tablet Computer, Four Years Later Next: How do I launch a separate window for Facebook chat? Reader Comments To Date: 13Wayne said, on April 22, 2010 3:18 PM:
Dave could you please mention a few words for those who have come from a windows environment, where deleting a file does not mean it is gone? Does deleting it from a Mac make it unrecoverable? Dave Taylor said, on April 25, 2010 9:52 PM:
Wayne, great question. Yes, the Mac operates similar to your Windows system, in that deleted files move into the "trash" rather than being deleted immediately. Look on your Dock: the trash can is conveniently located there, and you can click it to open it up. zotlot said, on March 31, 2011 1:56 PM:
THANK YOU! Akash said, on April 8, 2011 6:08 PM:
Dear Dave, Thanks for the showing the process of protecting the file via disk utility. Answer me via email. Dayo said, on July 20, 2011 2:58 AM:
And, on the emptying the Trash bit ... . If you are feeling a bit paranoid (as forensic analysis of your disk may still be able to restore files after emptying the Trash ... ), use "Secure Empty Trash ..." on the Finder menu. Simply open a Finder window, and select that menu. That should reduce the chances of the file being forensically restored. vipul said, on July 24, 2011 12:23 PM:
Dave, Many thanks, Dave Taylor said, on July 24, 2011 3:50 PM:
I think your fastest solution, Vipul, is to create a new folder with the keychain option unchecked, copy everything from the old folder into it, and delete the old folder. Vipul said, on July 25, 2011 8:05 AM:
Dave, thanks very much. That worked and it was painless. Lance said, on November 2, 2011 8:44 PM:
This article has the wrong title, and QUITE MISLEADING. It is about creating a disk image, not about encrypting a folder. Dave Taylor said, on November 3, 2011 11:19 AM:
Lance, the point of the article is that Mac OS X doesn't support encrypted folders, per se, but that if you create a virtual disk image and use that as your encrypted data store, it'll work great and is really easy... Rodolfo said, on November 28, 2011 8:14 AM:
Dave, This is an excellent and -above all- clean solution to the problem of encrypting folders in Mac OS X. It does require, however, careful planning, as it is not possible either to rename the disk image or to increase its size. Disk utility has a way to do the latter, but I couldn't increase the size of the partition, so increasing the size of the image alone rendered useless. Everything else worked just fine. Thank you! Dennis said, on December 12, 2011 9:20 PM:
One problem. Your secure disk image can be thrown in the trash and deleted without requiring a password! Apart from opening another user account or trying to hide it somewhere like in a .folder is there any way to keep it safe on the desktop?
I do have a comment, now that you mention it!Check This Out Too... |
Recent Entries
Look for Answers
Recommended
All Our Categories
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and Blogging Building Web Site Traffic Business and Management Computer and Internet Basics d) None of the Above Facebook Help Google Gmail Help Google Plus Help HTML, JavaScript and Web Site Programming Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Kindle Fire Help Mac OS X Help Pay Per Click (PPC) Advertising Pinterest Help Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help Find Me on Google+ ADT on G+ |
Faster way in Disk Utility. In the File menu, select New ->
Select Disk Image from Folder. Select the folder, set the image type and set the encryption.
No need to guess the image size and make the image ahead of time.