How To Create An Encrypted Disk Image To Store Your Sensitive Data In Mac

If you keep a great deal of sensitive and confidential files and folders in your computer, the best way to keep them out of the public’s view is to encrypt them with a strong password. In Mac, if you want to encrypt your data, instead of installing third party encryption software, you can use the inbuilt disk image function to create an encrypted container to store your sensitive data.

In your Mac, go to Applications -> Utilities -> Disk Utility.

Click on the New Image button.

Enter the information in the window.

In the Volume Size field, you can choose the size of the container that you want to create. There are several preset options, including various CD and DVD sizes. You can pick one from the dropdown list or define your own size with the Custom option.


Under the Encryption, select 128-bit AES encryption. There is also an option to choose 256-bit encryption, but that will slow down the whole process.

In the Image Format field, select read/write disk image.

Here is what you see after configuring:

disk image info

Click Create to generate the disk image. It will prompt you for your password. Enter your password, make sure that it is a strong one.

Also, remember to uncheck the box “Remember password in my keychain“, else it will defy the purpose of encrypting your data.

disk image password

Once the disk image is ready, you will be able to find it mounted on your desktop ready to be used. Open up the disk image in your Finder and drag (or copy and paste) your sensitive files into it. When you are done, simply unmount it. Anyone who wants to open the disk image to view the files within will have to enter the password that you have set.

That’s it. You have successfully created an encrypted disk image to contain all your confidential files. With this encrypted disk image, you can store it in a corner of your hard disk, bring it around in your flash drive or burn the disk images to your CD/DVD.

Damien Damien

Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.


  1. Nice trick. Works like a charm.
    Saw this explained also on but couldn’t make it work. Believe some detail was missing in their explanation.

  2. This technique is quite successful. I was wondering though how this encryption would stand up if I ported the .dmg file to a Windows system. I hope this doesn’t sound stupid but I am concerned about this. Could you please reply? Will AES-128 or AES-256 be enforced on a Windows system XP/Vista/7?

    1. First of all, can you handle dmg file in Windows? If it can, probably it will work. But seriously, I doubt so.

Comments are closed.