ZIP with password – OSX

OSX – right-click “Compress…” is great.. but if you need a simple zip password for the file, Terminal is your tool.


1
zip -er archive.zip /path/to/directory/

You will be prompted to enter the password when you execute the command.