How to Create an Encrypted Disk Image to Securely Store Sensitive Files on a Mac

how-to-create-an-encrypted-disk-image-to-securely-store-sensitive-files-on-a-mac photo 1

Macs don’t need third-party utilities like TrueCrypt to create a secure, encrypted container for your sensitive files. You can create an encrypted disk image using the built-in Disk Utility.

Whenever you want to access your files, you can “mount” the image file and provide your password. Whenever you want to lock access to your files, you can unmount the image file.

Create an Encrypted Disk Image

To get started, you’ll need to open the Disk Utility application. Open a Finder window, click Applications in the sidebar, double-click the Utilities folder, and double-click Disk Utility. You can also just press Command+Space to open Spotlight search, type Disk Utility, and press Return to open it.

how-to-create-an-encrypted-disk-image-to-securely-store-sensitive-files-on-a-mac photo 2

Click New Image on the toolbar in the Disk Utility window. This will create a new disk image (.dmg) file. Here are the options you’ll need to configure:

  • Save As: Provide a file name for the disk image file. For example, if you name it “MyImage”, the container file will be saved on your hard drive as a file named MyImage.dmg.
  • Name: Enter a name for the disk image file. This name is more of a description — it will appear as the name of the container when the file is mounted.
  • Size: Choose a size for your disk image file. For example, if you choose 100 MB, you’ll only be able to store up to 100 MB of files inside it. The container file will take up the maximum file size immediately — so, if you choose 100 MB, it will take 100 MB of space on your hard drive even if you have no files saved inside it yet. You can enlarge or shrink the disk image later.
  • Format: Select Mac OS Extended (Journaled) as the file system.
  • Encryption: Choose either 128-bit or 256-bit AES encryption. 256-bit is more secure, while 128-bit is faster. If you’re encrypting sensitive files, you’ll probably want to choose 256-bit and accept the slight slow-down for more security.
  • Partitions: Select Single partition – Apple Partition Map to use a single partition inside your disk image file.
  • Image Format: Select read/write disk image so you can read from and write to the disk image at any time.

how-to-create-an-encrypted-disk-image-to-securely-store-sensitive-files-on-a-mac photo 3

Click Create and you’ll be prompted to create an encryption password for your disk image. Provide a strong password — this dialog will estimate your password strength to help you with choosing a password. If you lose this password, you’ll lose access to the files inside your encrypted disk image. Be sure to pick something memorable.

You’ll probably want to uncheck the “Remember password in my keychain” option. This option will remember the password in your Mac user account’s keychain so it can be automatically filled in the future.

how-to-create-an-encrypted-disk-image-to-securely-store-sensitive-files-on-a-mac photo 4

The disk image will be created, formatted, and automatically mounted for you. You’ll find it on your desktop and in the Finder under Devices. To encrypt files, just save them to this device.

To unmount the encrypted disk image, click the Eject button under Devices in finder or right-click or Ctrl+click its desktop icon and select Eject.

how-to-create-an-encrypted-disk-image-to-securely-store-sensitive-files-on-a-mac photo 5

Mount the Encrypted Disk Image

To mount the encrypted disk image in the future, locate its file on your hard drive — it will have the .dmg file extension — and double-click it. You’ll be asked for the encryption password you provided while setting it up.

After you provide the password, you can access the contents of the file just as you would access any other disk image or removable device.

how-to-create-an-encrypted-disk-image-to-securely-store-sensitive-files-on-a-mac photo 6

Enlarge or Shrink Your Encrypted Disk Image

If you’re running out of space inside your encrypted disk image and don’t want to create another one, you can enlarge your existing one. Or, if you’re not using the full size of your disk image, you can shrink it to save space on your hard drive. The disk image will take up the maximum amount of space immediately. So, if you enlarge it to 1 GB, it will immediately take up 1 GB of space.

To do this, right-click or Ctrl+click your .dmg file, point to Open With, and select Disk Utility. Select your image file in Disk Utility, click the Resize Image button, and enter a new size for the disk image. You’ll be prompted for your encryption password.

Note that you won’t be able to resize the disk image if it’s currently mounted. If the Resize Image button is  grayed out, just click the Eject button in the Disk Utility window.

how-to-create-an-encrypted-disk-image-to-securely-store-sensitive-files-on-a-mac photo 7


You can now do whatever you like with your encrypted .dmg file. Keep it on your hard drive, copy it to a USB drive, or even store it online using a cloud file storage service like Dropbox. People won’t be able to access its contents unless they have the password you provided. You can mount the encrypted file on any Mac as long as you have the password.

Article How to Create an Encrypted Disk Image to Securely Store Sensitive Files on a Mac compiled by Original article here

More stories

How to Change the DNS Server on Your iOS Device

The Domain Name System (DNS) translates the human-friendly domain names you type in–like “howtogeek.com”–into numerical IP addresses. The trouble is, your internet provider may not have the fastest or most reliable DNS servers available. You can easily configure your Wi-Fi connections in iOS to use

How to Increase the Size of Text and Icons on an iPhone

You can make text larger and more readable on your iPhone or iPad, but you can also increase the size of the app icons, text labels, and user interface elements on your iPhone 6, 6 Plus, 6S, or 6S Plus so it’s easier to use.

How to Disable Haptic Feedback (or “Vibrate on Tap”) in Android

When you tap certain items in Android, your phone will vibrate just a bit, giving you a little feedback. Sometimes, this is nice—getting that response is a nice acknowledgment that the thing you want to do is about to be done. But maybe you don’t like that, which is okay. I support your decision

What to Do (and Not Do) If You Find a Lost Smartphone

At some point or another, you might lose your phone. It’s always good to know what to do when that happens, but there’s another side to that story: what if you’re the person who finds a lost phone? You’d be surprised at how many people don’t know what to do when they find someone else’s phone—and

Why Buying a Smart Fridge Is a Dumb Idea

I saw the “Family Hub” fridge at CES 2016, and was assured by a Samsung representative that it wasn’t a joke. It is a serious product you can now buy in stores, but it probably shouldn’t be.