Everyone has the right to privacy. With so much of our personal lives on display for public consumption, it makes sense to want to button up certain aspects of your digital life to keep them safe.
Regardless of why you want to keep information private on your Mac, you can do so easily by password-protecting a folder, among other methods. Keep reading to learn how to password-protect a folder on a Mac.
How can I password-protect a folder on macOS?
If you live in a house with other people, password-protecting your files and folders becomes a necessity. Learning how to put a password on a folder can keep your personal data safe from prying eyes and help protect you from identity theft.
Data breaches occur every day. By password-securing a folder, you could also protect your data against hackers. The following are a few ways you can password-protect a folder.
How to add a password to a folder using Disk Utility
While securing individual files makes sense, it’s also a good idea to secure an entire folder. That way, you can quickly move files in and out of it whenever you like without any tricky maneuvers.
The first way to protect a folder on a Mac is by using the built-in Disk Utility tool. The tool creates an archive file (.dmg) using AES encryption, which requires a password to open.
How to apply a password to a folder using Disk Utility:
- On a Mac, open Applications.
- Choose Utilities, Disk Utility.
- Choose File, New Image, and Image from Folder from the top menu.
- Select the folder you want to password-protect.
- Click Choose.
- Choose the location.
- Give the folder a name.
- Use the Encryption drop-down menu to choose your encryption level (128-AES or 256-AES).
- Enter a password.
- Verify the password (your Mac can create a password for you).
- Click Choose.
- Select the Image Format drop-down and select “read/write.”
- Click Save.
Disk Utility will encrypt your folder. Wait until it is done before closing the app. Click Done, and then you can close it.
Because macOS creates a new encrypted folder, you can delete the old one. To open your new folder, simply double-click it and enter the password you created.
How to secure a folder with a password using Encrypto
Encrypto is a free MacPaw app with increased versatility and more features than the built-in Disk Utility. You can download it for free on the App Store.
One of Encrypto’s best features is sending or sharing password-protected files with anyone with 256-AES encryption. You can also hide encrypted files so no one can see or delete them. You cannot do this with Disk Utility. Encrypto even works seamlessly between Mac and Windows machines.
This powerful program is easy to use, simply:
- Download and install Encrypto from the App Store.
- Open the app.
- Drop the files you want to password-protect in the yellow bar.
- Encrypto gets to work encrypting your files.
- Set a password.
- Set a password hint.
- Click Encrypt.
- Wait for it to finish.
Once Encrypto is done working, you can share or send the file using built-in macOS tools like messages, email, AirDrop, etc.
How to password-lock a folder with a Terminal command
Another way to password-lock a folder on a Mac is using Terminal commands. Terminal is like the old DOS operating system, and commands quickly get to the heart of the matter without any visual distractions. That said, you always want to be careful before using Terminal commands.
The following process turns your folder into an encrypted ZIP archive file. This method works well if you intend to share or send the password-protected file via email:
- On a Mac, go to Applications > Utilities > Terminal.
- Open Finder and locate the folder. CTRL-click and choose Get Info.
- Copy the Where location to your clipboard (CMD+C).
- Back in Terminal, type cd and a space.
- Paste (CMD+V) the path you copied above, and click Return.
- This will select that location.
- Type ls and click Return.
- Confirm access to that location when the Terminal asks for it.
- Type zip -er PasswordProtectedFiles.zip “Secret”
- Above “PasswordProtectedFiles” is the name you want to give your new file. Change it to whatever you like. Just ensure that it includes the .zip at the end.
- Where we have “Secret,” change it to the name of the folder that you want to password-protect. (Ours is called Secret.)
- Click Return.
- Enter the password you want to use.
- Verify the password.
You will now see an archive folder (ZIP) in the exact location of the original file. Double-click it, and a pop-up box will ask you to enter the password. The file is now safe to send.
Things to keep in mind when you lock a folder with a password
As good as password-protecting your files sounds, password-protecting comes with limitations and some dangers. Here are some things to consider before locking up all your data.
Don’t lose your password
Once you password-protect your folder, the password cannot be retrieved. If you lose it or forget it, you may lose access to those files forever. Be sure to keep your password in a safe location (preferably a password vault). Always back up your files before password-protecting and store them offline on a disk that can be locked in a safe.
Consider the risk of deletion
If you use Disk Utility, anyone with access to your computer could find and delete your protected files. They are not hidden from view. If you use third-party tools like Encrypto, you could hide them from others so they don’t even know they are on your Mac.
Files are protected at the folder level
When you encrypt a folder, each file inside is protected, but the individual files do not have passwords. This means if anyone gets into that folder, all the files within it are vulnerable. However, you can still use built-in password features within each program (Pages, Word, Excel, Notes, etc.) and set a password to protect them.
Now that you have learned how to apply a password to a folder, you have one more tool in your cybersecurity toolbelt to keep you and your private information safe and secure.
This is an independent publication, and it has not been authorized, sponsored, or otherwise approved by Apple Inc. Mac and Disk Utility are trademarks of Apple Inc.