How to password protect a zip on macOS

Posting mainly for my own reference… Drag the folder you want to zip onto your desktop Open terminal and navigate to your desktop Type in zip -er file_name.zip file_or_folder_you_want_to_compress (hit the tab key to help you auto-fill the name of the file or folder you want to compress) Then enter a password, twice Done 😀