The Mac Observer

Skip navigational links

You're viewing an article in TMO's historic archive vault. Here, we've preserved the comments and how the site looked along with the article. Use this link to view the article on our current site:
Protecting Files with an Encrypted Disk Image

TMO Quick Tip - Protecting Files with an Encrypted Disk Image

by , 7:30 AM EST, November 28th, 2007

I recently showed how to keep Leopard's pre-built Smart Folders from snooping where you don't want them. A couple of readers pointed out encrypted disk images are really effective at keeping your private documents private, too, and they are absolutely right. If you don't know how to create an encrypted disk image, however, they won't do you much good at all.

Here's how to make your own encrypted disk image:

  • Launch Disk Utility. You can find it hiding in Applications / Utilities.
  • Click New Image.

  • Select New Image in Disk Utility.
  • Enter a name for your image file in the Save As field.
  • Enter the name you want to use for the disk image when it is mounted in the Volume Name field. This can be different that the image file name.
  • Set the maximum size for your disk image volume with the Volume Size pop-up menu.

  • Be sure to choose 256-bit AES encryption and sparse disk image.
  • Choose 256-bit AES encryption from the Encryption pop-up menu.
  • Select sparse disk image from the Image Format pop-up menu. That way your image file can grow or shrink to the size of the documents it holds.
  • Click the Create button.
  • Enter a password for your disk image in the password dialog. Be sure to uncheck Remember password in my keychain for an added level of security.


Password protect your disk image to keep nosey people out.

To mount your disk image on your Desktop, double-click the disk image file and enter the password you created when asked. You can add and remove files from the mounted image just as if it was a real disk connected to a FireWire or USB port.


Your disk image file (left), and the mounted disk image (right).

To keep people from seeing the files stored in your disk image, simple eject the mounted image from your Desktop. All of the documents stored there will be safely locked away and encrypted. The only way to see what's hiding inside the disk image file is to double-click it again and enter the associated password -- even Spotlight can't look inside to see what's there when your image isn't mounted.


Jeff Gamet is TMO's Morning Editor and Reviews Editor. He lectures, teaches and speaks on Mac OS X and design-related topics, and is the author of The Designer's Guide to Mac OS X from Peachpit Press.

if you have tips or tricks to share, or Mac-related questions you want answered.

Observer Comments

Show: Subjects Only | Full Comments
Close Name:Guest
Subject: Re-Mounting

Nice tip, Jeff, and thank you.

Once I've ejected the encrypted disk image - how do I regain access to it, short
of restarting?

Close Name:deasys Posts: 296 Joined: 08 Apr 2003
Subject:

Quote
Guest wrote:
Once I've ejected the encrypted disk image - how do I regain access to it, short of restarting?


Just double-click the image file. You'll be prompted to enter its password. Once you enter it, the virtual disk will mount on your Desktop, ready for use.

Close Name:Guest
Subject: Thanks

Got it. The disk image is still on the desktop - just not mounted. I mistakenly interpreted unmounting to mean hiding.

Close Name:Guest
Subject: Yeah, this works great

I use a product called Knox to manage creating, opening and compacting encrypted disk images.

Close Name:noworryz Posts: 7 Joined: 15 Nov 2007
Subject: Sparse bundle, not disk image

In Leopard, you want to select "Sparse Disk Bundle," not "Sparse Disk Image."
Otherwise, every time you make the slightest change to any file on your encrypted image, the entire image will be backed up in Time Machine as a new file. Sparse bundles split the image into many small files (called "bands") acting as one so that Time machine will only back up the areas of the image that were changed.

Close Name:Guest
Subject: Great article

I searched Google and this article came up. Thank you for creating this useful document!

Close Name:Guest
Subject: Re: Sparse bundle, not disk image

Quote
noworryz wrote:
... Sparse bundles split the image into many small files (called "bands") acting as one so that Time machine will only back up the areas of the image that were changed.

Thank you that someone finally explained this distinction. I had searched the entire Apple web site with the words "sparse bundle" (after failing with "sparse bundle disk image") and received zero hits. It is a bit hard to know what something does when Apple does not bother with an explanation on its web site or even in Disk Utility Help.

Comment on this Article


You cannot edit your comments.   You cannot delete your comments.

Comments are currently closed. Please email the author instead.


Recent Headlines - Updated July 6th

Fri, 10:29 AM
News - Apple Warns of Learning Interchange Security Breach
7:30 AM
News - Happy Fourth of July!
Thu, 6:07 PM
TMO Scoop - Psystar Moves to Drop Bankruptcy Ahead of Apple Legal Battle
5:37 PM
News - Uncomfirmed Reports Say Apple & Nvidia On The Outs
4:57 PM
News - Microsoft Sick Over Barf Ad
4:09 PM
Product News - KRK Ships R6 Passive Studio Monitor for Recording
3:45 PM
John Martellaro's Blog - Particle Debris (week ending 7/2)  Juiced, Joost and Goosed
3:12 PM
Product News - ExactScan 2 Pro Released
1:56 PM
Deal Brothers - Apple TV with 160GB Hard Drive:  $324.00 Delivered
12:46 PM
TMO Appearances - TMO Appearances Jeff Gamet Shares iPhone Apps on MacJury
10:41 AM
Product News - Art Text 2.2 Adds New Templates, Layer Options [Updated]
10:04 AM
Hot Forum Topic - Deciphering Mac Sales

The Mac Observer Reader Specials

  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!