Follow Us

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message

How to password protect folders on a Mac

You can password protect sensitive files in any folder by turning that folder into an encrypted disk image

Article comments

Reader James McCormick desires a way to password protect multiple files at one go. He writes: Is there a way to password protect a folder that holds Word or Excel files? I know I can password protect a file, but it would be easier and less involved to protect a folder over protecting many files.

You can password protect any folder by turning that folder into an encrypted disk image. You do it this way:

Create your folder full of documents and launch Disk Utility (/Applications/Utilities). Choose File -> New -> New Disk Image From Folder. In the Select Folder to Image window that appears navigate to the folder you've created. Select it and click the Image button. In the resulting window select Read/Write from the Image Format pop-up menu and 128-bit AES Encryption (Recommended) from the Encryption pop-up menu. (If you're very concerned about security you can choose 256-bit AES Encryption, but as the parenthetical advises, this is more secure but takes longer to encrypt.) If you're concerned about the amount of space the image might consume, you can choose Compressed from the Image Format pop-up menu, but the image will take a little longer to create.

Click Save and Disk Utility will prompt you to enter and verify a password. You'll also see the Remember Password in My Keychain option. Disable this option if it's active. If you don't and someone sits down at your computer when it's logged into your account, they can open the image simply by double-clicking on it.

Click OK and Disk Utility will create the encrypted image. You now have both the encrypted image and the unprotected folder. Keeping the original unprotected folder at hand isn't such a hot idea as it's accessible to anyone who uses your Mac when it's logged into your account, so trash it or archive it somewhere safe.

To access the contents of the encrypted image, double-click it, enter the password you assigned, and wait while the image mounts. When you've finished with it, drag the mounted image (not the encrypted disk image) to the trash.

That's all well and good if you don't intend to add a lot more files to this folder, as it won't grow to accommodate those new files. If you need an encrypted container that can accommodate more files, consider creating an encrypted sparse image.

Sparse images are images of a user-determined size that consume only as much storage as is used by the content in the image. So, for example, you can create a sparse image that will hold up to 5GB of data. If you put only 1GB of data in it and check its file size, you will see that it's approximately 1GB in size. But you have the option to add another 4GB of data to it. You create such an encrypted image this way:

Return to Disk Utility and choose File -> New -> Blank Disk Image. In the New Blank Image window that appears, choose Sparse Disk Image from the Image Format pop-up menu. From the Size pop-up menu pick a size that appeals to you or choose Custom and, in the sheet that appears, enter the size you like. From the Encryption pop-up menu choose 128-bit AES Encryption (or the sterner but slower 256-bit encryption). Name the image and click Create. As before, you're prompted for a password. Also as before, you should uncheck the Remember Password in My Keychain option. Click OK and both the sparse image file and mounted image are created.

Drag the content that you want to protect into the mounted image. When you're done with it, drag the mounted image to the trash. When you next need it, double-click on the sparse image file and enter its password when prompted.


More from Techworld

More relevant IT news


Send to a friend

Email this article to a friend or colleague:

PLEASE NOTE: Your name is used only to let the recipient know who sent the story, and in case of transmission error. Both your name and the recipient's name and address will not be used for any other purpose.

Techworld White Papers

Choose – and Choose Wisely – the Right MSP for Your SMB

End users need a technology partner that provides transparency, enables productivity, delivers...

Download Whitepaper

10 Effective Habits of Indispensable IT Departments

It’s no secret that responsibilities are growing while budgets continue to shrink. Download this...

Download Whitepaper

Gartner Magic Quadrant for Enterprise Information Archiving

Enterprise information archiving is contributing to organisational needs for e-discovery and...

Download Whitepaper

Advancing the state of virtualised backups

Dell Software’s vRanger is a veteran of the virtualisation specific backup market. It was the...

Download Whitepaper

Techworld UK - Technology - Business

Innovation, productivity, agility and profit

Watch this on demand webinar which explores IT innovation, managed print services and business agility.

Techworld Mobile Site

Access Techworld's content on the move

Get the latest news, product reviews and downloads on your mobile device with Techworld's mobile site.

Find out more...

From Wow to How : Making mobile and cloud work for you

On demand Biztech Briefing - Learn how to effectively deliver mobile work styles and cloud services together.

Watch now...

Site Map

* *