3 Solid Ways to Hide and Encrypt Files and Folders on Mac

Hats 80288 640

If you’ve used a Mac long enough, you’ve surely wondered how to hide a file. It could be important work documents you don’t want anyone to see, or something a bit more personal in nature. No matter what it may be, today we’ll talk about three solid ways to hide files on your Mac.

1. Using Terminal

First, we can use a simple terminal command to hide folders from prying eyes. Open the Terminal and enter the following command:

chflags hidden (Path to the file here)

Screen Shot 2015 01 01 At 2 30 02 Pm

Before pressing Enter, drag the folder or file in question to the Terminal and the path will show up. You can of course type the path manually as well. Just remember that if your folder/file has spaces, turn them into dashes first.

Now the contents of the folder are hidden. There are two ways to unhide them. You can either unhide the specific folder or do so for all hidden folders on the system.

Unhide Specific Location

Screen Shot 2015 01 01 At 2 31 29 Pm

To do so for just the folder we hid, use the following command:

chflags nohidden (Path to the file here)

If you’re coming back after a couple of days to unhide it and want a quick way to know the path for the file hidden, write the following command:

history

This will bring up all the commands you’ve typed. Copy the path name to the chflags nohidden command and press Enter.

Unhide All Hidden Folders

To unhide all hidden folders, type the following command:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

If you’re using a Mac that’s running Mountain Lion or below, you’ll have to capitalize the F in com.apple.finder.

To hide all the files again in the same fashion, use the following command.

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

2. Using Obscurity

Obscurity is a shell app. Download the .dmg from here, open it and drag the Obscurity folder to anywhere on your system.

Screen Shot 2015 01 01 At 1 24 22 Pm

Now, right-click on the folder and select See package contents.

Screen Shot 2015 01 01 At 1 27 02 Pm

Here, drag in any files and they’ll be saved secretly. Anyone who merely clicks the Obscurity folder will not be able to access the files. You can of course change the name of the folder.

3. Encrypt Files

The next level on the security chain, after hiding files, is encrypting them. You can do this using your Disk Utility.

Screen Shot 2015 01 01 At 1 31 59 Pm

Open Disk Utility and go to File > New > Disk Image from Folder.

Screen Shot 2015 01 01 At 1 32 57 Pm

Select the folder you want to encrypt and don’t forget to select 256-bit AES encryption from the Encryption drop-down menu.

Screen Shot 2015 01 01 At 1 33 28 Pm

Assign a password for authentication.

Screen Shot 2015 01 01 At 1 34 18 Pm

That’s it, your files are now protected.

How Do You Keep Your Mac Secure?

Did you know: Mac offers FireVault encryption that encrypts everything on your Mac. That means even if a person gets hold of your Mac, they can’t get to your data without your password.

What do you do to make your Mac secure? Let us know in the comments below.

Last updated on 03 February, 2022

The above article may contain affiliate links which help support Guiding Tech. However, it does not affect our editorial integrity. The content remains unbiased and authentic.