Creating an encrypted directory on MacOS

January 17, 2025

  1. CREATE a new folder.

  2. OPEN the Disk Utility program that comes with MacOS.

  3. OPEN the File menu at the top of the screen.

  4. SELECT New Image and then Image from Folder...

  5. NAVIGATE to the folder you created in step 1.

  6. CLICK Choose.

  7. ENTER the name and location of the password-protected dmg Disk Utility will create.

  8. SELECT the recommended Encryption (256-bit AES for me).

  9. In the password entry form that pops up, CLICK the key icon to the right of the Verify box.

  10. CREATE a secure password.

  11. SAVE this password to your preferred password safe.

  12. PASTE this password into both the Password and Verify boxes.

  13. CLICK Choose to exit the password entry form.

  14. SELECT the read/write option in the Image Format input.

  15. 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.

Tags: apple runbook