Key Takeaways
- Encrypted folders can be useful to safeguard your crucial files, especially if you share your Mac with someone else.
- You can use the Disk Utility or the Terminal to lock folders on your Mac.
- If you are looking for a hassle-free method to password-protect folders on your Mac, you may use third-party apps like Encrypto or Folder Lock.
Does the thought of someone accessing your private stuff scare you? If yes, learning how to password-protect folders on your Mac can be pretty helpful.
Whether you’re safeguarding some confidential documents or those embarrassing vacation photos, this guide can help!
- Password protect folders using Disk Utility
- Password protect folders using Terminal
- Lock your folders with third-party tools on Mac
1. Password protect folders using Disk Utility
One of the easiest ways you can password-protect a folder on a Mac is by creating an encrypted disk image for the folder using Disk Utility.
This tried and tested method lets you set a custom password and select a type of encryption for the locked folder for added security. Here’s how it works:
- Open the Disk Utility using the Launchpad or Spotlight.
You can also find the Disk Utility in Finder → Applications → Utilities. - Click File on the menu bar → Select New Image → Image from folder.
- Select the folder you wish to lock with a password → Click Choose.
- Enter a name → Select a location where you want to save the folder.
- Click the Encryption drop-down → Select an Encryption type.
Apple recommended using 128-bit AES encryption as it’s faster. - Enter the password you want to use. Then, enter it again for verification.
You may click the key icon to auto-generate a powerful password. - Click the Image Format drop-down → Select read/write → Click Save.
- Wait until your Mac finishes creating a disk image. Then, click Done.
Once you create a password-protected folder, it will show up as a .dmg disk image in the location where you saved it.
You’ll have to enter a password to access the files saved in the disk image and eject it to lock the folder again.
2. Password protect folders using Mac’s Terminal
Yet another way you can lock folders on your Mac is via the Terminal.
With this method, you can execute a simple command to create a password-protected zip file from a pre-existing folder. Here’s what you need to do:
- Open Terminal on your Mac using Launchpad or Spotlight search.
You can also open Terminal from Finder → Applications → Utilities. - Type
zip -er output.zip input
. Now, replace “input” with the path of the folder you want to lock.- To find the path in Finder, select the folder, right-click, and select Get info. Next to Where, you’ll find the path of the folder.
- Press return on the keyboard.
- Enter the password you want to use → Hit return.
Remember, you’ll not be able to see the password being entered. So, be extra careful. - Verify password → Then press return again.
This will compress the files in the folder and create a locked .zip file.
Now, if you wish to find and open the locked zip folder on Mac, do the following:
- Open Finder → Press Shift + Command + H to locate the locked folder.
- Click output.zip → Enter the password → Click OK to unlock the folder.
3. Lock your folders with third-party tools on Mac
There are several third-party apps like Encrypto and Folder Lock, which can be used to lock your folder with a password.
These apps offer a hassle-free method to lock folders on your Mac if you’re not comfortable using Terminal commands or Disk Utility.
Here’s how you can encrypt Mac folders with Encrypto:
- Download Encrypto from the App Store → Open Encrypto.
- Drag and drop the folder you want to lock into the app’s window.
- Type a password for the folder → Add a hint (optional) → Hit Encrypt.
- Click Save as → Select a location to save the locked folder → Hit Save.
- To open a folder, click the .crypto file → Enter password → Hit Decrypt.
Wrapping up…
That’s pretty much it! By employing any of the three methods mentioned in this post, you can build an impenetrable wall around your essential data.
If you were able to learn something new from this guide, do let us know which method you prefer to lock folders on your Mac in the comments section.
Also read:
- How to password-protect PDF on Mac
- How to add a password to Pages document on Mac
- How to copy files and folders on Mac in 5 different ways
🗣️ Our site is supported by our readers like you. When you purchase through our links, we earn a small commission. Read Disclaimer.