How to Zip and Encrypt a file on a Mac

I’d recently seen a few people recommending app store apps to handle zipping and encrypting files/directories on a Mac.

Open up a Terminal session and locate the directory you need and run:

zip -er directory-of-files/things.txt

You’ll then be prompted to enter the password and confirm it.