Create an Encrypted Zip Archive from the Command Line

Here is how you create an encrypted zip from the terminal:

zip -er archive.zip nameOfYourFolderToZip

The above command will create an encrypted zip archive of a folder named nameOfYourFolderToZip and save it to archive.zip.