To protect documents, pictures, and any other files con­tain­ing sensitive data from un­au­thor­ised access, you can lock or password protect a Mac folder. We’ll explain how this works with the help of our step-by-step guide including helpful screen­shots.

A step-by-step guide for how to lock a folder on a Mac.

To password protect a Mac folder, you must first create an image of that folder and then protect it with a password.

Note

The image referred to in this context is an Apple Disk Image file not a screen­shot. This file behaves like a volume or a device connected to the Mac and can be re­cog­nised by its .dmg extension.

The following steps are required to lock a folder in macOS:

Step 1: First, create a folder (on your desktop or anywhere else on your Mac) that contains all the files you want to lock.

Image: Example of a new folder on macOS desktopgowith­stockShut­ter­stock
Example of a new folder on macOS desktop

Step 2: Open the Disk Utility app. The fastest way to do this is to search for “Disk Utility” in Spotlight Search:

Image: Spotlight Search in macOS: Hard Disk Utility
Spotlight Search in macOS: Hard Disk Utility

Finally, press the Enter key to open the program.

Step 3: Select “File” from the upper menu bar, followed by “New Image” and finally “Image from Folder…”. Using the right Mac shortcut will help you to perform this action a bit faster.

Image: Create a new image in Disk Utility
Create a new image in Disk Utility

Step 4: In the window that opens, select the required folder:

Image: Select Folder in Hard Disk Utility
Select Folder in Hard Disk Utility

Step 5: A window will open which allows you to enter the new file name, add tags (optional), and choose where you want to save it. The most important part of this step is to choose which level of en­cryp­tion you want. Select 256-bit AES en­cryp­tion. This is currently the most secure method - not only for locking a Mac folder. It doesn’t take much longer than 128-bit AES en­cryp­tion.

Image: Adjust settings for encryption
Adjust settings for en­cryp­tion

Step 6: Another window will open in which you can set a password for the folder or image file.

Image: Set password for Mac folder
Set password for Mac folder
Tip

To password protect a Mac folder, choose a secure password that is at least eight char­ac­ters long and contains a com­bin­a­tion of lowercase and uppercase letters, numbers, and special char­ac­ters. Avoid using words or dates that can easily be as­so­ci­ated with you - such as your last name, a date of birth, or post code.

Step 7: Confirm your password by clicking “Choose” and then “Save” in to create your password-protected folder using the Disk Utility.

Image: Confirm entries in the hard disk utility
Confirm entries in the hard disk utility

Step 8: Once the process is complete, you can confirm by clicking on “Done”. The password protected folder can now be found where you chose to save it.

Image: Completed encryption in the hard disk utility
Completed en­cryp­tion in the hard disk utility

Important! After you’ve completed these steps, delete the original folder because it is not locked. Your files will still be in the password protected folder.

Working with a password protected Mac folder

To access the data in your newly created locked folder, double click on it and enter the password.

Image: Encrypted Mac Folder: Password Entry
Encrypted Mac Folder: Password Entry

If you no longer need the password protected folder, be sure to eject the .dmg file. Otherwise the data can be retrieved without a password. Ejecting the file is easy: just drag it to the trash bin.

Image: Context menu of image file
Context menu of image file

Reviewer

Go to Main Menu