
Also, it can be opened with the password on any system including iPhone, Android devices, and even Windows 10 PCs. Once you protect the folder using a password on Mac by compressing it to zip by the above method, you can send it to anyone over mail or other means.

Change the terminal directory to the location of the newly created folder.After opening the terminal enter the following commands.

Open Spotlight and search for “ Terminal.”.

Now, move all your confidential data into the folder you want to lock.On your Mac, create the folder on any location.
