how to compress file on mac with password code example Example: create zip file password mac zip -er NAMEOFZIPFILE.zip sourcepathfolder