Password protect zip file on mac OSX command line
![Photo by Markus Spiske on Unsplash](/_next/image?url=%2Fimages%2Frandom-blog-covers%2Fmarkus-spiske-Skf7HxARcoc-unsplash.jpg&w=1920&q=75)
Short reminder for myself on how to password protect a zip file on Mac OSX command line.
To zip and password protect a document on the command line
zip -er <zipname>.zip <file.txt or folder to zip>
This will prompt you for a password before zipping.