When it comes to protecting folders, a feature that an operating system ought to be able to do, for free I might add, beloved Mac falls short . Why? I don’t know. Ask Uncle Steve.

Therefore, in order to avoid using a 3rd-party software, next best method of approach is to turn a folder into a mounting disk image.


Steps to protecting a folder
Steps to increasing capacity of new disk image

Step 1

Open “Disk Utility” application.
Location: Applications → Utilities.

Step 2

Choose: File → New → Disk Image from Folder
Shortcut: Shift + Command + N

Step 3

Choose a folder to protect and press [Image]

Choose A Folder

Step 4

Choose a location to save the disk image
Select “read/write” option for Image Format
Select “128-bit AES encryption” option for Encryption and click Save

Choose Option Read/Write and 128-bit Security Encryption

Step 5

Type in a password.
Click Key icon for more password options. (optional)
Uncheck “Remember password in my keychain” and click OK.

Choose your password wisely

Step 6

Navigate to the location of saved disk image.
Double click to mount the disk images as a Volume.

Double click the new disk image to mount as a Volume

Step 7

Drag-and-drop files and folders within the protected disk image.

Drag and Drop files and folder within the protected disk image

Default size is 9.2 MB.
To view: click item, choose File → Get Info.
Shortcut: Command + I

Default volume size 9mb

Step 1

Open “Terminal” application.
Location: Applications → Utilities → Terminal.
Type: hdiutil resize -size 100m (where 100 is your assigned amount of space. Do Not press [return])
Drag-and-drop your unmounted volume into the terminal.

Open Terminal Application

Step 2

The output should look like this: hdiutil resize -size 100m /Users/myusername/Desktop/myFolder.dmg
Now press [return])
Type in your assigned password. (password area will remain blank for security reasons. Do not fear. The system is reading it. Press [enter] once done.)

Terminal Outcome

Step 3

New Default size is 100.2 MB.
To view: click item, choose File → Get Info.
Shortcut: Command + I

New volume size 100mb

To exit the terminal, type “exit” without the quotes and press [return].
Choose File → Quit.
Shortcut: Command + Q

~ the end