Creating an encrypted directory on MacOS
January 17, 2025
-
CREATE a new folder.
-
OPEN the Disk Utility program that comes with MacOS.
-
OPEN the
File
menu at the top of the screen. -
SELECT
New Image
and thenImage from Folder...
-
NAVIGATE to the folder you created in step 1.
-
CLICK
Choose
. -
ENTER the name and location of the password-protected dmg Disk Utility will create.
-
SELECT the recommended
Encryption
(256-bit AES for me). -
In the password entry form that pops up, CLICK the key icon to the right of the
Verify
box. -
CREATE a secure password.
-
SAVE this password to your preferred password safe.
-
PASTE this password into both the
Password
andVerify
boxes. -
CLICK
Choose
to exit the password entry form. -
SELECT the
read/write
option in theImage Format
input. -
CLICK save to save the new dmg.
The Disk Utility will write a new, password-protected, dmg file in the location you specified in step 7.
To add encrypted content, double-click the dmg, enter the password and then edit files in the folder that opens in Finder.
If you like to use the terminal, you can navigate to this encrypted
folder with the path /Volumes/{{dmg_name}}
.For example, after I
mounted secure.dmg
, I ran cd /Volumes/secure
.