Type in ' cd' (no parentheses) and the location of the file or folder you want to compress and protect.It takes some unique commands, but it's the most straightforward method to password protect ZIP file and folders on Mac. There's a simple way to zip and password protect folders and files via Terminal. How to password protect a ZIP file with Terminal
We'll show you how to password protect a ZIP file, open encrypted ZIP files and folders, and discuss some proven methods for safeguarding your data.