Use the zip command with -e flag (encrypt).
zip -e [target or destination.zip] [file or folder source to zip up]
You could specify a -r or recursively zip all files in the source folder
zip -er target.zip source_dir